共計 2763 個字符,預計需要花費 7 分鐘才能閱讀完成。
如何理解 DRA 特性,很多新手對此不是很清楚,為了幫助大家解決這個難題,下面丸趣 TV 小編將為大家詳細講解,有這方面需求的人可以來學習下,希望你能有所收獲。
DRA 在遇到錯誤時會自動收集數據故障信息。此外,它還能預先檢查故障。在此模式中,它可以在數據庫進程發現損壞并發送錯誤消息之前檢測和分析數據故障。
DRA 的優勢:
? Data Recovery Advisor can potentially detect, analyze, and repair data failures before a database process discovers the corruption and signals an error. Early warnings help limit damage caused by corruption.DRA 可以覺察,分析,修復數據庫錯誤
? Manually assessing symptoms of data failures and correlating them into a problem statement can be complex, error-prone, and time-consuming. Data Recovery Advisor automatically diagnoses failures, assesses their impact, and reports these findings to the user.
? Traditionally, users must manually determine repair options along with the repair impact. If multiple failures are present, then users must determine the right sequence of repair execution and try to consolidate repairs. In contrast, Data Recovery Advisor automatically determines the best repair options and runs checks to make sure that these options are feasible in your environment.
? Execution of a data repair can be complex and error-prone. If you choose an automated repair option, then Data Recovery Advisor executes the repair and verifies its success.
rman 中包括以下命令都屬于 DRA 特性
LIST FAILURE, ADVISE FAILURE, REPAIR FAILURE, and CHANGE FAILURE.
list failure 可以查看操作錯誤和造成的影響
advice failure 查看修復的選項,一般都包含自動和手動
repair failure 在 advice failure 之后可以使用 repaire failure 修復錯誤
手動修改了 user01.dbf 文件
RMAN list failure;
no failures found that match specification
沒有發現錯誤
sqlplus 連接數據庫,查詢表
SQL select * from scott.emp;
select * from scott.emp
*
ERROR at line 1:
ORA-01116: error in opening database file 4
ORA-01110: data file 4: /u01/app/oracle/oradata/test/users01.dbf
ORA-27041: unable to open file
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
再次 list failure
RMAN list failure;
List of Database Failures
=========================
Failure ID Priority Status Time Detected Summary
———- ——– ——— ——————- ——-
42 HIGH OPEN 2017-07-30 19:54:08 One or more non-system datafiles are missing
一個或多個非系統數據文件丟失
RMAN advise failure;
List of Database Failures
=========================
Failure ID Priority Status Time Detected Summary
———- ——– ——— ——————- ——-
42 HIGH OPEN 2017-07-30 19:54:08 One or more non-system datafiles are missing
analyzing automatic repair options; this may take some time
using channel ORA_DISK_1
analyzing automatic repair options complete
Mandatory Manual Actions
========================
1. If file /u01/app/oracle/oradata/test/users01.dbf was unintentionally renamed or moved, restore it
2. If you have an export of tablespace USERS, then drop and re-create the tablespace and import the data.
3. Contact Oracle Support Services if the preceding recommendations cannot be used, or if they do not fix the failures selected for repair
Optional Manual Actions
=======================
no manual actions available
Automated Repair Options
========================
no automatic repair options available
沒有自動修復選項
看完上述內容是否對您有幫助呢?如果還想對相關知識有進一步的了解或閱讀更多相關文章,請關注丸趣 TV 行業資訊頻道,感謝您對丸趣 TV 的支持。