Oracle 9i to 10g Upgrade Runbook v1

41
INTEGRATION – FINANCE BW 9i to 10g Sandbox Oracle upgrade INDEX Topic Row Number Planning 1 Pre-Steps 7 Host Requirements 7 Stop SAP system 8 Download the RDBMS_SAP_64.ZIP file as per SAP Note 819830 9 Check oraInst.loc file 10 Make sure new Oracle Home is available. 11 Pre-Upgrade checks 12 Checking Prerequisites for OUI 13 Download latest version of Database libraries 14 Run sapconn_role.sql 15 Check Undo Management 16 SYSTEM Tablespace space check 17 Checking INVALID Database objects 18 Drop tables PLAN_TABLE 19 Upgrade Process 20 Post-Upgrade Activities 60 Finalize Environmental variables 60 www.Fullinterview.com Page 1 of 41

description

Oracle 9i to 10g Upgrade Runbook

Transcript of Oracle 9i to 10g Upgrade Runbook v1

Page 1: Oracle 9i to 10g Upgrade Runbook v1

INTEGRATION – FINANCE BW 9i to 10g Sandbox Oracle upgrade

INDEX

Topic Row NumberPlanning 1

Pre-Steps 7

Host Requirements 7 Stop SAP system 8 Download the RDBMS_SAP_64.ZIP file as per SAP Note 819830 9 Check oraInst.loc file 10 Make sure new Oracle Home is available. 11 Pre-Upgrade checks 12 Checking Prerequisites for OUI 13 Download latest version of Database libraries 14 Run sapconn_role.sql 15 Check Undo Management 16 SYSTEM Tablespace space check 17 Checking INVALID Database objects 18 Drop tables PLAN_TABLE 19

Upgrade Process 20Post-Upgrade Activities 60

Finalize Environmental variables 60 Checking upgraded Database 61 Upgrade BRTOOLS 62 Run sapdba_role.sql 63 Alter Database parameters 64 Collect system and Oracle dictionary statistics 65 Disable Oracle Scheduler 66 Identify INVALID objects after Upgrade 67

www.Fullinterview.com Page 1 of 37

Page 2: Oracle 9i to 10g Upgrade Runbook v1

Parameter changes 68 Disable oracle recycle bin 69 Run catupgrd.sql 70 Restart Database normally 71 Gather statistics for SAP schema 72 Update DBCHECKORA control table 73 Collect update statistics 74 Start listener process 75 Copy lib file to exe 76 Renaming old Oracle Home directory 77 Post Upgrade steps to bring SAP up 78 Start SAP application 79 Check Oracle version through ST04 80 Disable Database user locking for failed logins 81 Database backup 82

Troubleshooting 83 Installation warning 83 No permissions to /oracle 84 Startup failed with log_archive_format parameter 85 Cannot open or remove a file containing a running program 86

www.Fullinterview.com Page 2 of 37

Page 3: Oracle 9i to 10g Upgrade Runbook v1

PLANNING

No System Task Notes Owner

Duration

Status

1. Decision on upgrade version 10g patch level 10.2.0.42. DVD’s Oracle 10g and patch.3. User, Groups, SID, UID, GID and

Instance No. naming conventionS11 , G11 , Instance Number 11

4. Decide files systems, kernel parameters, LPARs and other software required

CI on (P15812DTP217) and DB on (P15813DTP219)

5. Order/Download SAP Media Visit http://service.sap.com/swdc to download the software for upgrade.6. Upgrade Guide GUIDE_UX_ORA_UPGRADE_30

PRE-STEPSStart Date and Time : End Date and Time : No System Task Notes O

wner

Duration

Status

7.<p15812dtp217> BW 3.5 (NW04) CI Host<p15813dtp219> Database Host

At least 1024 MB of physical RAMAbout 500 MB free space in the /tmp directoryAt least 10 GB for the Oracle Home directory, consisting of: 3 to 5 GB for the Oracle software.

8. Stop SAP system Stop only application server.9. Download the RDBMS_SAP_64.ZIP file as

per SAP Note 819830 {p15813dtp219}/oracle/stage/102_64/database/Disk1$ ls -lrt

www.Fullinterview.com Page 3 of 37

Page 4: Oracle 9i to 10g Upgrade Runbook v1

total 56

-rw-rw-r-- 1 oras31 dba 5283 Aug 26 2005 welcome.html

-rwxr-xr-x 1 oras31 dba 2601 Aug 26 2005 runInstaller

drwxr-xr-x 3 oras31 dba 256 Aug 26 2005 rootpre

drwxr-xr-x 2 oras31 dba 256 Aug 26 2005 response

drwxr-xr-x 5 oras31 dba 4096 Aug 26 2005 install

drwxr-xr-x 9 oras31 dba 4096 Aug 26 2005 stage

drwxrwxr-x 9 oras31 dba 4096 Aug 26 2005 doc

drwxr-xr-x 2 oras31 dba 4096 Feb 22 2006 SAP

{p15813dtp219}/oracle/stage/102_64/database/Disk1$ mv SAP SAP_ORIG

{p15813dtp219}/oracle/stage/102_64/database/Disk1$ ls -lrt

total 56

-rw-rw-r-- 1 oras31 dba 5283 Aug 26 2005 welcome.html

-rwxr-xr-x 1 oras31 dba 2601 Aug 26 2005 runInstaller

drwxr-xr-x 3 oras31 dba 256 Aug 26 2005 rootpre

drwxr-xr-x 2 oras31 dba 256 Aug 26 2005 response

drwxr-xr-x 5 oras31 dba 4096 Aug 26 2005 install

drwxr-xr-x 9 oras31 dba 4096 Aug 26 2005 stage

drwxrwxr-x 9 oras31 dba 4096 Aug 26 2005 doc

drwxr-xr-x 2 oras31 dba 4096 Feb 22 2006 SAP_ORIG

{p15813dtp219}/oracle/stage/102_64/database/Disk1$

{p15813dtp219}/oracle/stage/102_64/database/Disk1$ ./install/unzip /tmp/RDBMS_SAP_64.zip

Archive: /tmp/RDBMS_SAP_64.zip

inflating: SAP/charset.sql

inflating: SAP/CHECKS.SQL

www.Fullinterview.com Page 4 of 37

Page 5: Oracle 9i to 10g Upgrade Runbook v1

inflating: SAP/dfltpasslt.sql

inflating: SAP/MIG3264.SQL

inflating: SAP/POST_UPGRADE.SQL

inflating: SAP/POSTMIG.SQL

inflating: SAP/PREMIG.SQL

extracting: SAP/README

inflating: SAP/RUNINSTALLER

inflating: SAP/SAP.SQL

inflating: SAP/sapconn_role.sql

inflating: SAP/SAPI.SQL

inflating: SAP/SVRCUSTOM.RSP

inflating: SAP/updDBSTATC10.sql

inflating: SAP/utlu102i.sql

inflating: SAP/dbcheckora10_olap.sql

inflating: dbcheckora10_oltp.sql10.

 Check oraInst.loc Check file /etc/oraInst.loc and ensure the oraInventory path is correctly set.11. Make sure New oracle Home is available Make sure file system /oracle/S11/102_64 is available12. pre-upgrade checks

SQL> connect /as sysdba

SQL> spool /tmp/pre_upgrade.log

SQL> @/oracle/stage/102_64/database/Disk1/SAP/utlu102i.sql

SQL> spool off

SQL> exit

There will be warning like as follows

WARNING: --> Database contains stale optimizer statistics.

.... Refer to the 10g Upgrade Guide for instructions to update

.... statistics prior to upgrading the database.

www.Fullinterview.com Page 5 of 37

Page 6: Oracle 9i to 10g Upgrade Runbook v1

.... Component Schemas with stale statistics:

.... SYS

Run optimizer statistics as per SAP Note 819830

SQL> @/tmp/gather_optimizer_statistics.sql

Run the preupgrade script again, the warning will be removed now.13.

Login to X window session.

Checking Prerequisites for Oracle Universal Installer

p15813dtp219:oras11> ./runInstaller -executeSysPrereqs

It failes with the error

No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.

Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2009-09-30_11-47-54AM/installActions2009-09-

30_11-47-54AM.log

This fails for AIX 5.3 version. As per SAP note 980426, this is the problem with AIX 5.3 version.

The workaround is to run the runInstaller with option

./runInstaller -ignoreSysPrereqs

That does not work either

Download RUNINSTALLER.ZIP from SAP note 980426

This RUNINSTALLER script is already having –ignoreSysPrereqs option in it. So this script can be directly used for the database software installation.

14.

Download latest version of database libraries

Download the latest version of dbsl (dboraslib.so, dboraslib.sl, or dboraslib.o) for the release from: http://service.sap.com/swdc

Downloaded lib_dbsl_276-20000198.sar file from service market place

Download latest SAPCAR15.

Run sapconn_role.sql p15813dtp219:oras11> cp -p sapconn_role.sql /oracle/S11/920_64/dbs

p15813dtp219:oras11> sqlplus /nolog @sapconn_role.sql

SQL*Plus: Release 9.2.0.7.0 - Production on Wed Sep 30 12:46:34 2009

www.Fullinterview.com Page 6 of 37

Page 7: Oracle 9i to 10g Upgrade Runbook v1

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

Disconnected from Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production

With the Partitioning option

JServer Release 9.2.0.7.0 – Production

16.

Check undo management set to auto.

SQL> show parameter undo

NAME TYPE VALUE

------------------------------------ ----------- -------------

undo_management string AUTO

undo_tablespace string PSAPUNDO17.

Check free space in SYSTEM tablespaceMake sure SYSTEM has at least 750MB of free space.

p15813dtp219:oras11> brspace -f dbshow -c tsinfo -s SYSTEM

BR1001I BRSPACE 7.00 (16)

Information about tablespace SYSTEM

10 - Free space in tablespace in KB (free) .... 82836818.

Checking Invalid Database objects.

Make note of the list before and after the upgrade.If both are same then INVALID

SQL> /tmp/spool invalid_objects_preupgrade

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';

SQL> spool off19.

Drop table called PLAN_TABLE in SYS and SYSTEM

SQL> drop table "SYS"."PLAN_TABLE";

Table dropped.

SQL> drop table "SYSTEM"."PLAN_TABLE";Table dropped

UPGRADE PROCESS

Start Date and Time : 14/1/08 11:00 End Date and Time :

www.Fullinterview.com Page 7 of 37

Page 8: Oracle 9i to 10g Upgrade Runbook v1

No System Task Notes Owner

Approx Duration

Status

20. p15813dtp219 Start Upgrade Install 10g Database software

21.

Installation of the Database software through X windows session.

Login as oras11

Set environmental variables as follows.

Make sure following environmental variables are not set

TWO_TASK

ORA_NLS

ORA_NLS32

ORA_NLS33

Set following Variables

ORACLE_BASE=/oracle

ORACLE_HOME=/oracle/S11/102_64

DB_SID=S11

ORA_NLS10=$ORACLE_HOME/nls/data

SAPDATA_HOME=/oracle/S11

LIBPATH=$ORACLE_HOME/lib:$LIBPATH

PATH=$ORACLE_HOME/bin:/oracle/S11:/usr/sap/S11/SYS/exe/run:/usr/bin:.:/usr/local/bin:/usr/ucb

www.Fullinterview.com Page 8 of 37

Page 9: Oracle 9i to 10g Upgrade Runbook v1

www.Fullinterview.com Page 9 of 37

Page 10: Oracle 9i to 10g Upgrade Runbook v1

22.

Next

23.

Next.

www.Fullinterview.com Page 10 of 37

Page 11: Oracle 9i to 10g Upgrade Runbook v1

24.

Space required by the installation.Make a note and increase if required.

25.

Installation

www.Fullinterview.com Page 11 of 37

Page 12: Oracle 9i to 10g Upgrade Runbook v1

26. Run root.sh as user root.

{p15813dtp219}/oracle/S11/102_64$ ./root.sh

Running Oracle10 root.sh script...

The following environment variables are set as:

ORACLE_OWNER= oras11

ORACLE_HOME= /oracle/S11/102_64

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y

Copying dbhome to /usr/local/bin ...

The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y

Copying oraenv to /usr/local/bin ...

The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y

Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root.sh script.

www.Fullinterview.com Page 12 of 37

Page 13: Oracle 9i to 10g Upgrade Runbook v1

Now product-specific root actions will be performed.27.

Installation Completed

28.

Start Patch Installation.Use the same oras11 session where all the environmental variables are set.If not then set the environment variables again and then install patch.

www.Fullinterview.com Page 13 of 37

Page 14: Oracle 9i to 10g Upgrade Runbook v1

29.

Next

30.

Check the Oracle Home path. It should be 102_64

www.Fullinterview.com Page 14 of 37

Page 15: Oracle 9i to 10g Upgrade Runbook v1

31.

Next

32.

No Change. Next

www.Fullinterview.com Page 15 of 37

Page 16: Oracle 9i to 10g Upgrade Runbook v1

33.

Space summery. Increase oracle Home file system.

{p15813dtp219}/oracle/S11/102_64$ chfs -a size=+1024M /oracle/S11/102_64

34.

Patch Installation.

www.Fullinterview.com Page 16 of 37

Page 17: Oracle 9i to 10g Upgrade Runbook v1

35.

Run root.sh as user root.

36.

Patch Installation completed successfully.

37. Copy all the network/admin files from old directory to new ORACLE_HOME. p15813dtp219:oras11> cp -p /oracle/S11/920_64/network/admin/*.ora .

www.Fullinterview.com Page 17 of 37

Page 18: Oracle 9i to 10g Upgrade Runbook v1

p15813dtp219:oras11> ls -lrt

-rw-r--r-- 1 oras11 dba 24 Apr 29 2002 snmp_ro.ora

-rw-r----- 1 oras11 dba 172 Dec 26 2003 shrept.lst

-rw-r----- 1 oras11 dba 0 Aug 14 2005 libnrad10.imp

-rw-r----- 1 oras11 dba 0 Aug 14 2005 libnrad10.exp

-rw-r----- 1 oras11 dba 0 Aug 14 2005 libnk510.imp

-rw-r--r-- 1 oras11 dba 531 Sep 17 14:46 tnsnames.ora

-rw-r--r-- 1 oras11 dba 364 Sep 17 14:46 sqlnet.ora

-rw-r--r-- 1 oras11 dba 834 Sep 17 14:46 listener.ora

drwxr-x--- 2 oras11 dba 256 Sep 30 14:01 samples38. Edit listener.ora and change 920_64 to

102_64Vi listener.ora:%s/920_64/102_64/g

39.

Stop Listener process

p15813dtp219:oras11> lsnrctl stop

LSNRCTL for IBM/AIX RISC System/6000: Version 9.2.0.7.0 - Production on 30-SEP-2009 14:34:03

Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=S11.WORLD))

The command completed successfully40. Changing oratab entry

Display /etc/oratab file

*:/oracle/S01/920_64:N

# *:/oracle/S11/920_64:N

*:/oracle/S11/920_64:N

Change highlighted entry to

# *:/oracle/S01/920_64:N

# *:/oracle/S01/920_64:N

*:/oracle/S01/920_64:N

# *:/oracle/S11/920_64:N

www.Fullinterview.com Page 18 of 37

Page 19: Oracle 9i to 10g Upgrade Runbook v1

S11:/oracle/S11/920_64:N41.

Start upgrade assistance through X windows.Make sure all the environmental variables are correctly set before starting the upgrade assistance.

42.

Go to $ORACLE_HOME/bin and start using ./dbua

www.Fullinterview.com Page 19 of 37

Page 20: Oracle 9i to 10g Upgrade Runbook v1

43.

Select S11. If don’t find entry here then check the oratab file again.

www.Fullinterview.com Page 20 of 37

Page 21: Oracle 9i to 10g Upgrade Runbook v1

44.

Click Yes. This will be taken care during post-processing.

45.

Do not move database files.

www.Fullinterview.com Page 21 of 37

Page 22: Oracle 9i to 10g Upgrade Runbook v1

46.

Create directory for SYSAUX tablespace.

p15813dtp219:oras11> mkdir sysaux_1Select Reuse Existing File Name.Enter 1000 MB in Size.Select AUTOEXTEND ON.Enter 100 MB in Increment.

Enter 2000 MB in Maximum Size

47.

No Changes, click Next.

www.Fullinterview.com Page 22 of 37

Page 23: Oracle 9i to 10g Upgrade Runbook v1

48.

Backup already completed.

49.

Deselect Configure the Database with Enterprise Manager.

www.Fullinterview.com Page 23 of 37

Page 24: Oracle 9i to 10g Upgrade Runbook v1

50.

Deselect Flash Recovery Area.

51.

Upgrade Summery

www.Fullinterview.com Page 24 of 37

Page 25: Oracle 9i to 10g Upgrade Runbook v1

52.

Summery.

53.

Summery.

www.Fullinterview.com Page 25 of 37

Page 26: Oracle 9i to 10g Upgrade Runbook v1

54.

Upgrade start.

55.

Upgrade completed.

www.Fullinterview.com Page 26 of 37

Page 27: Oracle 9i to 10g Upgrade Runbook v1

56.

Upgrade results.

57.

Click on configure Database passwords and make note of these screens.

www.Fullinterview.com Page 27 of 37

Page 28: Oracle 9i to 10g Upgrade Runbook v1

58.

59.

Post-Upgrade Activities Start Date and Time : End Date and Time :

www.Fullinterview.com Page 28 of 37

Page 29: Oracle 9i to 10g Upgrade Runbook v1

No System Task Notes

Owner

Duration

Status

60.

Finalize environmental variables

Perform for oras11 and s11adm users

Take copy of dbenv files

p15813dtp219:s11adm> cp -p .dbenv_p15813dtp219.sh .dbenv_p15813dtp219.sh.30Sep2009

p15813dtp219:s11adm> cp -p .dbenv_p15813dtp219.csh .dbenv_p15813dtp219.csh.30Sep200

Make sure the following environment variables are not set:

TWO_TASK

ORA_NLS

ORA_NLS32

ORA_NLS33

Rename occurrences of 920_64 to 102_64 with command in vi %s/920_64/102_64/g

Set

ORA_NLS10=$ORACLE_HOME/nls/data

LIBPATH=$ORACLE_HOME/lib:$LIBPATH61.

Checking upgraded database1.SQL> select version from v$instance;

VERSION

-----------------

10.2.0.4.0

2. check release and status

SQL> select comp_id, version, status from dba_registry;

COMP_ID VERSION STATUS

------------------------------ ------------------------------

www.Fullinterview.com Page 29 of 37

Page 30: Oracle 9i to 10g Upgrade Runbook v1

CATALOG 10.2.0.4.0 VALID

CATPROC 10.2.0.4.0 VALID

3. p15813dtp219:oras11> cd $ORACLE_HOME/assistants/dbua/doc/help/

p15813dtp219:oras11> ls -lrt|grep Default

-rw-r--r-- 1 oras11 dba 7316 Nov 19 2003 DefaultBehaviorChangesin10g.html

4. p15813dtp219:oras11> ls -lrt |grep spfile

-rw-r----- 1 oras11 dba 4608 Sep 30 15:41 spfileS11.ora62.

Upgrade brtools to 7.00Upgrade brtools version to 7.00 if it is notCopy brtools profile file initS11.sap to new $ORACLE_HOME/dbs

63.

Run sapdba_role.sql

p15813dtp219:oras11> cp -p /oracle/S11/920_64/dbs/initS11.sap /oracle/S11/102_64/dbs

p15813dtp219:oras11> sqlplus /nolog @sapdba_role P11

SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 30 16:29:05 2009

Copyright (c) 1982, 2007, Oracle. All Rights Reserved.

Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production

With the Partitioning, Data Mining and Real Application Testing options64.

Alter database parameters

SQL> alter system set compatible='10.2.0' scope = spfile;

System altered.

Set log_archive_format=S11arch%t_%s%r.arc

Restart the database so that changes takes into effect.65.

Collect system and oracle dictionary statistics.

brconnect -u / -c -f stats -t system_stats;

brconnect -u / -c -f stats -t oradict_stats;66.

Execute the commands

SQL> exec dbms_scheduler.disable('GATHER_STATS_JOB');

SQL> exec dbms_scheduler.disable('ORACLE_OCM.MGMT_CONFIG_JOB');SQL> exec dbms_scheduler.disable('ORACLE_OCM.MGMT_STATS_CONFIG_JOB');

67.Identify the objects which are INVALID

SQL> @?/rdbms/admin/utlrp.sql;

www.Fullinterview.com Page 30 of 37

Page 31: Oracle 9i to 10g Upgrade Runbook v1

after upgrade.

SQL> spool /tmp/invalid_post.log

SQL> select count(*) from dba_objects where status = 'INVALID';

SQL> select substr(owner,1,12) owner, substr(object_name,1,30) object, substr(object_type,1,30) type, status from dba_objects where status <>'VALID' order by owner;

SQL> spool off;

SQL> select count(*) from dba_objects where status = 'INVALID';

COUNT(*)

----------

31868.

Parameter changes

Tune the parameters as per SAP Note 830576.

SQL> alter system reset db_file_multiblock_read_count scope=spfile sid='*';

System altered.

SQL> alter system reset OPTIMIZER_INDEX_COST_ADJ scope=spfile sid='*';

alter system reset OPTIMIZER_INDEX_COST_ADJ scope=spfile sid='*'

*

ERROR at line 1:

ORA-32010: cannot find entry to delete in SPFILE

SQL> alter system reset OPTIMIZER_MODE scope=spfile sid='*';

System altered.

SQL> alter system set shared_pool_size = 400000000 scope=spfile;

System altered.

69.Disable oracle recycle bin SQL> purge dba_recyclebin;

www.Fullinterview.com Page 31 of 37

Page 32: Oracle 9i to 10g Upgrade Runbook v1

DBA Recyclebin purged.

SQL> alter system set recyclebin = 'off' scope = spfile;

System altered.70.

Run catupgrd.sql

SQL> STARTUP UPGRADE

SQL> SPOOL /tmp/patch.log

SQL> @?/rdbms/admin/catupgrd.sql

SQL> SPOOL OFF

Review the patch.log file for errors and inspect the list of components that is displayed at the end of catupgrd.sql script.

This list provides the version and status of each SERVER component in the database.

If necessary, rerun the catupgrd.sql script after correcting any problems.

71.

Restart the database normally

SQL> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup;

ORACLE instance started.

Total System Global Area 4680843264 bytes

Fixed Size 2090280 bytes

Variable Size 469764824 bytes

Database Buffers 4194304000 bytes

Redo Buffers 14684160 bytes

Database mounted.

Database opened.

www.Fullinterview.com Page 32 of 37

Page 33: Oracle 9i to 10g Upgrade Runbook v1

72.

Gather statistics for SAP schemas

SQL> @/oracle/stage/102_64/database/Disk1/SAP/updDBSTATC10.sql

Connected.

sqlscript for updating table DBSTATC for Oracle 10 support

processing: SAPP11.DBSTATC

successfully changed all above listed DBSTATC tables

Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production

With the Partitioning, Data Mining and Real Application Testing options73.

Update DBCHECKORA control tablep15813dtp219:oras11> cd /oracle/stage/102_64/database/Disk1/SAP

p15813dtp219:oras11> sqlplus SAPP11/Migrat10n @dbcheckora10_olap.sql74.

Collect update statistics brconnect -c -u / -f stats -t all –f collect -p 475.

Start listener process76.

Copy dboraslib.o file to /sapmnt/S11/exe from the .SAR file downloaded in pre-steps.

Change permissions of the file to oras11.dba

77.Renaming old Oracle Home directory. p15813dtp219:oras11> mv bin bin.old

p15813dtp219:oras11> pwd

/oracle/S11/920_6478.

Post upgrade steps to bring SAP

Change environmental variables in CI host for oracle 10g client.Make sure R3trans –d finishes successfully.

p15812dtp217:s11adm> R3trans -d

This is R3trans version 6.09 (release 640 - 26.10.04 - 15:45:42).

R3trans finished (0000).79.

Start SAP application p15812dtp217:s11adm> startsap

Checking S11 Database

------------------------------

ABAP Database is running

www.Fullinterview.com Page 33 of 37

Page 34: Oracle 9i to 10g Upgrade Runbook v1

Checking S11 Database

------------------------------

Starting SAP-Collector Daemon

------------------------------

10:08:11 01.10.2009 LOG: Effective User Id is root

***********************************************************************

* This is Saposcol Version COLL 20.87 640 - AIX v4.20 5L-64 bit 040309

* Usage: saposcol -l: Start OS Collector

* saposcol -k: Stop OS Collector

* saposcol -d: OS Collector Dialog Mode

* saposcol -s: OS Collector Status

* The OS Collector (PID 4927624) is already running .....

************************************************************************

saposcol already running

Starting SAP Instance DVEBMGS11

------------------------------

Startup-Log is written to /home/s11adm/startsap_DVEBMGS11.log

Instance on host p15812dtp217 started

IGS on host p15812dtp217 started

80.

Check oracle version through ST04

81.Disable Database user locking for failed logins

SQL> ALTER PROFILE DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED;

Profile altered.

www.Fullinterview.com Page 34 of 37

Page 35: Oracle 9i to 10g Upgrade Runbook v1

82.Database backup after Upgrade

Troubleshooting Start Date and Time : End Date and Time :

No System Task Notes Owner

Duration

Status

84.Problem: Database Installation warning because ORACLE_HOME was not empty. It contains lost+found directory.

Solution :

Continue with the installation

Precaution:

85. Problem :Upgrade failed because oras11 does not have permissions to /oracle directory

Solution:

Change permissions to /oracle

{p15813dtp219}/$ chmod g+w /oracle

Precaution:

Check permissions to the file systems before starting oracle upgrade.

86. Problem:

www.Fullinterview.com Page 35 of 37

Page 36: Oracle 9i to 10g Upgrade Runbook v1

Database startup failed because it could not recognize the old log_archive_format parameter.

Solution:

Set the parameter to S11arch%t_%s%r.arc in pfile.

Rename spfile so that database starts with pfile.

Create spfile from pfile.

SQL> create spfile from pfile;

File created.

Restart the database.

Precaution:

Set the parameter before bringing down the database.

SQL> startup;

ORA-19905: log_archive_format must contain %s, %t and %r

87.

Problem: Database installation not able to copy file because of the running program.

Solution:Run slibclean as user root on the server and try again. Try removing the processes running as orasid user and try again.Do not ignore.

Precaution:Run slibclean as root before strating database installation

www.Fullinterview.com Page 36 of 37

Page 37: Oracle 9i to 10g Upgrade Runbook v1

www.Fullinterview.com Page 37 of 37