The relocate database command (db2relocatedb) is handy for renaming a database or for relocating database table space containers, database log directories, and storage paths. You must deactivate the target database before running the db2relocatedb command to modify the metadata and associated control files.
The command syntax is as follows:
db2relocatedb -f [ConfigFileName]
Take a look at the following commands from the preceding query:
- ConfigFileName: This command specifies the name of the file containing the configuration information required for database relocation
- db2relocatedb: This command allows you to change various database characteristics, including:
- The database name
- The database path
- The instance associated with the database
- Each node database name in a DPF environment
- The active log path associated with the database (newlogpath...