再談ORA-01031 when sqlplus '/as sysdba'
HB-BSS-TEST>sqlplus '/as sysdba'
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Aug 11 13:20:04 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
ERROR:
ORA-01031: insufficient privileges
================================
The config.o file may not have been properly generated from the config.s (or config.c) file. There may have been OS user or other changes since the initial install, and hence the ORA-1031 error occurred.
The 'OSDBA' and 'OSOPER' groups are chosen at installation time and usually both default to the group 'dba'.
These groups are compiled into the 'oracle' executable and so are the same for all databases running from a given ORACLE_HOME directory.
Solution
Use the "id" command to see what groups the oracle user belongs to, then check the group in the $ORACLE_HOME/rdbms/lib/config.c (config.s on some OS platforms) to see if they match. If not, then the solution is:
The 'dba' group in the file config.s is set to 'xxx' but your primary group is 'yyy', so to solve the problem, please do the following:
- shutdown all databases running from this home
- cd $ORACLE_HOME/rdbms/lib
- vi config.c
Edit the following lines :
from:
#define SS_DBA_GRP "xxx"
#define SS_OPER_GRP "xxx"
to:
#define SS_DBA_GRP "yyy"
#define SS_OPER_GRP "yyy"
- now remove the existing config.o:
mv config.o config.old
- relink oracle to rebuild config.o and store it inside the oracle executable:
make -f ins_rdbms.mk ioracle
You should now be able to login '/ as sysdba' again.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9533994/viewspace-1036636/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- sqlplus / as sysdba登入提示ORA-01031: 許可權不足SQL
- sqlplus / as sysdba報錯ORA-01031: insufficient privileges的原因分析SQL
- sqlplus / as sysdba 提示許可權不足(ORA-01031)問題處理SQL
- sqlplus "/ as sysdba" 連不上,報ora-01031:insufficient privileges解決方法SQL
- sqlplus -prelim/ as sysdba用法SQL
- 隨筆 sqlplus / as sysdbaSQL
- Oracle所有者不是dba 引起sqlplus / as sysdba 登入報錯ORA-01031OracleSQL
- linux環境下sqlplus sys/sys@ORCL as sysdba報錯 ORA-01031: insufficient privilegesLinuxSQL
- sqlplus -prelim / as sysdba強制登入SQL
- Login Oracle Instance Even When sysdba Cannot Do SoOracle
- sqlplus / as sysdba無法登入的奇怪報錯SQL
- sqlplus sys/oracle@orcl as sysdba無法登入SQLOracle
- sqlplus / as sysdba 登入報許可權不足 for windowsSQLWindows
- conn / as sysdba 出現ORA-01031: insufficient privileges 解決辦法
- sqlplus “/ as sysdba”登入的時候提示沒有許可權SQL
- sqlplus / as sysdba 遇到ora-01012 no logged onSQL
- ORA-01031 While Connecting As Sysdba On Windows With A Domain User [ID 1071638.1]WhileWindowsAI
- 【問題處理】“sqlplus / as sysdba”無法登陸——多餘的斜槓!SQL
- SQL> conn sys/sys@vm_sigle as sysdba; 報ORA-01031: insufficient privileges錯誤SQL
- Javascript繼承,再談JavaScript繼承
- 再談特性切換
- 再談時間同步
- 再談JSON/XMLJSONXML
- Oracle 軟體克隆後sysdba登入提示沒有許可權ora-01031: insufficient privilegesOracle
- sys使用者用sysdba許可權連線時報ORA-01031問題解決方法
- 再談 PHP 未來之路PHP
- 再談原始碼閱讀原始碼
- 再談synchronized鎖升級synchronized
- 再談冪等機制
- Python元類再談Python
- 再談RESTAPI最佳實踐RESTAPI
- 再談方法論和模式模式
- 再談開源ERP
- 再談java列舉enumJava
- 再談Cocoon兼談JSP (轉)JS
- Troubleshooting when srvctl can't start RAC instance, but sqlplus can start it [ID 844272.1]SQL
- sysdbaでログイン失敗、ORA-01031 権限が不足が出たの解決方案
- sqlplus / as sysdba報錯ORA-01017: invalid username/password; logon deniedSQLGo