1. 程式人生 > >sqlplus/rman登錄報權限錯誤ORA-01031/ORA-04005/0RA-00554

sqlplus/rman登錄報權限錯誤ORA-01031/ORA-04005/0RA-00554

base oracl right mod 11.2.0.4 4.0 and uid 推斷

安裝Weblogic誤操作對Oracle用戶屬組進行了修改

--本地sqlplus登錄報錯權限問題???

[oracle@enmo admin]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Sat May 5 01:28:39 2018

Copyright (c) 1982, 2013, Oracle. All rights reserved.

ERROR:
ORA-01031: insufficient privileges

--本地RMAN 登錄還是報權限問題

[oracle@enmo admin]$ rman target /

Recovery Manager: Release 11.2.0.4.0 - Production on Sat May 5 01:10:30 2018

Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-01031: insufficient privileges

--故障緣由推斷: Oracle無法登錄 使用軟件,本地登錄排除口令文件文件,是否是操作系統環境變量、權限問題,環境變量有問題,報錯不同,此現象是無法運行Oracle的程序軟件SQLPLUS/ RMAN ,因此查詢操作系統用戶
[oracle@enmo admin]$ id oracle
uid=502(oracle) gid=500(oinstall) groups=500(oinstall),1100(weblogic)

--發現Oracle屬主存在異常

[root@enmo ~]# gpasswd -d oracle weblogic
Removing user oracle from group weblogic
[root@enmo ~]# id oracle
uid=502(oracle) gid=500(oinstall) groups=500(oinstall)
[root@enmo ~]# usermod -d /home/oracle/ -G dba oracle
[root@enmo ~]# id oracle
uid=502(oracle) gid=500(oinstall) groups=500(oinstall),502(dba)

sqlplus/rman登錄報權限錯誤ORA-01031/ORA-04005/0RA-00554