1、編輯RUN_servername
在命令行最後加入:-T36072、單用戶模式啟動ASE
$cd install
$startserver -f RUN_servername -m3、bcp out系統表
$bcp master..sysdevices out /directory.spec/devs -Usa -P -c
$bcp master..sysdatabases out /directory.spec/dbs -Usa -P -c
$bcp master..sysusages out /directory.spec/usages -Usa -P -c
$bcp master..syslogins out /directory.spec/logins -Usa -P -c
$bcp master..sysconfigures out /directory.spec/configures -Usa -P -c
$bcp master..syscharsets out /directory.spec/charsets -Usa -P -c4、shutdownASE
5、創建新master設備
$buildmaster -d-s
(new_master_device_size以2K為單位)6、編輯RUN_servername
將指定master設備指定為新創建的master設備,並刪除在第1步中增加的參數。7、刪除/directory.spec/dbs、/directory.spec/usages文件中有關master、tempdb、model的內容。
8、單用戶模式啟動ASE
$cd install
$startserver -f RUN_servername -m9、 bcp in系統表
$ bcp master..sysdevices in /directory.spec/devs -Usa -P -b 1 -c
$bcp master..sysdatabases in /directory.spec/dbs -Usa -P -b 1 -c
$bcp master..sysusages in /directory.spec/usages -Usa -P -b 1 -c
$bcp master..syslogins in /directory.spec/logins -Usa -P -b 1 -c
$bcp master..sysconfigures in /directory.spec/configures -Usa -P -b 1 -c
$bcp master..syscharsets in /directory.spec/charsets -Usa -P -b 1 -c10、重啟ASE
11、執行installmaster腳本
$isql -Usa -P < $Sybase/scripts/installmaster