How to restore a sybase database with only intact data files

Source: Internet
Author: User
Tags sybase sybase database

-What should I do if a database server cannot be started and cannot log on to the database even though the service is enabled. There is a method as a last resort:

⊙ Uninstall and reinstall the database. before reinstalling the database, you need to back up the user database data file and stop the service!

⊙ Start the database server as a single user. Change the run _ (Service name). BAT file under install under the Sybase installation directory, and add the-M parameter after it:

E: \ Sybase \ bin \ sqlsrvr.exe-de: \ Sybase \ data \ master. dat-sxxj-ee: \ Sybase \ install \ errorlog-ie: \ Sybase \ ini-Me: \ Sybase-m

Then execute the batch processing file and start the server

⊙ Run iSQL-USA-p-dmaster: execute the following command:

Recovery Device:

Disk reinit name = 'original device name', physname = 'physical path (can be different from the original ', vdevno = Virtual Device number (as long as it is unique ), size = (in 2 K)

Go

Automatically bind the device to the database:

Disk refit

Go

After completing the preceding steps, you may report some errors and terminate the database server process.

You can still start the database server as a single user. At this time, the user database is recovered.

⊙ Restart the database normally. Remove the startup parameter-M.

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.