11gR2 Restart Database SRVCTL啟動DB報ORA-01031: insufficient privileges
在安裝Oracle 11gR2 Restart Database和使用SRVCTL執行啟動Restart Database的時候都有可能出現類似下面的報錯:
[root@rhel1 bin]# ./srvctl start database -d ractest
PRCR-1079 : Failed to start resource ora.ractest.db
ORA-01031: insufficient privileges
ORA-01031: insufficient privileges
CRS-2674: Start of 'ora.ractest.db' on 'rhel1' failed
原因是由於grid不在OSDBA組。將grid新增到OSDBA組中即可。
檢視OSDBA組的系統組名:
[root@rhel1 bin]# su - oracle
[oracle@rhel1 ~]$ $ORACLE_HOME/bin/osdbagrp
dba
檢視grid使用者所在組:
[root@rhel1 bin]# groups grid
grid : oinstall asmadmin asmdba asmoper
為Grid使用者新增OSDBA組dba:
[root@rhel1 bin]# usermod -a -G dba grid
再次檢視grid使用者對應的系統組,包含了dba組:
[root@rhel1 bin]# groups grid
grid : oinstall asmadmin dba asmdba asmoper
再次嘗試使用SRVCTL啟動Database,啟動成功:
[root@rhel1 bin]# ./srvctl start database -d ractest
METALINK文章如下:
PRCR-1079 ORA-01031 CRS-2674 SRVCTL Fails to Start Database in Oracle Restart Job Role Separation Environment [ID 985743.1]
修改時間 23-JAN-2011 型別 PROBLEM 狀態 MODERATED
In this Document
This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review. |
Applies to:
Oracle Server - Enterprise Edition - Version: 11.2.0.1 and later [Release: 11.2 and later ]
Information in this document applies to any platform.
Symptoms
In Oracle Restart (Standalone 11gR2 Grid Infrastructure) environment with Job Role Separation, srvctl fails to start database with error:
srvctl start db -d testdb
PRCR-1079 : Failed to start resource ora.testdb.db
ORA-01031: insufficient privileges
ORA-01031: insufficient privileges
CRS-2674: Start of 'ora.testdb.db' on 'siha1' failed
Cause
Possible causes:
1. Grid Infrastructure owner is not part of OSDBA group for the database thats being start up.
2. Grid Infrastructure owner doesn't have write permission to database dbs ($ORACLE_HOME/dbs) directory.
Solution
1. As per documentation <Oracle Database Administrator's Guide 11g Release 2 (11.2) -> Configuring Oracle Restart -> Adding Components to the Oracle Restart Configuration>, Grid Infrastructure owner must be part of OSDBA group if the database need to be managed by srvctl.
To find out OSDBA group for RDBMS home, execute: $RDBMS_HOME/bin/osdbagrp
To find out whether grid user is already part of OSDBA group, execute: groups
Location for groups command is /usr/bin/groups on Linux, and /bin/groups on AIX, Solaris and hp-ux
2. If Grid Infrastructure owner is already part of OSDBA group and the issue still exist, add group write permission to $RDBMS_HOME/dbsdirectory; for example
cd $RDBMS_HOME
chmod g+w dbs
ls -ld dbs
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23135684/viewspace-689072/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle rac dg庫報錯ORA-01031: insufficient privilegesOracle
- Oracle遠端登入報錯:ora-01031:insufficient privilegesOracle
- ora-01031:insufficient privileges解決方法
- create view receive "ORA-01031: insufficient privileges"View
- Linux oracle ORA-01031: insufficient privilegesLinuxOracle
- ORA-01031: insufficient privileges的解決方法
- sys使用者遠端登入報ORA-01031 insufficient privileges
- SYS使用者登入Oracle報錯ORA-01031: insufficient privilegesOracle
- sqlplus / as sysdba報錯ORA-01031: insufficient privileges的原因分析SQL
- ORA-01031: insufficient privileges錯誤解決方法
- 儲存過程編譯報錯:PL/SQL:ORA-01031:insufficient privileges儲存過程編譯SQL
- [20240826]奇怪ORA-01031 insufficient privileges報錯.txt
- linux as 2.1 ORA-01031: insufficient privileges 解決方法Linux
- 在AIX 平臺下遇到ORA-01031: insufficient privilegesAI
- RMAN system 遠端連線 ORA-01031: insufficient privileges
- sqlplus "/ as sysdba" 連不上,報ora-01031:insufficient privileges解決方法SQL
- SYS遠端連線出錯ORA-01031:Insufficient privileges
- ORA-01031: insufficient privileges重新配置sys登入密碼密碼
- Oracle的SYS使用者登入報許可權不足(ORA-01031: insufficient privileges)Oracle
- SQL> conn sys/sys@vm_sigle as sysdba; 報ORA-01031: insufficient privileges錯誤SQL
- conn / as sysdba 出現ORA-01031: insufficient privileges 解決辦法
- linux環境下sqlplus sys/sys@ORCL as sysdba報錯 ORA-01031: insufficient privilegesLinuxSQL
- ORA-01031: 資料庫恢復時的insufficient privileges錯誤QS資料庫
- sys使用者執行 grant授權提示ORA-01031: insufficient privileges
- oracle 10g linux 遠端登入 ORA-01031: insufficient privilegesOracle 10gLinux
- 使用SYS使用者遠端登陸報許可權不足的解決:ORA-01031: insufficient privileges
- 4.5 通過SRVCTL 呼叫Oracle RestartOracleREST
- Oracle 軟體克隆後sysdba登入提示沒有許可權ora-01031: insufficient privilegesOracle
- db2_privilegesDB2
- 4.5.1.2 srvctl add databaseDatabase
- oracle 11gR2 srvctl 命令啟動資料庫不成功處理總結Oracle資料庫
- ORA-20000: Insufficient privileges to analyze an object in SchemaObject
- Database Administrator Security and Privileges (24)Database
- 建立資料庫時“Insufficient privileges”的解決方法DK資料庫
- 3.1.1.4 使用 SRVCTL 啟動資料庫資料庫
- 【RAC】11gR2 新特性: Rebootless RestartbootREST
- 4.1.4 關於啟動和停止Oracle RestartOracleREST
- ORA-0131:Insufficient privileges.(DEBUG CONNECT SESSION)Session