adpreclone fails via crontab script but succeeds when run manually

Observed Error:

There is already an ACTIVE ADOP CYCLE with session id : SP2-0640: Not connected adpreclone cannot be run with pending ADOP session

Fix:

As per the cause mentioned in Adpreclone.pl Fails with an SP2-0640 Error on 12.2 Application Tier ( Doc ID 2139174.1 ) – “Sqlplus permits user variable lengths up to 240 characters.”, there seems to be a restriction at OS level that is causing only script to fail only on PROD and not non-PROD.

  1. Verified and Patch 22271970 was already applied.
  2. Modified the script to assign apps and weblogic passwords directly into the variables.

Leave a comment