VMware Aria Operations 8.x
Management Pack for Oracle Database version 4.x+
The Management Pack for Oracle Database only considers the server hostname and port when considering the adapter's uniqueness.
If there are only 2 database instances on the same Oracle host, the IP can be used for 1 adapter instance and the hostname can be used to configure the second adapter instance.
Add aliases for each Oracle instance that shares a hostname and port to the local hosts file on each node that will host an Oracle adapter instance. If the adapter instance is assigned to a collector group, all cloud proxies in the group should have the hosts file updated.
Note: Any time the cloud proxy or analytic node is upgraded or patched, this workaround will need to be re-applied.
sed -i '$ a\[ip] [alias]' /etc/hosts
Note: Replace <ip> and <alias> with the IP of the Oracle database host and the alias you would like to refer to it as in the adapter configuration.
Example: sed -i '$ a\10.1.2.3 oracledb1.example.com' /etc/hosts
Add CNAME records to the DNS server that is used by the cloud proxy or analytic node that hosts the Oracle adapter to provide multiple aliases for the same Oracle hostname.