查詢rconfig的時候記錄了手工遷移的步驟
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
7. Register database (instance) information into OCR via srvctl
srvctl add database -d -o
srvctl add instance -d -i -n
srvctl add database -d
srvctl add instance -d
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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 谷歌收錄批次查詢,谷歌收錄批次查詢的方法步驟谷歌
- Masonite 熟悉步驟小記錄 (三、資料庫遷移)資料庫
- DBA接手一個資料庫時候需要檢查的資料及步驟資料庫
- 同版本的庚頓實時資料庫的資料遷移操作步驟資料庫
- 關於資料遷移的方法、步驟和心得
- 資料庫查詢步驟資料庫
- 手工建立資料庫的完整步驟資料庫
- 查詢行遷移及消除行遷移(chained rows)AI
- 手工建立/刪除資料庫的步驟資料庫
- 在oracle查詢記錄時給記錄加鎖(轉)Oracle
- Blazor WebAssembly 候選版遷移手記BlazorWeb
- 查詢表存在大量行遷移
- 記錄集連線步驟
- 什麼是遷移學習?什麼時候使用遷移學習?遷移學習
- Centos MySQL資料庫遷移詳細步驟CentOSMySql資料庫
- 做DD遷移時候的監控指令碼,很有用的喲。指令碼
- sqlserver查詢最接近的記錄SQLServer
- 【Mongodb】Sharding 手工遷移chunkMongoDB
- 關於SQLServer2005的學習筆記——SQL查詢解析步驟SQLServer筆記
- openstack虛擬機器遷移的操作記錄虛擬機
- openwifi編譯步驟記錄WiFi編譯
- java客戶端查詢ES操作步驟Java客戶端
- 查詢匯入記錄的進度
- 【譯】遷移到Room的7個步驟OOM
- Python遷移編輯器到Visual Studio Code 的步驟Python
- 手工建立一個資料庫的步驟參考資料庫
- laravel模型查詢的時候報 Array to string conversionLaravel模型
- SQL Server 資料庫查詢死鎖的處理步驟SQLServer資料庫
- [Mysql 查詢語句]——查詢指定記錄MySql
- 雲端遷移需謹遵四大關鍵步驟
- 記錄一次XTTS遷移碰到的問題TTS
- 最近的一次ASM diskgroup線上遷移記錄ASM
- 手工段管理表空間遷移後的調整
- 實體Bean的jndiName=local/PeopleBean,查詢的時候找不到?Bean
- 查詢鎖表記錄
- Windows 10步驟記錄是什麼?Windows
- Git 倉庫程式碼遷移步驟記錄Git
- MySQL 查詢所有表中的記錄數MySql