Oracle DBMS_UMF Version 21c |
---|
General Information | |||||||||||||
Library Note |
|
||||||||||||
Purpose | Universal Message Format, UMF, Provides an interface for deploying the Remote Management Framework (RMF) for an Oracle Database. The RMF is used for collecting Oracle Database performance statistics. It provides functions to create and manage UMF topologies. Specifically, it provides calls to create/drop topologies and to modify a topology by adding/removing nodes and links. It also provides calls to manage services (such as AWR) running on nodes and to view/validate a topology. API calls for a given topology must be executed on the target for that topology. | ||||||||||||
AUTHID | DEFINER | ||||||||||||
Constants |
|
||||||||||||
Data Types | |||||||||||||
Dependencies |
|
||||||||||||
Documented | Yes | ||||||||||||
Exceptions |
|
||||||||||||
First Available | 12.2 | ||||||||||||
Security Model | Owned by SYS with EXECUTE granted to the DBA and
SYSUMF_ROLE roles. The SYS$UMF user is the default database user that has all the privileges to access the system-level RMF views and tables. All the AWR related operations in RMF can be performed only by the SYS$UMF user. The SYS$UMF user is locked by default and it must be unlocked before deploying the RMF topology. You need to provide password for the SYS$UMF user when creating database links in the RMF topology. If the password for the SYS$UMF user is changed, all the database links in the RMF topology must be recreated. |
||||||||||||
Source | {ORACLE_HOME}/rdbms/admin/dbmsumf.sql | ||||||||||||
Subprograms | |||||||||||||
CONFIGURE_NODE | |||||||||||||
Configure a node for UMF by setting a node name. If input is NULL it will be set to db_unique_name or db_name. Also allows pre-setting the name of the database link to the target, before registration. | dbms_umf.configure_node( |
||||||||||||
exec dbms_umf.configure_node('UWPRODA', 'DBL_A2B'); |
|||||||||||||
CREATE_LINK | |||||||||||||
Create a link between two nodes implemented with dblinks: one for each direction. | dbms_umf.create_link( |
||||||||||||
exec dbms_umf.create_link('UWTOPOL', 'UWPRODA', 'UWPRODB', 'DBL_A2B', 'DBL_B2A'); |
|||||||||||||
CREATE_TOPOLOGY | |||||||||||||
Creates a new topology and designates the system it runs on as the target for that topology | dbms_umf.create_topology(topology_name IN VARCHAR2); |
||||||||||||
-- this is what will happen if you try to create the topology before configuring the nodes
conn sys@orabase as sysdba |
|||||||||||||
DROP_LINK | |||||||||||||
Delete the link between nodes A and B | dbms_umf.drop_link( |
||||||||||||
exec dbms_umf.drop_link('UWTOPOL', 'UWPRODA', 'UWPRODB'); |
|||||||||||||
DROP_TOPOLOGY | |||||||||||||
Deletes a topology and all the associated registrations and links | dbms_umf.drop_topology(topology_name IN VARCHAR2); |
||||||||||||
exec dbms_umf.drop_topology('UWTOPOL'); |
|||||||||||||
ENABLE_SERVICE | |||||||||||||
Enables a service, for example AWR, on a node | dbms_umf.enable_service( |
||||||||||||
exec dbms_umf.enable_service('UWTOPOL', 'UWPRODB', dbms_umf.service_type_awr); |
|||||||||||||
GET_NODE_ID_LOCAL | |||||||||||||
Returns the UMF node ID for the local node | dbms_umf.get_node_id_local(topology_name IN VARCHAR2 DEFAULT NULL) |
||||||||||||
SELECT dbms_umf.get_node_id_local('UWTOPOL') |
|||||||||||||
GET_NODE_NAME_LOCAL | |||||||||||||
Returns the UMF node name | dbms_umf.get_node_name_local RETURN VARCHAR2; |
||||||||||||
SELECT dbms_umf.get_node_name_local |
|||||||||||||
GET_TARGET_ID | |||||||||||||
Retrieves the target ID of the given topology | dbms_umf.get_target_id(topology_name IN VARCHAR2) |
||||||||||||
SELECT dbms_umf.get_target_id('UWTOPOL') |
|||||||||||||
GET_TOPOLOGY_NAME_LOCAL | |||||||||||||
Returns the name of the active UMF topology | dbms_umf.get_topology_name_local RETURN VARCHAR2; |
||||||||||||
SELECT dbms_umf.get_topology_name_local |
|||||||||||||
QUERY_LINK_INFO | |||||||||||||
Retrieves the name of the database link that connects two nodes | dbms_umf.query_link_info( |
||||||||||||
DECLARE |
|||||||||||||
QUERY_NODE_INFO | |||||||||||||
Retrieves registration info for a node. Given the node_name, it returns the topology name and the node ID Overload 1 |
dbms_umf.query_node_info( |
||||||||||||
set serveroutput on |
|||||||||||||
Overload 2 | dbms_umf.query_node_info(node_id IN NUMBER, |
||||||||||||
set serveroutput on |
|||||||||||||
REGISTER_NODE | |||||||||||||
Registers a node with a given topology. Nodes are identified by their node name, which can be any string, with the constraint that the tuple [topology_name, node_name] must be unique Overload 1 |
Also accepts as input the names of the two dblinks, to and from the target. The procedure returns the auto-generated node id for the new registration (which is also stored in umf$_registration).
dbms_umf.register_node ( |
||||||||||||
TBD | |||||||||||||
Invokes the function without returning the node_id Overload 2 |
dbms_umf.register_node ( |
||||||||||||
TBD | |||||||||||||
Invokes the function without returning the node_id Overload 3 |
dbms_umf.register_node ( |
||||||||||||
TBD | |||||||||||||
SWITCH_DESTINATION | |||||||||||||
Designates the node where the command is executed as the new UMF destination of the given topology. The procedure fails if the designated node is not capable of performing the target role | dbms_umf.switch_destination( |
||||||||||||
exec dbms_umf.switch_destination('UWTOPOL', FALSE); |
|||||||||||||
UNCONFIGURE_NODE | |||||||||||||
Clear a node's internal configuration | dbms_umf.unconfigure_node; |
||||||||||||
exec dbms_umf.unconfigure_node; |
|||||||||||||
UNREGISTER_NODE | |||||||||||||
Removes the registration info for the node identified by the tuple [topology_name, node_name] | dbms_umf. unregister_node ( |
||||||||||||
exec dbms_umf.unregister_node('UWTOPOL', 'UWPRODB'); |
Related Topics |
Built-in Functions |
Built-in Packages |
DBMS_UMF_INTERNAL |
DBMS_UMF_PROTECTED |
Remote Management Framework (RMF) |
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 | |||||||||
|
||||||||||