Retrieve the lost SA password in Sybase

Source: Internet
Author: User

Retrieve the lost SA password in Sybase
1. Start the Server File In the install subdirectory of the Sybase directory.
Run_server (here the server represents your server name, for example, here I am run_fenglb) Name, edit this file,
Add the parameter-PSA after "<Sybase directory>/data/master. dat-sfenglb,
Save the file.

2. If the server has been started, stop it first.

3. Start a DOS window, go to the install directory above, set the screen buffer size of the DOS window attribute to 9999, and execute Step 1 batch file to start the server, after the startup, copy all the content in the DOS window to the notebook and search for the string "New SSO password for SA:", followed by the new SA password.


4. Switch to SQL advangtage and log on with the SA account. The password is the obtained password.

5. After Entering the server, run sp_password to modify the SA password: sp_password 'old password', 'new password', and 'username'
The number of digits of the new password must be greater than 6. Otherwise, the password cannot be changed.

6. Go back to step 1, remove the added option-PSA, save and exit.

This article is from:Feng Libin's blog

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.