這篇文章主要講解了“DG搭建常見問題處理的方法是什么”,文中的講解內容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“DG搭建常見問題處理的方法是什么”吧!
1、ORA-09925報錯
報錯1:
connected to auxiliary database (not started) released channel: prmy1 released channel: prmy2 released channel: prmy3 released channel: prmy4 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 07/27/2018 10:48:43 RMAN-05501: aborting duplication of target database RMAN-03015: error occurred in stored script Memory Script RMAN-04014: startup failed: ORA-09925: Unable to create audit trail file Linux-x86_64 Error: 2: No such file or directory Additional information: 9925
原因:備庫adump文件不存在
解決:
mkdri -p $ORACLE_HOME/admin/db_unique_name/adump
例如:
mkdir -p $ORACLE_BASE/admin/mssdbdg/adump
2、RMAN-05537報錯
報錯2:
Starting Duplicate Db at 27-JUL-18 released channel: prmy1 released channel: prmy2 released channel: prmy3 released channel: prmy4 released channel: stby RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 07/27/2018 10:57:28 RMAN-05501: aborting duplication of target database RMAN-05537: DUPLICATE without TARGET connection when auxiliary instance is started with spfile cannot use SPFILE clause
原因:備庫跑了duplicate腳本,沒有刪除spfile文件,重新啟動數據庫到nomount
解決:先刪除spfile文件,重新啟動數據庫到nomount
3、ORA-17628: Oracle error 19505 報錯
contents of Memory Script:
{
backup as copy current controlfile for standby auxiliary format '/ORADATA/RESNETDBDG/control01.ctl';
restore clone primary controlfile to '/ORADATA/fast_recovery_area/RESNETDBDG/control02.ctl' from
'/ORADATA/RESNETDBDG/control01.ctl';
}
executing Memory Script
Starting backup at 26-JUL-2018 18:42:20
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
copying standby control file
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 07/26/2018 18:42:21
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 07/26/2018 18:42:21
ORA-17628: Oracle error 19505 returned by remote Oracle server原因:目標端路徑不存在,可能是文件系統路徑不存在,也可能是權限不夠,如果是ASM,請確認磁盤組是否存在,磁盤的權限是否正確
4、ORA-01017報錯
這里是報密碼錯誤,SYS用戶登錄采用的是密碼文件認證的方法,所以需要確保密碼文件可讀寫和密碼文件的名字中的ORACLE_SID與監聽中的ORACLE_SID是對應的。密碼錯誤分很多情況。
4.1 第一次搭建時報密碼錯誤
4.1.1 密碼文件不一致
通過在主庫的一個節點修改密碼后,將此節點的密碼文件復制給其它所有的節點,包括主庫的節點和備庫的所有的節點,確認Oracle用戶有對寫的權限。
4.1.2 目標端報密碼錯誤
已經完成4.1.1的操作,但是仍然報密碼錯誤。這個時候很可能是靜態監聽里面的數據庫ORACLE_SID與密碼文件中的SID不一致。
5、日志不傳輸到備庫分析方法
SELECT DESTINATION, STATUS, ERROR FROM V$ARCHIVE_DEST WHERE TARGET='STANDBY';
查看ERROR的報錯代碼,根據報錯代碼來解決問題。
6、ORA-00845報錯
RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 07/30/2018 02:22:10 RMAN-03015: error occurred in stored script Memory Script RMAN-04014: startup failed: ORA-00845: MEMORY_TARGET not supported on this system
由于使用AMM功能,但是SHM大小沒有AMM那么大,所有需要重新SHM,并指定跟AMM相同的大小
mount -o remount,default,size=102G /dev/shm
修改/etc/fstab中的值
7、監聽配置沒問題,sqlplus測試沒問題,tnsping也沒問題,可還是報下邊錯誤
RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 08/05/2018 02:30:01 RMAN-05501: aborting duplication of target database RMAN-03015: error occurred in stored script Memory Script RMAN-03009: failure of backup command on prmy2 channel at 08/05/2018 02:30:01 ORA-17629: Cannot connect to the remote database server ORA-17627: ORA-12154: TNS:could not resolve the connect identifier specified ORA-17629: Cannot connect to the remote database server RMAN>
解決:把tnsnames.ora的內容,在grid的network/admin下復制一份??梢栽贛OS上查看RMAN Active Duplicate on RAC fails with ORA-17629 and ORA-17627: ORA-12154 (文檔 ID 1982003.1)
8、duplicate出錯,查看原因是原庫有兩個數據文件沒有使用OMF格式,無法傳過去。
RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 08/05/2018 20:42:25 RMAN-05501: aborting duplication of target database RMAN-03015: error occurred in stored script Memory Script RMAN-03009: failure of backup command on prmy4 channel at 08/05/2018 20:01:35 ORA-17628: Oracle error 19505 returned by remote Oracle server RMAN-03009: failure of backup command on prmy4 channel at 08/05/2018 20:01:20 ORA-17628: Oracle error 19505 returned by remote Oracle server
解決:查看錯誤代碼:MOS 1331986.1
注意,做之前先確定一下是不是OMF文件,若不是,先在asm的子層建好目錄或在腳本里把子層目錄寫好。
感謝各位的閱讀,以上就是“DG搭建常見問題處理的方法是什么”的內容了,經過本文的學習后,相信大家對DG搭建常見問題處理的方法是什么這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是億速云,小編將為大家推送更多相關知識點的文章,歡迎關注!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。