Oracle OS authentication and password file authentication methods

Source: Internet
Author: User

OS authentication

1. In Sqlnet.ora (located in the $oracle_home/network/admin directory) file, use VI Edit to comment out the #sqlnet. Authentication_services = (NONE) the row.

2. Check whether the current OS user belongs to the DBA group.

3. Execute the sqlplus/as SYSDBA login database.

Password file authentication

1. In Sqlnet.ora (located in the $oracle_home/network/admin directory) file, use VI Edit, modify to sqlnet. Authentication_services = (none), if not, add the row.
2. Set the SPFile or Pfile remote_login_passwordfile = EXCLUSIVE, orremote_login_passwordfile = SHARED

ALTER SYSTEM SET Remote_login_passwordfile = EXCLUSIVE SCOPE = SPFILE ;

View the results of the changes: Show parameter remote

NAME                                 TYPE        VALUE-----------------------------------------------------------------------------Remote_ Dependencies_mode             string      timestampremote_listener                      stringremote_login_passwordfile            string      Exclusiveremote_os_authent                    Boolean     falseremote_os_roles                      boolean     falseresult_cache_remote_ Expiration       integer     0
3. Create a password file using Orapwd

orapwd file= ' $ORACLE _home/dbs/orapw$oracle_sid ' password=pwd entries=10 force=y

4. Perform sqlplus sys/pwd as Sysdba local login.

5. Remotely execute sqlplus sys/[email PROTECTED]/ORCL as SYSDBA login.



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.