Environment:

  • Exadata X9M2
  • Virtual environment with KVM
  • Oracle Home in use: 19.22.0.0
  • Oracle Home to remove: 12.1.0.2
  • OS Linux 7.9
  • VM Name: ex2-itouglab01

STEP 10: Save XML file

You can save the XML file as a backup of the current situation, but this is not fundamental because each time you load an XML configuration and automatic backup is executed in the format:

In any case you can execute an explicit backup using the SAVE command :

STEP 11: DEPLOY activity:

You could execute the deploy directly from prompt, but for sure this is not the best way in case of connection failure and because the root password method used in this example doesn’t work.

To complete this task you have to create a file with all the commands previously defined (usually saved in linux-x64.Conf directory) with the deploy phase at the end:

Executing oedacli –help you can see all the available options:

BEWARE!!!

Don’t forget to be sure that no users are logged in the directory that will be removed from the deinstall process!Otherwise you should umount it manually as you will read in the log:

Now execute in nohup mode the oedacli using input parameters to use the ssh connection and the command file previously defined:

Usually the activity is quite quick (few seconds), but for sure the next part require more time for manual activities.

STEP 12: Check KVM image info:

Connect to VM where you have removed the oracle home and verify info about the KVM images from fstab map:

Check Inventory

If everything is OK in previous step, now you can check if Inventory has been updated successfully:

STEP 13: Remove disk from VM

After the database home delete you have to remove the disk from the virtual machine because it has been unmounted but not removed.

List Logical volumes Summary:

Identify details the one you want to remove:

Check the active volumes:

Deactivate the volume group:

Check if the volume is correctly de-activated:

Remove the logical volume:

List volume groups:

List physical volumes (to save info before remove volume group):

Remove volume group:

Check that physical volume is not assigned to a volume group:

Remove physical disk:

Check the disk has been removed:

STEP 14: Remove disk from Dom 0

Checking the VM on Dom 0:

or:

Check in the physical path images listed:

Usually the image to remove should have date and time set to the last activity, so a bit before the other files.

Identify the disk you want to remove:

Stop virtual machine (Optional but Recommended)

or

or:

Remove the Disk using “vm_maker”:

or:

Example:

Verify the Disk Removal:

Check in the physical path also:

If the VM was previously stopped, start it again after removing the disk.

or:

Execute the same on all physical nodes

OEDACLI error log

In case of error first of all check log file of the latest operation:

You could find errors like the following:

In this case be sure that SSH is enabled on all nodes.

BIBLIOGRAPHY

https://docs.oracle.com/en/engineered-systems/exadata-database-machine/dbmmn/detach-command.html

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

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