Environment:

  • Exadata X9M-2
  • Virtual environment with KVM
  • Oracle Home in use: 19.18.0.0
  • Oracle Home to install: 19.22.0.0
  • Cluster version: 19.22.0.0
  • OS Oracle Linux 7.9
  • VM Name: ex2-itouglab01

Download latest OEDACLI:

Before adding a new Oracle home using OEDACLI you have to install the latest OEDA version.

If you don’t install on Exadata latest version of Oracle Exadata Deployment Assistant you won’t be able to setup a new oracle home because it can’t recognize an oracle version newer than the OEDACLI installed version.

Download both Linux and windows (or mac) version from the official path:

https://www.oracle.com/database/technologies/oeda-downloads.html

Unzip windows (or mac) OEDA file on your local computer and start file installOedaServer.cmd.

Open the web interface on the local path: http://localhost:7072/oeda/

Identify the patch image file to download:

To install the new oracle home you have to import the latest saved configuration available for the VM you want to work on.

On Exadata you can find VM configuration files on physical server node 1 in the path:

Download the configuration file locally on your PC and import it in the OEDA local web server:

Goto “Create Database Home” section:

Select the new Home version you want to install:

Apply:

Then save:

Automatically will be generated an html file with the new configuration, so open it and go to the Appendix B section:

You can find the image file name that you have to use for the new home, so go on MOS, search the image and download it:

Unzip the patch and verify in the README.txt file the version of the home image:

Update OEDACLI on Exadata:

Connect to Exadata Database Server on node 1 and go to the directory where OEDACLI binaries are installed (usually available on node 1):

All the patches are available in the WorkDir (generated during OEDA setup on Exadata):

As you can see there are all in use oracle home patch image files:

Before to upgrade OEDACLI it is better to make some changes on directory structure to save previous configuration.

First of all create a new directory linux-x64.Conf to save first setup configuration files:

Move Workdir and ExadataConfigurations directory to the new linux-x64.Conf

Create symbolic links from Linux-x64 to new locations:

Check the remote server version of OEDACLI:

Rename the previous version

Copy the downloaded OEDA Linux version zip file in a temporary directory:

Unzip the downloaded file:

Move the new version to the correct path:

Remove the empty Workdir

Create symbolic links from Linux-x64 to new locations previously defined:

Check the version:

Upload oracle home image

Next step upload the downloaded oracle home image in the work directory:

Using your favourite scp software:

Enable SSH:

Before to start new oracle home creation it is necessary to copy in the Workdir all private keys of involved VMs and Dom0 root private key too.

The SYNTAX for rsa files is the following:

Example:

Define cluster version:

Before to create the new Home you have to SET the correct cluster version (that must be greater or equal to the new oracle home version) otherwise oedacli will generate errors in DEPLOY ACTIONS (of course the cluster has been already patched to the version 19.22.0.0 but the XML file loaded could not be yet updated).

STEP 1: Load XML file

STEP 2: Check cluster details

STEP 3: Alter the cluster version

Set the cluster to the correct version:

STEP 4: Save and Merge the command

STEP 5: Show XML actions that will be executed

STEP 6: Deploy the change

STEP 7: Check new cluster version

Now we are ready to install the new home … but this will be done in part 2 of the article.

BIBLIOGRAPHY

https://docs.oracle.com/en/engineered-systems/exadata-database-machine/dbmin/add-databasehome.html

https://docs.oracle.com/en/engineered-systems/exadata-database-machine/dbmin/alter-cluster.html

https://docs.oracle.com/en/engineered-systems/exadata-database-machine/dbmin/oeda-command-line-interface1.html

https://docs.oracle.com/en/engineered-systems/exadata-database-machine/dbmin/xmlaction.html

Oracle Linux: How to Rename Non-Root Volume Group (Doc ID 2989489.1)

How to create a new Database Home and Database using OEDACLI (Doc ID 2789297.1)