Previous Topic

Next Topic

relocatedb Command—Move a Location to a New Location

The relocatedb command moves the journal, dump, checkpoint, or default work location for a database to another location (when a disk fills or is swapped out, for example).

The relocatedb command can also make a copy of an entire database. Any location in the original database can be moved to a new location in the new database.

The relocatedb command has the following format:

relocatedb dbname[/server_class] -new_ckp_location=locationname |
-new_dump_location=locationname | -new_jnl_location=locationname |
-new_work_location=locationname | -new_database=newdbname
[-location=locationname{, locationname} -new_location=locationname
{, locationname}]

Previous Topic

Next Topic

relocatedb Example: Relocate Checkpoint Files

The following command relocates the checkpoint location for the empdata database to newckp:

relocatedb empdata –new_ckp_location=newckp

This command example does the following:

Previous Topic

Next Topic

relocatedb Example: Relocate Journal Files

The following command relocates the journal location for the empdata database to newjnl:

relocatedb empdata –new_jnl_location=newjnl

This command example does the following:

Previous Topic

Next Topic

relocatedb Example: Relocate Dump Files

The following command relocates the dump location for the empdata database to newdump:

relocatedb empdata –new_dump_location=newdump

This command example does the following:

Previous Topic

Next Topic

relocatedb Example: Relocate the Work Area

The following command relocates the work location for the empdata database to newwork:

relocatedb empdata –new_work_location=newwork

The command above does the following:

Previous Topic

Next Topic

relocatedb Example: Copy Database to a New Database

The following command copies the empdata database to a new database called empdev:

relocatedb empdata –new_database=empdev

This command example does the following:

After the new database is created, you should be able to connect to it and access all data.


© 2007 Ingres Corporation. All rights reserved.