Oracle database retrieve password for DBA account

Source: Internet
Author: User
Tags dba

        This is a sophomore time in the QQ space of an article, I remember that this problem took me the whole day to deal with it, so at that time to feel quite deep, So at that time deliberately recorded the process of this settlement, and today suddenly have the interest to find a few college writing in the space of the article and share with you, in case similar to what happened to me, but also spend a lot of time, the following is the entire contents of the record:

Log in today with user Scott login Oracle, edit belongs to the table, found no corresponding permissions, so want to log into the SYS, DBA role to Grant Scott, but the password can not think of, Oracle database security is very high, think not to come back, Later, after a few hours, finally regained, the method is as follows:
Closes all service items associated with the Oracle database.
Open cmd, enter orapwd file= filename password= user password entried=entries.
The filename should contain the full pathname, and if not specified, ORACLE places it by default under $oracle_home/dbs (Unix) or $oracle_home/database (NT).
User password finally starts with the English letter, does not carry the Chinese character
Ntries represents the maximum number of Superuser users allowed. This is an optional. The first two must be specified. It will generally be set more than the actual need, lest not enough.
After successful, restart Oracle, login sys and password, remember password must add as SYSDBA, I am open pl/sql Command window with conn sys/password as SYSDBA login.
I then successfully logged in and gave the user the maximum DBA authority, so that I could edit the table (in fact, I could grant Scott the appropriate permissions on the table operation, and DBA authority was too large and generally unsafe).



Reprint Please specify-author: java My life (Chen Leixing)     original source: http://blog.csdn.net/chenleixing/article/details/43318911

Related Article

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.