Database Reference
In-Depth Information
To move goldfish database and its listener from the alice server to buster:
emcli relocate_targets
-src_agent="alice:3872"
-dest_agent="buster:3872"
-target_name="goldfish"
-target_type="oracle_database"
-copy_from_src
emcli relocate_targets
-src_agent="alice:3872"
-dest_agent="buster:3872"
-target_name="lsnrgoldfish"
-target_type="oracle_listener"
For the transfer you'd use these values:
src_agent = alice:3872 (current agent name)
dest_agent = buster:3872 (destination agent name)
target_name = goldfish (name of the target to move)
target_type = EM types for that target
Database targets also include the copy_from_src flag in order to retain their history. You can only relocate one
target per EM CLI command.
OMS-Mediated Targets
Do not use the relocate targets verb with RAC databases or Oracle clusters of any type. Your management
server knows about the relationships between clustered objects that use Oracle software and will mediate agent
responsibilities automatically across the clustered hosts. If you manually relocate a clustered target to another agent
in another cluster you run the risk of corrupting OEM's associations between the cluster members.
You can query the repository database to determine which targets are OMS mediated as follows:
SELECT entity_type,
entity_name,
host_name
FROM sysman.em_manageable_entities
WHERE manage_status =2 -- Managed
AND promote_status =3 -- Promoted
AND monitoring_mode =1 -- OMS mediated
ORDERBY entity_type,entity_name, host_name;
ENTITY_TYPE ENTITY_NAME HOST_NAME
------------------------- ------------------------------------- --------------------
cluster clust01 cluster01b.com
cluster clust01 cluster01b.com
rac_database apple cluster01b.com
rac_database betty cluster01a.com
rac_database jack cluster01b.com
weblogic_domain /EMGC_GCDomain/GCDom myoms.com
weblogic_domain /Farm01_IDMDomain/ID myoms.com
weblogic_domain /Farm02_IDMDomain/ID myoms.com
 
Search WWH ::




Custom Search