點(diǎn)擊上方“IT那活兒”公眾號(hào),關(guān)注后了解更多內(nèi)容,不管IT什么活兒,干就完了?。?!
SQL> ALTER DATABASE FORCE LOGGING;
SQL> ALTER DATABASE ADD STANDBY LOGFILE (/oracle/dbs/slog1.rdo) SIZE 500M;
SQL> ALTER DATABASE ADD STANDBY LOGFILE (/oracle/dbs/slog2.rdo) SIZE 500M;
SQL> ALTER DATABASE ADD STANDBY LOGFILE (/oracle/dbs/slog3.rdo) SIZE 500M;
SQL> ALTER DATABASE ADD STANDBY LOGFILE (/oracle/dbs/slog4.rdo) SIZE 500M;
*.audit_file_dest=/u01/app/oracle/admin/PROD5/adump
*.audit_trail=db
*.compatible=12.1.0.2.0
*.control_files=/u01/app/oracle/oradata/PROD5/control01.ctl,/u01/app/oracle/fast_recovery_area/PROD5/control02.ctl
*.db_block_size=8192
*.db_domain=example.com
*.db_name=PROD5
*.db_recovery_file_dest=/u01/app/oracle/fast_recovery_area
*.db_recovery_file_dest_size=4560m
*.diagnostic_dest=/u01/app/oracle
*.memory_target=1160m
*.open_cursors=300
*.processes=300
*.remote_login_passwordfile=EXCLUSIVE
*.undo_tablespace=UNDOTBS1
DB_UNIQUE_NAME=PROD5H1
LOG_ARCHIVE_CONFIG=DG_CONFIG=(PROD5H1,PROD5H2)
LOG_ARCHIVE_DEST_1=
LOCATION=USE_DB_RECOVERY_FILE_DEST
VALID_FOR=(ALL_LOGFILES,ALL_ROLES)
DB_UNIQUE_NAME=PROD5H1
LOG_ARCHIVE_DEST_2=
SERVICE=PROD5H2 ASYNC
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
DB_UNIQUE_NAME=PROD5H2
LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
FAL_SERVER=PROD5H2
DB_FILE_NAME_CONVERT=/PROD5H2/,/PROD5H1/
LOG_FILE_NAME_CONVERT=/PROD5H2/,/PROD5H1/
STANDBY_FILE_MANAGEMENT=AUTO
Shutdown immediate
Startup nomount pfile=’/home/oracle/pfile.ora’
Create spfile from pfile=’/home/oracle/pfile.ora’
Shutdown immediate
Startup
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME=PROD5H1.example.com)
(SID_NAME=PROD5)
(ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1)
)
)
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME=PROD5H2.example.com)
(SID_NAME=PROD5)
(ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1)
)
)
PROD5H1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = host01.example.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PROD5H1.example.com)
)
)
PROD5H2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = host02.example.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PROD5H2.example.com)
)
)
PROD5H1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = host01.example.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PROD5H1.example.com)
)
)
PROD5H2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = host02.example.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PROD5H2.example.com)
)
)
*.audit_file_dest=/u01/app/oracle/admin/PROD5/adump
*.audit_trail=db
*.compatible=12.1.0.2.0
*.control_files=/u01/app/oracle/oradata/PROD5/control01.ctl,/u01/app/oracle/fast_recovery_area/PROD5/control02.ctl
*.db_block_size=8192
*.db_domain=example.com
*.db_name=PROD5
*.db_recovery_file_dest=/u01/app/oracle/fast_recovery_area
*.db_recovery_file_dest_size=4560m
*.diagnostic_dest=/u01/app/oracle
*.memory_target=1160m
*.open_cursors=300
*.processes=300
*.remote_login_passwordfile=EXCLUSIVE
*.undo_tablespace=UNDOTBS1
DB_UNIQUE_NAME=PROD5H2
LOG_ARCHIVE_CONFIG=DG_CONFIG=(PROD5H2,PROD5H1)
LOG_ARCHIVE_DEST_1=
LOCATION=USE_DB_RECOVERY_FILE_DEST
VALID_FOR=(ALL_LOGFILES,ALL_ROLES)
DB_UNIQUE_NAME=PROD5H2
LOG_ARCHIVE_DEST_2=
SERVICE=PROD5H1 ASYNC
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
DB_UNIQUE_NAME=PROD5H1
LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
FAL_SERVER=PROD5H1
DB_FILE_NAME_CONVERT=/PROD5H1/,/PROD5H2/
LOG_FILE_NAME_CONVERT=/PROD5H1/,/PROD5H2/
STANDBY_FILE_MANAGEMENT=AUTO
Mkdir -p /u01/app/oracle/oradata/PROD5
Mkdir -p /u01/app/oracle/fast_recovery_area/PROD5
Shutdown immediate
Startup nomount pfile=’/home/oracle/pfile.ora’
Create spfile from pfile=’/home/oracle/pfile.ora’
Shutdown immediate
Startup nomount
Rman target sys/oracle@prod5h1 auxiliary sys/oracle@prod5h2
Duplicate tartget database for standby from active database nofilenamecheck
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請注明本文地址:http://specialneedsforspecialkids.com/yun/129194.html
RAC補(bǔ)丁日常更新成功反遇異常處理 img{ display:block; margin:0 auto !important; width:100%; } body{ width:75%; m...
摘要:但作為阿里云的用戶,您仍有可能會(huì)收到這樣的消息通知,提醒您的實(shí)例由于所在物理服務(wù)器存在故障風(fēng)險(xiǎn)需要維護(hù),阿里云設(shè)定了一個(gè)實(shí)例重啟的系統(tǒng)計(jì)劃事件,將在天后重啟該實(shí)例并遷移至安全的物理機(jī)運(yùn)行。 摘要: 阿里云會(huì)針對ECS實(shí)例發(fā)布系統(tǒng)事件,當(dāng)您收到阿里云計(jì)劃維護(hù)的通知時(shí),可以利用ECS系統(tǒng)計(jì)劃事件了解與實(shí)例相關(guān)的計(jì)劃維護(hù)操作,并根據(jù)您的業(yè)務(wù)特性選擇合適的時(shí)間安排運(yùn)維操作進(jìn)行故障轉(zhuǎn)移,減少對系...
摘要:但作為阿里云的用戶,您仍有可能會(huì)收到這樣的消息通知,提醒您的實(shí)例由于所在物理服務(wù)器存在故障風(fēng)險(xiǎn)需要維護(hù),阿里云設(shè)定了一個(gè)實(shí)例重啟的系統(tǒng)計(jì)劃事件,將在天后重啟該實(shí)例并遷移至安全的物理機(jī)運(yùn)行。 摘要: 阿里云會(huì)針對ECS實(shí)例發(fā)布系統(tǒng)事件,當(dāng)您收到阿里云計(jì)劃維護(hù)的通知時(shí),可以利用ECS系統(tǒng)計(jì)劃事件了解與實(shí)例相關(guān)的計(jì)劃維護(hù)操作,并根據(jù)您的業(yè)務(wù)特性選擇合適的時(shí)間安排運(yùn)維操作進(jìn)行故障轉(zhuǎn)移,減少對系...
手動(dòng)搭建vue+node單頁面(二) 環(huán)境搭建好了,開始寫業(yè)務(wù)和后端接口代碼,這一篇講的內(nèi)容也比較簡單,只適合小白參考; 環(huán)境搭建請參考 《手動(dòng)搭建vue+node單頁面(一)》:https://segmentfault.com/a/11... 項(xiàng)目地址:https://github.com/liubingyan... 內(nèi)容提要:1.jsonp獲取baidu搜索框內(nèi)容;2.node調(diào)用juejin...
閱讀 1346·2023-01-11 13:20
閱讀 1684·2023-01-11 13:20
閱讀 1132·2023-01-11 13:20
閱讀 1858·2023-01-11 13:20
閱讀 4100·2023-01-11 13:20
閱讀 2704·2023-01-11 13:20
閱讀 1385·2023-01-11 13:20
閱讀 3597·2023-01-11 13:20