Professional Documents
Culture Documents
Operating System : SUSE Linux Enterprise Server for SAP Applications 12 SP3
DB SCHEMA : SAPTST [This will change to SAPPRD after system copy using direct restore method]
SAP CONNECT USER : SAPTST [During system copy you can use SAPTST or SAPPRD this is optional]
Pre Steps:
Note:- In our case I am going to follow backup and restore method since no downtime required,
henceforth this guide is prepared for a Homogeneous System Copy using Online/Offline Database
Backup
Start SWPM
./sapinst SAPINST_REMOTE_ACCESS_USER=oaknetadmin
[We do not have direct root access here, We have to use command as above to use remote user as
oaknetadmin]
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
https://172.20.13.5:4237/sapinst/docs/index.html
No FQDN untick it
Enter Master Password jk366SAP [ This is the master password for all users ]
Don’t forgot to mention the source ABAP database schema [SAPPRD], Since the DB schema will
change to SAPPRD after the DB2 restore.
And ABAP Connect user is optional either you can use source [SAPPRD] or target [SAPQLT]
Note: Do not use SAPQLT as Target ABAP schema when you are using direct restore method.
/db2/db2qlt/db2_software for software installation location. [DB2 Base & DB2 Home]
Allocate the RAM as per the system configuration [ 1/3 of Physical Memory ]
Ignore this we are not using ant DB2 native encryption and SSL.
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
IBM DB2 Pure scale is additional future and separate installation. We are not using this here.
Not Required
DDIC Password
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
Continue
Continue
Do not close the window, And now go to putty console in Target server.
Place the Target Database backup in any location where space allocated for media and Backup
Export the Db configuration files for verification purpose post refresh activity.
Db2 restore db PRD taken at 20200507230059 into QLT redirect generate script qlt.clp
Db2 manage should up and running so system has given error, start the db2 using command
db2start
Issue the below command again for .clp file creation, This files read the data from backup and get
the data into clp file. [ Backup related information, sapdata directories, log path ]
Db2 restore db PRD taken at 20200507230059 into QLT redirect generate script qlt.clp
Create new directory rollforwardlogs in any location to store the logs while restore.
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
Original output
db2 "rollforward db QLT to end of logs and stop overflow log path(/rollforwardlogs) noretrieve"
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
Click on ok.
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
Error:
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
Solution :
Continue
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
Error:
Solution:
Error:
Solution
Error:
Solution
R3trans -d error.
Solution
db2 -x "select 'REBIND PACKAGE ' || rtrim(pkgschema) || '.' || rtrim(pkgname) || ';' as command
from syscat.packages" > rebind.sql
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
Enable SAP*
su - db2tst
db2tst> db2
Post Steps:
Continue
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
Run BTCTRNS1
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
DB02 Error
Password Jk366SAP
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
Performance checks.
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
SCC4
Change it to as QLT
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
Keep monitor
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
Switch to db2qlt
db2licm -a db2aese_c.lic
OAKNET SYSTEM COPY HOMOGENEOUS DIRECT RESTORE METHOD DB2
db2licm -l