ora-01031:insufficient privileges解决方法总结

// *Cause: An attempt was made to change the current username or password

//         without the appropriate privilege. This error also occurs if

//         attempting to install a database without the necessary operating

//         system privileges.

//         When Trusted Oracle is configure in DBMS MAC, this error may occur

//         if the user was granted the necessary privilege at a higher label

//         than the current login.

// *Action: Ask the database administrator to perform the operation or grant

//          the required privileges.

//          For Trusted Oracle users getting this error although granted the

//          the appropriate privilege at a higher label, ask the database

//          administrator to regrant the privilege at the appropriate label.

 

我在创建视图的时候报ora-01031

查询到的问题是权限的问题,可是我设置了dba的权限还是报相同的错误;

 

网上查找到包括以下原因:

1、检查sqlnet.ora(WINDOWS下位于%ORACLE_HOME%/NETWORK/ADMIN目录linux下位于$ORACLE_HOME/network/admin/下)是否包含这句:SQLNET.AUTHENTICATION_SERVICES=(NTS),没有的话加上

2、检查登陆windows的用户(administrator或安装oracle时候使用的用户)是不是在包含在ORA_DBA组中,域用户没有连上域服务器时就可能出现这种现象。

3. 要保证 remote_login_passwordfile 参数 = EXCLUSIVE .

 

SQL> show parameter password; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ remote_login_passwordfile string EXCLUSIVE


4. 看看是否需要使用orapassw生成口令文件,在$ORACLE_HOME/dbs下修改密码文件

orapwd file=orapw$ORACLE_SID  password=orcl  entries=5;

 

如果是多个实例的话,要设置set oracle_sid=

 

查看有sysdba的权限

SQL> select * from v$pwfile_users;

 

USERNAME                       SYSDB SYSOP SYSAS                                

------------------------------ ----- ----- -----                                

SYS                            TRUE  TRUE  FALSE 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值