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