0% found this document useful (0 votes)
206 views

How To Change Target Name in OEM 12C - 13C - Database Adminstration

There are two ways to change the target name in OEM 12C/13C. Option 1 involves deleting the database from the cloud control console and re-adding it with the new name. Option 2 changes the display name of the database, which changes the name in certain OEM screens but not all screens. A target has both a display name and entity name. The display name can be changed using an emcli command to modify the target, while the entity name requires deleting and re-adding the target.

Uploaded by

akammiea Ahmed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
206 views

How To Change Target Name in OEM 12C - 13C - Database Adminstration

There are two ways to change the target name in OEM 12C/13C. Option 1 involves deleting the database from the cloud control console and re-adding it with the new name. Option 2 changes the display name of the database, which changes the name in certain OEM screens but not all screens. A target has both a display name and entity name. The display name can be changed using an emcli command to modify the target, while the entity name requires deleting and re-adding the target.

Uploaded by

akammiea Ahmed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

DATABASE ADMINSTRATION
HOME ABOUT ASM ORACLE  ORACLE RAC SQL QUERY CONTACT US

OEM

How to Change Target Name in OEM 12C / 13C

There are Two ways to do it. Can be used in RAC also


Search
Option 1) Delete the database from cloud control console, and re-add it using
SEARCH … 
the desired new name.

Notice
Privacy & Cookies: that
This site usesif a database
cookies. target
By continuing to use is
thisdeleted from
website, you agree cloud control,
to their use. all the database’s Advertisements
To nd out more, including how to control cookies, see here: Cookie Policy
Close and accept
metric and job history will also be deleted.

Go to Targets/Databases
Highlight the database to be re-named,
Click on remove
Follow
Warning message is shown , click on “Yes”
Click on “Add” (green cross icon)/oracle database
Specify the host name by clicking on the magnifying glass icon, and choose the REPORT THIS AD

host
Click on ‘next’: “Target Discovery – In progress box” is shown
The “Database Discovery:Results” screen is shown
Select the database and click on “con gure”
In section “TargetName”, the suggested name can be changed here
In the section “Database System” the database system name can be changed
here

Option 2) Change the display name of the database.


Note that this option changes the name that the database name is displayed as in
certain screens of cloud control, but not necessarily all of the screens. (only those
that are designed to display the display_name)

ABOUT THE DIFFERENT TYPES OF TARGET NAME

A target in Cloud Control has two types of name:-

The ‘display_name’ -This is the name that the database is displayed as in some of
the screens of Cloud Control console
The ‘entity_name’ – This is the true name of the database entity in the Cloud
Control repository and in the agent’s targets.xml le

Note* neither of these names have to necessarily correspond with the actual real
name/SID of the database. Normally for a database target, the display name, and the
entity name will be the same.

This can be checked by running the following sql in the repository database:-

SELECT ENTITY_TYPE, ENTITY_NAME, DISPLAY_NAME FROM


EM_MANAGEABLE_ENTITIES
WHERE ENTITY_TYPE=’oracle_database’ and promote_status=3 and
manage_status=’2′

or it is shown in the targets.xml (in agent_inst/sysman/emd/targets.xml) on the agent


machine:-

<Target TYPE=”oracle_database” NAME=”orcl” DISPLAY_NAME=”orcl” ON_HOST=””


EMD_URL=”https://earth.com:6872/emd/main/&#8221; TIMEZONE_REGION=””
IDENTIFIER=”TARGET_GUID=FDB08ADAGEASDRYESDHDRCF”>

TO CHANGE THE DISPLAY NAME

To change the display name of the database use the following emcli command.

Note* from 12.1.0.3 onwards, emcli is automatically installed and con gured in the
ORACLE_HOME of the OMS.

cd $ORACLE_HOME<of OMS>
emcli login -username=sysman -password=<sysman password>
emcli sync
emcli modify_target -name=”<entity name>” -type=”oracle_database” -
display_name=”<new name you want to use>” -on_agent

For example:-

emcli modify_target -name=”orcl” -type=”oracle_database” -display_name=”orcltest” -


on_agent

After the change, the database will show up with the new name in Cloud Control.

The targets.xml will show:-

<Target TYPE=”oracle_database” NAME=”orcl” DISPLAY_NAME=”orcltest” ON_HOST=””


EMD_URL=”https://earth.com:6872/emd/main/&#8221; TIMEZONE_REGION=””
IDENTIFIER=”TARGET_GUID= FDB08ADAGEASDRYESDHDRCF “>

Refer the Option 1

Advertisements

REPORT THIS AD

Share this:

 Twitter  Facebook

PUBLISHED BY
walunj11ganesh
View all posts by walunj11ganesh

Leave a Reply

Enter your comment here...

← ARCHIVE LOG BACKUP HOW TO CHECK CLUSTER →


SCRIPTS NAME,VERSION AND SCAN
NAME

CREATE A FREE WEBSITE OR BLOG AT WORDPRESS.COM.

You might also like