OIM Schema Upgrade Fails During One-Hop Upgrade

The schema upgrade fails during the one-hop upgrade of Oracle Identity Manager if the OIM 11g (11.1.2.3.0) setup uses localhost to refer to the machine, instead of using the actual host name or IP address.

The following error is displayed:
UPGRADE PATH : [11.1.2.3.0, 12.2.1.3.0, 12.2.1.4.0]
oracle.iam.oimupgrade.exceptions.OIMUpgradeException: Python script for
migrating OPSS application policies from OracleIdentityManager Stripe to OIM
Stripe fails
at
oracle.iam.oimupgrade.onehop.SchemaUpgradeManager.migrateOracleIdentityManager

StripeToOIMStripe(SchemaUpgradeManager.java:376)
at
oracle.iam.oimupgrade.onehop.SchemaUpgradeManager.upgrade(SchemaUpgradeManager

.java:300)
at oracle.iam.oimupgrade.mrua.OIM12CPS4UA.upgrade(OIM12CPS4UA.java:199)
at oracle.ias.update.plugin.Plugin.upgrade(Plugin.java:730)
at oracle.ias.update.plan.PlanStep.upgrade(PlanStep.java:736)
at
oracle.ias.update.PhaseProcessor$UpgradeProcessor.runStepPhase(PhaseProcessor.

java:775)
at oracle.ias.update.PhaseProcessor.runStep(PhaseProcessor.java:382)

To resolve this issue, change all occurrences of localhost to use the actual host name or IP address.