Trying to configure multiple OAs on the same server. When starting the Stat Oracle Agent, the following error is raised:
Warning: Stat Oracle Agent already running for $envCode.
Solution:
1. Go into the stat/bin directory and open the statctl.sh file. Here you will find the section printed below:
The customer needs to comment out the lines in bold red.
This is how the section looks by default:
if [ $ACTION = "start" ]
then
pid=`getPID $envCode`
if [ -n "$pid" ]
then
print "Warning: Stat Oracle Agent already running for $envCode"
ps -f -p $pid
else
print "Starting Stat Oracle Agent for $envCode..."
cd $STAT_JAVA_HOME/bin
./java -DSTAT="$envCode" \
-Xms256m -Xmx512m \
-Dconfigfile=$cfgFile \
-Dcmdconfig="$cfgParams" \
-DSTAT_HOME=$STAT_HOME \
com.quest.stat.oracle.OAStatAgent $envCode 2>&1 | tee -a $fatalLog &
pid=`getPID $envCode`
# Wait a little bit to see if process started
sleep 2
if [ "`chkPID $pid`" = "false" ]
then
print "Error: Stat Oracle Agent failed to start for $envCode"
fi
fi
fi
And below is the same section after those lines are commented out. There are a total of 6 lines to be commented out, which are in bold.
if [ $ACTION = "start" ]
then
pid=`getPID $envCode`
# if [ -n "$pid" ] <-- 1
# then <-- 2
# print "Warning: Stat Oracle Agent already running for $envCode" <-- 3
# ps -f -p $pid <-- 4
# else <-- 5
print "Starting Stat Oracle Agent for $envCode..."
cd $STAT_JAVA_HOME/bin
./java -DSTAT="$envCode" \
-Xms256m -Xmx512m \
-Dconfigfile=$cfgFile \
-Dcmdconfig="$cfgParams" \
-DSTAT_HOME=$STAT_HOME \
com.quest.stat.oracle.OAStatAgent $envCode 2>&1 | tee -a $fatalLog &
pid=`getPID $envCode`
# Wait a little bit to see if process started
sleep 2
if [ "`chkPID $pid`" = "false" ]
then
print "Error: Stat Oracle Agent failed to start for $envCode"
fi
# fi <-- 6
fi
© ALL RIGHTS RESERVED. Feedback 利用規約 プライバシー Cookie Preference Center