Replication Agent for Oracle 15.7.1 ESD #2 must be installed on the same host on which the primary Oracle server is running.
Using any of the upgrade procedures described here, the new Replication Agent for Oracle 15.7.1 ESD #2 instances will have the same configuration as previously existing instances, including instance names, administrative user IDs and passwords, and administrative port numbers.
You can use the ra_finalize_upgrade to manually force upgrade finalization of an instance from a previous version and prevent downgrade to the previous version. You must finalize the upgrade to enable any new functionality. See the Replication Agent Reference Manual for details on using the ra_finalize_upgrade command.