当前两个用户:  bfes  fss
bfes > env | grep ORA
ORACLE_BASE=/home/oracle
ORACLE_SID=efss
ORACLE_DOC=/home/oracle/product/10.2.0/doc
ORAUSER=ops$bfes
ORA_NLS33=/home/oracle/product/10.2.0/ocommon/nls/admin/data
ORACLE_HOME=/home/oracle/product/10.2.0
ORAPWD=bfes/home/fss>env | grep ORA
ORACLE_BASE=/home/oracle
ORACLE_SID=efss
ORACLE_DOC=/home/oracle/product/10.2.0/doc
ORAUSER=ops$bfes
ORA_NLS33=/home/oracle/product/10.2.0/ocommon/nls/admin/data
ORACLE_HOME=/home/oracle/product/10.2.0
ORAPWD=bfes#打开了数据库
bfes>sqlplus /  
SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 5月 28 17:39:20 2008Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining optionsSQL>#却要手工输入用户与ID
/home/fss>sqlplus /  
SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 5月 28 17:39:49 2008Copyright (c) 1982, 2005, Oracle.  All rights reserved.ERROR:
ORA-01017: invalid username/password; logon denied
Enter user-name:#当前情况又能连接上数据库
/home/fss>sqlplus $ORAUSER/$ORAPWD as sysdba  SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 5月 28 17:40:32 2008Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining optionsSQL>用户组:
fss:!:209:206::/home/fss:/usr/bin/ksh
bfes:!:210:206::/si/usr/bfes:/usr/bin/ksh

解决方案 »

  1.   

    对unix不是很熟悉
    不过可以给你讲讲oracle的认证方式
    oracle的认证主要有三个东西控制着
    1、sqlnet.ora里面:
    SQLNET.AUTHENTICATION_SERVICES = (NTS/NONE/BOTH)--这里有三个选项,依我判断你的环境中应该是both或者nts
    2、pfile下的
    remote_login_passwordfile=EXCLUSIVE/NONE/SHARED  --这里也有三个选项,我觉得你可能选的是EXCLUSIVE
    3、密码文件,基本上是密码认证使用到的恭喜。
    如果你选择的是 NTS+EXCLUSIVE(或者SHARED)的话,你就即可以进行密码认证,也可以进行OS认证。
    同时,OS认证时你的第二个用户没有访问Oracle地权限,所有只好使用密码认证这一条路了。
      

  2.   

    可能是你开始登录的,不是这这fss吧 
      

  3.   

    登陆用户应该属于 DBA 组才行。