真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

DG-duplicate操作注意事項(xiàng)(各種報(bào)錯(cuò)應(yīng)對(duì)方法)


讓客戶(hù)滿(mǎn)意是我們工作的目標(biāo),不斷超越客戶(hù)的期望值來(lái)自于我們對(duì)這個(gè)行業(yè)的熱愛(ài)。我們立志把好的技術(shù)通過(guò)有效、簡(jiǎn)單的方式提供給客戶(hù),將通過(guò)不懈努力成為客戶(hù)在信息化領(lǐng)域值得信任、有價(jià)值的長(zhǎng)期合作伙伴,公司提供的服務(wù)項(xiàng)目有:域名注冊(cè)、網(wǎng)絡(luò)空間、營(yíng)銷(xiāo)軟件、網(wǎng)站建設(shè)、襄州網(wǎng)站維護(hù)、網(wǎng)站推廣。

DG-duplicate 操作注意事項(xiàng)

log_file_name_convert='+orcl_DATA/orcldb','+orcl_data/orcldb_dg2'

查看ASM磁盤(pán)的詳細(xì)信息及狀態(tài)

select group_number,disk_number,header_status,mode_status,state,total_mb,name,failgroup,path from  v$asm_disk;

select name,state from v$asm_diskgroup;

-- 添加 ASM磁盤(pán)組

Create diskgroup  orcl1_DATA  external  redundancy  disk '/dev/asm_vdd';

Create diskgroup  orcl2_DATA  external  redundancy  disk '/dev/asm_vdb';

Create diskgroup  orcl3_DATA  external  redundancy  disk '/dev/asm_vdi';

給磁盤(pán)組添加磁盤(pán)

alter diskgroup data add disk '/dev/asm_vde';

alter diskgroup data add disk '/dev/asm_vdf';

alter diskgroup data add disk '/dev/asm_vdg';

alter diskgroup data add disk '/dev/asm_vdh';

alter diskgroup data add disk '/dev/asm_vdj';

--加載磁盤(pán)組

ALTER DISKGROUP DATA MOUNT;

13、備庫(kù)注意配置/etc/hosts

ip地址 orcldb-dg

14、duplicate后,同步日志無(wú)法成功,主庫(kù)查詢(xún)出現(xiàn)報(bào)錯(cuò)

SQL> select inst_id,dest_name,status,error from gv$archive_dest_status where dest_name='LOG_ARCHIVE_DEST_2';

   INST_ID

----------

DEST_NAME

--------------------------------------------------------------------------------

STATUS        ERROR

--------- -----------------------------------------------------------------

        1

LOG_ARCHIVE_DEST_2

ERROR   ORA-16191: ??????????????????

        2

LOG_ARCHIVE_DEST_2

ERROR   ORA-16191: ??????????????????

或者

        2

LOG_ARCHIVE_DEST_2

ERROR   ORA-16058: ??????????

        1

LOG_ARCHIVE_DEST_2

ERROR   ORA-16058: ??????????

這個(gè)時(shí)候需要去備庫(kù)重啟數(shù)據(jù)庫(kù)實(shí)例

Shutdown immediate

startup

15、duplicate時(shí)出現(xiàn)報(bào)錯(cuò)

RMAN-00571: ===========================================================

RMAN-03002: failure of Duplicate Db command at 03/28/2018 19:36:20

RMAN-05501: aborting duplication of target database

RMAN-03015: error occurred in stored script Memory Script

RMAN-03009: failure of backup command on ORA_DISK_1 channel at 03/28/2018 19:36:20

ORA-00245: ????????; ?????????????

嘗試手動(dòng)執(zhí)行命令,不用腳本

16、安裝備庫(kù)單節(jié)點(diǎn)ASM后,需要手動(dòng)啟動(dòng)CRS服務(wù)

crsctl start resource ora.diskmon

crsctl status resource -t

crs_stat -p ora.cssd

crsctl modify resource "ora.cssd" -attr "AUTO_START=1"   --設(shè)置自動(dòng)啟動(dòng)

crs_stat -p ora.diskmon

crsctl modify resource "ora.diskmon" -attr "AUTO_START=1"   --設(shè)置自動(dòng)啟動(dòng)

注意:這里采用圖形界面安裝GRID軟件,要選擇第二項(xiàng)安裝

如果選擇的是最后一項(xiàng)安裝軟件,可能會(huì)漏掉一些CRS服務(wù),導(dǎo)致無(wú)法使用asmca命令打開(kāi)圖形界面

17、記得把備份停止了

18、duplicate后,同步日志無(wú)法成功,主庫(kù)查詢(xún)出現(xiàn)報(bào)錯(cuò)

SQL> select inst_id,dest_name,status,error from gv$archive_dest_status where dest_name='LOG_ARCHIVE_DEST_2';

   INST_ID

----------

DEST_NAME

--------------------------------------------------------------------------------

STATUS   ERROR

--------- -----------------------------------------------------------------

2

LOG_ARCHIVE_DEST_2

ERROR   ORA-01033: ORACLE initialization or shutdown in progress

1

LOG_ARCHIVE_DEST_2

ERROR   ORA-01033: ORACLE initialization or shutdown in progress

   INST_ID

----------

DEST_NAME

--------------------------------------------------------------------------------

STATUS   ERROR

--------- -----------------------------------------------------------------

解決方法:

1、檢查RAC節(jié)點(diǎn)的密碼文件是否同步,可以直接拷貝覆蓋一下

2、檢查DG節(jié)點(diǎn)的密碼文件是否同步, 可以直接拷貝RAC的密碼文件到DG覆蓋

3、在主節(jié)點(diǎn)alter system set log_archive_dest_state_2=enable;

4、再次查詢(xún)狀態(tài)變成VALID正常

SQL>  select inst_id,dest_name,status,error from gv$archive_dest_status where dest_name='LOG_ARCHIVE_DEST_2';

   INST_ID

----------

DEST_NAME

--------------------------------------------------------------------------------

STATUS   ERROR

--------- -----------------------------------------------------------------

2

LOG_ARCHIVE_DEST_2

VALID

1

LOG_ARCHIVE_DEST_2

VALID

   INST_ID

----------

DEST_NAME

--------------------------------------------------------------------------------

STATUS   ERROR

--------- -----------------------------------------------------------------

注意:檢驗(yàn)是否因密碼問(wèn)題導(dǎo)致DG日志不同步,也可以在alter.log里面查找驗(yàn)證(主庫(kù)和備庫(kù)都看)

19、如果遇到下面的報(bào)錯(cuò),哈哈,可能你設(shè)置的路徑并不是LOG_ARCHIVE_DEST_2

也可能是LOG_ARCHIVE_DEST_3,所以要看清楚了。  select * from V$ARCHIVE_DEST_STATUS

SQL> select inst_id,dest_name,status,error from gv$archive_dest_status where dest_name='LOG_ARCHIVE_DEST_2';

   INST_ID

----------

DEST_NAME

--------------------------------------------------------------------------------

STATUS   ERROR

--------- -----------------------------------------------------------------

2

LOG_ARCHIVE_DEST_2

BAD PARAM

1

LOG_ARCHIVE_DEST_2

BAD PARAM

   INST_ID

----------

DEST_NAME

--------------------------------------------------------------------------------

STATUS   ERROR

--------- -----------------------------------------------------------------

20、在DG庫(kù)上設(shè)置同步后,發(fā)現(xiàn)日志并沒(méi)有同步

SQL> select thread#,process,client_process,sequence#,status from v$managed_standby;

   THREAD# PROCESS   CLIENT_P  SEQUENCE# STATUS

---------- --------- -------- ---------- ------------

0 ARCH      ARCH        0 CONNECTED

0 ARCH      ARCH        0 CONNECTED

0 ARCH      ARCH        0 CONNECTED

0 ARCH      ARCH        0 CONNECTED

2 MRP0      N/A     2880 APPLYING_LOG

這個(gè)時(shí)候,查看主庫(kù)狀態(tài)

SQL> select inst_id,dest_name,status,error from gv$archive_dest_status where dest_name='LOG_ARCHIVE_DEST_2';

   INST_ID

----------

DEST_NAME

--------------------------------------------------------------------------------

STATUS   ERROR

--------- -----------------------------------------------------------------

1

LOG_ARCHIVE_DEST_2

ERROR   ORA-03135: connection lost contact

2

LOG_ARCHIVE_DEST_2

ERROR   ORA-03135: connection lost contact

   INST_ID

----------

DEST_NAME

--------------------------------------------------------------------------------

STATUS   ERROR

--------- -----------------------------------------------------------------

在主庫(kù)重新enable也沒(méi)用

alter system set log_archive_dest_state_2=ENABLE;

檢查DG備庫(kù)監(jiān)聽(tīng),發(fā)現(xiàn)監(jiān)聽(tīng)沒(méi)啟動(dòng)

su - oracle

lsnrctl start

然后再次檢查,發(fā)現(xiàn)還是不同步

主庫(kù)查狀態(tài)

SQL> select inst_id,dest_name,status,error from gv$archive_dest_status where dest_name='LOG_ARCHIVE_DEST_2';

   INST_ID

----------

DEST_NAME

--------------------------------------------------------------------------------

STATUS   ERROR

--------- -----------------------------------------------------------------

1

LOG_ARCHIVE_DEST_2

ERROR   ORA-12543: TNS:destination host unreachable

2

LOG_ARCHIVE_DEST_2

ERROR   ORA-12543: TNS:destination host unreachable

   INST_ID

----------

DEST_NAME

--------------------------------------------------------------------------------

STATUS   ERROR

--------- -----------------------------------------------------------------

這個(gè)時(shí)候,檢查DG備庫(kù),發(fā)現(xiàn),iptables -L  發(fā)現(xiàn)防火墻阻攔了

iptables -F清除

問(wèn)題解決

21、 在DG庫(kù)上設(shè)置同步后,發(fā)現(xiàn)日志并沒(méi)有同步

SQL> select thread#,process,client_process,sequence#,status from v$managed_standby;

   THREAD# PROCESS   CLIENT_P  SEQUENCE# STATUS

---------- --------- -------- ---------- ------------

0 ARCH      ARCH        0 CONNECTED

0 ARCH      ARCH        0 CONNECTED

0 ARCH      ARCH        0 CONNECTED

0 ARCH      ARCH        0 CONNECTED

2 MRP0      N/A     2880 APPLYING_LOG

這個(gè)時(shí)候,查看主庫(kù)狀態(tài)

SQL> select inst_id,dest_name,status,error from gv$archive_dest_status where dest_name='LOG_ARCHIVE_DEST_2';

   INST_ID

----------

DEST_NAME

--------------------------------------------------------------------------------

STATUS   ERROR

--------- -----------------------------------------------------------------

2

LOG_ARCHIVE_DEST_2

DISABLED  ORA-16057: server not in Data Guard configuration

1

LOG_ARCHIVE_DEST_2

DISABLED  ORA-16057: server not in Data Guard configuration

   INST_ID

----------

DEST_NAME

--------------------------------------------------------------------------------

STATUS   ERROR

--------- -----------------------------------------------------------------

看到這個(gè)報(bào)錯(cuò),就要去檢查log_archive_config了

主備庫(kù)兩個(gè)都要檢查,因?yàn)樗麄円恢?/p>

主庫(kù)查看

SQL> show parameter log_archive_config

NAME      TYPE VALUE

------------------------------------ ----------- ------------------------------

log_archive_config      string DG_CONFIG=orcldb,orcldbdg3)

備庫(kù)查看

SQL> show parameter log_archive_config

NAME      TYPE VALUE

------------------------------------ ----------- ------------------------------

log_archive_config      string DG_CONFIG=(orcldbdg3,orcldbdg)

果然不一致,修改它

SQL> alter system set log_archive_config='DG_CONFIG=(orcldbdg3,orcldb)';

去主庫(kù)重新enable一下

alter system set log_archive_dest_state_2=ENABLE;

回到備庫(kù),發(fā)現(xiàn)已經(jīng)開(kāi)通同步日志了


文章標(biāo)題:DG-duplicate操作注意事項(xiàng)(各種報(bào)錯(cuò)應(yīng)對(duì)方法)
文章路徑:http://weahome.cn/article/jschjg.html

其他資訊

在線咨詢(xún)

微信咨詢(xún)

電話(huà)咨詢(xún)

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部