Friday, February 6, 2009

Change the hostname of an Applications Tier using AutoConfig

The following method can be used to change an Applications Tier hostname using AutoConfig.

- Deregister the current Applications server

as the owner of the Oracle Applications file system and current database instance runt eh following command:

perl $AD_TOP/bin/adgentns.pl appspass= \
contextfile= path-to-context-file -removeserver

If you already changed the information of your existing AutoConfig Context file and have not done the above step, then you can manually update the Net Services Topology Model using the following syntax:

Locate the System Name:
The System name is the database name
Verify with sql query:

select DB_NAME from FND_DATABASES;

Locate the server name corresponding to the tier in question:

Query on the Applications tier:

select NAME, SERVER_TYPE from FND_APP_SERVERS, FND_NODES
where FND_APP_SERVERS.NODE_ID = FND_NODES.NODE_ID and
SERVER_TYPE='APPS' and FND_NODES.NODE_NAME=upper('hostname');

Run the following PL/SQL block:

begin
FND_NET_SERVICES.remove_server(', '');
end;
/
commit;
/

- Create a new context file using the following syntax (skip this step if you have changrd the context file previously and had manually removed the tier server):

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

- Shutdown all Application services

- Reseed the Net Services Topology Model.

The Net Services Topology Model is automatically updated by running AutoConfig.

cd /bin
./adconfig.sh contextfile= path-to-context-file appspass=apps-password

- Change the 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
ip_address node_name.domain_name

Verify that the /etc/sysconfig/network file contains an entry that is similar to the following:

HOSTNAME=node_name.domain_name

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.


- Start the Applications Tier Services

Rerun APPSORA.env and start the Applications Tier Services using the script from the new directory:

$COMMON_TOP/admin/scripts/SID_newhostname/adstrtal.sh apps


1 comment:

tikitodo said...

besides other solutions for is there any way you can recover files in illustrator, you can get another program for the parsing of affected files