Enable enterprise manager

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Enable enterprise manager

Roshan
Hi Erman,

Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
when I run
emca -config dbcontrol db -repos create

I am getting
/app/PMTG/db/tech_st/11.1.0/bin/emca[74]: /erp-db/PROD/db/tech_st/11.1.0/jdk/bin/java:  not found.

Please advise.
Regards,
Roshan
Reply | Threaded
Open this post in threaded view
|

Re: Enable enterprise manager

ErmanArslansOracleBlog
Administrator
This post was updated on .
It is so clear.
It is caused by your environment, or the script.
I guess your emca things that your database home is in  /erp-db/PROD/db/tech_st/11.1.0, however it is probably not.. ( I see an /app mount there)

Check the emca file stored in /app/PMTG/db/tech_st/11.1.0/bin
Is it binary, or script? if it a script/text , check for the wrong path there..

If not, check your environment (such as Oracle Home)

If you can't find a way, tell me more details about this issue and your env.
Reply | Threaded
Open this post in threaded view
|

Re: Enable enterprise manager

Roshan
the file emca is in /app/PMTG/db/tech_st/11.1.0/bin
The profile is

PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.

export PATH
export PS1='oraprod#'
. /app/PMTG/db/tech_st/11.1.0/PMTG_erpprod.env
export PATH=/app/PMTG/db/tech_st/11.1.0/appsutil/scripts/PMTG_erpprod:$PATH
if [ -s "$MAIL" ]           # This is at Shell startup.  In normal
then echo "$MAILMSG"        # operation, the Shell checks
fi                          # periodically.
stty erase ^?
Reply | Threaded
Open this post in threaded view
|

Re: Enable enterprise manager

ErmanArslansOracleBlog
Administrator
any java related things/paths anyting in the emca file?

/app/PMTG/db/tech_st/11.1.0/PMTG_erpprod.env  is correct right? Any java related things there in that file?
Reply | Threaded
Open this post in threaded view
|

Re: Enable enterprise manager

Roshan
oraprod#cat emca
#!/bin/sh

ORACLE_HOME="/erp-db/PROD/db/tech_st/11.1.0"
PLATFORM="AIX"
export ORACLE_HOME

LIB_DIR=$ORACLE_HOME/lib
LIB32_DIR=$ORACLE_HOME/lib32

# Set the LD_LIBRARY_PATH to set the path for shared objects
# Do not set it on AIX
if [ $PLATFORM != IBM_AIX ]; then
   LD_LIBRARY_PATH=$LIB_DIR:$ORACLE_HOME/perl/lib:$LIB32_DIR:$LD_LIBRARY_PATH
   export LD_LIBRARY_PATH;
fi

# Set SHLIB_PATH for HP
SHLIB_PATH=$LIB_DIR:$SHLIB_PATH
export SHLIB_PATH;

# Set LIBPATH for AIX
LIBPATH=$LIB_DIR:$LIBPATH
export LIBPATH;

# Set DYLD_LIBRARY_PATH
DYLD_LIBRARY_PATH=$LIB_DIR:$DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH;

#flag to pass to Java application launcher for HPUX Itanium 64 bit
if [  "`uname`" = "HP-UX" ] && [ "`uname -m`" = "ia64" ] ; then
    JAVA64FLAG="-d64"
fi

if [ "`uname -s`" = "HP-UX" -a "`uname -m`" = "9000/800" ]; then
    JAVA64FLAG="-d64"
fi

if [  "`uname -s`" = "SunOS" ] ; then
    if [ "`uname -m`" = "sun4u" -o "`uname -m`" = "sun4v"  -o "`uname -m`" = "i86pc" ] ; then
        JAVA64FLAG="-d64"
    fi
fi



JRE_JAVA="${ORACLE_HOME}/jdk/jre/bin/java"
if [ ! -f $JRE_JAVA ]; then
  JRE_JAVA="${ORACLE_HOME}/jdk/bin/java"
fi
EMCA_JAR="${ORACLE_HOME}/jlib/emca.jar"
LIB_DIR="${ORACLE_HOME}/jlib"

CLASSPATH="${EMCA_JAR}:"
CLASSPATH="${CLASSPATH}${LIB_DIR}/srvm.jar:"
CLASSPATH="${CLASSPATH}${LIB_DIR}/srvmasm.jar:"
CLASSPATH="${CLASSPATH}${LIB_DIR}/emConfigInstall.jar:"
CLASSPATH="${CLASSPATH}${LIB_DIR}/ldapjclnt11.jar:"
CLASSPATH="${CLASSPATH}${LIB_DIR}/ldap.jar:"
CLASSPATH="${CLASSPATH}${LIB_DIR}/share.jar:"
CLASSPATH="${CLASSPATH}${LIB_DIR}/srvmhas.jar:"
CLASSPATH="${CLASSPATH}${LIB_DIR}/netcfg.jar:"
CLASSPATH="${CLASSPATH}${LIB_DIR}/http_client.jar:"
CLASSPATH="${CLASSPATH}${ORACLE_HOME}/lib/http_client.jar:"
CLASSPATH="${CLASSPATH}${ORACLE_HOME}/lib/xmlparserv2.jar:"
CLASSPATH="${CLASSPATH}${ORACLE_HOME}/assistants/jlib/assistantsCommon.jar:"
CLASSPATH="${CLASSPATH}${ORACLE_HOME}/sysman/jlib/emCORE.jar:"
CLASSPATH="${CLASSPATH}${ORACLE_HOME}/sysman/jlib/emagentSDK.jar:"
CLASSPATH="${CLASSPATH}${ORACLE_HOME}/oui/jlib/OraInstaller.jar:"
CLASSPATH="${CLASSPATH}${ORACLE_HOME}/oui/jlib/OraPrereq.jar:"
CLASSPATH="${CLASSPATH}${ORACLE_HOME}/inventory/prereqs/oui/OraPrereqChecks.jar:"
CLASSPATH="${CLASSPATH}${ORACLE_HOME}/oui/jlib/OraPrereqChecks.jar:"
export CLASSPATH

${JRE_JAVA} $JAVA64FLAG -DDISPLAY="${DISPLAY}" -DORACLE_HOME="${ORACLE_HOME}" -DTNS_ADMIN="${TNS_ADMIN}" oracle.sysman.emcp.EMConfigAssistant $*
Reply | Threaded
Open this post in threaded view
|

Re: Enable enterprise manager

Roshan
I think the issue is
ORACLE_HOME="/erp-db/PROD/db/tech_st/11.1.0"
Reply | Threaded
Open this post in threaded view
|

Re: Enable enterprise manager

ErmanArslansOracleBlog
Administrator
Yes!

You Oracle Home is in /app right?
Then, change that line accordingly, save the emca file and restest.