The DBMS_RESCONFIG
package provides an interface to operate on the resource configuration list, and to retrieve listener information for a resource.
This chapter contains the following topics:
This table list the package subprograms in alphabetical order.
Table 119-1 DBMS_RESCONFIG Package Subprograms
Subprogram | Description |
---|---|
Inserts the resource configuration specified by absolute path at the given position of the repository's configuration list |
|
Inserts the resource configuration specified by the absolute path at the given position in the target resource's configuration list |
|
Appends the resource configuration specified by rcpath to the target resource's configuration list if it is not already included in the list |
|
Removes the configuration at the given position in the repository's configuration list. |
|
Removes the configuration at the given position in the target resource's configuration list. I |
|
Returns the list of listeners applicable for a given resource |
|
Returns the resource configuration at the specified position of the repository's configuration list |
|
Returns a list of resource configuration paths defined for the repository |
|
Returns the resource configuration at the specified position of the target resource's configuration list |
|
Returns a list of resource configuration paths defined in the target resource's configuration list |
|
Removes invalid references from the repository resource configuration list, and makes the repository available |
This procedure inserts the resource configuration specified by absolute path of the resource configuration at the specified position of the repository's configuration list. It shifts the element currently at that position (if any) and any subsequent elements to the right.
Table 119-2 ADDREPOSITORYRESCONFIG Function Parameters
Parameter | Description |
---|---|
|
Absolute path of the resource configuration to be inserted. An exception is raised if |
|
Index at which the new configuration is to be inserted. If this parameter is not specified then the new configuration is appended to the end of the list. An exception is raised if the index is out of range ( |
This procedure inserts the resource configuration specified by the absolute path of the resource configuration at the given position in the target resource's configuration list. It shifts the element currently at that position (if any) and any subsequent elements to the right.
DBMS_RESCONFIG.ADDRESCONFIG( respath IN VARCHAR2, rcpath IN VARCHAR2, pos IN PLS_INTEGER := NULL);
Table 119-3 ADDRESCONFIG Function Parameters
Parameter | Description |
---|---|
|
Absolute path of the target resource |
|
Absolute path of the resource configuration to be inserted. An exception is raised if rcpath already exists in the target's configuration list. |
|
Index at which the new configuration is to be inserted. If this parameter is not specified then the new configuration is appended to the end of the list. An exception is raised if the index is out of range ( |
This procedure appends the resource configuration specified by rcpath to the target resource's configuration list if it is not already included in the list.
DBMS_RESCONFIG.ADDRESCONFIG( respath IN VARCHAR2, rcpath IN VARCHAR2, appendOption IN PLS_INTEGER);
Table 119-4 ADDRESCONFIG Function Parameters
Parameter | Description |
---|---|
respath |
Absolute path of the target resource |
|
Absolute path of the resource configuration to be appended at the end of the target's configuration list. If |
|
Either |
This procedure removes the configuration at the given position in the repository's configuration list. It shifts any subsequent elements to the left.
This procedure removes the configuration at the given position in the target resource's configuration list. It shifts any subsequent elements to the left. Users can use the overloaded for recursive deletion.
DBMS_RESCONFIG.DELETERESCONFIG( respath IN VARCHAR2, pos IN PLS_INTEGER);
DBMS_RESCONFIG.DELETERESCONFIG( respath IN VARCHAR2, rcpath IN VARCHAR2, deleteOption IN PLS_INTEGER);
Table 119-6 DELETERESCONFIG Procedure Parameters
Parameter | Description |
---|---|
|
Absolute path of the target resource |
|
The index of the configuration to be removed. An exception is raised if the index is out of range ( |
|
Absolute path of the resource configuration to be deleted if found in list. |
|
Either |
This function returns the list of listeners applicable for a given resource.
The value returned by this function is an XML document containing the <event-listeners>
element of the XDBResconfig
.xsd
schema. It contains all the listeners applicable to the target resource, including repository-level listeners. From the returned XML document users can use the EXTRACT
operator to retrieve the listeners defined for a specific event.
This function returns the resource configuration at the specified position of the repository's configuration list.
This function returns a list of resource configuration paths defined for the repository.
This function returns the resource configuration at the specified position of the target resource's configuration list.
This function returns a list of resource configuration paths defined in the target resource's configuration list.
Under normal circumstances, deletion of a resource configuration resource cannot be performed if it is part of the repository resource configuration list. If, for some reason, the deletion of a resource configuration resource that is part of the repository resource configuration list succeeds, then any repository operation results in a 'dangling reference' error. This procedure removes invalid references from the repository resource configuration list, and makes the repository available. This procedure must be run as SYS
.