实验一:os_authent_prefix=ops$,remote_os_authent=false时,外部验证和口令验证都能在服务器上通过sqlplus /登陆成功。系统会使用ops$操作系统用户名来登陆
SQL> show parameter auth
NAME TYPE VALUE
------------------------------------ ----------- -----------
os_authent_prefix string ops$
remote_os_authent boolean FALSE
SQL> create user ops$user1 identified externally;
User created.
SQL> create user ops$user2 identified by pass;
User created.
SQL> grant connect to ops$user2;
Grant succeeded.
SQL> grant connect to ops$user1;
Grant succeeded.
实验二:
SQL> show parameter auth
NAME TYPE VALUE
------------------------------------ ----------- ---------------
os_authent_prefix string
remote_os_authent boolean FALSE
SQL> create user user1 identified externally;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
os_authent_prefix string
remote_os_authent boolean TRUE