My Oracle Support Banner

EM 13c: Adding a Database Target using Arg File Fails with Error "ORA-20247: EMD_URL is invalid: Cannot provide null emd url" (Doc ID 2931520.1)

Last updated on FEBRUARY 28, 2023

Applies to:

Enterprise Manager for Oracle Database - Version and later
Information in this document applies to any platform.


On : version, Target Database, Listener, ASM

When attempting to add database target to OMS using argfile command with parameters ,
the following error occurs.

Error: Cannot save the target to the agent
ORA-20247: EMD_URL is invalid: Cannot provide null emd url.

$OMS_HOME/bin/emcli login -username=sysman
$OMS_HOME/bin/emcli sync
$OMS_HOME/bin/emcli argfile $SCRIPTPATH/linux_add_target_list.txt > ${LOGPATH}/add_targets.log

The content of the input file for linux:

add_target -name="${ORACLE_SID}" -type="oracle_database" -host="${TARGET_HOST_FQDN}" -credentials="UserName:dbsnmp;password:${DBSNMPPWD};Role:Normal" -properties="SID:${ORACLE_SID};Port:1521;OracleHome:${ORACLE_HOME};MachineName:${TARGET_SHORTNAME}"

$EM_INSTANCE_BASE/gc_inst/em/EMGC_OMS1/sysman/log/emoms.trc file reports following errors:


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.