How to change Oracle Applications R12 Port

Here is a quick guide on changing oracle applications R12 port or web listner port. Suppose your R12 instance is running on http://flinux.xxx.com:8005/ . Now your requirement is changing the port to 8002 such that you can access
Oracle application from http://flinux.xxx.com:8003/ url. For doing so you can to do the following steps. Please note that there are other ways tp achieve this also. But, I found the following is the easiest and less time taking.


Step 1

First source the env file. Then execute the following command.

$ cd $COMMON_TOP/clone/bin
$ perl adclonectx.pl addnode contextfile=/d01/virtualext/inst/apps/VIS_external/appl/admin/VIS_external_n2.xml

Give the following response after executing the command.



Target System Hostname (virtual or normal) [flinux01] :
It is recommended that your inputs are validated by the program.
However you might choose not to validate them under following circumstances:

Do you want the inputs to be validated (y/n) [n] ? : y
Target System Root Service [enabled] :
Target System Web Entry Point Services [enabled] :
Target System Web Application Services [enabled] :
Target System Batch Processing Services [enabled] :
Target System Other Services [disabled] :
Do you want to preserve the Display [flinux01:0.0] (y/n) ? : n
Target System Display [flinux01:0.0] :
RC-00217: Warning: Configuration home directory (s_config_home) evaluates to /d01/virtualext/inst/apps/VIS_flinux01. A directory with this name already exists and is not empty.
Do you want to continue (y/n) ? : y
Database port is 1523
Do you want the the target system to have the same port values as the source system (y/n) [y] ? : n
Target System Port Pool [0-99] : 3
Checking the port pool 3
done: Port Pool 3 is free
RC-40201: Unable to connect to Database VIS.
Enter the Database listener port [1524] : 1523
Database port is 1523
Report file located at /d01/virtualext/inst/apps/VIS_flinux01/temp/portpool.lst
Complete port information available at /d01/virtualext/inst/apps/VIS_flinux01/temp/portpool.lst
UTL_FILE_DIR on database tier consists of the following directories.
1. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] : 1
Creating the new APPL_TOP Context file from :
/d01/Vision/apps/apps_st/appl/ad/12.0.0/admin/template/adxmlctx.tmp
The new APPL_TOP context file has been created :
/d01/virtualext/inst/apps/VIS_flinux01/appl/admin/VIS_flinux01.xml
Log file located at /d01/Vision/apps/apps_st/comn/clone/bin/CloneContext_0407154125.log
contextfile=/d01/virtualext/inst/apps/VIS_flinux01/appl/admin/VIS_flinux01.xml
Check Clone Context logfile /d01/Vision/apps/apps_st/comn/clone/bin/CloneContext_0407154125.log for details.





Step 2

Find all the old inst top directory replace it using a new inst top directory in new context file.
In my case I have replaced all entry "/d01/Vision/inst" to new instance top "/d01/virtualext/inst". Run the following command to know s_config_home

$grep s_config_home /d01/Vision/inst/apps/VIS_flinux01/appl/admin/VIS_external_n2.xml
<config_home oa_var="s_config_home">/d01/virtualext/inst/apps/VIS_flinux01</config_home>
Create a directory structure as per the above command output.




Step 3

Now run adconfig using newly created context file.

$ perl $AD_TOP/bin/adconfig.pl
Enter the full file path to the Context file: /d01/Vision/inst/apps/VIS_flinux01/appl/admin/VIS_external_n2.xml




Step 4

Source the new environment file. Start the server using $ADMIN_SCRIPTS_HOME/adstrtal.sh


Finally access Oracle Applications using url http://flinux01.xxx.com:8003/.



See related article here


No comments :