How to System Copy in SAP Business Intelligence (BI SYSTEM) System Landscapes?
The below post explain how the System Copy in SAP Business Intelligence System Landscapes in detail.
- Take the backup f the production system (Source)
- Pre-Steps on the target system (The tables/ Data that need to be restored after a system copy)
- Clean the database (SAPDATA1, SAPDATA2,…………..)
SQL> Select username from DBA_USER;
SQL> Select table_name from dba_tables where owner = ‘OPS$willsys99\NWADM’;
- Restore the database from backup /or physical copy of the datafiles (SAPDATA1, SAPDATA2…………..)
- Generate control file (Alter database backup control file to trace)
A trace file is generated in saptrace directory
Rename the file to control.sql (Change the SID and path name of datafiles accordingly)
- Remove the entries before “startup nomount” and after “Characteristics WE8DEC’
Run Control file on the target system
- Run “Oradbusr.sql” to setup permissions on the database to create OPS$USERS
- Up to 4.6c SAPR3 is the owner of the database.
- up to ECC5.0 SAP<SID> is the owner of the database.
- From Netweaver 04S (WebAS 7.0) on wards SAPSR3 is the owner of the database for ABAP. SAPSR3DB is for the JAVA system.
System Copy (For BI System)
Mechanism:
- User i.e. work process connects to the database as user “OPS$<Hostname>\SIDADM to get SAPSR3’s password.
- SAPSR3 is the schema user whose password stores in table SAPUSER which is owned by OPS$<hostname>\SIDADM
Note: OPS$ mechanism provides a means to connect to the database without any password i.e. user with prefix OPS$. The OS user is created in the database with prefix OPS$(OS Username).
The connection is only possible when …
SQL> select count * from dba_table where owner = ‘SAPSR3’;
SQL> select bname from SAPSR3.USR02;
Remote_OS_Authenticate = True
- The Process gets the password and disconnects the session.
- Process relogins to the database with user SAPSR3 who owns the complete SAP database.
- Now the user can access the complete SAP Schema.
- When the user log in with userid/ password/ mandt/ language it goes to the table USR02 (Internal security of SAP) to validate users.
Note: If any of the 1-5 fails then R3Trans -d results (0012) snote : 400241
SAPSR3 password resides in two tables.
- DBA_USERS
- SAPUSR TABLE
SAP recommends to change the schema user password using BRTOOLS/ SAPDBA.
If it is manual we need to change in two tables.
SQL> Insert into table ‘OPS$<hostname>/SIDADM’.SAPUSER values
SQL> Alter user SAPSR3 identified by “New password”
When you insert password it is alphanumeric(It will be in the encrypted format after restart)
Goto > Tcode SECATT
Test [ ] create
Description [ ]
Component [BC]
[SAVE]
Also See: What is SAP Router? and How to Configure SAP Router?