13c Enterprise Manager -> Setup -> Add Target -> Configure Auto Discovery
The search returns 50 hosts. Click on the only failed one. It shows 5 Dicovery Modules for this host, 4 with success (such as Cluster and HA, Fusion Middleare, Home, Secure Backup). One is shown failed: Oracle Database, Listener and Automatic Storage Management. The error is
DiscoveryPostLoad parse error oracle.xml.parser.v2.XMLParseException; lineNumber: 35; columnNumber: 1; Unexpected EOF.
The target DB server is 2-node RAC, Oracle 11.2.0.3. It's been in production for a few years, monitored by 12c EM with no problem. We recently uninstalled 12c agent and also OMS, and just installed 13c OMS and deployed 13c agent on this target. The file /u02/app/oracle/agent/agent/agent_inst/sysman/emd/targets.xml on the target server looks fine.
We also have errors in /u02/app/oracle/agent/agent/agent_inst/sysman/log/emagent_perl.trc on the target. Not sure if they are related:
oracledb.pl: 2017-06-27 09:30:12,655: ERROR: initParameterFileUtl::getParameterFile: Cannot find any init parameter file for instance +ASM2 in oracle home /u01/app/grid/oracle/product/11.2.0.3/grid/dbs
oracledb.pl: 2017-06-27 09:30:12,752: INFO: DISCOVERY_LISTENER_UTIL: parseOracleConfigFileWithOrder input ifile config location : /u01/app/oracle/product/11.2.0.3/db/network/admin/sqlnet.ora
oracledb.pl: 2017-06-27 09:30:12,752: INFO: DISCOVERY_LISTENER_UTIL: parseOracleConfigFileWithOrder input ifile config location : /u01/app/oracle/product/11.2.0.3/db/network/admin/tnsnames.ora
oracledb.pl: 2017-06-27 09:30:12,753: INFO: DB_LISTENER_DISCOVERY: no port found with TCPS protocol, now try to find port with TCP protocol.
But ASM never has pfile or spfile at its $ORACLE_HOME/dbs on this or any other server. And `lsnrctl status' shows everything fine. We use port 1521, plain TCP.
Thanks for any advice.