PPR-QR5674532

82
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

Transcript of PPR-QR5674532

Page 1: 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

Page 2: PPR-QR5674532

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

Page 3: PPR-QR5674532

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.

Page 4: PPR-QR5674532

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).

Page 5: PPR-QR5674532

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

Page 6: PPR-QR5674532
Page 7: PPR-QR5674532
Page 8: PPR-QR5674532
Page 9: PPR-QR5674532
Page 10: PPR-QR5674532
Page 11: PPR-QR5674532
Page 12: PPR-QR5674532
Page 13: PPR-QR5674532
Page 14: PPR-QR5674532
Page 15: PPR-QR5674532
Page 16: PPR-QR5674532
Page 17: PPR-QR5674532
Page 18: PPR-QR5674532
Page 19: PPR-QR5674532
Page 20: PPR-QR5674532
Page 21: PPR-QR5674532
Page 22: PPR-QR5674532
Page 23: PPR-QR5674532
Page 24: PPR-QR5674532
Page 25: PPR-QR5674532
Page 26: PPR-QR5674532
Page 27: PPR-QR5674532
Page 28: PPR-QR5674532
Page 29: PPR-QR5674532
Page 30: PPR-QR5674532
Page 31: PPR-QR5674532
Page 32: PPR-QR5674532
Page 33: PPR-QR5674532
Page 34: PPR-QR5674532
Page 35: PPR-QR5674532
Page 36: PPR-QR5674532
Page 37: PPR-QR5674532
Page 38: PPR-QR5674532
Page 39: PPR-QR5674532
Page 40: PPR-QR5674532
Page 41: PPR-QR5674532
Page 42: PPR-QR5674532

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

Page 43: PPR-QR5674532
Page 44: PPR-QR5674532

52) go to se06 select database copy and enter perform post installation actions and give SID as RPU.

Press Yes

Page 45: PPR-QR5674532

Press Yes

Page 46: PPR-QR5674532

Press NO

Page 47: PPR-QR5674532

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.

Page 48: PPR-QR5674532

54) delete old license and install RTU license which we can download it from sap service market place.

Page 49: PPR-QR5674532
Page 50: PPR-QR5674532

55) go to SOAMANAGER and change computer name as per previous screenshot.

Page 51: PPR-QR5674532

56) go to SA38 and enter ZCA_FTP_INFO and delete production connection and enter as per previous

screenshot.

Page 52: PPR-QR5674532

57) go to clients 100 and 000 and open both clients for user master import.

Page 53: PPR-QR5674532

Se16 ZCA_FTP_INFO table has to be fixed as pre-screenshot.

Page 54: PPR-QR5674532

58) got to SA38 and execute ZCA_ENH_CTRL and check in Z_MM_IM_SPIDER_COMM and save.

Page 55: PPR-QR5674532

59) enter SICK t-code.

60) got SPAD and delete all production device list.

Page 56: PPR-QR5674532
Page 57: PPR-QR5674532

61) import devices which we save before refresh as per above screenshot.

Page 58: PPR-QR5674532
Page 59: PPR-QR5674532

62) got RZ10 and delete all production profile except DEFAULT.PLF profile.

Page 60: PPR-QR5674532
Page 61: PPR-QR5674532
Page 62: PPR-QR5674532

62) import profile from OS level.

Page 63: PPR-QR5674532
Page 64: PPR-QR5674532

63) got to SA38 and execute RSBTCDEL2 and execute it as background job.

Press Yes.

Page 65: PPR-QR5674532

63) go to SM58 and delete all stuck T-RFC’s.

Page 66: PPR-QR5674532

64) go to SMQ1 and SMQ2 delete all queues.

Page 67: PPR-QR5674532

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.

Page 68: PPR-QR5674532

67) get the logon certificate from portal and import from ‘000’ client.

Page 69: PPR-QR5674532
Page 70: PPR-QR5674532

68) go to SXMB_ADMIN and In Integration Engine Configuration, check if the ‘Role of Business System’ is

“Application System”.

Page 71: PPR-QR5674532

69) go to RZ04 and create operation modes as per pre-screenshots.

Page 72: PPR-QR5674532

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.

Page 73: PPR-QR5674532

72) go to SECSTORE and delete all red marked entries.

Page 74: PPR-QR5674532

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.

Page 75: PPR-QR5674532

74) go to SA38 and execute RSLOGSYSDEST and fix it as per pre-screenshot.

Page 76: PPR-QR5674532

74) go to SLDAPICUST and fix it as per re-screenshot.

75) go to RZ70 and fix it as per pre-screenshot.

Page 77: PPR-QR5674532

76) check SLDCHECK T-code whether SLD is working.

Page 78: PPR-QR5674532

77) go to SPRO and SWF5 T-codes and fix it as per pre-screenshots.

Page 79: PPR-QR5674532

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).

Page 80: PPR-QR5674532
Page 81: PPR-QR5674532

79) finally perform user master client copy.

Page 82: PPR-QR5674532