The DBMS_QOPATCH
package provides an interface to view the installed database patches.
This chapter contains the following topics:
Overview
Security Model
Operational Notes
Exceptions
The DBMS_QOPATCH
package provides a PLSQL/SQL interface to view the installed database patches. The interface provides all the patch information available as part of the OPATCH LSINVENTORY -XML
command. The package accesses the OUI patch inventory in real time to provide patch and meta-information.
The DBMS_QOPATCH
package is created as part of SYS schema and SYS is the only user who can execute these subprograms.
The package will work only if the database is OPEN
.
In an Oracle Real Application Clusters (RAC) environment, if the subprogram requires to fetch data from other RAC nodes it spawns a job in the other node(s) to get the data. In this case JOB_QUEUE_PROCESSES
needs to be >0
for the package to fetch the data from other RAC nodes.
If there is a delay in the job execution, the package returns ORA-20008
error.
The following table lists the exceptions raised by the DBMS_QOPATCH
package.
Table 118-1 DBMS_QOPATCH Error Messages
Error Code | Description |
---|---|
|
Latest XML inventory is not loaded into table. |
|
Directory creation failed. |
|
Configuration of a job on a node failed. |
|
Job configuration failed as node is inactive. |
|
Job is not configured with given node, instance name. |
|
Number of RAC active instances and opatch jobs configured are not same. |
|
Job configuration failed as node or instance is not active. |
|
Timed out - job execution time is more than 120Secs. |
|
Job execution failed. |
|
Node is inactive and job cannot be executed. |
|
Job name is |
|
|
|
|
|
Database is not opened. |
|
Database opened as read-only. |
Table 118-2 DBMS_QOPATCH Package Subprograms
Subprogram | Description |
---|---|
Provides a bugs list for a patch in XML format if the patch number is given. If patch is not given then it lists all the bugs installed in all the patches in XML format. |
|
Provides the total number of installed patches in XML format |
|
Provides top level patch information for the patch (such as Patch ID, patch creation time) in the XML element |
|
Provides the list of files modified in the given patch number in XML format |
|
Returns the XML element containing the |
|
Provides list of patches installed as an XML element from the XML inventory |
|
Returns whole opatch inventory as XML instance document. |
|
Provides overlay patches for a given patch as XML element |
|
Provides prerequisite patches for a given patch as XML element |
|
Returns the style-sheet for the opatch XML inventory presentation |
|
Returns the information related to SQL patches applied on a single instance by querying the binary inventory |
|
Displays the SQL patch status by querying from SQL patch registry to produce complete patch level information |
|
Provides information (such as patchID, application date, and SQL patch information) on the installed patch as XML node by querying the XML inventory |
|
Returns the conflicting patch for a given file, if it conflicts with an existing patch |
|
Sets the node name and instance to get the inventory details specific to it in an Oracle Real Application Clusters (RAC) environment |
This function provides a bugs list in a patch if the patch number is given. If a patch number is not given, it lists all the bugs in the specified XML format.
This function provides the total number of installed patches in XML format.
This function provides top level patch information for the patch (such as Patch ID, patch creation time) in the XML element.
This function provides the list of files modified in the given patch number in XML format.
This function returns the XML element containing the ORACLE_HOME
details such as patch and inventory location.
This function provides list of patches installed as an XML element from the XML inventory.
This function provides prerequisite patches for a given patch as XML element.
This function returns the style-sheet for the opatch XML inventory presentation. You can use the return type of this subprogram to perform XMLTRANSFORM and the transformed result has the same appearance as opatch text output.
This function returns the information related to SQL patches applied on a single instance by querying the binary inventory. If this is Oracle Real Application Clusters (RAC) system, it will list the node names where the SQL patch is not applied.
This procedure displays the SQL patch status by querying from SQL patch registry to produce complete patch level information. If the patch number is given, it displays the information specific to the given SQL patch, otherwise information for all SQL patches.
This function provides information (such as patchID, application date, and SQL patch information) on the installed patch as XML node by querying the XML inventory.
This function returns the conflicting patch for a given file, if it conflicts with an existing patch.