Database locations can be moved, for example when a disk fills or is swapped out. You can also copy an entire database. Any location in the original database can be moved to a new location in the new database.
To do this in VDBA, use the Duplicate Db menu. For the detailed steps for performing this procedure, see the online help.
You can also accomplish this task using the relocatedb command. For more information see the Command Reference Guide.
The following series of operations copies the empdata database to a new database, empdev:
The Duplicate Database dialog appears.
The following example copies the empdata database to a new database, empdev, and specifies the new locations—empdat1 and empdat2—for the existing ii_database and edata locations:
The locations that are currently being used by the empdata database (ii_database and edata) are displayed in the Initial Location column.
For example, double-click on the ii_database location in the New Location column and select empdat1. Change the edata location to empdat2.
The following example copies the empdata database to a new database, empdev, and swaps the contents of the locations ii_database and loc1 in the new database:
The locations that are currently being used by the empdata database (ii_database and loc1) are displayed in the Initial Location column.
For example, double-click on the ii_database location in the New Location column and select loc1. Change the loc1 location to ii_database.