RAC環境單例項啟動資料庫收到ORA-29702報錯

like052629發表於2016-01-11

         在RAC環境中,如果你在沒有啟動節點的叢集服務的情況下單例項啟動資料庫,將收到類似如下的報錯:
[oracle@rhel1 u01]$ sql

SQL*Plus: Release 10.2.0.5.0 - Production on Tue Apr 2 15:00:27 2013

Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.

Connected to an idle instance.

SQL> startup nomount
ORA-29702: error occurred in Cluster Group Service operation

        資料庫例項無法啟動,要求先啟動CGS服務,原因可以大概從下面這篇METALINK文章中知道:

AIX: ORA-29702 When Creating A Single Instance Database In A Clustered Environment [ID 198901.1]
修改時間:2010-10-19型別:PROBLEM狀態:PUBLISHED優先順序:2

Problem Description
-------------------

When starting up a single instance on aan AIX clustered environment, the 
following error is reported:

Error:	ORA-29702
Text:	error occurred in Cluster Group Service operation 
---------------------------------------------------------------------------
Cause:	An unexpected error occurred while performing a CGS operation. 
Action:	Verify that the LMON process is still active. Also, check the Oracle 
	LMON trace files for errors.


Solution Description
--------------------

1) reinstall Oracle software by de-selecting Oracle Parallel Server option.
2) deinstall Oracle Parallel Server option and relink oracle kernel.
   
   It is possible to do it manually by entering the following commands:

   cd ORACLE_HOME/rdbms/lib
   make -f ins_rdbms.mk no_parropt or make -f ins_rdbms.mk ops_off
   make -f ins_rdbms.mk install
 

Explanation
-----------

High Availability Group Services (HAGS) is not configured .
When creating a single instance database in a clustered environment, if you 
have a cluster software installed, then OUI detects it and installs Oracle 
Parallel Server option by default. 


Additional Search Words
-----------------------

ORA-29702, startup, start up, create

        從上面的文章,大概知道是由於Oracle Database軟體中的Oracle Parallel Server option引起的問題,解決辦法是執行相關命令解除安裝Oracle Parallel Server Option,然後重新編譯Oracle核心。
        這裡用一個簡單的辦法,在RAC的節點上新安裝一個單機版的Oracle Database軟體,用它來單例項啟動資料庫,下面是例子:
[root@rhel1 bin]# su - oracle
[oracle@rhel1 ~]$ echo $ORACLE_HOME
/u01/app/oracle/db_2
        這是新安裝的單機版Oracle軟體HOME。
[oracle@rhel1 ~]$ sql

SQL*Plus: Release 10.2.0.5.0 - Production on Tue Apr 2 15:39:37 2013

Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.

Connected to an idle instance.

SQL> startup nomount
ORACLE instance started.

Total System Global Area  432013312 bytes
Fixed Size                  2096824 bytes
Variable Size             125829448 bytes
Database Buffers          297795584 bytes
Redo Buffers                6291456 bytes
        啟動例項前,先去掉和RAC相關的引數設定。

SQL> show parameter control

NAME                                 TYPE
------------------------------------ ----------------------
VALUE
------------------------------
control_file_record_keep_time        integer
7
control_files                        string
/u01/ractest/control01.ctl, /u
01/ractest/control02.ctl, /u01
/ractest/control03.ctl
SQL> alter database mount;

Database altered.
        注意對資料檔案和線上Redo檔案位置的調整。

SQL> alter database open;

Database altered.
        資料庫正常啟動。

        從這個例子可以猜想,如果將引數檔案、控制檔案、日誌檔案和資料檔案拷貝到其他單機版資料庫環境中也能正常的啟動。

--end--

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28258625/viewspace-1974968/,如需轉載,請註明出處,否則將追究法律責任。

相關文章