ORA-01031: insufficient privileges 错误解决
2011-02-18 20:55
197 查看
今天用em的方式远程登入Linux AS3 上的Oracle 10G,始终无法用sys以sysdba,system以sysoper的身份登入,只能以normal的身份登入。
直接telnet到主机上检查,发现也无法以sysdba的身份登入。
[oracle@guohuias3 dbs]$ sqlplus sys/kelantas@orcl as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Feb 18 20:40:24 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-01031: insufficient privileges
Enter user-name:
以internal的方式登入
[oracle@guohuias3 oracle]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Feb 18 20:13:41 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect /as sysdba
Connected.
SQL> show parameter password;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
remote_login_passwordfile string EXCLUSIVE
SQL> grant sysdba to sys;
grant sysdba to sys
*
ERROR at line 1:
ORA-01994: GRANT failed: password file missing or disabled
SQL> select * from v$pwfile_users;
no rows selected
发现没有password文件;
检查password文件是否正确
[oracle@guohuias3 dbs]$ cd $ORACLE_HOME/dbs
[oracle@guohuias3 dbs]$ ls -l orapw*
-rw-r----- 1 oracle oinstall 5120 Jul 9 2010 orapwAUXY.pwd
-rw-r----- 1 oracle oinstall 2560 Feb 18 20:26 orapworcl
检查当前 $ORACLE_SID=ORCL
发现password文件的orcl是小写的,把它改正过来
[oracle@guohuias3 dbs]$ mv orapworcl orapwORCL
并再次查询相关视图:
SQL> select * from v$pwfile_users;
USERNAME SYSDB SYSOP
------------------------------ ----- -----
SYS TRUE TRUE
可以看到有对应的password文件了。
现在再次登入
[oracle@guohuias3 dbs]$ sqlplus sys/kelantas@orcl as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Feb 18 20:51:05 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>
问题解决了。
直接telnet到主机上检查,发现也无法以sysdba的身份登入。
[oracle@guohuias3 dbs]$ sqlplus sys/kelantas@orcl as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Feb 18 20:40:24 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-01031: insufficient privileges
Enter user-name:
以internal的方式登入
[oracle@guohuias3 oracle]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Feb 18 20:13:41 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect /as sysdba
Connected.
SQL> show parameter password;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
remote_login_passwordfile string EXCLUSIVE
SQL> grant sysdba to sys;
grant sysdba to sys
*
ERROR at line 1:
ORA-01994: GRANT failed: password file missing or disabled
SQL> select * from v$pwfile_users;
no rows selected
发现没有password文件;
检查password文件是否正确
[oracle@guohuias3 dbs]$ cd $ORACLE_HOME/dbs
[oracle@guohuias3 dbs]$ ls -l orapw*
-rw-r----- 1 oracle oinstall 5120 Jul 9 2010 orapwAUXY.pwd
-rw-r----- 1 oracle oinstall 2560 Feb 18 20:26 orapworcl
检查当前 $ORACLE_SID=ORCL
发现password文件的orcl是小写的,把它改正过来
[oracle@guohuias3 dbs]$ mv orapworcl orapwORCL
并再次查询相关视图:
SQL> select * from v$pwfile_users;
USERNAME SYSDB SYSOP
------------------------------ ----- -----
SYS TRUE TRUE
可以看到有对应的password文件了。
现在再次登入
[oracle@guohuias3 dbs]$ sqlplus sys/kelantas@orcl as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Feb 18 20:51:05 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>
问题解决了。
相关文章推荐
- Windows平台下登陆Oracle出现ORA-01031错误解决办法
- 解决SYS本地登录或远程登录引起ORA-01031错误方法
- sys用户远程登录ora-01031错误的解决
- ORA-01031 权限不足错误的解决
- ORA-01031: insufficient privileges错误解决方法之一
- 解决ORA-01031错误
- ORA-01031: insufficient privileges 错误解决
- oracle异常:ORA-27101: shared memory realm does not exist ;ORA-03113: 通信通道的文件结尾(错误解决)
- ORA-00911 无效字符错误解决方法
- 10gR1中ora-00201,ora-01103错误的解决办法
- navicat连接oracle的错误:ora-12737:instant client light :unsupport server charater set ZHS16GBK解决办法。(oracle服务端字符集,客户端字符集,dmp备份文件字符集,or
- ORA-06502: PL/SQL: 数字或值错误 : 字符串缓冲区太小解决办法
- Oracle ORA-12541:TNS:no listener错误解决方法
- ORA-01033:ORACLE initialization or shutdown 错误解决方法
- JDBC连接Oracle数据库时出现的ORA-12505错误及解决办法
- oracle连接中出现错误ORA-12541,ORA-12514,ORA-01017的解决方法
- Oracle错误解决:ora-12638:身份证明检索失败
- 错误”ORA-12560: TNS: 协议适配器错误“解决方法
- 一次ora-12560错误的解决过程!
- ORA-12170:TNS:连接超时!错误解决方法