Oracle DBMS_IR Version 21c |
---|
General Information | |||||||||||||
Library Note |
|
||||||||||||
Purpose | Warning: Demos on this page are for education purposes only: Do NOT run them! If you ignore this advice you, and you alone, are solely responsible and liable for the damage you will have done. And without doubt you will have done some so do not ignore this warning unless you like rebuilding servers. |
||||||||||||
AUTHID | CURRENT_USER | ||||||||||||
Constants |
|
||||||||||||
Data Types | TYPE ir_failure_list_type IS TABLE OF NUMBER INDEX BY BINARY_INTEGER; |
||||||||||||
Dependencies |
|
||||||||||||
Documented | No | ||||||||||||
Exceptions |
|
||||||||||||
First Available | 12.1 | ||||||||||||
Security Model | Owned by SYS with execute granted to SYSBACKUP and the DBA role. | ||||||||||||
Source | {ORACLE_HOME}/rdbms/admin/dbmsir.sql | ||||||||||||
Subprograms |
|
||||||||||||
ADDLINE | |||||||||||||
Write a line to a script file | dbms_ir.addLine( |
||||||||||||
See createScriptFile demo |
|||||||||||||
ADVISECANCEL | |||||||||||||
Cancels an ADVISE conversation, releasing the context. This needs to be done if a conversation is going to be abandoned without successfully completing the command. This can be done anytime within the conversation after createWorkingRepairSet has been called and before adviseDone has been called. | dbms_ir.adviseCancel(adviseID IN NUMBER); |
||||||||||||
set linesize 121 |
|||||||||||||
ADVISEDONE | |||||||||||||
Called by RMAN to tell the server that an ADVISE has completed. Cause repair option information to be written to disk | dbms_ir.adviseDone( |
||||||||||||
RMAN Internal |
|||||||||||||
CHANGEPRIORITY | |||||||||||||
Change the priority of one or more IR failures. Will attempt to change all the failures in the list, even if errors prevent changing some of the failures. Overload 1 |
dbms_ir.changePriority( |
||||||||||||
TBD | |||||||||||||
Overload 2 | dbms_ir.changePriority( |
||||||||||||
TBD | |||||||||||||
CLOSEFAILURES | |||||||||||||
Close one or more IR failures. Will attempt to close all the failures in the list, even if errors prevent changing some of the failures. Closing a parent failure will cause all the children to be closed. Overload 1 |
dbms_ir.closeFailures( |
||||||||||||
TBD | |||||||||||||
Overload 2 | dbms_ir.closeFailures( |
||||||||||||
TBD | |||||||||||||
CLOSESCRIPTFILE | |||||||||||||
Close a repair script file | dbms_ir.closeScriptFile(fileID IN NUMBER); |
||||||||||||
See createScriptFile demo |
|||||||||||||
COMPLETEREPAIROPTION | |||||||||||||
Called after completing a repair. It updates the status of the repair in ADR. If the repair was successful it also reevaluates all open failures. | dbms_ir.completeRepairOption( |
||||||||||||
set linesize 121 |
|||||||||||||
CONSOLIDATEREPAIR | |||||||||||||
Called by RMAN to consolidate the repair options for an ADVISE command | dbms_ir.consolidateRepair(adviseID IN NUMBER); |
||||||||||||
set linesize 121 |
|||||||||||||
CONTROLFILECHECK | |||||||||||||
Execute IR crosscheck for control file | dbms_ir.controlFileCheck(cfname IN VARCHAR2) |
||||||||||||
set linesize 121 |
|||||||||||||
CREATESCRIPTFILE | |||||||||||||
Called by RMAN to create and open a file to write a repair script | dbms_ir.createScriptFile( |
||||||||||||
set serveroutput on |
|||||||||||||
CREATEWORKINGREPAIRSET | |||||||||||||
Creates an intermediate working repair set for ADVISE command. | dbms_ir.createWorkingRepairSet(adviseID IN NUMBER); |
||||||||||||
exec dbms_ir.createWorkingRepairSet(22); |
|||||||||||||
EXECSQLSCRIPT | |||||||||||||
Execute the specified sql script | dbms_ir.execSQLScript(filename IN VARCHAR2); |
||||||||||||
TBD | |||||||||||||
GETADVISEID | |||||||||||||
Start an ADVISE command and get the ADVISE identifier Overload 1 |
dbms_ir.getAdviseID( |
||||||||||||
TBD | |||||||||||||
Overload 2 | dbms_ir.getAdviseID( |
||||||||||||
TBD | |||||||||||||
GETERROR | |||||||||||||
Return an error from a previous changePriority() or closeFailures() request where the failure list was passed in as a comma separated list of failure-ids | dbms_ir.getError( |
||||||||||||
TBD | |||||||||||||
GETFEASABILITYANDIMPACT | |||||||||||||
Used by RMAN to get the feasibility and impact of a particular repair on the server | dbms_ir.getFeasabilityAndImpact( |
||||||||||||
Internal for RMAN |
|||||||||||||
GETFILE | |||||||||||||
Returns the contents of an IR script file Overload 1 |
dbms_ir.getFile( |
||||||||||||
TBD | |||||||||||||
Overload 2 | dbms_ir.getFile( |
||||||||||||
TBD | |||||||||||||
GETLINE | |||||||||||||
Read a line from a script file | dbms_ir.getLine( |
||||||||||||
TBD | |||||||||||||
OPENSCRIPTFILE | |||||||||||||
Open a repair script file Overload 1 |
dbms_ir.openScriptFile( |
||||||||||||
TBD | |||||||||||||
Overload 2 | dbms_ir.openScriptFile( |
||||||||||||
TBD | |||||||||||||
REEVALUATEOPENFAILURES | |||||||||||||
Reevaluate the status of open IR failures Overload 1 |
dbms_ir.reevaluateOpenFailures( |
||||||||||||
-- create job for reevaluate open failures for Database Repair Advisor |
|||||||||||||
Overload 2 | dbms_ir.reevaluateOpenFailures( |
||||||||||||
TBD | |||||||||||||
STARTREPAIROPTION | |||||||||||||
Called prior to executing a repair option. Verifies that all the failures associated with the repair are still open and then updates the status of the repair to indicate that it is running. It does NOT execute the repair. It will signal an error if it is not ok to start the repair. | dbms_ir.startRepairOption(repairID IN NUMBER); |
||||||||||||
set linesize 121 |
|||||||||||||
UPDATEFEASIBILITYANDIMPACT (new 21c) ![]() |
|||||||||||||
Used by RMAN to update the feasibility and impact of a set of repairs (which are in memory during an ADVISE command | dbms_ir.updateFeasibilityAndImpact( |
||||||||||||
RMAN Internal |
|||||||||||||
UPDATEREPAIROPTION | |||||||||||||
Used by RMAN to update the feasibility and impact of a set of repairs (in sever memory) during an ADVISE command | dbms_ir.updateRepairOption( |
||||||||||||
TBD | |||||||||||||
WRITEFILE | |||||||||||||
Write multiple lines to a script file | dbms_ir.writeFile( |
||||||||||||
TBD |
Related Topics |
Automated Diagnostic Repository |
Built-in Functions |
Built-in Packages |
DBMS_BACKUP_RESTORE |
DBMS_HM |
DBMS_RCVMAN |
DBMS_SQLDIAG |
RMAN |
What's New In 21c |
What's New In 23c |
This site is maintained by Dan Morgan. Last Updated: | This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2023 Daniel A. Morgan All Rights Reserved | |||||||||
|
||||||||||