本文转载:
节点1 ORACLE启动后再启动节点2 ORACLE 报错;
ORA-29707: inconsistent value 2 for initialization parameter cluster_database_instances with other instances
单独启动节点1:
- SQL> show parameter cluster_database
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- cluster_database boolean FALSE
- cluster_database_instances integer 1
- SQL> show parameter cluster_database
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- cluster_database boolean TRUE
- cluster_database_instances integer 2
- SQL> show parameters archive;
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- archive_lag_target integer 0
- log_archive_config string
- log_archive_dest string
- log_archive_dest_1 string location=/oracle/db1_arch
- log_archive_dest_10 string
- log_archive_dest_2 string service=RACDB2
- log_archive_dest_3 string
- log_archive_dest_4 string
- log_archive_dest_5 string
- log_archive_dest_6 string
- log_archive_dest_7 string
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- log_archive_dest_8 string
- log_archive_dest_9 string
- log_archive_dest_state_1 string enable
- log_archive_dest_state_10 string enable
- log_archive_dest_state_2 string enable
- log_archive_dest_state_3 string enable
- log_archive_dest_state_4 string enable
- log_archive_dest_state_5 string enable
- log_archive_dest_state_6 string enable
- log_archive_dest_state_7 string enable
- log_archive_dest_state_8 string enable
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- log_archive_dest_state_9 string enable
- log_archive_duplex_dest string
- log_archive_format string %t_%s_%r.dbf
- log_archive_local_first boolean TRUE
- log_archive_max_processes integer 2
- log_archive_min_succeed_dest integer 1
- log_archive_start boolean FALSE
- log_archive_trace integer 0
- remote_archive_enable string true
- standby_archive_dest string /oracle/db2_arch
复制代码
问题解决方法:
搞定了,在第一个节点MOUNT模式下;
- SQL> alter system set cluster_database=true scope=spfile sid='RACDB1';
- SQL> alter database open;
- SQL> show parameter cluster_database
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- cluster_database boolean TRUE
- cluster_database_instances integer 2
- [oracle@dbp ~]$ crs_stat -t
- Name Type Target State Host
- ------------------------------------------------------------
- ora....B1.inst application ONLINE ONLINE dbp
- ora....B2.inst application ONLINE ONLINE dbs
- ora.RACDB.db application ONLINE ONLINE dbs
- ora....SM1.asm application ONLINE ONLINE dbp
- ora....BP.lsnr application ONLINE ONLINE dbp
- ora.dbp.gsd application ONLINE ONLINE dbp
- ora.dbp.ons application ONLINE ONLINE dbp
- ora.dbp.vip application ONLINE ONLINE dbp
- ora....SM2.asm application ONLINE ONLINE dbs
- ora....BS.lsnr application ONLINE ONLINE dbs
- ora.dbs.gsd application ONLINE ONLINE dbs
- ora.dbs.ons application ONLINE ONLINE dbs
- ora.dbs.vip application ONLINE ONLINE dbs
- [oracle@dbp ~]$