Upgrade Oracle 11 in Sap
Upgrade Oracle 11 in Sap
tips
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
Upgrade Overview
This document describes the technical procedures of how-to upgrade Oracle Patch Set from 10.2.0.4 to 11.2.0.2 with latest SAP-Oracle Interim patch. Upgrades and DB patches should be extensively tested on Development before proceeding to QAS/PRD. Before starting the upgrade procedure be sure you have if applicable the following resources: Oracle patch software & related notes (available in http://service.sap.com ) Oracle opatch latest version (available in http://service.sap.com ) Oracle latest bugfixes (available in http://service.sap.com ) Review bugfixes & prerequisites according to readme file. Oracle client latest version if needed (available in http://service.sap.com ) SAP notes related to the patch (available in http://service.sap.com ) Check latest Critical Oracle related bugs (available in http://metalink.oracle.com )
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
Preparation
Installation Files Preparation
Download the necessary files from SAP Marketplace http://service.sap.com/SWCENTER-3PMAIN 11202_Patch04_MSWIN-x86-64.zip 51041033_Oracle RDBMS 11.2.0.2 Windows x64 51038966 Oracle Client 11.2 OPatch_11201_Generic_v5.zip mopatch-2_1_10.zip
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
OPatch
You must use the OPatch utility release 11.2.0.1
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
Checking SAP System Prerequisites
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
Oracle 11.2.0.2 Installation
Go to H:\SOURCE\SAP_Download\51041033_Oracle_RDBMS_11.2_Winx64\database\SAP, and start Oracle Universal Installer by click on sapserver.cmd
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
Click Next
sap.basis.tips
sap.basis.tips
sap.basis.tips
sap.basis.tips
Click Install
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
Click Close
Backup the original OPatch into E:\oracle\LDB\11202\OPatch.ORIG Copy new OPatch from H:\SOURCE\SAP_Download\OPatch_11.2.0.1_v5\OPatch_11201_Generic_v5\OPatch
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
sap.basis.tips
DIR_CT_RUN G:\usr\sap\EPX\SYS\exe\uc\NTAMD64 DIR_EXECUTABLE G:\usr\sap\EPX\JC07\exe Delete current Oracle Instant Client Download deldbclient.vbs, which is included in the deldbclient.zip file attached to SAP 998004 Stop all application servers and central instance (database is running still) On Central Instance, open command prompt and go to directory DIR_CT_RUN: Run cscript.exe //nologo deldbclient.vbs Unpack newest Oracle Instant Client Open a command prompt on the host where DIR_CT_RUN is located. Change the working directory to DIR_CT_RUN. Unpack the Oracle Instance Client to this directory. *Backup kernel directory first before you unpack. J:\51038966_Oracle_Client_11.2\OCL_WINDOWS_X86_64\OCL11264.SAR Start your SAP application servers The Oracle Instant Client is automatically distributed to the instance-specific DIR_EXECUTABLE directories
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
Upgrade Processing
Stop SAP system. Change registry entry of ORA_EPX_AUTOSTART
Start the Oracle Database Upgrade Assistant (DBUA) from Start menu and Migration Tools
Oracle EPX11202
Configuration
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
Password = S4Padmin
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
Post Upgrade Steps
Changing Environment Variables
Create new variable ORACLE_HOME=G:\oracle\EPX\11202 Add variable Path value G:\oracle\EPX\11202\bin, remove old value G:\oracle\EPX\102\bin Create new variable TNS_ADMIN=G:\usr\sap\EPX\SYS\profile\oracle Copy file tnsnames.ora & sqlnet.ora from G:\oracle\EPX\11202\NETWORK\ADMIN into G:\usr\sap\EPX\SYS\profile\oracle Re-login server
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
Creating New Oracle TNSListener Service
Stop old listener service from services.msc Open command prompt & enter command:
sap.basis.tips
Update SAPDBA roles: Copy file sapdba_role.sql and sapconn_role.sql from J:\sapdba-role into G:\oracle\EPX\11202\database
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
Check Oracle database parameter: Run script paramcheck_112.sql from SAP Note 1171650.
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
Ended with error. See SAP Note 1498109. Change command into : brconnect -u / -c -f stats -t all -f collect -p 10 -NRO
Oracle EPX11202
EMAIL asfan.amin@gmail.com
sap.basis.tips
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
Backup Database
Backup using BR*Tools and NTBACKUP
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com