How to recover the master database

Source: Internet
Author: User
Tags command line

ASE can ' t setup and has no valid dump of Master

1. Edit Run_servername
At the command line last add:-t3607

2. Single user mode start ASE
$CD Install
$startserver-F Run_servername-m

3. BCP out system table
$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-C

4, Shutdownase

5. Create a new master device
$buildmaster-d<path_to_new_master_device>-s<new_master_device_size>
(New_master_device_size in 2K)

6. Edit Run_servername
Assigns the specified master device as the newly created master device and deletes the parameters that were added in step 1th.

7, delete/directory.spec/dbs,/directory.spec/usages files in the master, tempdb, model content.

8. Single User mode start ASE
$CD Install
$startserver-F Run_servername-m

9. bcp in system table
$ 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-c

10, restart ASE

11. Execute Installmaster Script
$isql-usa-p < $SYBASE/scripts/installmaster

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.