查詢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 熟悉步驟小記錄 (三、資料庫遷移)資料庫
- 同版本的庚頓實時資料庫的資料遷移操作步驟資料庫
- Python遷移編輯器到Visual Studio Code 的步驟Python
- Blazor WebAssembly 候選版遷移手記BlazorWeb
- laravel模型查詢的時候報 Array to string conversionLaravel模型
- 什麼是遷移學習?什麼時候使用遷移學習?遷移學習
- Centos MySQL資料庫遷移詳細步驟CentOSMySql資料庫
- openwifi編譯步驟記錄WiFi編譯
- 資料遷移的時候出現RMAN-03002,RMAN-06026
- 【譯】遷移到Room的7個步驟OOM
- java客戶端查詢ES操作步驟Java客戶端
- C盤擴容(步驟記錄)
- SQL Server 資料庫查詢死鎖的處理步驟SQLServer資料庫
- 記錄一次XTTS遷移碰到的問題TTS
- Git 倉庫程式碼遷移步驟記錄Git
- WindowsServer 2012資料庫遷移記錄WindowsServer資料庫
- 記錄Win10安裝MySQL5.7的步驟Win10MySql
- win10如何遷移qq聊天記錄 win10電腦qq聊天記錄怎麼遷移Win10
- 雲端遷移需謹遵四大關鍵步驟
- 查詢SQL Server的歷史執行記錄SQLServer
- mysql 查詢記錄數大於一千萬的表MySql
- 查詢當天的系統訂單記錄
- 關於伺服器資料遷移,介紹在伺服器資料遷移計劃中的7個步驟伺服器
- mysql 隨機查詢記錄MySql隨機
- 記錄一次餘額遷移的坑(測試角度)
- Masonite 熟悉步驟小記錄 (四、模型建立)模型
- Masonite 熟悉步驟小記錄 (六、文章展示)
- Masonite 熟悉步驟小記錄 (一、路由篇)路由
- Windows10安裝Pytorch步驟記錄WindowsPyTorch
- 谷歌收錄批次查詢,教你批次查詢谷歌收錄的方法谷歌
- 記錄一次遞迴查詢的運用遞迴
- 關於 MyBatis-Plus 分頁查詢的探討 → count 都為 0 了,為什麼還要查詢記錄?MyBatis
- 【效能】Oracle表並行對邏輯遷移後查詢效能的影響Oracle並行
- expdp匯出慢的解決思路__增加引數metrics記錄每個步驟時間,增加引數trace記錄trace
- 【記錄】SSH分頁查詢功能
- 記錄一次遷移環境 .env 出現的問題
- 【Azure Redis 快取】Azure Redis出現了超時問題後,記錄一步一步的排查出異常的客戶端連線和所執行命令的步驟Redis快取客戶端
- Laravel 框架使用 whereIn 查詢 SQL 時資料出錯記錄Laravel框架SQL