sys用户登录loracle 报错ORA-01031: insufficient privileges

[oracle@orale admin]$ sqlplus sys/oracle@mypl as sysdba

oracle报错:

ORA-01031: insufficient privileges

解决办法

查看是否是密码文件出问题

[oracle@orale admin]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 15 22:32:33 2013
Copyright (c) 1982, 2009, Oracle.  All rights reserved
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> show parameter pass

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
remote_login_passwordfile            string      EXCLUSIVE

SQL> select * from v$pwfile_users;

no rows selected


这里显示果然是密码文件的问题

[oracle@orale dbs]$ pwd
/u01/app/oracle/product/11.2.0/dbs

[oracle@orale dbs]$ ls
hc_DBUA0.dat  init.ora  peshm_DBUA0_0  spfilemypl.ora
hc_mypl.dat   lkMYPL    peshm_mypl_0   spfileplocp.ora
hc_plocp.dat  orapwm    peshm_plocp_0

-- orapwm和我的实例名不相符 应该是orapwmypl

删掉重建 或者改名就可以啦

[oracle@orale dbs]$  rapwd file=/u01/app/oracle/product/11.2.0/dbs/orapwmypl password=oracle;


[oracle@orale dbs]$ sqlplus sys/oracle@mypl as sysdba


SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 15 22:57:23 2013
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


SQL> show user
USER is "SYS"

$ORACLE_HOME


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值