SYS远程连接出错ORA-01031:Insufficient privileges

SYS远程连接出错ORA-01031:Insufficient privileges.

现象:本地可以正常连接访问,在其它机器上也能通过normal方式正常访问使用,但是不能以sysdba身份

连接访问,连接时报错ORA-01031:Insufficient privileges.

1、检查系统参数:
SQL> show parameter password

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

select * from v$pwfile_users;
SQL>
为空

3
关闭数据库
4
、重建password文件
[oracle@ebs dbs]$ rm orapwhzhao2

[oracle@ebs dbs]$ orapwd file=orapwhzhao2 password=oracle entries=10注意:默认密码文件名为orapw+SID,不要写错了


5

SQL> select * from v$pwfile_users;

USERNAME                       SYSDB SYSOP
------------------------------ ----- -----
SYS                            TRUE TRUE
SYS
正常显示出来。
6
、重新在远程以SYSDBA登录,可正常使用。

 

注意要点:

Create passwordfile 需要重起database 才能生效。

请使用浏览器的分享功能分享到微信等