Search This Blog

Tuesday, August 23, 2011

How to change HOSTNAME of Oracle Application Server (11i)

How to change Hostname of Oracle application installed.
Before proceeding further let me clear few things regarding oracle application installation.
Oracle Application installation can be multi-node or single node.
Single node = when database and application tier installed on same machine.
Multi node = when database tier and application tier installed on separate machine.
Oracle application 11i
Linux x86 32 bit
How to change hostname on single node environment?
Step: First congfiure the database tier
Part-I
Logon with owner of oracle database server user (eg: oramgr)
1. De-register the current database server
2. update the autoconfig contexts files
3. shutdown application tier services (middle tier)
4. reset the net services topology model
4.1 run autoconfig on db tier
4.2 run autoconfig on apps tier
5. shutdown db listener
6. shutdown db server
7. change machine hostname
8. start database
9. start DB TNS Listner
10. start application tier services (middle tier)
Part-II
Configure Application tier
Logon with owner of application tier server user ( eg: applmgr)
1. De-register the current application server
2. update the autoconfig contexts files
3. shutdown application tier services (middle tier)
4. change machine hostname
5. reset the NET SERVICES TOPOLOGY MODEL
6. start application tier services (middle tier)
7. Finising task
Details of Part-I
1.
perl /appsutil/bin/adgentns.pl appspass= \
contextfile= -removeserver
This will create a new Context file of the format _.xml in the current working directory
2.
DB Tier: Create a new context file using the following syntax :
cd /appsutil
perl ./bin/adclonectx.pl contextfile=$CONTEXT_FILE
Via OAM ( oracle application manager) change the value of DATA SERVER HOST name in the context file of all applications nodes.
3.
$COMMON_TOP/admin/scripts//adstpall.sh apps
4.1
Run AutoConfig on the Database Tier
cd /appsutil/bin/
./adconfig.sh contextfile=/appsutil/_.xml
4.2
Run AutoConfig on the Applications Tier(s) 
cd /admin/scripts/
./adautocfg.sh appspass=
5.
Shutdown the DB TNS listener using the script under the following location (old configuration script)
/appsutil/scripts//addlnctl.sh stop {listener}
6.
from the old configuration scripts
/appsutil/scripts//addbctl.sh stop
7.
change machine hostname
and verify the following details (only applicable on LINUX PLATFORM)
Verify that the /etc/hosts file contains entries that are similar to the following:
127.0.0.1 localhost.localdomain
. 
Verify that the /etc/sysconfig/network file contains an entry that is similar to the following:
HOSTNAME=.
Check to see if the /etc/sysconfig/networking/profiles/default/network file exists. If it does, remove it.
If you changed any files in the previous steps, reboot the system.
8.
Source you new environment file and start the Database listener
/appsutil/scripts//addlnctl.sh start {listener}
9.
$COMMON_TOP/admin/scripts//adstrtal.sh apps
Details of Part-II
1.
perl $AD_TOP/bin/adgentns.pl appspass= \
contextfile= -removeserver 
2.
Create a new context file using the following syntax:-
cd $APPL_TOP/admin
perl $AD_TOP/bin/adclonectx.pl contextfile=$CONTEXT_FILE
This will create a new Context file of the format _.xml in the current working directory 
3.
$COMMON_TOP/admin/scripts//adstpall.sh apps
4.
change machine hostname
Change the hostname at O/S level at this stage
If you use /etc/hosts ensure you remember to update the entries.
Linux Red Hat Platforms Only:
Verify that the /etc/hosts file contains entries that are similar to the following:
127.0.0.1 localhost.localdomain
.

Verify that the /etc/sysconfig/network file contains an entry that is similar to the following:
HOSTNAME=.
Check to see if the /etc/sysconfig/networking/profiles/default/network file exists. If it does, remove it.
If you changed any files in the previous steps, reboot the system.
5.
Run AutoConfig on the Applications tier node using the following syntax:-
cd /bin
./adconfig.sh contextfile= appspass=
6.
Rerun APPSORA.env to set the new Application environment
Start the Applications Tier Services using the script from the new directory:-
$COMMON_TOP/admin/scripts//adstrtal.sh apps
7.
Follow the steps in Note: 230672.1 Section 3: Finishing Task
write me email in case of any queries at askdbataj

2 comments:

Anonymous said...

Your point is valueble for me. Thanks!

My blog:
dsl anbieter klick hier

Kavitha said...

Hey taj

Thanks it's help.


Kavitha