Enterprise Manager Generic (MOSC)

MOSC Banner

Question about emcli add_target

edited Oct 27, 2019 5:01AM in Enterprise Manager Generic (MOSC) 4 commentsAnswered

Hi

I'm currently wrinting a script which should detects unmanaged targets and promotes them.

Basically I'm parsing the output from

emcli get_targets -unmanaged -properties -format=name:csv

I can identify the following emd-types and it's properties:

  • oracle_home
  • oracle_database
  • oracle_listener
  • oracle_pdb

After parsing I'm trying to promote the targets beginning with the Oracle-Homes by using the following command:

emcli add_target -name="OraDB12Home1_1_myserver.mydomain.local_2762" -type="oracle_home" -host="myserver.mydomain.local" -properties="INVENTORY:/u01/app/oracle/oraInventory;HOME_TYPE:O;INSTALL_LOCATION:/u01/app/oracle/product/12.2.0.1/db_1" -hostinfo"host:myserver.mydomain.local;timezone_region:Europe/Berlin"

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center