To rebuild the master database only and leave the master device intact, run buildmaster with the -m option (on UNIX, Novell NetWare) or the /master option (on Digital OpenVMS). Be sure to specify the correct size of the master device, not the master database.
Due to the new 6MB master in Adaptive Server 12.0.x, an additional precaution is necessary for sites running version 12.0.x. If you installed Adaptive Server starting with version 12.0.x, use the 12.0.x buildmaster for this step. Otherwise, if you upgraded from pre-12.0.x Adaptive Server to 12.0.x, use the pre-12.0.x buildmaster. Using the correct version of buildmaster avoids potential problems due to the increased size of master in 12.0.x.
The commands in the following table build a new master database without changing the configuration block or initializing the master device. These commands also set sort order and character set values to their defaults.
Operating System |
Command |
---|---|
UNIX |
buildmaster -ddevice_name -sdevice_size -m |
SCO UNIX |
buildmaster -d/dev/rid001d -s5120 -m |
Digital OpenVMS |
buildmaster /disk=device_name /master /size=device_size |
Novell NetWare |
load bldmastr -ddevice_name -sdevice_size -m |
OS/2, Windows NT |
bldmastr -ddevice_name -sdevice_size -m |
WARNING! Never run the buildmaster utility while Adaptive Server is running!
After rebuilding master, and prior to loading the backup, alter the master database on the master device as necessary to ensure that the lstart, size, and vstart values of master match up with those on the dump. Otherwise, you may see corruption following the load of master.
buildmaster installs default character set and sort order. On HP-UX, buildmaster installs the roman_8 character set and sort order, the default sort order/character set for this platform; srvbuild and srvbuildres are capable of installing additional character sets.
Refer to buildmaster, srvbuild and srvbuildres in your platform’s utility programs manual for additional information.