转载:http://blog.itpub.net/25264937/viewspace-689344
1、概述
2、实例
OS:redhat AS 4.8
DB:Oracle 10g
sql> show parameters os_authent
NAME TYPE VALUE
-------------------------------- ----------- -------------------
os_authent_prefix string ops$
remote_os_authent boolean FALSE
sql> create user ops$oracle identified externally;
User created.
sql> grant connect to ops$oracle;
Grant succeeded.
sql>
exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning,OLAP and Data Mining options
当前用户为oracle。
[oracle@oraserver ~]$ id
uid=1001(oracle) gid=1002(oinstall) groups=1001(dba),1002(oinstall)
使用oracle用户登陆(外部验证)
[oracle@oraserver ~]$
sqlplus /
sql*Plus: Release 10.2.0.1.0 - Production on Mon Mar 14 10:17:33 2011
Copyright (c) 1982,2005,Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning,OLAP and Data Mining options
查看当前用户
sql>
show user;
USER is "OPS$ORACLE"
sql>