Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
4
C re a te d :
2014/06/23 02:01 PM
Ta g s :
Oracle
URL:
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui/main.do
U p d a te d :
2014/07/14 09:18 AM
TO DO
Get note, current version has no text 1458580 - Oracle Upgrade to 11g Release 2 (11.2) on Windows
resume from pg 31 - Post-Upgrade
* means note to self
DoSo Code(page #s from the upgrade guide)
Planning Phase:
1. You check the original version of your database
1. Enter the following command:
sqlplus version>
Enter the following commands:
sqlplus / as sysdbaSQL> select version from v$instance;
2. You check the hardware and software requirements
1. The complete list of hardware and software requirements for every platform is included in the Oracle
documentation. The hardware and software requirements are also checked in detail during the software
installation phase.
3. You check additional requirements for the upgrade
4. You decide whether you want to use multiple Oracle homes
5. You check the SAP System prerequisites
1. Notes 1416108, 1414733, 1433301 and 1417124 aren't applicable to any of our systems
2. Delete the Oracle Instant Client. Since the contents of a newer Oracle Instant Client might differ from
the client version you are currently using, you first have to delete the current Oracle Instant Client as
follows:
1. Download deldbclient.vbs, which is included in the deldbclient.zip file attached to SAP Note
998004
2. Stop all application servers, including the central instance.
3. On the central instance host, open a command prompt as <SAPSID>adm, change the current
working directory to DIR_CT_RUN, and run cscript.exe //nologo deldbclient.vbs in this directory.
4. Repeat the previous step on every application server instance DIR_EXECUTABLE directory.
3. Unpack the Oracle Instant Client to DIR_CT_RUN using SAPCAR -xvf <OCL SAR Archive>
4. Start your SAP application servers. The Oracle Instant Client is automatically distributed to the
instance-specific DIR_EXECUTABLE directories.
3. Do not restart the central instance and dialog instance (if available).[upgrade guide pg 24. contradicts SAP
Note]
2. You copy and adapt the old Oracle SQL*Net files [page 24].
1. After the database software installation, you must copy the old SQL*Net files, that is, listener.ora, sqlnet.ora, and
tnsnames.ora, and adapt them as described on pg 25 of the upgrade guide
3. You run the pre-upgrade scripts.
1. See SAP Notes 1431793 and 1431797 for troubleshooting guides. Following is from Note 1431793:
2. In order to use SAP-specific upgrade scripts, you must log on to the database server as the Oracle database
administrator user and change the current directory to the location of the upgrade scripts. cd
% ORACLE_HOME% \sap\ora_upgrade\pre_upgrade
3. check the pre-upgrade status
Option #1: run both pre-upgrade information tools in one step
OS> sqlplus / as sysdba @pre_upgrade_status.sql
In this step both pre-upgrade information tools utlu112i.sql (Oracle-generic) and utlu112i_sap.sql
(SAP-specific) are executed and the result is logged in 'pre_upgrade_status.log'.
Option #2: run the pre-upgrade information scripts one after ther other
Running the generic pre-upgrade information utility utlu112i.sql:
4.
5.
6.
7.
2.
3.
4.
5.
1. In the user environment and system environment <sapsid>adm, check the PATH variable and, if required, remove
all parts referring to the old Oracle version.
2. In the user environment of <sapsid>adm, set the ORACLE_HOME variable to the correct value for Oracle 11g,
for example to: <DRIVE>:\ORACLE\<DBSID>\11204.
3. If you have two or more Oracle Homes, make sure that the user environment variable PATH of the <sapsid>adm
user points to the corresponding %Oracle_Home%\bin directory.
4. Set the user environment variable TNS_ADMIN to point to the directory \\<sapglobalhost>\sapmnt\
<DBSID>\SYS\profile\oracle.
5. Log off and log on again to activate the environment changes in your user session.
You create the Oracle TNSListener service [page 32].
1. Stop the old Oracle listener before you create the Oracle TNSListener Service.
2. Open a command prompt and enter the following
command:<Complete_Path_To_New_Oracle_Home>\bin\lsnrctl start <Listener_Name>
You change the registry value of Oracle Autostart [page 34].
1. Change the registry value of ORA_<DBSID>_AUTOSTART. Open a command prompt and enter the following
command:<new_Oracle_Home>\bin\oradim -edit -sid <dbsid> -startmode manual
2. Ignore the error message: Unable to start service, OS Error 1056.
3. Alternatively, use regedit.exe to change the registry key to value FALSE. The registry key is available at
HKLM:\Sofware\Oracle\KEY_<DBSID>11204.
You check the start up type of the Oracle services [page 34].
1. Start the Oracle services (Database and Listener), if not yet started.
2. Start the Distributed Transaction Coordinator Service.
You update BR*Tools and the SAP executables [page 35].
1. The BR*Tools of Version 7.20 and higher require the Microsoft Visual Studio 2005 Redistributables. For more
information about and how to install them, see SAP Note 684106.
2. Apply the following latest available packages for the SAP executables in the following sequence for:
1. SAPEXE( http://service.sap.com/swdcDownloadSupport Packages and PatchesSupport
Packages and Patches - Entry by Application GroupAdditional ComponentsSAP
KernelSAP Kernel <platform>SAP Kernel <your SAP release>Windows Server on
1. Gather Oracle optimizer statistics by executing the following commands as the <sapsid>adm user:
brconnect -u / -c -f stats -t system_stats
brconnect -u / -c -f stats -t oradict_stats
2. Check the Oracle database parameters against SAP Note 1431798 and adjust them if necessary.You can find
an automated script in SAP Note 1171650 to help you check whether your SAP system complies with the
database parameter recommendations at any given point in time.
3. Update the Oracle database statistics with BRCONNECT as follows:
brconnect -u / -c -f stats -t all -f collect -p 4
4. Run post_ugprade_status.sql.
Open a command prompt and change to the directory
<new_oracle_home>\sap\ora_upgrade\post_ugprade.
From this directory start sqlplus.exe and enter the following commands:SQL>connect / as
sysdbaSQL>@post_upgrade_status.sql
This provides an overview of the status of the upgraded database.
7. You delete the old Oracle software [page 37]. To deinstall the Oracle 11.2 software, you use the deinstallation tool, see
SAP Note 1591580
1. Stop the service Distributed Transaction Coordinator.
2. Stop the services of the old Oracle Home.
3. Oracle 11g: To check, run the command: <Old_Oracle_Home>\deinstall\deinstall.bat -checkonly.
4. To deinstall, run the command: <Old_Oracle_Home>\deinstall\deinstall.bat
5. Follow the instructions for the Oracle Home you want to remove.
1. On the Welcome screen, choose Deinstall Products.
2. On the Content tab of the Inventory dialog box, check the node representing your old Oracle Home and
press the Remove button.
3. Confirm the removal of the products in the popup that appears
6. If available, delete the services in which the name contains the old Oracle Home name.
To delete a service, open a command prompt and enter:sc delete <service_name>
7. In the Windows Explorer, delete the old Oracle home directory to prevent that an Oracle process can start again
Notes
means note's been read
314671 - Long WINDOWS domain names and Oracle 8.1.x or higher
1431800 - Oracle 11.2.0: Central Technical Note
1431797 - Oracle 11.2.0: Troubleshooting the Database Upgrade
1431793 - Oracle 11.2.0: Upgrade Scripts
1398634 - Oracle database 11g: Integration in SAP environment
1431798 - Oracle 11.2.0: Database Parameter Settings
1458580 - Oracle Upgrade to 11g Release 2 (11.2) on Windows[note's empty]
1431796 - Oracle 11.2.0: Troubleshooting the Software Installation
1431799 - Oracle 11.2.0: Current Patch Set
1949250 - Oracle 11.2.0: Patches / Patch collections for 11.2.0.4
998004 - Update the Oracle Instant Client on Windows
850306 - Oracle Critical Patch Update Program
134592 - Importing the SAPDBA role (sapdba_role.sql)
839182 - Oracle patch installation with OPatch
834917 - Oracle Database 10g: New database role SAPCONN
1430669 - BR*Tools support for Oracle 11g