Rename a DB2 database

09 January,2009 by Tom Collins

Rename a DB2 database with these instructions.

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

DB_PATH=provide the path
INSTANCE=provide the instance

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

DB2 database rename is straightforward.

 Ref:Jack Vamvas(


Author: Rambler(


Verify your Comment

Previewing your Comment

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

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.


Post a comment on Rename a DB2 database

Comments are moderated, and will not appear until the author has approved them. | DB2 Performance Tuning | DBA DB2:Everything | FAQ | Contact | Copyright