Question about emcli add_target
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"