Professional Documents
Culture Documents
sap d disk t offline m all Generate the control file SQL> alter database backup controlfile to trace; Get the trace file from user trace directory and modify the file as following Rename the file to control.sql. Remove all the content above the line STARTUP NOMOUNT and belowCHARACTER SET URF8; Replace NORESETLOGS with RESETLOGS. Replace ARCHIVELOG with NOARCHIVELOG. Replace S_sid with T_sid. 3) 4) 5) 6) 7) Change the S_sid with T_sid in b***.afd backup log file. Change the S_sid with T_sid in the first file of backup folder and rename to target sid. Restore the database using the command Brrestore u 0b b***.afd -d disk k yes -m all Login to database start the database(startup nomount). Run @contro.sql file. SQL>select status from v$instance; it is in mounted state. SQL>alter database open resetlogs; now it goes to open status. SQL> select username from dba_users; 8) Now copy ORADBUSR.SQL file from installation folder copy to sap backup directory and run. SQL> @ORADBUSR.SQL Enter value for 1: schema owner ID SAPSR3 2: file system NT 3: host name 4: SAP SID Now again check the users SQL>select username from dba_users; Now you can see target system users only. Remove the source system users. 9) Drop user OPS$HOSTNAME\SIDADM cascade. 10) Now provide the permission to the target system users. SQL> grant connect sapdba to OPS$Hostname/SIDADM;SAPSERVICESID; SQL>grant dba to OPS$Hostname/SIDADM;SAPSERVICESID; 11) Now start the SAP system and is working or not.
n. After the run the above command it should give the "Statement Processed) o. alter database open resetlogs p. shutdown q. Start the database and SAP services using startup. 7. After this you have to reconfigure the STMS. 8. All the jobs also you have to reconfigure and reschedule. 9. Reconfigure all the printers. 10. If you want to change the Client number then use the local copy tool and remove the original client after successfully import to new client.