The post clone script (adcfgclone.pl ) is created by the preclone script as you must be knowing. Therefore specific ports can be transferred to the target instance as long as you can answer the question as" USE THE SAME PORT AS SOURCE" by having those ports in the Source Instance when running the post clone script. But if it is not the case you will have to go with clone and then change the ports and consequently run the autoconfig. I am personally not aware of any predefined context file which can hep you achieve your objective.
How To Preserve Customizations In adcfgclone.pl Script (Doc ID 828874.1)
Anyhow I have not tried the following but you may give a try, whether this achieves your objective.
- Run pre-clone script
- Transfer the backup
- Take a backup of the context file
- Change the desired port values on the context file
- Run post clone as:
perl adcfgclone.pl (appsTier/dbTier) <LOCATION_target_xmlfile>
- Answer the post clone script as:
Do you want to preserve the Display set to sourcehost:0.0 (y/n) [y] ? Y
Let us know if it helps!
Rapid Clone doesn't support using different ports during the clone and you will have to select one port pool when running adcfgclone.pl script -- Troubleshooting RapidClone issues with Oracle Applications R12 (Doc ID 603104.1)
If you want to change any of the ports, then you can accomplish this later after the clone is done successfully by editing context file(s) and running AutoConfig.
I tried to establish what you have suggested. As I was cloning from a vision instance, which was deliberately altered into TEST, DEVELOPMENT & PRODUCTION scenarios, my backup has multiple context files and changing the ports prior cloning looks awful.
Instead I went ahead with normal cloning, answering N to preserve display and later changed the ports for both database and application and ran autoconfig. Yes, kind of tedious job, especially while working on a server with no gui (or my limited exposure to VIM editor)
Thanks for the update..
Yes, I m well aware the standard method would be to clone and then alter ports and run autoconfig. And as i said earlier in my post I never did try out the steps but was just trying to work on the logic and see if it would achieve your specifc object
Anyways thanks a lot again for your try out and confirmation brother