+ All Categories
Home > Documents > Install Oracle 9i Patch

Install Oracle 9i Patch

Date post: 03-Apr-2018
Category:
Upload: ssvpvr2404
View: 258 times
Download: 1 times
Share this document with a friend
65
7/28/2019 Install Oracle 9i Patch http://slidepdf.com/reader/full/install-oracle-9i-patch 1/65 Upgrade SAP 4.6 EE to ECC6 1) Install Oracle 9i Patch (Minimum 9.2.0.6) 2) Configure sap level TMS ( STMS ) 3) Update R/3DLLINS 4) Kernel upgrade. ( Logon as SIDADM) 5) Update Spam 6) Uncar all the following files  R3ldctl_15-20000185.SAR DBATL640O92_44-20000185.SAR R3load_90-20000185.SAR R3szchk_16-20000185.SAR R3trans_192-20000182.SAR tp_193-20000182.sar 7. Apply path correction file ORAREL6XX.SAR 8. Uncar the file and copy the datafile to usr\sap\trans\datafile , copy the cofile to usr\sap\trans\cofile 9. Login as DDIC go to STMS – Imports- Extras- Other Request - Add Select the system – (Double click DEV) - 10. create a script for connectivity from oracle 9.i to 10g a. Go to oracle 10g Dump \NT\I386\SAP\SAPCONN_Role.sql copy this script file and past it to D:\oracle\ora92\database. Edit this script file in Notepad and replace uppercase SAP% to SAPSID . ( Note SAPSID is not SAP DEV but SAPSID) 11. Go to CMD change directory to D:\oracle\ora92\database D:\oracle\ora92\database>sqlplus "/as sysdba" @ sapconn_role 12. To check if the above command is executed successfully , go to Orace\ora92\database sapconn_role.log , open this in notepad and check if the message GRANT SUCCEDED Is available 13. Check the table space Using the following command D:\brspace -f dbshow -c tsinfo -s SYSTEM . After successful completion of the program enter S to stop preceding with Y. 14. To adjust system table space go to SQL prompt SQL> alter tablespace SYSTEM add datafile 'D:\oracle\dev\sapdata1\system_1\SYSTE M.DATA2' size 1000m autoextend on; 15. checking for invalid object in the database SQL> spool invalid_objects; 16. Next execute the following command select unique object_name, object_type, owner from dba_objects where status = 'INVALID'; 17. @?/rdbms/admin/utlrp.sql 18. > select unique object_name, object_type, owner from dba_objects where status = 'INVALID'; 19. spool off 20. exit disconnected from oracle…
Transcript
Page 1: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 1/65

Upgrade SAP 4.6 EE to ECC6

1) Install Oracle 9i Patch (Minimum 9.2.0.6)

2) Configure sap level TMS ( STMS )3) Update R/3DLLINS

4) Kernel upgrade. ( Logon as SIDADM)

5) Update Spam

6) Uncar all the following files

 

R3ldctl_15-20000185.SAR DBATL640O92_44-20000185.SAR

R3load_90-20000185.SAR

R3szchk_16-20000185.SAR

R3trans_192-20000182.SAR

tp_193-20000182.sar 

7. Apply path correction file ORAREL6XX.SAR 

8. Uncar the file and copy the datafile to usr\sap\trans\datafile , copy the

cofile to usr\sap\trans\cofile

9. Login as DDIC go to STMS – Imports- Extras- Other Request - Add

Select the system – (Double click DEV) -

10. create a script for connectivity from oracle 9.i to 10g

a. Go to oracle 10g Dump \NT\I386\SAP\SAPCONN_Role.sql copy this

script file and past it to D:\oracle\ora92\database. Edit this script file

in Notepad and replace uppercase SAP% to SAPSID . ( Note SAPSID is not

SAP DEV but SAPSID)

11. Go to CMD change directory to D:\oracle\ora92\database

D:\oracle\ora92\database>sqlplus "/as sysdba" @ sapconn_role

12. To check if the above command is executed successfully , go to

Orace\ora92\database sapconn_role.log , open this in notepad and check 

if the message GRANT SUCCEDED Is available

13. Check the table space Using the following command D:\brspace -f 

dbshow -c tsinfo -s SYSTEM . After successful completion of the

program enter S to stop preceding with Y.

14. To adjust system table space go to SQL prompt SQL> alter tablespace

SYSTEM add datafile 'D:\oracle\dev\sapdata1\system_1\SYSTE 

M.DATA2' size 1000m autoextend on;15. checking for invalid object in the database SQL> spool invalid_objects;16. Next execute the following command select unique object_name,

object_type, owner from dba_objects where status = 'INVALID';17. @?/rdbms/admin/utlrp.sql18. > select unique object_name, object_type, owner from dba_objects

where status = 'INVALID';19. spool off  20. exit disconnected from oracle…

Page 2: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 2/65

21. Install Oracle 10g software D:\ORAUP\Oracle10.2\NT\I386 executesapserver.cmd

22. Install oracle 10g client software by uncar the following fileOCL10232.sar available with oracle client software. Copy all theuncar files to run folder usr\sap\SID\SYS\exe

23. Copy and adapting SQL* Net Files. After the database software

installation you must copy and modify the old SQL * Net files i.e isListner.ora , TNSnames.ora, sqlnet.ora

24. Go to OracleHome directory (Oralce\Ora92\Network\Admin, copy the

above files to the directory and paste it to Oracle 10g home directory

oracle /SID/102/network/admin ( Note ; SQL.ora is the only file we need

to overwrite) D:\oracle\DEV\102\NETWORK\ADMIN

25. Edit the listener.ora file in 10g, in this identify the parameter

oracle_home that belongs to the database you want to upgrade and

change the value of the parameter oracle_home to point to the new 10g

oracle home. Change this under the following SID_LIST_LISTENER,

SID_DESC =

26. Saving archive log files (Forcefully switching the redo log files).27. Go to CMD- SQLPLUS “/ as sysdba”

28. issue the command startup

29. next command alter system switch log file; ( execute this command)

30. Go to SQL prompt and shut down oracle 9i database instance. SQL

>shutdown immediate; (Output = SQL> shutdown immediate;Database

closed.Database dismounted.ORACLE instance shut down.

31. Shutdown the oracle 9i listner to avoid client connections.

32. Change the environment variables for user DBSIDADM. Go to

environment variables ( My computer – properties –advances-

environment variable ) Delete oracle_home

33. Go to initDEV.ora ( Oracle\ora92\database\ initDEV.ora) Open withNotepad and append the following line at the end of the file

 JOB_QUEUE_PROCESSES = 0 , save the file.

34. Stop SAP MMC ( The sap Server should be down from this point

onwards ) Logoff - logon

35. Change the registry entry of ORA_dbSID_autostart as follows. Go to

CMD >oradim -edit -sid dev -startmode manual

36. STARTING ORACLE UPGRADE FROM THIS POINT

37. Start- Programs – Oracle

Page 3: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 3/65

Page 4: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 4/65

38.

Page 5: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 5/65

Page 6: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 6/65

Page 7: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 7/65

Page 8: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 8/65

Page 9: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 9/65

Basis123

Page 10: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 10/65

Page 11: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 11/65

Page 12: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 12/65

Note: After completion of this upgrade SAP 4.7 will be running on Oracle 10g

instead of 8.i

Page 13: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 13/65

Page 14: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 14/65

Page 15: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 15/65

Page 16: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 16/65

Page 17: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 17/65

POST UPGRADE STEPS

1. Go to CMD , Change to D:\CD oracle\DEV\102\bin\ ( change to this

directory) . Execute the command lsnrctl start 

Page 18: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 18/65

2. Change the environment variable - Right mouse click – My computer-

properties- advance – environment variable – User variable – click NEW

ORACLE_HOME = D:\oracle\Dev\102

3. Copy TNSNAMES.ora and SQLNET.ora from the following location

D:\oracle\SID\102\Network\Admin\ >>> Creat a new folder ORACLE under

the follwing path usr\sap\SID\Sys\profile\ and paste the files.

3. Go to System Enviroment variables – NEW- TNS_ADMIN set the value

to the following D:\usr\sap\dev\sys\profile\oracle

Page 19: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 19/65

4. Restart the OS

5. Change the registry entry using the following command D:\>oradim -edit

-sid dev -startmode manual

6. upgrade the sapdba role- GO to Run folder – usr\sap\dev\sys\exe\run\

copy the following file sapdba_role.sql >>>>> Paste it to

D:\oracle\dev\102\database\ - Open the Text file and Edit the followingline execute :Owner := 'SAPDEV' Save the file

7. Got to CMD D:\oracle\DEV\102\database>sqlplus /nolog @

sapdba_role.sql . You should receive a GRANT SUCCEDED

8. Shutdown database – Go to SQLPromt and issue command SQL>

Shutdown immediate

Uninstall the Old Oracle

1. Go to Services- Stop the Old Oracle Services – All Old oracle 9i related services and

Distributed transaction coordinator

Page 20: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 20/65

2. Click  

3. Select Install products- Ensure all old oracle services are stopped

Page 21: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 21/65

4.

5. Click remove

6. Click Yes

7.

Page 22: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 22/65

8.

9. Click Close

Page 23: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 23/65

10.

Post Upgrade Task 

1. D:\>sqlplus /nolog  

SQL*Plus: Release 10.2.0.1.0 - Production on Tue Oct 28 21:47:58 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved.

 SQL> connect / as sysdba

Connected.

SQL> startupORA-01081: cannot start already-running ORACLE - shut it down first

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

System altered.

 SQL> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

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

2. gathering oracle optimizer statistics.SQL>spool %ORACLE_HOME%/cfgtoollogs/dbstats.log;SQL>execute dbms_scheduler.disable('GATHER_STATS_JOB');SQL>execute dbms_stats.gather_system_stats;

Page 24: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 24/65

SQL> execute dbms_stats.gather_dictionary_stats;SQL> execute dbms_stats.gather_fixed_objects_stats;

Identify the objects that are invalid after the

upgrade as followsSQL>@?/rdbms/admin/utlrp.sql;SQL>spool %ORACLE_HOME%/cfgtoollogs/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>shutdown immediateSQL>startup

Gather statistics for SAP schemas

SQL> update sapdev.DBSTATC set activ = 'A' where activ in ('N,R');SQL> commit;

Go to D:\Oracle\Dev\102\database\initDev.ora Append the following atthe end remote_login_passwordfile = EXCLUSIVE - Save

Restart the serverSQL>shutdown immediate

SQL>startup

Install oracle 10g Patch

1. Stop the services Oracle*plus & Oracle Listner2. Go to CMD lsnrctl stop ( this is to stop the listener

services)3. Navigate to 10g patch and install

Page 25: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 25/65

Known error—follow instructions –read and –stop relevantservices. Do not stop services before this prompt

Stop orcaleDBconsoledev service

Click on retry

Finish installation

Page 26: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 26/65

Click cancel at this point

Restart the system

Important note: Please check if the oraclelistner for 10g is in the services. If not then

you need to get that in the services and start the services.

Go to CMD

Execute lsnrctl status If any errors

Execute lsnrctl start

Go to Services - Refresh

You should be able to see OracleDEV102listner services

Start the services

Restart SAP MMC

Page 27: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 27/65

Go to CMD and issue SQLplus command

C:\Documents and Settings\devadm>SQLPLUS

SQL*Plus: Release 10.2.0.1.0 - Production on Tue Oct 28 22:41:00 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved.

END OF ORACLE UPGRADE 9.I to oracle 10g

Prepare phase

Mmc should be up

Go to usr\sap and create a folder with name PUT ( this put folder acting as a temp

run folder and will be erased latter)

Go to upgrade master /

Page 28: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 28/65

Page 29: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 29/65

Go to cmd

Page 30: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 30/65

Note: Donot close this screen until the ugradatin is complete

Go to put directory- Index.html file execute

Start upgrade assistant option

Page 31: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 31/65

Page 32: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 32/65

Page 33: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 33/65

Page 34: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 34/65

Page 35: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 35/65

Page 36: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 36/65

Page 37: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 37/65

Page 38: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 38/65

Page 39: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 39/65

Page 40: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 40/65

Page 41: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 41/65

Page 42: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 42/65

Uncar the file and copy it to put directory

Page 43: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 43/65

Page 44: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 44/65

Page 45: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 45/65

Page 46: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 46/65

Page 47: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 47/65

GIVE PASSWORD AS CAPS MANAGER 

Page 48: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 48/65

Page 49: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 49/65

Page 50: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 50/65

Page 51: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 51/65

Page 52: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 52/65

Page 53: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 53/65

Page 54: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 54/65

Page 55: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 55/65

Page 56: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 56/65

Page 57: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 57/65

Page 58: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 58/65

Note: Youcan go to upgrade monitor to check the process running

If there are any issues with the prepare stage , delete the PUT folder and start

Prepare stage again.

Page 59: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 59/65

Page 60: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 60/65

Page 61: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 61/65

Page 62: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 62/65

Please check checks.log file for errors under usr\sap\put\log

Page 63: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 63/65

D:\>sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Sat Nov 1 22:23:39 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved.

SQL> connect / as

Page 64: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 64/65

SP2-0306: Invalid option.

Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]

where <logon> ::= <username>[/<password>][@<connect_identifier>] | /

SQL> connect / as sysdba

Connected.

SQL> startupORA-01081: cannot start already-running ORACLE - shut it down first

SQL> create tablespace PSAPUNDO datafile

'D:\oracle\dev\data2\dev620_7\DEV620.DA

TA8'size 1200m autoextend off;

create tablespace PSAPUNDO datafile

'D:\oracle\dev\data2\dev620_7\DEV620.DATA8's

ize 1200m autoextend off 

*

ERROR at line 1:

ORA-01119: error in creating database file

'D:\oracle\dev\data2\dev620_7\DEV620.DATA8'ORA-27040: file create error, unable to create file

OSD-04002: unable to open file

O/S-Error: (OS 3) The system cannot find the path specified.

SQL> create tablespace PSAPUNDO datafile

'D:\oracle\dev\data2\dev620_7\DEV620.DA

TA8'size 1200m autoextend off;

create tablespace PSAPUNDO datafile

'D:\oracle\dev\data2\dev620_7\DEV620.DATA8's

ize 1200m autoextend off 

*

ERROR at line 1:

ORA-01119: error in creating database file

'D:\oracle\dev\data2\dev620_7\DEV620.DATA8'

ORA-27040: file create error, unable to create file

OSD-04002: unable to open file

O/S-Error: (OS 3) The system cannot find the path specified.

SQL>

SQL> create tablespace PSAPUNDO datafile

'D:\oracle\DEV\sapdata2\dev620_7\DEV620

.DATA8' size 1200m autoextend off;

Tablespace created.

SQL> alter tablespace PSAPTEMP add tempfile

'D:\oracle\DEV\sapdata3\temp_1\TEMP.

Page 65: Install Oracle 9i Patch

7/28/2019 Install Oracle 9i Patch

http://slidepdf.com/reader/full/install-oracle-9i-patch 65/65

DATA2' size 500m autoextend off;

Tablespace altered.

SQL>


Recommended