Академический Документы
Профессиональный Документы
Культура Документы
SAP DUMP - Useful Basis Tutorials - SAP Specific Steps for Oracle Backup Restore method with different SID...
SAP Specific Steps for Oracle Backup Restore method with different SID...
Changes to Parameter file "initSAPSID.sap" as user "oraSAPSID":
1) Traverse to path /oracle/SOURCE_SID/102_64/dbs
2) Open initSAPSID.sap file
3) Make sure the following values are set
backup_mode = all
backup_type = offline_force
backup_dev_type = disk
backup_root_dir = /oracle/SOURCE_SID/sapbackup
Backup the control file of the source system using below steps:
The database sholud be in nomount/mount state.
As oraSAPSID user,execute the command:
sqlplus / as sysdba
>startup mount ( if database is down)
>alter database backup controlfile to trace;
>exit
This will create a copy of the control file as a trace file in: /oracle/SOURCE_SID/saptrace/usertrace
Rename this file as CONTROL.SQL for use in Target system.
data:text/html;charset=utf-8,%3Cdiv%20class%3D%22seaocore_gutter_view_title%20sitefaq_view_title%22%20style%3D%22padding%3A%200px%3B%2
1/4
3/8/2015
SAP DUMP - Useful Basis Tutorials - SAP Specific Steps for Oracle Backup Restore method with different SID...
system
the permissions on
2/4
3/8/2015
SAP DUMP - Useful Basis Tutorials - SAP Specific Steps for Oracle Backup Restore method with different SID...
This will create the controlfile in the target system. Database will be in no mount State.
>alter database mount;
>alter database open resetlogs;
>exit
10) Download ORADBUSR sript to the target system and assign appropriate permissions.
11) As user "oraTARGET_SID", execute the following command:
sqlplus / as sysdba
>@/location of ORADBUSR.sql file/ORADBUSR.sql TARGET_SCHEMA UNIX TARGET_SID x
12) If any tablespace related error arises, create the prompted tablespace as user "oraTARGET_SID",
using brtools.
13) Again with user "oraTARGET_SID", execute the following command:
sqlplus / as sysdba
>@/location of ORADBUSR.sql file/ORADBUSR.sql TARGET_SCHEMA UNIX TARGET_SID x
14) After the script has been executed, we can check the users created executing the below query:
select username, account_status from dba_users;
15) To know which user is assigned to which tablespace, execute the below query:
select username, default_tablespacefrom dba_users;
16) To be able to start sap, the ops$TARGET_SIDadm.sapuser table needs to contain the entries
user-id and password of the source database schema owner. Execute the below command to know the
entry details in the table.
select * from ops$TARGET_SIDadm.sapuser;
If no entries are found, we need to pass the values to this table using brtools.
as user "oraTARGET_SID", execute brtools command as below:
Select option 8(Additional Functions)
Select option 4(Change password of database user)
Select option 3(Database ower to changePassword), pass the value of the source system schema
ower and press enter
Enter option c to continue
Enter option c to continue
Enter Password as prompted in the next screen and press enter
Re-enter Password as prompted in the next screen and press enter
Enter option c to continue
Enter option s to stop brtools
Enter option y to continue
Execute the below command to know the entry details in the table.
3/4
3/8/2015
SAP DUMP - Useful Basis Tutorials - SAP Specific Steps for Oracle Backup Restore method with different SID...
17) To check the SAP connectivity with the database, login as TARGET_SIDadm user and execute
R3trans d command. If the return code is 0000, then the database connectivity successful after the
restoration.
18) Start SAP Application Server using command "startsap" with user SIDADM in target system
data:text/html;charset=utf-8,%3Cdiv%20class%3D%22seaocore_gutter_view_title%20sitefaq_view_title%22%20style%3D%22padding%3A%200px%3B%2
4/4