oracle11g insufficient,ORACLE11GORA-01031:insufficientprivileges

本文记录了一位用户在尝试从其他机器复制Oracle 11G目录并以sysdba身份连接数据库时遇到的ORA-01031权限不足的问题。通过检查配置文件发现数据库使用的group是oracle,然后将oracle用户改为属于oracle组,解决了问题。最后成功以sysdba身份连接到数据库。
摘要由CSDN通过智能技术生成

广告一下,我专门给大家翻译外文IT参考资料,想学的,可以关注,也可以关注我个人自己建的博客:http://www.1024sky.cn

ORALCE11G打算手工建库,从其它机器拷整个ORACLE目录过来,使用sqlplus "/ as

sysdba"连DB,报错:ORA-01031: insufficient privileges

-bash-4.1$

sqlplus '/as sysdba'

SQL*Plus:

Release 11.2.0.3.0 Production on Thu Oct 29 15:46:33

2015

Copyright (c)

1982, 2011, Oracle.  All rights

reserved.

ERROR:

ORA-01031:

insufficient privileges

Enter

user-name:

ERROR:

ORA-01017:

invalid username/password; logon denied

Enter

user-name:

ERROR:

ORA-01017:

invalid username/password; logon denied

解决过程:

vi /oracle/product/11.2.0.3/db_1//rdbms/lib/config.c

#define

SS_DBA_GRP "oracle"

#define

SS_OPER_GRP "oracle"

#define

SS_ASM_GRP ""

char

*ss_dba_grp[] = {SS_DBA_GRP, SS_OPER_GRP,

SS_ASM_GRP};

说明数据库使用的group是oracle

修改oracle用户为oracle组,即可:

bash-4.1#

usermod  -g oracle -G dba -u 503 -d /oracle oracle

usermod: group

'oracle' does not exist

-bash-4.1#

groupadd oracle

-bash-4.1#

usermod  -g oracle -G dba -u 503 -d /oracle oracle

十佳经典魔幻片推荐

http://www.dabaiw.cn/movie/28903.html

十佳经典爱情片推

http://www.dabaiw.cn/movie/28901.html

十佳经典武侠片推

http://www.dabaiw.cn/movie/28898.html

十佳经典喜剧片推

http://www.dabaiw.cn/movie/28896.html

十佳经典恐怖片推荐

http://www.dabaiw.cn/movie/28894.html

十佳经典战争片推荐

http://www.dabaiw.cn/movie/28890.html

十佳经典剧情片推荐

http://www.dabaiw.cn/movie/28886.html

十佳经典动画片推荐

http://www.dabaiw.cn/movie/28884.html

影史上震撼人心的百部大片

http://www.dabaiw.cn/movie/27328.html

50部值得一看的欧美经典电影

http://www.dabaiw.cn/movie/27326.html

那些年的香港经典电影TOP47

http://www.dabaiw.cn/movie/26140.html

港台经典电影的古装女神经典片段

http://www.dabaiw.cn/movie/19811.html

100部载入影史的经典非英语电影

http://www.dabaiw.cn/movie/19653.html

中国公认最美丽的电影取景地

http://www.dabaiw.cn/movie/17619.html

-bash-4.1# chown

-R oracle:oracle /oracle

-bash-4.1$ sqlplus '/as sysdba'

SQL*Plus: Release 11.2.0.3.0 Production on Thu Oct 29 15:55:21

2015

Copyright (c) 1982, 2011, Oracle.  All rights

reserved.

Connected to an idle instance.

SQL>

再以sysdba的身份就可以连数据库了

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值