178 DBMS_UMF
The DBMS_UMF
package provides an interface for deploying the Remote Management Framework (RMF) for an Oracle Database. The RMF is used for collecting performance statistics for an Oracle Database.
See Also:
Oracle Database Performance Tuning Guide for more information about configuring the RMF for an Oracle Database.
This chapter contains the following topic:
178.1 Summary of DBMS_UMF Subprograms
This topic lists the DBMS_UMF
subprograms in alphabetical order and briefly describes them.
Table 178-1 DBMS_UMF Package Subprograms
Subprogram | Description |
---|---|
Configures a node in the RMF topology |
|
Creates a database link between two nodes in the RMF topology |
|
Creates the RMF topology |
|
Removes a database link between two nodes in the RMF topology |
|
Deletes the RMF topology |
|
Enables a service on a node in the RMF topology |
|
Returns the node ID of a node in the RMF topology |
|
Returns the node name of a node in the RMF topology |
|
Returns the destination ID in the RMF topology |
|
Returns the RMF topology name of the local node |
|
Returns the information about a database link in the RMF topology |
|
Returns the information about a node in the RMF topology |
|
Registers a node in the RMF topology |
|
Designates a source node as a destination node in the RMF topology |
|
Resets the configuration of a node in the RMF topology |
|
Removes the registration of a node in the RMF topology |
178.1.1 CONFIGURE_NODE Procedure
This procedure configures a node that needs to be registered with the RMF topology. This procedure must be executed on the node that needs to be configured.
Syntax
DBMS_UMF.CONFIGURE_NODE(
node_name IN VARCHAR2 DEFAULT NULL,
dblink_to_target IN VARCHAR2 DEFAULT NULL);
Parameters
Table 178-2 CONFIGURE_NODE Procedure Parameters
Parameter | Description |
---|---|
|
Name of the node. Each node in the RMF topology must be assigned a unique name. If a name is not provided for a node in this procedure, then the value of the initialization parameter |
|
Database link from this node to the destination node. |
Security Model
Only the database users SYS
and SYS$UMF
can execute this procedure.
178.1.2 CREATE_LINK Procedure
This procedure creates database links between two nodes in the RMF topology. This procedure must be executed only on the destination node.
Syntax
DBMS_UMF.CREATE_LINK(
topology_name IN VARCHAR2,
node_a_name IN VARCHAR2,
node_b_name IN VARCHAR2,
dblink_a_to_b IN VARCHAR2,
dblink_b_to_a IN VARCHAR2);
Parameters
Table 178-3 CREATE_LINK Procedure Parameters
Parameter | Description |
---|---|
|
Name of the RMF topology. |
|
Name of the first node. |
|
Name of the second node. |
|
Database link from the first node to the second node. |
|
Database link from the second node to the first node. |
Security Model
Only the database users SYS
and SYS$UMF
can execute this procedure.
178.1.3 CREATE_TOPOLOGY Procedure
This procedure creates the RMF topology and designates the node on which it is executed as the destination node for that topology.
Syntax
DBMS_UMF.CREATE_TOPOLOGY(
topology_name IN VARCHAR2);
Parameters
Table 178-4 CREATE_TOPOLOGY Procedure Parameters
Parameter | Description |
---|---|
|
Name of the RMF topology. |
Security Model
Only the database users SYS
and SYS$UMF
can execute this procedure.
178.1.4 DROP_LINK Procedure
This procedure removes the database links between two nodes in the RMF topology. This procedure must be executed only on the destination node.
Syntax
DBMS_UMF.DROP_LINK(
topology_name IN VARCHAR2,
node_a_name IN VARCHAR2,
node_b_name IN VARCHAR2);
Parameters
Table 178-5 DROP_LINK Procedure Parameters
Parameter | Description |
---|---|
|
Name of the RMF topology. |
|
Name of the first node. |
|
Name of the second node. |
Security Model
Only the database users SYS
and SYS$UMF
can execute this procedure.
178.1.5 DROP_TOPOLOGY Procedure
This procedure deletes the RMF topology. This procedure must be executed only on the destination node.
Syntax
DBMS_UMF.DROP_TOPOLOGY(
topology_name IN VARCHAR2);
Parameters
Table 178-6 DROP_TOPOLOGY Procedure Parameters
Parameter | Description |
---|---|
|
Name of the topology to delete. |
Security Model
Only the database users SYS
and SYS$UMF
can execute this procedure.
178.1.6 ENABLE_SERVICE Procedure
This procedure enables a service, such as the AWR service, on a node in the RMF topology. This procedure must be executed only on the destination node.
Syntax
DBMS_UMF.ENABLE_SERVICE(
topology_name IN VARCHAR2,
node_name IN VARCHAR2,
service_type IN NUMBER);
Parameters
Table 178-7 ENABLE_SERVICE Procedure Parameters
Parameter | Description |
---|---|
|
Name of the RMF topology. |
|
Name of the node on which a specific service needs to be enabled. |
|
Numeric constant identifying the service. The only allowed value for this parameter is |
Security Model
Only the database users SYS
and SYS$UMF
can execute this procedure.
178.1.7 GET_NODE_ID_LOCAL Function
This function returns the node ID of the node in the RMF topology on which this function is executed.
Syntax
DBMS_UMF.GET_NODE_ID_LOCAL(
topology_name IN VARCHAR2 DEFAULT NULL)
RETURN NUMBER;
Parameters
Table 178-8 GET_NODE_ID_LOCAL Function Parameters
Parameter | Description |
---|---|
|
Name of the RMF topology with which the node is registered. |
Return Value
Returns the node ID of the node in the RMF topology on which this function is executed.
Security Model
Only the database users SYS
and SYS$UMF
can execute this function.
178.1.8 GET_NODE_NAME_LOCAL Function
This function returns the name of the node in the RMF topology on which this function is executed.
Syntax
DBMS_UMF.GET_NODE_NAME_LOCAL RETURN VARCHAR2;
Return Value
Returns the name of the node in the RMF topology on which this function is executed.
Security Model
Only the database users SYS
and SYS$UMF
can execute this procedure.
178.1.9 GET_TARGET_ID Function
This function returns the ID of the destination node in the RMF topology. This function can be executed on any node in the RMF topology.
Syntax
DBMS_UMF.GET_TARGET_ID(
topology_name IN VARCHAR2)
RETURN NUMBER;
Parameters
Table 178-9 GET_TARGET_ID Function Parameters
Parameter | Description |
---|---|
|
Name of the RMF topology. |
Return Value
Returns the ID of the destination node in the RMF topology.
Security Model
Only the database users SYS
and SYS$UMF
can execute this procedure.
178.1.10 GET_TOPOLOGY_NAME_LOCAL Function
This function returns the name of the active RMF topology of the node on which this function is executed.
Syntax
DBMS_UMF.GET_TOPOLOGY_NAME_LOCAL RETURN VARCHAR2;
Return Value
Returns the name of the active RMF topology of the node on which this function is executed.
Security Model
Only the database users SYS
and SYS$UMF
can execute this procedure.
178.1.11 QUERY_LINK_INFO Procedure
This procedure returns the name of the database link between two nodes in the RMF topology. This procedure can be executed on any node in the RMF topology.
Syntax
DBMS_UMF.QUERY_LINK_INFO(
topology_name IN VARCHAR2,
from_node_id IN NUMBER,
to_node_id IN NUMBER,
link_name OUT VARCHAR2);
Parameters
Table 178-10 QUERY_LINK_INFO Procedure Parameters
Parameter | Description |
---|---|
|
Name of the RMF topology. |
|
Node ID of the first node. |
|
Node ID of the second node. |
|
Name of the database link from the first node to the second node returned by the procedure. |
Security Model
Only the database users SYS
and SYS$UMF
can execute this procedure.
178.1.12 QUERY_NODE_INFO Procedures
This procedure returns information about a node in the RMF topology. This procedure can be executed on any node in the RMF topology.
Syntax
DBMS_UMF.QUERY_NODE_INFO(
topology_name IN VARCHAR2 DEFAULT NULL,
node_name IN VARCHAR2,
node_id OUT NUMBER);
DBMS_UMF.QUERY_NODE_INFO(
node_id IN NUMBER,
topology_name OUT VARCHAR2,
node_name OUT VARCHAR2);
Parameters
Table 178-11 QUERY_NODE_INFO Procedure Parameters
Parameter | Description |
---|---|
|
Name of the RMF topology with which the node is registered. |
|
Name of the node. |
|
Identifier of the node. |
Security Model
Only the database users SYS
and SYS$UMF
can execute this procedure.
178.1.13 REGISTER_NODE Function and Procedure
This function and procedure registers a node with the RMF topology. This procedure and function must be executed only on the destination node in the RMF topology.
Syntax
DBMS_UMF.REGISTER_NODE(
topology_name IN VARCHAR2,
node_name IN VARCHAR2,
dblink_to_node IN VARCHAR2 DEFAULT NULL,
dblink_from_node IN VARCHAR2 DEFAULT NULL,
as_source IN VARCHAR2 DEFAULT 'TRUE',
as_candidate_target IN VARCHAR2 DEFAULT 'FALSE');
DBMS_UMF.REGISTER_NODE(
topology_name IN VARCHAR2,
node_name IN VARCHAR2,
dblink_to_node IN VARCHAR2 DEFAULT NULL,
dblink_from_node IN VARCHAR2 DEFAULT NULL,
as_source IN VARCHAR2 DEFAULT 'TRUE',
as_candidate_target IN VARCHAR2 DEFAULT 'FALSE');
node_id OUT VARCHAR2);
DBMS_UMF.REGISTER_NODE(
topology_name IN VARCHAR2,
node_name IN VARCHAR2,
dblink_to_node IN VARCHAR2 DEFAULT NULL,
dblink_from_node IN VARCHAR2 DEFAULT NULL,
as_source IN VARCHAR2 DEFAULT 'TRUE',
as_candidate_target IN VARCHAR2 DEFAULT 'FALSE')
RETURN NUMBER;
Parameters
Table 178-12 REGISTER_NODE Function and Procedure Parameters
Parameter | Description |
---|---|
|
Name of the RMF topology. |
|
Name of the node to register. |
|
Name for the database link from the destination to the node. |
|
Name for the database link from the node to the destination. |
|
Set to |
|
Set to |
|
Node ID returned by the procedure. |
Return Value
Returns the node ID of the registered node.
Security Model
Only the database users SYS
and SYS$UMF
can execute this procedure.
178.1.14 SWITCH_DESTINATION Procedure
This procedure makes the candidate destination as the new destination in the RMF topology. This procedure must be executed only on the candidate destination node.
Syntax
DBMS_UMF.SWITCH_DESTINATION(
topology_name IN VARCHAR2,
force_switch IN BOOLEAN DEFAULT TRUE);
Parameters
Table 178-13 SWITCH_DESTINATION Procedure Parameters
Parameter | Description |
---|---|
|
Name of the RMF topology. |
|
If set to
If set to
|
Security Model
Only the database users SYS
and SYS$UMF
can execute this procedure.
178.1.15 UNCONFIGURE_NODE Procedure
This procedure removes the configuration details of the node on which this procedure is executed.
Syntax
DBMS_UMF.UNCONFIGURE_NODE;
Security Model
Only the database users SYS
and SYS$UMF
can execute this procedure.
178.1.16 UNREGISTER_NODE Procedure
This procedure removes a node for the RMF topology. This procedure must be executed only on the destination node.
Syntax
DBMS_UMF.UNREGISTER_NODE(
topology_name IN VARCHAR2,
node_name IN VARCHAR2);
Parameters
Table 178-14 UNREGISTER_NODE Procedure Parameters
Parameter | Description |
---|---|
|
Name of the RMF topology. |
|
Name of the node which needs to be removed from the topology. |
Security Model
Only the database users SYS
and SYS$UMF
can execute this procedure.