Recently, we were attempting to clone our EBS environment:
unix> . /opt/app/oracle/apps/EBSapps.env run
unix> cd $ADMIN_SCRIPTS_HOME
unix> perl adpreclone.pl appsTier
And got the following error:
There is already an ACTIVE ADOP CYCLE with session id : 94
adpreclone cannot be run with pending ADOP session
The message is straightforward and claims we have an active online patch cycle. We checked the status:
unix> adop -status
And it turns out we do:
Node Name | Node Type | Phase | Status | Started | Finished | Elapsed |
---|---|---|---|---|---|---|
beejartha | master | PREPARE | COMPLETED | 2024/01/01 13:01:33 | 2024/01/01 13:24:47 | 0:23:14 |
APPLY | NOT STARTED | |||||
FINALIZE | NOT STARTED | |||||
CUTOVER | NOT STARTED | |||||
CLEANUP | NOT STARTED |
Solution
The clone cannot be done until a patch cycle is completed or aborted. In this case, we decided to abort the online patch cycle. This will drop the database patch edition and return everything to the normal runtime state.
We did the following:
unix>adop phase=abort
unix>adop phase=cleanup cleanup_mode=full
unix>adop phase=fs_clone
Checking the status of the online patch cycle again we see the following
unix> adop -status
Node Name | Node Type | Phase | Status | Started | Finished | Elapsed |
---|---|---|---|---|---|---|
beejartha | master | PREPARE | SESSION ABORTED | 2024/01/01 13:01:33 | 2024/01/01 13:24:47 | 0:23:14 |
APPLY | SESSION ABORTED | |||||
FINALIZE | SESSION ABORTED | |||||
CUTOVER | SESSION ABORTED | |||||
CLEANUP | COMPLETED | 2024/01/01 14:09:56 | 2024/01/01 14:12:20 | 0:02:24 |
Now that the patch cycle has been aborted, we can successfully run the pre-clone script.
Credits
- This tutorial is independently created and is not official Oracle Corporation documentation.
- The content of this tutorial has been enriched by leveraging the insights and documentation available from Oracle Corporation. We extend our thanks to Oracle for their dedication to knowledge sharing. For official Oracle resources and additional information, please refer to www.oracle.com.