查找rconfig的时候记录了手工迁移的步骤

解决DBCA转换单实例数据库至RAC的问题
本文详细介绍了使用DBCA将单实例数据库转换为RAC数据库时遇到的问题及解决方案,包括SID设置、参数配置、初始化参数文件创建、数据库注册到OCR等步骤。
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  
In this Document
  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.
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.
 
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.

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.
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.
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.
7. Register database (instance) information into OCR via srvctl
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

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
--------------------------------------------------------------------------------
?Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
Keywords
--------------------------------------------------------------------------------
DBCA; OCR; RCONFIG; SPFILE
 

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13337857/viewspace-713708/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/13337857/viewspace-713708/

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值