PPR-QR5674532
Transcript of PPR-QR5674532
CROSSROAD PRE-PRODUCTION SYSTEM REFRESH
1. Take the screenshots as per the check list (CRF-CSC-IT-001) for the system going to be refreshed
(RTU/ATU).
2. Send email to DL-EMEA ENTERPRISE BACKUP T1 team to place media files in media server
(ITSBUS20).
3. Take RFC tables export from brtools as mentioned in file (script for RFC table exports).
Export
client = 103
file = '/sapsw/xroads/Pre_QA_Refresh_11262012/RTU/RTU_exp_rfc.dat'
select * from rfcdes
select * from rfcattrib
select * from rfccat
select * from rfccheck
select * from rfcgo
select * from rfcsysacl
select * from rfctrust
select * from rzllitab
select * from rfcdoc
select * from rfcsysacl
select * from rfcdessecu
i) create file in shared location (eg: /sapsw/xroads/Pre_QA_Refresh_11262012/RTU)
vi RTU_RFCtable_Export.sql
ii) add above script in the file RTU_RFCtable_Export.sql
iii) rename file RTU_RFCtable_Import.sql to RTU_RFCtable_Import.ctl
iv) run below command for export
R3trans -w TU_RfcExport.log ATU_RFCtable_Export.ctl
4. Take partner profiles export in transport of copies (object names are given below).
R3TR TABU EDPP1 R3TR TABU EDP12
R3TR TABU EDP13
R3TR TABU EDP21
R3TR TABU EDIPHONE
5. Take the backup file (eg: bejykpxg.anf ) which we are going to restore and copy in shared
location. Backup<SID>.log file also should copy in shared location.
6. To identify media names go to shared location which we place .anf file and enter below
command.
cat beivogpw.anf |grep "Media ID" |awk '{print $8}'> filelist1
7. If repeated media named appeared then enter below command and follow point 2.
sort -u filelist1
8. If we want to sync backup for RTU and ATU please follow the point 9.
9. Check APU and RPU backup finished time and take two before time finished backup online redo
logs file and count up to same time reached for both APU and RPU for online redo log file and
move to shared location.
10. Take .utl file from itsus004 (/oracle/RPU/112_64/dbs) and copy in shared location.
11. Give 755 file permissions for the all files copied in shared location.
12. Rename all files from RPU to RTU (eg: mv backupRPU/log backupRTU.log) including archive file
after unzip.
13. Move .anf and backupRTU.log files from shared location to /oracle/RTU/sapbackup location
rename existing one.
14. Move .utl file from share location to /oracle/RTU/112_64/dbs location with rename existing
one.
15. Move unzipped archive files to /oracle/RTU/oraarch location.
16. Compare all datafiles free and used size for RPU and RTU. Size should be enough for backup in
RTU datafiles location with RPU.
17. Create control file in RPU (sqlplus “/as sysdba) with below command.
ALTER DATABASE BACKUP CONTROLFILE TO TRACE AS '/oracle/APU/sapbackup/APUCNTRL.lst';
18. Copy the control file to shared location.
19. Got to /oracle/RTU/sapdata1 and delete all data files. Repeat same to all sapdata file locations.
20. Enter the command
nohup brrestore -c force -b <backup.anf> -m full &
21. Check backup is running with below command in /oracle/RTU/sapbackup location.
tail –fn <file.rsb>
22. After restore complete unzip all archive files in shared folder with command.
gzip -d <arch file>.gz
23. Rename all archive files with RPU to RTU and copy to location /oracle/RTU/oraarch
24. Check RPUCNTRL.lst file in shared location and delete all line above STARTUP and below lines of
CHARACTER SET and save.
25. Check for RPUCNTRL.lst file in three location (/oracle/RTU/sapdata1 , /oracle/RTU/origlogA ,
/oracle/RTU/origlogB). If file exists in this location rename them.
26. Rename RPUCNTRL.lst to RPUCNTRL.sql
27. Go to sql command (sqlplu “/as sysdba”) and execute @RPUCNTRL.sql
28. Check database is in mount state if not enter below command.
alter database mount;
29. Enter the below command and hit enter for recovery for online redo log files.
recover database until cancel using backup controlfile;
30. Enter command
alter database open resetlogs;
31. Check database is in open state if yes restore and recovery is finished.
32. Create temp_1 and temp_2 in sapdata1 and sapdata2 (as per previous these files are existed).
33. Got to sqlplus command
34. ALTER TABLESPACE PSAPTEMP ADD TEMPFILE '/oracle/RTU/sapdata1/temp_1/temp.data1' SIZE
16000M REUSE AUTOEXTEND OFF;
35. ALTER TABLESPACE PSAPTEMP ADD TEMPFILE '/oracle/RTU/sapdata2/temp_2/temp.data2' SIZE
32000M REUSE AUTOEXTEND OFF;
36. create user OPS$ORARTU identified externally default tablespace PSAPSR3 temporary
tablespace PSAPTEMP;
37. grant connect,resource,dba,sapdba to OPS$ORARTU;
38. create user OPS$RTUADM identified externally default tablespace PSAPSR3 temporary
tablespace PSAPTEMP;
39. grant connect,resource,dba,sapdba to OPS$RTUADM;
40. CREATE TABLE "OPS$RTUADM".SAPUSER (USERID VARCHAR2(256), PASSWD VARCHAR2(256));
41. INSERT INTO "OPS$RTUADM".SAPUSER VALUES ('SAPSR3', 'password');
42. SELECT OWNER FROM DBA_TABLES WHERE TABLE_NAME = 'SAPUSER';
43. drop user OPS$RPUADM cascade;
44. drop user OPS$ORARPU cascade;
45. create table "OPS$ORARTU".SAPUSER AS SELECT * FROM "OPS$RTUADM".SAPUSER;
46. SELECT OWNER FROM DBA_TABLES WHERE TABLE_NAME = 'SAPUSER';
47. alter user system identified by <password>;
48. Delete sap* in OS level by below command in SQL prompt.
delete sapsr3.usr02 where bname=’SAP*’ and mandt=’100’;
49. Change value to ‘0’ for parameter rdisp/no_automatic_user_sapstar
50. Start SAP and login with sap* and deactivate SCOT and suspend background jobs (btctrns1).
51. Import all RFC with the below command
i)Edit file RTU_RFCtable_Import.ctl in shared location with below lines
import
client = 100
file = '/sapsw/xroads/Pre_QA_Refresh_11262012/RTU/RTU_exp_rfc.dat'
and run command :
$ R3trans -w import.log RTU_RFCtable_Import.ctl
52) go to se06 select database copy and enter perform post installation actions and give SID as RPU.
Press Yes
Press Yes
Press NO
Press Yes
53) go to STMS and add RTU in domain controller ‘RDU’ and save.
54) go to transports routes and press adjust transport routes.
54) delete old license and install RTU license which we can download it from sap service market place.
55) go to SOAMANAGER and change computer name as per previous screenshot.
56) go to SA38 and enter ZCA_FTP_INFO and delete production connection and enter as per previous
screenshot.
57) go to clients 100 and 000 and open both clients for user master import.
Se16 ZCA_FTP_INFO table has to be fixed as pre-screenshot.
58) got to SA38 and execute ZCA_ENH_CTRL and check in Z_MM_IM_SPIDER_COMM and save.
59) enter SICK t-code.
60) got SPAD and delete all production device list.
61) import devices which we save before refresh as per above screenshot.
62) got RZ10 and delete all production profile except DEFAULT.PLF profile.
62) import profile from OS level.
63) got to SA38 and execute RSBTCDEL2 and execute it as background job.
Press Yes.
63) go to SM58 and delete all stuck T-RFC’s.
64) go to SMQ1 and SMQ2 delete all queues.
66) go to STRUSTSSO2 and delete production system if exist and create own certificate by right click on
‘System PSE’ and select create.
67) and press add to certificate list and add to ACL.
67) get the logon certificate from portal and import from ‘000’ client.
68) go to SXMB_ADMIN and In Integration Engine Configuration, check if the ‘Role of Business System’ is
“Application System”.
69) go to RZ04 and create operation modes as per pre-screenshots.
70) go to SOAMANAGER system global settingsAccess information J2EE server and set as per pre-
screenshots.
71) go to SA38 and execute RSADMINA and maintain as per pre-screenshot.
72) go to SECSTORE and delete all red marked entries.
73) Go to BDLS and convert all production logical systems to pre-production. Run it as a background job.
74) go to SMQS and SMQR delete all production queues and maintain as per pre-screenshot.
74) go to SA38 and execute RSLOGSYSDEST and fix it as per pre-screenshot.
74) go to SLDAPICUST and fix it as per re-screenshot.
75) go to RZ70 and fix it as per pre-screenshot.
76) check SLDCHECK T-code whether SLD is working.
77) go to SPRO and SWF5 T-codes and fix it as per pre-screenshots.
78) go to SA38 and execute RCIFVARIANTCHANGE with Report name as RIMODGEN and Source system
(SCPCLNT100) and Target systems (SCQCLNT100), run this report even for RIMODACT and RIMODAC2
reports).
79) finally perform user master client copy.