sap system refresh procedure document for sap r

Download SAP System Refresh Procedure Document for SAP R

Post on 27-Sep-2015

25 views

Category:

Documents

9 download

Embed Size (px)

DESCRIPTION

c

TRANSCRIPT

SAP System Refresh Procedure Document for SAP R/3on Windows/Oracle platform.This document outlines how to refresh an SAP R/3 4.6C system on Windows/Oracle platform.The acronyms used in documents arePRM = Source System SID

PFM = Target System SID

bp1tulap131 = Source System DB

bp1tulap132 = Source System CI

bp1tulap132 = Source System Application

bp1tulap113 = Intermediate System for Export Storage.

bp1tulap129 = Target CI

bp1tulap130 = Target DB

Prerequisites:1. Windows login access on Host

2. Checking OS level configuration i.e. adm, ora users, environment variablesettings

3. Checked /Create and map filesystem same as of Source System

4. Downtime approval for Destination System copy process

5. Verification of file systems

6. Prepare SAP System for system copy-Prechecks

7. Online database backup of Source System

8. Create backup control file of Source System

9. Edit Control file with Target System

10. Checked all required passwords (System, DDIC etc) of Source systems

11. Taking backup of target system configuration

12. Backup RFC Entries /SE09

13. Export User Master /SE09

14. Export Logical System Connections / SALE /SE09

15. Save Logon Groups - SMLG

16. Export STMS_QA worklist tables / SE09

17. Save RFC Groups RZ12

18. Take Screen Shot of BD54

19. WE20 / Partner Profile

20. WE21/ Note Each tRFC

21. SLICENSE /Installed licenses

22. SCC4 /Client Details

23. Offline Backup + File system backup of Target system

BASIS Prerequisites1. Start Online backup in PRM (Source System)Use transaction DB13 to schedule

Schedule at least 24 hrs before the planned PFM db roll forward time

2. Execute a user master export of PFM client 100.Go to transaction SCC8 (client export)

Choose the following,

Profile: SAP_USER

Target System: PFM

Click on Start Immediately

Take note of the request number.

If above method does not work do the following.TP pf=TP_DOMAIN_PSM.PFL export client 100 UI

(example of transport #: PFMKT00140, note T not 9)

3. Execute table export of PFM client 100.Map \\\e$ to Z: drive on Ensure the scripts export_pfm_tables.cntl and import_pfm_tables.cntlConatins all the client dependent and client-independent tables listed below.

To export the tables contents, execute the following fromz:\usr\sap\trans\bin. (Or, the specify the directory locations of the control and log files.command>R3trans w export_pfm_tables.log export_pfm_tables.cntl

Check the log and verify whether the export completed successfully.

Note : List of Client Independent Tables(tpfid,tpfba,tpfht,btcomset,btcomsdl,rzllitab,rzlliclass,tsp03,tsp03c,tsp03d,txcom,t000,tbdl

s,tbdlst,rfcdes,rfcdoc,edimsg,tbd21,tbd22,edipo,zzifc_pathmap)

List of Client Dependent Tables(TVARUVN,VARI,VARINUM,VARID,VARIT,tbd00,tbd00t,tbd03,tbd05,tbd06,tbda1,tb

da2,tbd20,tbd62,tede5,ede5t,t242d,t242i,t242s,t242y,t242a,edpp1,edp13,edp21,edp12,edi

poa,edipod,ediport ZZIFC_AR_DD_UNPD,ZZIFC_FILES,ZZIFC_TARGETS)

4. Create a system messageGo to transaction SM02

5. Identify transports for post refreshUsing STMS transport history, identify the transports imported into PFM, but not PRM.

This transport list will be re-imported into PFM, post refresh.

6. Copy initPRM files from PRMCopy the following files from PRM E:\oracle\ora92\database directory toPFM(bptuldbb04) E:\oracle\ora92\database,

initPRM.utl

initPRM.dba

initPRM.ora

initPRM.sap

initPRM.bki

7. Copy backup and archive logs files from PRMIdentify the required backup log file to restore from PRM

Copy the required .anf file from PRM (F:\oracle\PRM\sapbackup) to PFM

(F:\oracle\PFM\sapbackup)

Copy the backPRM.log from PRM (F:\oracle\PRM\sapbackup) to PFM

(F:\oracle\PFM\sapbackup)

Copy the archPRM.log from PRM (F:\oracle\PRM\saparch) to PFM

(F:\oracle\PFM\saparch)

8. System refresh for 1st time, create OracleServicePRMOradim new sid PRM

9. System refresh for 1st time, Create the following OS level groups on NTORA_PRM_DBA (Add pfmadm, sapservicePFM, bp1\sapservicePFM users)

ORA_PRM_OPER (Add pfmadm, sapservicePFM, bp1\sapservicePFM users)

Create Snap-Shots of SM59 R/3 connections and TCP/IP connections, once system

restored to recreate them.

Create Snap-Shots of WE20 and WE21 information (ALE), once system restored to

recreate them.

Begin Refresh of PFM10. Stop SAP (CI & APP)Use SAP Management console to stop SAP in CI & APP servers

11. Shutdown OracleUse SAPDBA to shutdown Oracle

12. Stop Oracle ServicesStop the following Oracle Services,

OracleOraHome92Agent

OracleOraHome92TNSListener

OracleServicePFM

13. Stop SAP ServicesStop the following SAP Services

SAPOSCOL

SAPPFM_10

14. Remove filesRemove all datafiles under I:\, J:\, K:\, and L:\.

Do not remove the sapdata directories

Please remove datafiles from the new driv es

NOTE: if control files are saved under sapdata, do not remove the cntrl

directories, but rename the CNTRL.DBF files

Remove origlog and mirrorlog files

Do not remove origlog* and mirrlog*diretcories

Go to G:\ and H:\ to remove files

15. Rename directories Rename the :\oracle\PFM to :\oracle\PRM

Please do the same for all drives except E:\

16. Set the environment variables for the current session Go to Command Prompt

Set Oracle_SID=PRM

Set SAPDATA_HOME=F:\oracle\PRM

Set DSMI_CONFIG=e:\usr\sap\PFM\SYS\exe\run\dsm_opt\tsmsrv3.opt

Set SAPBACKUP=F:\oracle\PRM\sapbackup

Set SAPARCH=F:\oracle\PRM\saparch

Set SAPCHECK=F:\oracle\PRM\sapcheck

Note:- Do not close the command prompt session

17. Regenerate BKI file Use the same command prompt session to execute the following commands,

backint p e:\oracle\ora92\database\initPRM.utl f password

Note: - Please get the password from basis pool members

18. Restore the database Use the same command prompt session to execute the following commands

brrestore -b -d util_file -r e:\oracle\ora92\database\initPRM.utl -m full -l E

Verify the restore completed successfully

19. Restore the archive logs Review the copied archive log (Step 2.1) to obtain the range of logs to restore

Use the same command prompt session to execute the following commands

brrestore -a - -c -d util_file -r

e:\oracle\ora92\database\initPRM.utl

20. Start Oracle Service for PRMStart oracle service OracleServicePRM using computer management

21. Execute Point in Time recovery Use the same command prompt session to execute the following commands

sqlplus /nolog

SQL> connect / as sysdba

SQL> startup mount

SQL> recover database using backup controlfile until time '2004-03-19:18:00:00'

(CHANGE DATE & TIME ACCORDINGLY)

ORA-00279: change 76403165 generated at 03/09/2004 19:56:02 needed for thread

ORA-00289: suggestion: /oracle/PRM/oraarch/PRMarch1_5435.dbf

ORA-00280: change 76403165 for thread 1 is in sequence #5435

Specify log: {=suggested | filename | AUTO | CANCEL}

AUTO

Verify recovery finished successfully

22. Create trace file SQL> alter database open resetlogs;

Verify database opened successfully

Please check the oracle alert log for more info.

SQL> alter system switch logfile; [execute 10 times ]

SQL> Alter database backup controlfile to trace resetlogs;

SQL> shutdown

Close the command prompt session.

23. Adjust the initPFM.ora file Compare the initPRM.ora with initPFM.ora and make changes accordingly.

NOTE: careful adjusting all parameters (memory is not the same for source andtarget servers)

24. Edit the trace file to create control.sql Copy the trace file from usertrace directory to e:\rename

Rename the old control.sql from e:\oracle

Rename the new trace file to control.sql

Edit the control.sql

Remove all the lines before 'Create control file' line

Change 'REUSE' to 'SET'

Replace all occurrences of 'PRM' with 'PFM'

Remove the line 'alter database open'

Remove the line 'RECOVER DATABASE USING BACKUP CONTROLFILE'

Save the control.sql

25. Stop Oracle Service for PRM Stop oracle service OracleServicePRM using computer management

Change the startup type for service OracleServicePRM to Disabled

26. Rename Directories Rename :\oracle\PRM to :\oracle\PFM

Perform the above steps for all drives except E:\

27. Start Oracle Service for PFM Start the following oracle services,

OracleServicePFM

OracleTNSlistener

OracleOraHome92Agent

28. Rename and start DB with new name Sqlplus /nolog

SQL>Connect / as sysdba

SQL>Startup nomount

SQL>@e:\rename\control.sql

Make sure there are no errors

SQL>alter database open resetlogs

29. Execute oradbusr.sqlCopy oradbusr.sql from installation directory to e:\rename

For 4.6C systemSqlplus /nolog @e:\rename\ora