You must run the pre-clone script on the new home.
perl adpreclone.pl dbTier
You may also need to run it on the apps tier if you have not done so recently:
perl adpreclone.pl appsTier
Thanks Bashar but one more question.
3. APPS Tier: Deregister the current Applications server
On the App Tier when I go to deregister the server the guide says to:
perl $AD_TOP/bin/adgentns.pl appspass=<APPSpwd> contextfile=./<SID>_oldhost.xml -removeserver
But that's not where my contextfile is so it errors? Shouldn't I be referring it to $INST_TOP/appl/admin?
In R12, It is found in $INST_TOP as you said.
Just to be on the safe side, check the $APPL_TOP/admin if there are any context files.
Run the command from the old $INST_TOP.
Reviving this post if that's ok as I have a couple more questions.
As mentioned I'm referring to Doc ID 1277556.1 for how to change hostname on a single node.
Now in my case I have two nodes - db server and app server but I think it is basically the same with a few adjustments and my primary goal is to change the server domain name of both servers but I may also change the server name of the database server as it does not conform to our newer naming standard.
So if I change the db server name I will also have to:
- edit sqlnet.ora, listener.ora and <SID_server_ifile.ora
- along with providing a DNS entry
Plus won't I need to run FND_CONC_CLONE.SETUP_CLEAN to remove the old autoconfig entires? Then run adautocfg.sh on both tiers?
I'll provide you with a quick suggestion on this and we can revise it later.
- Run the setup_clean procedure.
- Change the hostname and domain of the db server.
- Run adcfgclone.pl on the db tier to create a new context file.
- Run AutoConfig on DB tier.
- Change the hostname and domain of the application server.
- Run adcfgclone.pl on the apps tier to create a new context file.
- Run AutoConfig on the apps tier.
ok thanks Bashar.
I'm gonna run through this on Sunday when we have a maintenance window and see how it goes
If you think of anything prior to then that we may be missing let me know.
Seems to be working but I did struggle as I just wasn't sure what perl script to run on the db tier as in should it be "adcfgclone.pl dbTier"?
I ended up using the notes I had with "adclonectx.pl contextfile=xxx" and then ran adconfig.sh contextfile=$CONTEXT_FILE.
I did have to duplicate my <SID>_servername directory where my TNS_ADMIN lives as well but fingers crossed it's all good tomorrow.