Search This Blog

Tuesday, December 20, 2016

RC-50221: Warning: Port pool not free in R12 while running adcfgclone.pl

I was getting the error below while running adcfgclone in R12.2 for run file system. While selecting the port pool value, i was getting the error saying one of the port pool is not free. upon checking the logs i found out OACORE (port no - 7213) is used by some processes which is causing this issue.

Error from the log :

Checking  WLS Admin Server Port on ahqtest:  Port Value = 7013
   WLS Admin Server Port available:  Port Value = 7013
 Checking  WLS OACORE Application Port on ahqtest:  Port Value = 7213
RC-50204: Error: - WLS OACORE Application Port in use: Port Value = 7213

I tried to figure out the process with the below commands but i could not figure out which process exactly using 7213.

bash-3.2$ netstat -an|egrep "7213"
10.171.17.18.7213          *.*                0      0 49152      0 LISTEN

Upon surfing i figure out the below useful shell script. This script will simply give you which process is exactly using your port. Just copy the script in a shell and execute.You need to supply port value as an input while executing the script.

Ex : ./script_name.sh 7213

Script get_port_pid.sh:

#!/bin/bash

# Get the process which listens on port
# $1 is the port we are looking for
if [ $# -lt 1 ]
then
echo "Please provide a port number parameter for this script"
echo "e.g. $0 22"
exit
fi
echo "Greping for your port, please be patient (CTRL+C breaks) ... "

for i in `ls /proc`
do
pfiles $i | grep AF_INET | grep $1
if [ $? -eq 0 ]
then
echo Is owned by pid $i
fi
done



Get the process id and kill it from OS level and re-run adcfgclone.pl script.

Thanks!

No comments:

Post a Comment

You cannot complete this task because one of the following events caused a loss of page data: A system failure has occurred "Front end is locked after 12.2 upgrade"

  If you have upgraded to Oracle E-Business Suite 12.2.10 Release Update Pack from Oracle E-Business Suite 12.2.6 Release Update Pack (or ea...