SYBASE ASA Database Recovery method

Source: Internet
Author: User
Tags sybase backup

SYBASE ASA Database when you encounter an abnormal shutdown, it is easy to have exceptions, such as: Table or index error, the trouble is to use drop table T_name Delete tables when the database will down. Here are my two common ways to recover:

Restore with BACKUP database:

1. Start with BACKUP database

2, translation error database log (may have more than one file)

3, in order to perform the translation of the log file, read file

Second, no backup database

Phenomenon:
SET ROWCOUNT 10

SELECT * FROM table_name data down

Use Dbvalid to check this table times wrong

Check the processing method:
1, delete table_name publish, view
2, Dbunload-c "Uid=dba;pwd=sql;dbf=d:\sybdata\dbname.db"-e table_name-an d:\db_new\dbname.db "
3. Start with new database
4. Rebuild table_name table (no data)

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.