Share the content if you found it is useful (You can share using 300 community websites) click "share" at the end of the post.

You are encouraged to leave a comment.








Thursday, September 24, 2015

txkCloneAcquirePort.pl ERROR : Input server name does not match with system host name

While fs_clone at 12.2.4,

We receive an error,

Cause: Server Hostname in capital. (example ABCDEFG.hijk.com)

Context hostname in Small letters (eg: abcdefg.hijk.com)


Error:

Executing command: /u01/install/VISION/fs2/FMW_Home/webtier/perl/bin/perl -I /u01/install/VISION/fs2/FMW_Home/webtier/perl/lib/5.10.0 -I /u01/install/VISION/fs2/FMW_Home/webtier/perl/lib/site_perl/5.10.0 -I /u01/install/VISION/fs2/EBSapps/appl/au/12.0.0/perl -I /u01/install/VISION/fs2/FMW_Home/webtier/ohs/mod_perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi /u01/install/VISION/fs1/inst/apps/VIS12243_lo64blwv3/admin/install/txkCloneAcquirePort.pl -option=close -server=lo64blwv3.apploadcloud.com -ports=7411,7611,7811,7211,5566,7011 -log=/u01/install/VISION/fs1/inst/apps/VIS12243_lo64blwv3/admin/log/clone/wlsT2PApply/txkCloneAcquirePort.log


cript Executed in 201 milliseconds, returning status 1
ERROR: Script /u01/install/VISION/fs1/inst/apps/VIS12243_lo64blwv3/admin/install/txkCloneAcquirePort.pl failed, exit code 1
[oracle@LO64BLWV3 wlsConfig_apply]$ cat /u01/install/VISION/fs1/inst/apps/VIS12243_lo64blwv3/admin/log/clone/wlsT2PApply/txkCloneAcquirePort.log
Script Name    : txkCloneAcquirePort.pl
Started        : Wed Sep 23 08:23:42 EDT 2015

ERROR : Input server name does not match with system host name

Completed      : Wed Sep 23 08:23:42 EDT 2015



Fix:

Edit the file

/u01/install/VISION/fs1/inst/apps/VIS12243_lo64blwv3/admin/log/clone/wlsT2PApply/txkCloneAcquirePort.log

#######################################
# validate if servername supplied is
# same as localhost
#######################################
sub validateLocalHost{

        my @srvArray1 = split('\.', $gConfig{$server});
        my $inputSrvHostName = $srvArray1[0];

        my $systemHost = lc(hostname());
        my @srvArray2 = split('\.', $systemHost);
        my $systemHostName = $srvArray2[0];

        if ("$inputSrvHostName" ne "$systemHostName"){
                logMessage ("\nERROR : Input server name does not match with system host name\n");
                exitFromScript(1);
        }
}


This will go off after an autoconfig.

So, make a permenant change in the file.

$AD_TOP/admin/template/txkCloneAcquirePort_pl.tmp




Cheers!!!

Wednesday, September 09, 2015

After AD.C.Delta 6 and TXK.6 the issue with adop phase=fs_clone

After AD.C.Delta.6 and TXK.6,

when running

$adop phase=fs_clone,

we hit with an issue:

Validating system setup...
Node registry is valid.

Checking for pending adop sessions...
No pending session exists.
Staging new adop session...
[ERROR] Failed to execute SQL statement :
begin
ad_zd_adop.INSERT_ADD_NODE_RECORDS;
end;

[ERROR] Error Message :
[ERROR] ORA-20010: ORA-01403: no data found
[ERROR] ORA-06512: at "APPS.AD_ZD_ADOP", line 2790
[ERROR] ORA-06512: at line 2 (DBD ERROR: OCIStmtExecute)
[UNEXPECTED]Error occurred while adding new node information
[UNEXPECTED]Unrecoverable error occured. Exiting the current session.


[STATEMENT] Please run adopscanlog utility, using the command

"adopscanlog -latest=yes"

to get the list of the log files along with snippet of the error message corresponding to each log file.


adop exiting with status = 2 (Fail)


When we open the AD_ZD_ADOP package body and changed the lines

From this
cursor new_nodes is
        select node_name
          from adop_valid_nodes
         where node_name not in (select node_name from ad_adop_sessions
                                  where adop_session_id = (select max(adop_session_id) from
                                                           ad_adop_sessions));

  cursor available_nodes is
        select node_name from ad_adop_sessions
         where adop_session_id = (select max(adop_session_id) from
                                  ad_adop_sessions)
           and node_name in (select node_name from
                             adop_valid_nodes)
         order by node_name;


to
 cursor new_nodes is
        select UPPER(node_name) node_name
          from adop_valid_nodes
         where node_name not in (select node_name from ad_adop_sessions
                                  where adop_session_id = (select max(adop_session_id) from
                                                           ad_adop_sessions));

  cursor available_nodes is
        select node_name from ad_adop_sessions
         where adop_session_id = (select max(adop_session_id) from
                                  ad_adop_sessions)
           and node_name in (select UPPER(node_name) from
                             adop_valid_nodes)
         order by node_name;



and compile the package and package body.



We were able to complete the fs_clone successfully.
 Generating log report...
    Output: /u01/install/APPS/fs_ne/EBSapps/log/adop/26/fs_clone_20150909_040049/PRD12241_LO64BLWPA1/adzdshowlog.out

adop phase=fs_clone - Completed Successfully

Issue identified,

May be because of our hostname all in caps.

Monday, September 07, 2015

Process finder by Port

Process finder by port and killing

If port assignments are all in order and you need to diagnose what process is holding the port, on Linux use the following commands.  If an Oracle Knowledge process did not shut down completely it could still be holding onto the port.  In this case collect the diagnostic information below and open an SR to Oracle Knowledge support.
- To see if something is holding the port where the port is 8009
netstat -al | grep 8009
- To find all processes holding on to ports
lsof -i -n -P
- To find the process holding the port this will return a process type and pid
lsof -i tcp:8009
- To see what process it is.
ps -ef | grep -i
- To produce a dump of what the process could be doing to submit to Oracle support.
kill -3




Configuration of JAVA MIssion Control (JMX) for multiple Managed Servers installed in the same Server

While configuring, the JMX for the developers,

I got the error like:
Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: ; 
nested exception is:
java.net.BindException: Address already in use: JVM_Bind


If we need to monitor the Java using JMC (Java Mission Control), you need 1.7.0 U40 or higher.

Install the latest Java SE Development Kit in your laptop.

Edit the startWeblogic.sh at $DOMAIN_HOME/bin



Hashout all the lines starting from
#START WEBLOGIC to
Before
stopAll


It will be like:
# START WEBLOGIC
echo "starting weblogic with Java version:"

${JAVA_HOME}/bin/java ${JAVA_VM} -version

if [ "${WLS_REDIRECT_LOG}" = "" ] ; then
        echo "Starting WLS with line:"

        echo "${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS}"


echo $JAVA_OPTIONS

        ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS}
else
        echo "Redirecting output from WLS window to ${WLS_REDIRECT_LOG}"
        ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS}  >"${WLS_REDIRECT_LOG}" 2>&1
fi
 
stopAll

TO

# START WEBLOGIC

echo "starting weblogic with Java version:"

${JAVA_HOME}/bin/java ${JAVA_VM} -version
if [ "${WLS_REDIRECT_LOG}" = "" ] ; then
        echo "Starting WLS with line:"
if [ "${SERVER_NAME}" = "" ] ; then
        SERVER_NAME="AdminServer"
        export SERVER_NAME
fi
echo  "${SERVER_NAME}"
sleep 10
if [ "${SERVER_NAME}" = "AdminServer" ]; then
echo "Inside AdminServer***********************************************"
        echo "${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS}"
JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.rmi.server.hostname=voim01ay.chainsys.com -Dcom.sun.management.jmxremote.port=7091 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
echo $JAVA_OPTIONS

        ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS}
else
echo "Inside Other Domains **********************************************"
        ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS}
fi

else
        echo "Redirecting output from WLS window to ${WLS_REDIRECT_LOG}"

if [ "${SERVER_NAME}" = ="AdminServer"] ; then
echo "Inside AdminServer***********************************************"
        echo "${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${JAVA_OPTIONS} -Djava.rmi.server.hostname=voim01ay.chainsys.com -Dcom.sun.management.jmxremote.port=7091 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false ${PROXY_SETTINGS}  ${SERVER_CLASS} >"${WLS_REDIRECT_LOG}"" 2>&1

JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.rmi.server.hostname=voim01ay.chainsys.com -Dcom.sun.management.jmxremote.port=7091 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
echo $JAVA_OPTIONS

        ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${JAVA_OPTIONS}  ${PROXY_SETTINGS} ${SERVER_CLASS} >"${WLS_REDIRECT_LOG}" 2>&1
else
echo "Inside Other Domains **********************************************"
        ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS}  >"${WLS_REDIRECT_LOG}" 2>&1
fi
fi

stopAll

After this, start the weblogic 
Check the port 7091 has been listening

[oracle@voim01ay bin]$ netstat -an |grep 7091

tcp        0      0 :::7091                     :::*                        LISTEN

Restart all the servers
 



From the Client (Desktop) start the Java Mission Control
 Click the Icon mentioned

Fill in the machine name and port
The connection details.

 




 



Click Next
Start JMXConsole
 
 




Related Posts Plugin for WordPress, Blogger...

Let us be Friends...

Share |

Popular Posts

Recent Comments