Oracle Upgrade (9.2.0 To 10.2)
Oracle Upgrade (9.2.0 To 10.2)
2)
Planning
Check that your operating system meets the software requirements for running the
new Oracle release,
including all required patches. You might need to upgrade your operating system
before you start
Get the Oracle Database 10g Release 2 (10.2) software and the latest patch sets and
required patches.
Preparation
Make sure that you have installed the latest Microsoft C Runtime dlls of version 71
with R3DLLINS.EXE.
Please refer to Note 684106.Download the latest version of dboraslib.dll for your
release from the
SAP Service Marketplace place. Check the level of your Basis support package
46B SAPKB46B57
46C SAPKB46C48
46D SAPKB46D38
6.1 SAPKB61041
6.2 SAPKB62044
6.4 SAPKB64009
If the level of your Basis support package is higher than or equal to that shown above,
no additional
If the level of your Basis support Package is lower than the one shown in the table
above, you need to
You need to execute an SQL script that creates a new role on the database. This is
necessary due to changes
%ORACLE_HOME%\database
copy <ORACLE_DVD>:\NT\<platform>\SAP\sapconn_role.sql
You need to make sure that the SYSTEM and SYSAUX tablespaces have at least 750
MB freespace.
This optional step lets you check if there are any invalid database objects before the
database upgrade to Oracle
database 10g starts. After the upgrade it helps you distinguish database objects that
have become invalid due to
the upgrade process from those that were already invalid to start with.
SQL> spool invalid_objects
SQL> select unique object_name, object_type, owner from dba_objects where status =
'INVALID';
SQL> @?/rdbms/admin/utlrp.sql
SQL> select unique object_name, object_type, owner from dba_objects where status =
'INVALID';
After the database software installation, you must copy and modify the old SQL*Net
files, that is, listener.ora,
<new_ORACLE_HOME>\network\admin-directory.
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.
You need to save the archive log files in the old user environment
1. Save the current log for archiving by switching to another log file:
sqlplus “/ as sysdba“
SQL> exit
lsnrctl stop
ORACLE_HOME
3. Start the Oracle Database Upgrade Assistant from the Start menu with:
Upgrade Assistant
The Oracle Database Upgrade Assistant (DUA) opens. A sequence of windows guides
you through the process.
Post-Upgrade Steps
<complete_path_to_new_Oracle_Home>\bin\lsnrctl start
Changing Environment Variables
1. In the user environment and system environment <SAPSID>adm, check the PATH
variable and, if required,
\\<sapglobalhost>\sapmnt\<SAPSID>\SYS\profile\oracle.
\\<sapglobalhost>\sapmnt\<SAPSID>\SYS\profile\oracle.
Change the registry value with the following command: oradim -edit -sid <dbsid> -
startmode manual
Updating BR*Tools
You update BR*Tools to the latest release, BR*Tools Release 700, with the latest patch
level. After extracting
BR*Tools Release 700 you need to update the SAPDBA role using 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.
After you have extracted the newest BR*Tools you also need to copy the BR*Tools
configuration files
You use the Oracle Universal Installer to delete the old Oracle software.
4. Start the Oracle Universal Installer from your Start menu as follows:
sqlplus /nolog
SQL>connect / as sysdba
gathering of statistics.
5. Identify the objects that are invalid after the upgrade as follows:
SQL> @?/rdbms/admin/utlrp.sql;
sqlplus / as sysdba
shutdown immediate
startup
a) With Oracle Database 10g all tables have statistics, which means that you need to
update some entries in
sqlplus SAP<SAPSCHEMA_ID>/<password>
SQL> update DBSTATC set activ = 'A' where activ in ('N, R');
SQL> commit;
You create the orapwd file to use for the Oracle Enterprise Manager. This allows you to
connect to the Oracle
This procedure is only required if you upgraded an Oracle 9.2.0.6 database to Oracle
10.2.