DBCA Not Listing Existing Single Instance DB When Trying To Convert it to RAC [ID 359356.1]
--------------------------------------------------------------------------------
Modified 25-AUG-2011 Type PROBLEM Status PUBLISHED
Modified 25-AUG-2011 Type PROBLEM Status PUBLISHED
In this Document
Symptoms
Changes
Cause
Solution
Scalability RAC Community
Symptoms
Changes
Cause
Solution
Scalability RAC Community
--------------------------------------------------------------------------------
Applies to:
Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 10.2.0.4 - Release: 10.1 to 10.2
Information in this document applies to any platform.
Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 10.2.0.4 - Release: 10.1 to 10.2
Information in this document applies to any platform.
Symptoms
Trying to convert a single instance DB to RAC by using dbca to add 2nd instance on 2nd node, DBCA does not list the single instance DB in the DB list. But if select 'Oracle single instance database' instead of 'Oracle RAC database' on the first screen of dbca, the single instance is listed there.
Trying to convert a single instance DB to RAC by using dbca to add 2nd instance on 2nd node, DBCA does not list the single instance DB in the DB list. But if select 'Oracle single instance database' instead of 'Oracle RAC database' on the first screen of dbca, the single instance is listed there.
Changes
New setup.
Cause
For single instance, dbca read database information from /etc/oratab, but for RAC database, dbca retrieves database information from OCR.
The database is not listed because it is not registered in OCR.
New setup.
Cause
For single instance, dbca read database information from /etc/oratab, but for RAC database, dbca retrieves database information from OCR.
The database is not listed because it is not registered in OCR.
Solution
To convert a single instance to RAC instance, it is best to use rconfig utility. Please refer Note.387046.1 RCONFIG Frequently Asked Questions.
If you really want to use dbca to achieve this, please execute the following steps:
1. Change SID to have suffix number 1. In following example, we will use single instance SID as ORCL. So set RAC instance SID on node 1 to be:
export ORACLE_SID=ORCL1
2. Create init parameter file for new SID, eg:
$ORACLE_HOME/dbs/initORCL1.ora
It either has all parameters or has spfile defined to point to a shared location for spfile.
export ORACLE_SID=ORCL1
2. Create init parameter file for new SID, eg:
$ORACLE_HOME/dbs/initORCL1.ora
It either has all parameters or has spfile defined to point to a shared location for spfile.
3. Make sure the signle instance has all cluster database parameters set, eg:
*.cluster_data=true
*.cluster_database_instances=2
ORCL1.thread=1
ORCL1.instance_number=1
ORCL1.undo_tablespace='UNDOTBS1'
4. Instance ORCL1 on node 1 is started with cluster_database =true.
*.cluster_data=true
*.cluster_database_instances=2
ORCL1.thread=1
ORCL1.instance_number=1
ORCL1.undo_tablespace='UNDOTBS1'
4. Instance ORCL1 on node 1 is started with cluster_database =true.
5. On ORCL1, create cluster dictionary:
sqlplus / as sysdba
sql> @?/rdbms/admin/catclust.sql
6. Take backup of current OCR if needed:
$ORA_CRS_HOME/bin/ocrconfig -showbackupThis should show several OCR backup taken automatically.
If you want to take another one:
As root:
$ORA_CRS_HOME/bin/ocrconfig -export /tmp/ocr.backupThis file can be used via $ORA_CRS_HOME/bin/ocrconfig -import if restore is needed.
sqlplus / as sysdba
sql> @?/rdbms/admin/catclust.sql
6. Take backup of current OCR if needed:
$ORA_CRS_HOME/bin/ocrconfig -showbackupThis should show several OCR backup taken automatically.
If you want to take another one:
As root:
$ORA_CRS_HOME/bin/ocrconfig -export /tmp/ocr.backupThis file can be used via $ORA_CRS_HOME/bin/ocrconfig -import if restore is needed.
7. Register database (instance) information into OCR via srvctl
srvctl add database -d -o
srvctl add instance -d -i -n
srvctl add database -d -o
srvctl add instance -d -i -n
eg:
srvctl add database -d ORCL -o /u01/apps/oracle/product/db_1
srvctl add instance -d ORCL -i ORCL1 -n RACHOST1
srvctl add database -d ORCL -o /u01/apps/oracle/product/db_1
srvctl add instance -d ORCL -i ORCL1 -n RACHOST1
8. restart database using srvctl and make sure it works as expected
srvctl stop instance -d ORCL -i ORCL1
srvctl start instance -d ORCL -i ORCL1
9. Launch dbca again, now you should see this database information, proceed with add instance steps.
--------------------------------------------------------------------------------
Scalability RAC Community
To discuss this topic further with Oracle experts and industry peers, we encourage you to review, join or start a discussion in the My Oracle Support Scalability RAC Community.
Related
--------------------------------------------------------------------------------
Products
--------------------------------------------------------------------------------
Products
--------------------------------------------------------------------------------
?Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
Keywords
--------------------------------------------------------------------------------
DBCA; OCR; RCONFIG; SPFILE
Keywords
--------------------------------------------------------------------------------
DBCA; OCR; RCONFIG; SPFILE
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13337857/viewspace-713708/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/13337857/viewspace-713708/
解决DBCA转换单实例数据库至RAC的问题
本文详细介绍了使用DBCA将单实例数据库转换为RAC数据库时遇到的问题及解决方案,包括SID设置、参数配置、初始化参数文件创建、数据库注册到OCR等步骤。

被折叠的 条评论
为什么被折叠?



