09 August,2011 by Tom Collins
Use the uncatalog \ catalog of a database to rename a database. An alternative to the db2relocatedb method.
If this is an option,uncatalog the db and then catalog it with a
new alias:
$ db2 create db mydb $ db2 uncatalog db mydb $ db2 catalog db mydb as a_new_name
The database name name remains the same . The name used with the CONNECT statement changes. The application can use the new alias to connect.
This is only a preview. Your comment has not yet been posted.
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.
Posted by: |