Oracle EM 12c 如何切換備用的OMR資料庫 - 1
1. 概述
Oracle EM 12c OMR資料庫異常後, 需要將em 12c平臺連線轉換到備份的standby OMR資料庫。
a. 關閉OMS
b. 開啟OMR Data Guard資料庫為read/write模式
c. 更新Oracle EM OMS的連線DB的配置
d. 啟動OMS
這個操作方法在Oracle EM 11g/12c中都有效。
2. 具體操作步驟
(1). 關閉OMS
找到OMS所在的bin下的emctl工具,關閉OMS服務
$ cd $OMS_HOME/bin
$./emctl stop oms
(2). 將OMR Data Guard開啟為可讀寫模式
(3). 更新Oracle EM OMS的連線DB的配置
首先檢查一下DB連線配置詳情。
$cd $OMS_HOME/bin
$./emctl config oms -list_repos_details
例子:
[oracle@sz101db03 bin]$ ./emctl config oms -list_repos_details
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Repository Connect Descriptor : (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ft01scan.huawei.com)(PORT=1521)))(CONNECT_DATA=(SID=em12c)))
Repository Host : ft01scan.huawei.com
Repository Port : 1521
Repository SID : em12c
Repository User : SYSMAN
[oracle@sz101db03 bin]$
透過emctl工具修改EM 12c的DB配置, emctl提供了兩個修改方法。
語法:
emctl config oms -store_repos_details (-repos_host <host> -repos_port <port> -repos_sid <sid> | -repos_conndesc <connect descriptor>) -repos_user <username> [-repos_pwd <pwd>]
Note: Steps in changing repository details are:
1) Stop all the OMSs using 'emctl stop oms'
2) Run 'emctl config oms -store_repos_details' on each of the OMSs
3) Stop all the OMSs completely using 'emctl stop oms -all'
4) Start all of the OMSs using 'emctl start oms'
例子:
emctl config oms -store_repos_details -repos_conndesc"'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ft01scan.huawei.com)(PORT=1521)))(CONNECT_DATA=(SID=em12c)))'" -repos_user sysman -repos_pwd Huawei123
或者
emctl config oms -store_repos_details -repos_host ft01scan.huawei.com -repos_port 1521 -repos_sid em12c -repos_user SYSMAN -repos_pwd Huawei123
Oracle EM 12c OMR資料庫異常後, 需要將em 12c平臺連線轉換到備份的standby OMR資料庫。
a. 關閉OMS
b. 開啟OMR Data Guard資料庫為read/write模式
c. 更新Oracle EM OMS的連線DB的配置
d. 啟動OMS
這個操作方法在Oracle EM 11g/12c中都有效。
2. 具體操作步驟
(1). 關閉OMS
找到OMS所在的bin下的emctl工具,關閉OMS服務
$ cd $OMS_HOME/bin
$./emctl stop oms
(2). 將OMR Data Guard開啟為可讀寫模式
(3). 更新Oracle EM OMS的連線DB的配置
首先檢查一下DB連線配置詳情。
$cd $OMS_HOME/bin
$./emctl config oms -list_repos_details
例子:
[oracle@sz101db03 bin]$ ./emctl config oms -list_repos_details
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Repository Connect Descriptor : (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ft01scan.huawei.com)(PORT=1521)))(CONNECT_DATA=(SID=em12c)))
Repository Host : ft01scan.huawei.com
Repository Port : 1521
Repository SID : em12c
Repository User : SYSMAN
[oracle@sz101db03 bin]$
透過emctl工具修改EM 12c的DB配置, emctl提供了兩個修改方法。
語法:
emctl config oms -store_repos_details (-repos_host <host> -repos_port <port> -repos_sid <sid> | -repos_conndesc <connect descriptor>) -repos_user <username> [-repos_pwd <pwd>]
Note: Steps in changing repository details are:
1) Stop all the OMSs using 'emctl stop oms'
2) Run 'emctl config oms -store_repos_details' on each of the OMSs
3) Stop all the OMSs completely using 'emctl stop oms -all'
4) Start all of the OMSs using 'emctl start oms'
例子:
emctl config oms -store_repos_details -repos_conndesc"'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ft01scan.huawei.com)(PORT=1521)))(CONNECT_DATA=(SID=em12c)))'" -repos_user sysman -repos_pwd Huawei123
或者
emctl config oms -store_repos_details -repos_host ft01scan.huawei.com -repos_port 1521 -repos_sid em12c -repos_user SYSMAN -repos_pwd Huawei123
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-1824329/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle資料庫歸檔模式的切換ELOracle資料庫模式
- 【DATAGUARD】Oracle Dataguard物理備庫切換最佳實踐(sqlplus)OracleSQL
- Oracle 12c資料庫安裝Oracle資料庫
- 如何在MySQL資料庫中使用use來切換資料庫?MySql資料庫
- ORACLE 12C RAC資料庫的啟停Oracle資料庫
- Oracle 單機切換為主備Oracle
- Django切換MySQL資料庫DjangoMySql資料庫
- Oracle 12C RAC CDB資料庫部署Oracle資料庫
- Oracle DataGuard 主備切換 (switchover) oracle11gOracle
- ORACLE 12C DATAGUARD環境搭建和主從切換Oracle
- oracle 備份資料庫,匯出資料庫Oracle資料庫
- 如何解決自動化切換資料庫的問題資料庫
- 「Oracle」Oracle 資料庫備份還原Oracle資料庫
- 搭建windows到linux的oracle 12c physical standby備庫WindowsLinuxOracle
- 12c data guard 使用 sqlplus 主備切換最佳實踐SQL
- SQLServer2012映象主庫掛掉如何切換到映象備庫SQLServer
- 【Oracle 12c資料庫支援閃回庫功能】實驗Oracle資料庫
- 【DG】Data Guard主備庫Failove切換AI
- 【DG】Data Guard主備庫Switchover切換
- ORACLE 12C RAC 部署應用包準備Oracle
- Oracle 11g 一主多備切換方案Oracle
- oracle資料庫備份之exp增量備份Oracle資料庫
- Oracle 12c系列(一)|多租戶容器資料庫Oracle資料庫
- Oracle資料庫12c最新安全工具Data RedactionFPOracle資料庫
- ORACLE-1Z0-060題庫(Upgrade to Oracle Database 12c)OracleDatabase
- Oracle資料庫中convert()函式,在瀚高資料庫中如何替換使用?Oracle資料庫函式
- Oracle資料庫的邏輯備份工具-expdp資料泵Oracle資料庫
- Oracle資料庫冷備和恢復Oracle資料庫
- 每天自動備份Oracle資料庫Oracle資料庫
- oracle uncatalog資料庫備份檔案Oracle資料庫
- Oracle 12c 使用RMAN搭建物理備庫(RAC to RAC)Oracle
- oracle資料庫資料字典應用Oracle資料庫
- 微信小程式-uniapp-切換tab時資料列表如何切換?微信小程式APP
- Oracle資料庫日期格式轉換操作Oracle資料庫
- Oracle DG資料庫狀態轉換Oracle資料庫
- 將Oracle 12c資料庫註冊到Oracle 19c Grid InfrastructureOracle資料庫ASTStruct
- 如何在 Oraclewwwhjw1688com I8587O57666 雲上故障切換並恢復 Oracle 資料庫Oracle資料庫
- 資料庫redolog切換頻率統計分析資料庫
- Oracle資料庫由dataguard備庫引起的log file sync等待Oracle資料庫