0% found this document useful (0 votes)
7 views2 pages

Oracle_Patch_Upgrade

The document outlines the steps for upgrading Oracle patches, including downloading necessary files, setting environment variables, and executing specific commands. It emphasizes the importance of changing file ownership and shutting down services before applying the patches. Additionally, it provides troubleshooting advice for potential errors encountered during the upgrade process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Oracle_Patch_Upgrade

The document outlines the steps for upgrading Oracle patches, including downloading necessary files, setting environment variables, and executing specific commands. It emphasizes the importance of changing file ownership and shutting down services before applying the patches. Additionally, it provides troubleshooting advice for potential errors encountered during the upgrade process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Oracle Patch Upgrade:

1. First Download these 5 Files and paste it to any directory( dump):

2. Now change their owners to orasid:dba

3. Now set these environment variables from oraprd:

setenv IHRDBMS /oracle/database-name/19.0.0


setenv OHRDBMS /oracle/database-name/19

4. Run these 5 commands from oraprd in directory where those 5 files are pasted:

 mv $IHRDBMS/OPatch $IHRDBMS/OPatch-pre-SBP_191700221018_202211
 unzip -qd $IHRDBMS OPATCH19P_2211-70004508.ZIP -x SIGNATURE.SMF
 unzip -qd $IHRDBMS/sapbundle SAP19V2P_2211-70004508.ZIP
'SBP_191700221018_202211/MOPatch/*'
 test -d $IHRDBMS/MOPatch && mv $IHRDBMS/MOPatch $IHRDBMS/MOPatch-pre-
SBP_191700221018_202211
 mv $IHRDBMS/sapbundle/SBP_191700221018_202211/MOPatch
$IHRDBMS/MOPatch

Note Step 5 to Step 7 only required when you are upgrading live system patches.

5. Now shutdown sap from sidadm using command : stopsap r3


6. Now shutdown listener from oraprd using command : lsnrctl stop
7. Now Stop databse using these commands:
Go to SQL : sqlplus / as sysdba
Run this command in SQL: shutdown immediate

8. Now run this command:


Imp:
Before running this final command change the owner of oradism in : /oracle/NTP/19.0.0/bin
and /oracle/NTP/19/bin to ora<sid>:dba .

You can face this issue while running this command:


dc: command not found" error when applying SBP -
Netweaver

To resolve this issue:


Install RPM package 'bc' in your Operating System.

Note: You will find all these commands (step 4 and step 8 ) in readme.html file

9. Now Patches will upgrade.

You might also like