Modify the default authentication method of Oracle

Source: Internet
Author: User

Modify the default authentication method of Oracle
Oracle's default authentication method is OS authentication. Therefore, if you log on to the server with an oracle account, you do not need to log on to the database. you can log on to the database with the DBA permission without entering the username and password on the server side: show user can also see that no matter what logon is used, it can be passed, and it is a SYS user. Solution: Modify sqlnet in the following directory. SQLNET. you can use the AUTHENTICATION_SERVICES parameter. ODS authentication will not be performed the next time you log on. In windows, OS authentication can be used only if you set this parameter to "CNT" or "ALL" or "commented out, if it is set to NONE or any other value, you cannot use OS authentication in linux. If it is set to ALL or commented out, you can use OS authentication. If it is set to any other value, you cannot use OS authentication. Now let's take a look at the effect: If you need to grant permissions to other linux users to run oracle, you can do this: add the user to the oinstall user group: of course, you also need to configure the user's environment variable :#. bash_profile # Get the aliases and functionsif [-f ~ /. Bashrc]; then .~ /. Bashrcfi # User specific environment and startup programs # PATH = $ PATH: $ HOME/binexport ORACLE_BASE =/home/oracle/oracleexport ORACLE_HOME =/home/oracle/product/10.2.0/db_1export ORACLE_SID = orclsidexport PATH = $ ORACLE_HOME/bin: $ PATHexport TNS_ADMIN = $ ORACLE_HOME/network/adminexport NLS_LANG = AMERICAN_AMERICA.ZHS16GBKexport LANG = AMERICAN_AMERICAN.ZHS16GBK # export PATH

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.