Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
219 views

Upgrade Oracle 11 in Sap

This document provides instructions for upgrading an Oracle database from version 10.2.0.4 to 11.2.0.2 for use with SAP. It describes downloading required files, installing Oracle 11.2.0.2, applying patches, upgrading the database using the Database Upgrade Assistant, and post-upgrade steps including updating kernel files and parameters. The instructions are broken into sections covering preparation, installation, upgrade processing, and post-upgrade tasks.

Uploaded by

papalinux
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
219 views

Upgrade Oracle 11 in Sap

This document provides instructions for upgrading an Oracle database from version 10.2.0.4 to 11.2.0.2 for use with SAP. It describes downloading required files, installing Oracle 11.2.0.2, applying patches, upgrading the database using the Database Upgrade Assistant, and post-upgrade steps including updating kernel files and parameters. The instructions are broken into sections covering preparation, installation, upgrade processing, and post-upgrade tasks.

Uploaded by

papalinux
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

sap.basis.

tips

Upgrade to Oracle 11.2.0.2

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

Copy into server \\cbtcnbsapl1\SOURCE\SAP_Download

Patch Collection for Windows


This 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

OPatch
You 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.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

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 Next


EMAIL asfan.amin@gmail.com WEB www.sapbasistips.com

sap.basis.tips

Choose Single instance database installation and click Next

Choose English and click Next


EMAIL asfan.amin@gmail.com WEB www.sapbasistips.com

sap.basis.tips

Choose Enterprise Edition and click Next

Specify directory location and click Next


EMAIL asfan.amin@gmail.com WEB www.sapbasistips.com

sap.basis.tips

Some checks are failed.

Choose Ignore All and click Next


EMAIL 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 OPatch


Current 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 Patches


Set 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 Files


Copy 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 Software


See SAP note 998004 Define the following parameter in transaction AL11
EMAIL asfan.amin@gmail.com WEB www.sapbasistips.com

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

Backup Oracle Database & Oracle Software


Backup EPX database using BR*Tools. Backup EPX oracle software using NTBACKUP.

Changing & Checking Environment for user epxadm


From 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.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

Post Upgrade Script


See 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.tips
Creating New Oracle TNSListener Service
Stop 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*Tools


Backup 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\database
EMAIL asfan.amin@gmail.com WEB www.sapbasistips.com

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

Run command: sqlplus /nolog @sapdba_role SR3DB

Run command: sqlplus /nolog @sapconn_role

Perform Post-Upgrade Tasks


Gather 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 Software


Stop database.

Stop service Distributed Transaction Coordinator

Stop old Oracle services

Start Oracle Universal Installer from Start menu

Oracle EPX11202
EMAIL asfan.amin@gmail.com

Oracle Installation Products


WEB 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 Database
Backup using BR*Tools and NTBACKUP

EMAIL asfan.amin@gmail.com

WEB www.sapbasistips.com

You might also like