Apply ASM and Oracle Patch in Standalone ServerÂ
This detailed guide walks you through applying ASM and Oracle patches in a standalone server environment, from downloading patches to verifying successful installation.Â
đź“‹ Table of ContentsÂ
- Step 1: Download Required GRID and DB Patches
- Step 2: Validation of Database, ASM, Listener Services, Invalid Objects, and OPatch Inventory
- Step 3: Stop Database, ASM, and Listener Services
- Step 4: Upgrade OPatch Utility
- Step 5: Copy the Required Patch File
- Step 6: Run OPatch Conflict Check
- Step 7: Apply Patch Using opatchauto
- Step 8: Start Database and Run datapatch -verbose
- Step 9: Run utlrp.sql and Check Restricted Mode
- Step 10: Verify Object Valid State
Step 1: Download Required GRID and DB PatchesÂ
Kindly check the shared folder if the patch is already downloaded. If not, download the required patch from ORACLE SUPPORT.Â
Step 2: Validation of Database, ASM, Listener Services, Invalid Objects, and OPatch InventoryÂ
- Check Database, ASM, and Listener services
2. Verify patch status using:
ps -ef | grep pmon
ps -ef | grep tns
3. Check database invalid count in all containers and PDBs
4. Run:
./opatch lsinvÂ
Step 3: Stop Database, ASM, and Listener ServicesÂ
- Check Database CDB and PDB restricted state, then shut down DB.
2. Shutdown ASM services.
3. Stop Listener service and verify status.Â
Step 4: Upgrade OPatch UtilityÂ
Upgrade OPatch in both Database and Grid users by replacing the OPatch folder with the latest version from Oracle Support.
Database User Steps:
– Backup OPatch folder
– Copy and unzip new OPatch
– Verify version
Grid User Steps:
– Backup OPatch folder
– Copy and unzip new OPatch
– Change permissions to grid:oinstall
– Verify versionÂ
Step 5: Copy the Required Patch FileÂ
Copy the patch file to root level, unzip, and set ownership to grid:oinstall.
Command:
chown -R grid:oinstall 9999999Â
Step 6: Run OPatch Conflict CheckÂ
Run conflict check in both Database and Grid user levels for all patches.Â
Step 7: Apply Patch Using opatchautoÂ
Apply patch from root user level:
export ORACLE_HOME=/grid/app/19.3.0/ghome_1
export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch
opatchauto apply 9999999Â
Step 8: Start Database and Run datapatch -verboseÂ
Run datapatch as database user:
./datapatch -verboseÂ
Step 9: Run utlrp.sql and Check Restricted ModeÂ
Run utlrp.sql in CDB and PDB multiple times, restart DB, and check restricted mode.Â
Step 10: Verify Object Valid StateÂ
Check for invalid objects in all databases. Compile if needed and restart DB.Â
Â