Use the mount command to attach the database to the destination or secondary Adaptive Server. The mount command decodes the information in the manifest file and makes the set of databases available online. All the required supporting activities are executed, including adding database devices, if necessary, and activating them, creating the catalog entries for the new databases, recovering them, and putting them online.
The mount command limits the number of databases to eight in a single command.
mount allows you to identify more than one database for a move operation. However, if a device is used for more than one database, then all of the databases must be moved in one operation. You specify the set of databases being transported. The devices used by these databases cannot be shared with any extraneous database besides the ones specified in the command.
You can use the mount command in different ways:
When you are ready, use the mount command at the destination Adaptive Server:
mount database all from <manifest_file> [with {verify, listonly}] [using device_specifications]
device_specifications ::= ”physicalname”[=”device_name”][,”physicalname”[‘device_name]]
For example:
1> mount database all from "/data/sybase2/mfile1" using "/data/sybase1/d0.dbs" = "1dev1" 2> go
The databases and their devices appear at the destination Adaptive Server, marked as in-mount. The system is populated with updates to system catalogs and appropriate information on the databases, but the databases themselves are unrecovered. They do, however, survive a system crash.
The destination Adaptive Server then recovers the databases one at a time. The databases are left offline after recovery.
If a recovery fails on a database, it affects only that database. The recovery continues for the other databases.
Use the command database online to bring the databases online.
You need not restart the destination server.
Using the mount command with listonly displays the path names in the manifest file from the source Adaptive Server without mounting the database.
Before mounting the databases, use the listonly parameter to list the device path names at the destination Adaptive Server. Then use the mount command to actually mount the databases.
mount database all from <manifest_file> with listonly
As an example:
1> mount database all from "/data/sybase2/mfile1" with listonly 2> go /data/sybase1/d0.dbs = ldev1
Once you have the path names, you can verify or modify them to meet your criteria at the destination Adaptive Server.