Describes how to patch your instances to the required version.
Patch Your 16.1.2 or 16.3.1 Instances to 17.1.2
Log in to the instance you want to patch as the root
user.
Navigate to the /etc/yum.repos.d
directory
cd /etc/yum.repos.d
Download the exalogic.repo
file from the repository server to your instance:
wget http://http-repo-server:port/patchrepo/template/exalogic.repo
Identify the version of Oracle Linux of your guest instance:
lsb_release -rs | cut -f1 -d.
If 6
appears, the instance is an Oracle Linux 6 instance.
If 5
appears, the instance is an Oracle Linux 5 instance.
Download the following scripts using wget
:
wget http://http-repo-server:port/patchrepo/scripts/update_instance.sh wget http://http-repo-server:port/patchrepo/scripts/remove_old_kernel.sh
Add execute permissions to the downloaded scripts:
chmod +x update_instance.sh remove_old_kernel.sh
Update the instance:
./update_instance.sh
Shut down the instance as described in Shutting Down an Instance
Restart the instance as described in Restarting an Instance
Wait for the instance to be accessible.
Log in to the instance as the root user.
Run the remove_old_kernel.sh
script:
./remove_old_kernel.sh
For Oracle Linux 5 instances:
Download the following script using wget
:
wget http://http-repo-server:port/patchrepo/scripts/update_instance.sh
Add execute permissions to the downloaded script:
chmod +x update_instance.sh
Update the instance using the script:
./update_instance.sh
Download the kernel header package using wget
:
wget http://http-repo-server:port/patchrepo/additional_packages/kernel-headers-2.6.18-417.0.0.0.1.el5.x86_64.rpm
Install the kernel header package:
rpm -ivh --force kernel-headers-2.6.18-417.0.0.0.1.el5.x86_64.rpm
Patch Your 16.1.2 Instances to 16.3.1
Log in to the instance you want to patch as the root
user.
Navigate to the /etc/yum.repos.d
directory
cd /etc/yum.repos.d
Download the exalogic.repo
file from the repository server to your instance:
wget http://http-repo-server:port/patchrepo/template/exalogic.repo
Remove cached packages or headers:
yum clean all
Run the yum update
command to upgrade your instance:
yum update --disableexcludes=main -y
Verify that the instance has been updated to the new version by running the imageinfo
command:
In this example, the instance was patched from 16.1.2 to 16.3.1.
imageinfo Oracle Public Cloud Machine 16.3.1 Image version : 16.3.1 ...