0% found this document useful (0 votes)
197 views9 pages

DB2 Restore

The document provides instructions for migrating a DB2 database from an ECP to an ECD system. It describes running commands to generate script files from the ECP, making changes to parameters in the script files like log paths, permissions, and schema names, and using the scripts to drop and recreate the database on the ECD system.

Uploaded by

deepak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
197 views9 pages

DB2 Restore

The document provides instructions for migrating a DB2 database from an ECP to an ECD system. It describes running commands to generate script files from the ECP, making changes to parameters in the script files like log paths, permissions, and schema names, and using the scripts to drop and recreate the database on the ECD system.

Uploaded by

deepak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Go to ECP system and login with db2ecp and run the below command/script, it will generate a file

Now terminate and deactivate as well the db2 via db2ecd user:-

Than run the below command, it will create two files format in .scr or .brp.

brdb6brt -bm RETRIEVE -ts <time.stamp> -replace ECP=ECD, db2ecp=db2ecd,/db2/ECP=/db2/ECD

We have to change in .scr file (SID_NODE0000.scr)

Changes mostly on the parameter- (newlogpath and from) then save the file. Also give the
permission 777 to (SID_NODE0000.scr) file.
Db2 drop db SID = it will delete all data from SAPDATA* files.

Db2 create db SID = it will create all SAPDATA* files


Then change the schema name in env. Variable or schema table.

You might also like