Cleaning old Oracle Grid and Database Homes #JoelKallmanDay
Step 5 - Another one Patches the Dust. (Cleaning Old Oracle Homes)
I’ve moved my blog from https://insanedba.blogspot.com to https://dincosman.com
Please update your bookmarks and follow/subscribe at the new address for all the latest updates and content. More up-to-date content of this post may be available there.
After you patch your database servers grid and database homes whether using out-of-place method or fleet patching method, you should remove the old Oracle Homes.
As a precautionary measure, I keep old Oracle Homes at least 15 days and once i am comfortable with the new ones, then i remove old ones.
Removing old Oracle Grid Infrastructure Home with deinstall command:
The deinstall command detects cluster nodes, displays a short summary, asks for confirmation, operates on all nodes and warns you to run root.sh on all nodes, and usually leaves some leftovers. I also remove the old directory. After deinstallation, old grid home is flagged as deleted in the inventory.xml under oraInventory. Old Grid Home is tagged with Removed=“T” attribute.
Users can also cleanup a Oracle Grid Home using fleet maintenance by means of CLEANUP_SOFTWARE. More information is available on EM 13c : Usage of CLEANUP_SOFTWARE Verb In Fleet Maintenance (Doc ID 2570023.1).
Removing old Oracle Grid Infrastructure Home with cleanup_sofware verb in fleet maintenance:
This method also leaves some leftovers. In both methods, remove the old directory. If you encounter "The following Oracle homes are candidate for removal by policy. However, they CANNOT BE DELETED since one or more instances are running on these Oracle homes. " error, first make sure that your resources are not using it, if not then check associated targets from EMCC Targets menu and update these targets configurations home properties with the new home values and retry operation.
Removing old Oracle Database Home with deinstall command:
Removing old Oracle Database Home with cleanup_sofware verb in fleet maintenance:
Comments
Post a Comment