EMAIL WEB asfan.amin@gmail.com www.sapbasistips.com sap.basis.tips Upgrade to Oracle 11.2.0.2
sap.basis.tips
Upgrade to Oracle 11.2.0.2
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tipsUpgrade OverviewThis 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.tipsPreparationInstallation Files PreparationDownload 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
Copy into server \\cbtcnbsapl1\SOURCE\SAP_Download
Patch Collection for WindowsThis section lists the last two (most recent) Oracle patch collections that were released by SAP for each Windows platform. To use Oracle Release 11.2.0.2 with SAP on Windows platforms, you require at least Oracle patch collection 5. In general, use the most recent patch collection. Patch collection for platform MS Windows x86-64 (64-bit) 11202_Patch04_MSWIN-x86-64.zip Unzip the patch
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
OPatchYou must use the OPatch utility release 11.2.0.1
Unzip the downloaded OPatch file.
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tipsChecking SAP System Prerequisites
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tipsOracle 11.2.0.2 InstallationGo to H:\SOURCE\SAP_Download\51041033_Oracle_RDBMS_11.2_Winx64\database\SAP, and start Oracle Universal Installer by click on sapserver.cmd
Do not select the check box, click Next.
Just click Yes
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
Click Next
Choose Install database software only and click NextEMAIL asfan.amin@gmail.com WEB www.sapbasistips.com
sap.basis.tips
Choose Single instance database installation and click Next
Choose English and click NextEMAIL asfan.amin@gmail.com WEB www.sapbasistips.com
sap.basis.tips
Choose Enterprise Edition and click Next
Specify directory location and click NextEMAIL asfan.amin@gmail.com WEB www.sapbasistips.com
sap.basis.tips
Some checks are failed.
Choose Ignore All and click NextEMAIL asfan.amin@gmail.com WEB www.sapbasistips.com
sap.basis.tips
Click Install
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
Click Close
Installing New OPatchCurrent version:
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
Installing Required PatchesSet environment ORACLE_HOME: set ORACLE_HOME=E:\oracle\LDB\11202 Install patch number 11896292 from H:\SOURCE\SAP_Download\Oracle_11.2.0.2_Patch04 With command: H:\SOURCE\SAP_Download\Oracle_11.2.0.2_Patch04\11896292>E:\oracle\LDB\11202\OPatch\opatch.bat apply
Copying and Adapting the SQL*Net FilesCopy files from E:\oracle\LDB\102\NETWORK\ADMIN into E:\oracle\LDB\11202\NETWORK\ADMIN Edit file listener.ora: Change parameter ORACLE_HOME into E:\oracle\LDB\11202 Add parameter ADR_BASE_LISTENER = G:\oracle\LDB\saptrace
Update Oracle 11.2.0.2 Client SoftwareSee SAP note 998004 Define the following parameter in transaction AL11EMAIL asfan.amin@gmail.com WEB www.sapbasistips.com
sap.basis.tipsDIR_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
Backup Oracle Database & Oracle SoftwareBackup EPX database using BR*Tools. Backup EPX oracle software using NTBACKUP.
Changing & Checking Environment for user epxadmFrom System Properties, remove the Environment Variables ORACLE_HOME & TNS_ADMIN From Path, remove G:\oracle\EPX\11202\bin, keep old G:\oracle\EPX\102\bin Logoff and re-login
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tipsUpgrade ProcessingStop 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.tipsPost Upgrade StepsChanging Environment VariablesCreate 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
Post Upgrade ScriptSee SAP note 1431793. Apply patch 9584028 to download the script.
Checking the upgraded database:
See file G:\oracle\EPX\11202\sap\ora_upgrade\post_upgrade\post_upgrade_status.log Running post-upgrade script:
Set database parameter:
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tipsCreating New Oracle TNSListener ServiceStop old listener service from services.msc Open command prompt & enter command:
Set service OracleEPX11202TNSListener startup type into Automatic
Changing Registry Value of Oracle Autostart
Updating SAP Kernel and BR*ToolsBackup old kernel. Take kernel from J:\51041560_NW73_InstMaster_Kernel\DATA_UNITS\K_720_U_WINDOWS_X86_64 Update kernel into G:\usr\sap\EPX\SYS\exe\uc\NTAMD64 G:\usr\sap\EPX\SCS08\exe G:\usr\sap\EPX\JC07\exe Copy initEPX.sap from G:\oracle\EPX\102\database into G:\oracle\EPX\11202\databaseEMAIL asfan.amin@gmail.com WEB www.sapbasistips.com
sap.basis.tipsUpdate SAPDBA roles: Copy file sapdba_role.sql and sapconn_role.sql from J:\sapdba-role into G:\oracle\EPX\11202\database
Run command: sqlplus /nolog @sapdba_role SR3DB
Run command: sqlplus /nolog @sapconn_role
Perform Post-Upgrade TasksGather Oracle optimizer statistics: brconnect -u / -c -f stats -t system_stats
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
brconnect -u / -c -f stats -t oradict_stats
Check Oracle database parameter: Run script paramcheck_112.sql from SAP Note 1171650.
Update Oracle database statistics: brconnect -u / -c -f stats -t all -f collect -p 10
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
Deleting Old Oracle 10 SoftwareStop database.
Stop service Distributed Transaction Coordinator
Stop old Oracle services
Start Oracle Universal Installer from Start menu
Oracle EPX11202EMAIL asfan.amin@gmail.com
Oracle Installation ProductsWEB www.sapbasistips.com
sap.basis.tips
Choose Deinstall Products
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com
sap.basis.tips
Start service Distributed Transaction Coordinator And start database.
Backup DatabaseBackup using BR*Tools and NTBACKUP
EMAIL asfan.amin@gmail.com
WEB www.sapbasistips.com