Rename a DB2 database

09 January,2009 by Jack Vamvas

Rename a DB2 database with these instructions.

1.) Create a configuration file, e.g MYCONFIG.CFG:

DB_NAME=OLDDB,NEWDB
DB_PATH=provide the path
INSTANCE=provide the instance
NODENUM=0

2.) Save the configuration file as relocate.cfg
3.) use the following command to make the changes to the database
files:
db2relocatedb -f relocate.cfg

DB2 database rename is straightforward.

 Ref:Jack Vamvas(http://www.dba-db2.com)

 

Author: Jack Vamvas(http://www.dba-db2.com)

Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on Rename a DB2 database

Comments are moderated, and will not appear until the author has approved them.


dba-db2.com | DB2 Performance Tuning | DBA DB2:Everything | FAQ | Contact | Copyright