Getting started:
Overview procedure:
Initial pre requisite:
Up gradation of oracle:
Post Upgrade activities:
Pre requisite: Step by step screen shots- Detailed procedure.
Step1: Take old oracle home directory as a backup. Check that the backup is usable. If for any reason you have problems during the upgrade you must be able to restore the database from this backup.
Step2: stop the oracle services. To stop the oracle services go to SERVICES.MSC and stop the following services.
Step 3: Installing the Oracle 11g Server Software.
For installing the oracle 11G go to the respective folder where you extracted the oracle software 11G 51041033 and execute the command sapserver.cmd
It opens the Oracle Universal installer.
Step 4: No need of giving the email address and don choose the check box. Skip the warning and click next
Step 5: Give next
Step 6: choose the default option as install database software only and click next
Step 7: Choose single instance database installation and give next
Step 8: Choose English by default.
Step 9: select the default option and choose next
Step 10:
Step 11: The pre requisite check will run.
Step 12: Once it got completed summary screen appears. Click install
Oracle 11G gets completed now.
Step 13: Updating the Oracle 11.2.0.2 Client Software:
We have to update the Oracle Instant Client with the newest version that is available on SAP Service Marketplace.
http://service.sap.com/swcenter-3pmain -> Oracle. On the right-hand part of the Window, click on Oracle 11.2 Software (<your platform>) for the Oracle 11.2 Instant Client, or Oracle 10.2Software (<your platform>) for the Oracle 10.2 Instant Client. Choose Installation -> Microsoft Windows -> ORACLE database.
In the list of the downloadable objects, you find Oracle Client <our Oracle version>.
By default, the installation stores the Oracle Instant Client in the $(DIR_CT_RUN) directory. During the startup of an SAP instance, it is copied to the $(DIR_EXECUTABLE) directory.
NOTE: If we already have oracle instance client software then we have to delete that manually before we update the new oracle client software.
In our environment already there is no oracle client software and hence we download the oracle client software and placed in the new CRM DEV server as shown in the screen below.
Copy the client software that we had downloaded to the new CRM system.
Step 14 .Copying and Adapting the SQL*Net Files:
After the database software installation, you must copy and modify the old SQL*Net files, i.e, listener.ora, sqlnet.ora, and tnsnames.ora.
Procedure (NOTE: If you have multiple instances in the old Oracle_Home, you have to perform steps 1 to 4 only once before you upgrade the first database instance.)
Identify the parameter ORACLE_HOME that belongs to the database you want to upgrade (SID_NAME in section SID_LIST) and change the value of the parameter ORACLE_HOME to point to the new ORACLE_HOME.
ADR_BASE_LISTENER = <full_path_to_saptrace_directory>
Since our database is still running in the old environment, do not start the listener with the new listener.ora file at this point.
Step 15: Changing and Checking the Environment for User <dbsid>adm:
In theenvironment of the user <dbsid>adm, delete the following variables:
Log off and log on again to activate the changes.
Checking the Environment for User <dbsid>adm :
The environment variable SAPDATA_HOME must point to the directory where the subdirectories saparch, sapbackup, sapcheck, sapreorg, and saptrace are located.
Step 16: Run the Pre upgrade scripts:
Run the following pre upgrade scripts as shown in the screenshot.
Procedure to Run the pre upgrade scripts before the database upgrade:
Eg: SQL>@utlu112i.sql. Similarly run all other pre upgrade scripts.
Step 17: Performing the Database Upgrade:
To upgrade the database, you need to start the Oracle Database Upgrade Assistant (DBUA), which is a graphical tool that leads you step by step through the upgrade
Prerequisite:
<new_Oracle_Home>\bin\oradim -edit –sid <dbsid> –startmode manual
Start the oracle upgrade Assistant as follows:
Choose Start --> All Programs Oracle - <NEW_ORACLE_HOME_NAME> -->Configuration and Migration Tools --> Database Upgrade Assistant
Select the Database we want to upgrade and choose next.
Recompile invalid objects at the end of upgrade. Keep this option as unchanged and choose next . This option automatically recompiles all the PL/SQL modules after the upgrade.
Leave the default setting Do Not Move Database Files as Part of Upgrade and choose next.
Deselect Configure the Database with Enterprise Manager, if selected, and choose next.
Summary screen: Review the summary screen and make changes if needed
When the DBUA has completed successfully, the results of the upgrade are displayed (Click attached OracleUpgradeResult document below). Review the changes made and close the DBUA.
POST UPGRADE:
Step 18: Additional Steps When Starting the DBUA from the Start Menu
If you started the DBUA from the Start menu, you have to check the upgraded database and perform the post-upgrade script manually.
Step 19: Post-Upgrade Steps
<complete_path_to_new_Oracle_Home>\bin\lsnrctl start
NOTE: If the above command is not worked then we can set the parameter value via regedit. In this document we set the parameter via regedit in CD7. i.e
Ø OracleService<DBSID>
First update the SAP executables (kernel upgrade) and then update the BR tools.
Procedure to upgrade the SAP Executables:
Follow the kernel upgrade standard procedure.Here BR tools are also gets updated.
Update BR*Tools to the latest release with the latest patch level. After extracting the latest BR*Tools release, we need to update the SAPDBA role by executing the script sapdba_role.sql. This is essential so that the new release of BR*Tools works correctly. The script is automatically extracted when you extract BR*Tools.
Step to Follow:
Now log in SQL plus as follows:
sqlplus /nolog @sapdba_role <SAPSR3>
sqlplus /nolog @sapdba_role<SAPSR3DB>
Run the update statistics commands:
Gather Oracle optimizer statistics by executing the following commands
Update the Oracle database statistics:
Run the Post upgrade scripts:
Go to the directory where we keeping the post upgrade scripts.
After the post upgrade perform full database backup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 |