I have been trying to add database target on a remote host but fails to detect it as its looking into a wrong ORACLE_HOME directory how can I make it to look into the right ORACLE_HOME,
the ORACLE_HOME is already defined in .bash_profile however its reading GRID_HOME as ORACLE_HOME and fails to detect database and related targets, I have already added the cluster target and want to add database related targets for the RAC.
Thanks for your help.
Have a look at support bulletin "Understanding Database Discovery in Enterprise Manager 12cCloud Control [ID 1400463.1]". The oracle home location is pulled from oratab which the agent needs access to ( see section "Has the database been discovered" ) for details.
Let us know if the resolves your issue.