Automatically starting Oracle Enterprise Manager with chkconfig

Folks,
While Oracle Linux 6 is out (6.2 actually), Oracle has yet to get everything 'working out of the box' with 6.2. Right now (June 2012) you've got to download patches from Oracle, the new way to start services in Linux 6, upstart, doesn't work with all Oracle features yet, etc. Update: You can still use chkconfig with OL6.
Because of the above, I've been using Oracle Linux 5.8. Linux 5 uses something called chkconfig to register services. You first need to put a script in the right directory: /etc/rc.d/init.d. Linux looks in this directory for scripts and runs those scripts with either a start or stop after them depending on if the system is coming up or going down. Technically this happens every time you change your runlevel (google Unix runlevels for more info), not just when the system goes up or down.
Here's a script that you can put in /etc/rc.d/init.d. I named mine oracleEM:
[root@localhost ~]# cd /etc/rc.d/init.d
[root@localhost init.d]# vi oracleEM
Enter i to enter insert mode and then enter the below (or just copy and paste it)
*#!/bin/sh*
*#chkconfig: 2345 80 05*
*#description: Oracle Enterprise Manager*
ORA_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
ORA_OWNER=oracle
ORA_SID=orcl
*# We're checking to see if ps returns 1 or 2 results for pmon_orcl*
*# If there are two, Oracle is running, one we are just seeing our grep*
ORACLE_STATUS=$(ps -eaf | grep pmon_$ORA_SID | wc -l)
*if [ ! -f $ORA_HOME/bin/emctl ]*
then
echo "Enterprise Manager startup: cannot start"
exit
fi
case "$1" in
*"start")*
*if [ $ORACLE_STATUS -lt 2 ]*
then
echo "Waiting for Oracle instance $ORA_SID to start before starting Enterprise Manager"
fi
*while [ $ORACLE_STATUS -lt 2  ];do*
echo "Waiting...."
sleep 5
ORACLE_STATUS=$(ps -eaf | grep pmon_$ORA_SID | wc -l)
done
su - $ORA_OWNER -c "$ORA_HOME/bin/emctl start dbconsole"
*"stop")*
su - $ORA_OWNER -c "$ORA_HOME/bin/emctl stop dbconsole"
esac
Press the Esc key to leave insert mode, then type *:wq* to write the file and quit.
We'll need to make the script executable, so we need to run the following command:
[root@localhost init.d]# *chmod +x oracleEM*
Finally we need to register the oracleEM script with Linux using the chkconfig command:
[root@localhost init.d]# *chkconfig --add oracleEM*
Now Enterprise Manager will start up automatically when you start your system, but only after Oracle has started.
Rich
Edited by: RichS on Jun 9, 2012 1:00 AM

The script you are using will not work for RHEL or Oracle Linux since it is incorrect and missing important coding.
You can probably fix the script by removing the dash (-) from the su command and adding the lockfile that is required for RHEL to process the stop routine at system shutdown. The dash will reset the shell environment and the startup won't work. You should also start it in the background in order not to prolong the system startup more then necessary.
lockfile=/var/lock/subsys/oracleEM
start)
   su $ORA_OWNER -c "$ORA_HOME/bin/emctl start dbconsole &" &>/dev/null
   touch $lockfile
stop)
   su $ORA_OWNER -c "$ORA_HOME/bin/emctl stop dbconsole"
   rm -rf $lockfile
...You do not need to start your Oracle instance before starting dbconsole. So there is no need for the "sleep" routine. You can start the Oracle Database control console even when the instance is down:
For instance:
<pre>
[oracle@vm005 ~]$ ps -ef | grep pmon
oracle 17749 10343 0 22:48 pts/3 00:00:00 grep pmon
$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
https://vm005.example.com:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ....... started.
</pre>

Similar Messages

  • How to start Oracle Enterprise Manager(Oracle 9i) on Sun Solaris 9 platform

    Hi
    How to start Oracle Enterprise Manager(Oracle 9i) on Sun Solaris 9 platform and Oracle Enterprise Manager(Oracle 10G) on Sun Solaris 10 platform?
    Thanks.
    RJ.

    I need to use it to unlock some accounts.There is a SQL command to do that
    SQL> alter user <username> account unlock;
    Anyway...
    $ export ORACLE_SID=chucky
    $ emctl start dbconsole

  • Help needed with starting Oracle Enterprise Manager on win 2008 server SP2

    Hi,
    i am unable to start the oracle enterprise manager. I did the following steps:
    E:\oracle\product\10.2.0\db_1\BIN>sqlplus
    SQL*Plus: Release 10.2.0.4.0 - Production on Tue Oct 12 16:59:20 2010
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Enter user-name: /as sysdba
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Productio
    With the Partitioning, OLAP, Data Mining and Real Application Testing optio
    SQL> host
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    E:\oracle\product\10.2.0\db_1\BIN>emctl stop dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    https://primary:1158/em/console/aboutApplication
    The OracleDBConsoleorcl service is not started.
    More help is available by typing NET HELPMSG 3521.
    E:\oracle\product\10.2.0\db_1\BIN>emctl status dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    https://primary:1158/em/console/aboutApplication
    Oracle Enterprise Manager 10g is not running.
    E:\oracle\product\10.2.0\db_1\BIN>emctl start dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    https://primary:1158/em/console/aboutApplication
    Agent Version : 10.1.0.6.0
    OMS Version : 10.1.0.6.0
    Protocol Version : 10.1.0.2.0
    Agent Home : E:\oracle\product\10.2.0\db_1\primary_orcl
    Agent binaries : E:\oracle\product\10.2.0\db_1
    Agent Process ID : 1740
    Agent URL : https://primary:1830/emd/main
    Started at : 2010-10-11 18:12:36
    Started by user : SYSTEM
    Last Reload : 2010-10-12 12:37:00
    Last successful upload : 2010-10-12 09:31:28
    Last attempted upload : 2010-10-12 16:55:14
    Total Megabytes of XML files uploaded so far : 2.87
    Number of XML files pending upload : 264
    Size of XML files pending upload(MB) : 1.34
    Available disk space on upload filesystem : 37.95%
    Agent is already started. Will restart the agent
    The syntax of this command is:
    NET STOP
    service

    Sorry mate,
    i have no idea why its showing different versions. I installed the software using the media i received thru Oracle for 64 bits.
    I started the Windows service for dbconsole. It worked for a minute and the page disappeared again. Does it have something to do with firewall. I had set the Firewall off.

  • Starting Oracle Enterprise Manager

    This is an easy question for someone. I installed 9i on a Red Hat 9 Linux system. There was an error at the end of the install so I don't think it completely installed the tools. I have managed to fix most of the errors and can successfully start the database. What I haven't been able to find is the command to start the Enterprise Manager. Our dba hasn't ever used the unix tool he has become a point and click admin using Windows for too long. Can someone tell me how to start the Enterprise Manager in Linux. Thanks.

    Try this on the machine itself as the oracle user :
    $ORACLE_HOME/bin/oemapp console

  • Can't start Oracle Enterprise Manager

    Hi
    We installed Oracle Database 10g on Sun Solaris SPARC 64 bit.
    I am trying to access Oracle Enterprise manager but cannot.
    I tried to start the dbconsole but got the following error:
    /external1/oracle/testdb/9.2.0/bin
    ./emctl start dbconsole
    result was :./emctl: No such file or directory
    Can you please help me solve this problem?
    Regards
    Quintus

    bash-3.00$ export
    ORACLE_HOME=external1/oracle/testdb/9.2.0/
    bash-3.00$ export ORACLE_SID=TEST
    bash-3.00$ emctl status dbconsole
    bash: emctl: command not found
    I seriously doubt you ever read my previous post.
    You can try the commands a thousand times on your 9i installation, it's not going to work period.

  • Start EM(Enterprise Manager) with AdminServer(WebLogic) in services  Windows

    hi,
    I have installed
    WebLogic Server 1036 and Forms/Reports 11GR2
    Installed WebLogic (AdminServer) to start with Windows Services!
    It starts with Windows and open localhost: 7001/console 'successfully
    echo off
    SETLOCAL
    set DOMAIN_NAME=FormsDomain
    set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\FormsDomain
    set SERVER_NAME=AdminServer
    set PRODUCTION_MODE=true
    set WLS_USER=weblogic
    set WLS_PW=weblogic1
    call C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd
    ENDLOCAL
    Everything ok so far!
    However, I can not EM (Enterprise Manager) "localhost: 7001/em '
    When I start the Server Admin Menu> Windows \ Start Menu \ Programs \ Oracle Classic Instance - FormsInst> Start Weblogic Server Admin
    I can get 'localhost: 7001/em' usually
    Can anyone give me an idea?

    can someone help me?
    checking the log returns this error!
    ####<25/09/2013 14h27min39s BRT> <Warning> <Munger> <RONEI> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <c45a6d0f723d9f21:-3dd7bb09:1415629670e:-8000-0000000000000002> <1380130059591> <BEA-2156203> <A version attribute was not found in element application in the deployment descriptor in C:\Oracle\Middleware\user_projects\applications\FormsDomain\em.ear/META-INF/application.xml. A version attribute is required, but this version of the Weblogic Server will assume that the JEE5 is used. Future versions of the Weblogic Server will reject descriptors that do not specify the JEE version.>
    ####<25/09/2013 14h27min39s BRT> <Error> <Deployer> <RONEI> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <c45a6d0f723d9f21:-3dd7bb09:1415629670e:-8000-0000000000000002> <1380130059671> <BEA-149205> <Failed to initialize the application 'em' due to error weblogic.management.DeploymentException: .
    weblogic.management.DeploymentException:
      at weblogic.application.internal.flow.BaseLifecycleFlow$CreateListenerAction.run(BaseLifecycleFlow.java:176)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.application.internal.flow.BaseLifecycleFlow$BaseAction.invoke(BaseLifecycleFlow.java:104)
      at weblogic.application.internal.flow.HeadLifecycleFlow.createListener(HeadLifecycleFlow.java:117)
      at weblogic.application.internal.flow.HeadLifecycleFlow.createListener(HeadLifecycleFlow.java:103)
      at weblogic.application.internal.flow.HeadLifecycleFlow.createListeners(HeadLifecycleFlow.java:175)
      at weblogic.application.internal.flow.HeadLifecycleFlow.prepare(HeadLifecycleFlow.java:281)
      at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:648)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
      at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:59)
      at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
      at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:144)
      at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
      at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
      at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
      at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
      at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
      at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
      at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
      at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
      at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused By: java.lang.ClassNotFoundException: oracle.security.jps.wls.listeners.JpsApplicationLifecycleListener
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
      at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at weblogic.application.internal.flow.BaseLifecycleFlow$CreateListenerAction.run(BaseLifecycleFlow.java:140)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.application.internal.flow.BaseLifecycleFlow$BaseAction.invoke(BaseLifecycleFlow.java:108)
      at weblogic.application.internal.flow.HeadLifecycleFlow.createListener(HeadLifecycleFlow.java:117)
      at weblogic.application.internal.flow.HeadLifecycleFlow.createListener(HeadLifecycleFlow.java:103)
      at weblogic.application.internal.flow.HeadLifecycleFlow.createListeners(HeadLifecycleFlow.java:175)
      at weblogic.application.internal.flow.HeadLifecycleFlow.prepare(HeadLifecycleFlow.java:281)
      at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:649)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
      at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:59)
      at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
      at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:144)
      at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:40)
      at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
      at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:22)
      at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
      at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:166)
      at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
      at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:181)
      at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:97)
      at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

  • Starting Oracle Enterprise Management Console

    I have oracle11gR2 database instance up and running on RHEL and i am able to connect to this instance using sqldeveloper. I need to have access to enterprise manager console too.
    I tried to start enterprise manager using following command
    [ora112@localhost ~]$ emctl start dbconsole
    Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name.
    then it tells me that ORACLE_UNQNAME is not defined.
    the i set ORACLE_UNQNAME=JIP (JIP=ORACLE_SID), even after doing this , i get the same message when i try to start enterprise manager console.
    could anybody help me resolve this issue
    thanks in advance for any help

    Unset ORACLE_SID (i.e. only set ORACLE_UNQNAME instead of ORACLE_SID), then try again. Pl also post the output of command "env | sort" just before issuing the emctl command
    HTH
    Srini

  • Unable to start Oracle Enterprise Manager 10g Database Control

    We have 2 systems.. one with the database and one with the midtier (both Linux). Our site is currently down and after rebooting it, and trying to start the database console ($ORACLE_HOME/bin/emctl start dbconsole), the db console fails to load. I looked at the sysman log files and got the following
    From emoms.trc
    2011-10-29 01:00:02,536 [JobWorker 6217:Thread-13] ERROR em.jobs executeCommand.159 - UpdateARUTables: Oracle MetaLink credentials are incorrect or missing. Click Patching Setup to set required parameters.
    From emagent.trc
    2011-10-29 10:52:53 Thread-3030621104 ERROR util.files: nmeufile_getLength: Error in lfilen. Error = 2 (No such file or directory)
    From emagentfetchlet.log
    2011-10-29 10:52:52,827 [main] WARN track.OracleInventory collectInventory.439 - ECM: The inventory location file for the special Windows NT case does not exist or is unreadable.
    From emdctl.trc
    2011-11-01 23:21:43 Thread-3065480896 ERROR main: nmectl.c: nmectl_validateTZRegion, agentTZoffset =-240,and testTZoffset for US/Eastern:-300 do not match
    Any help would be greatly appreciated.
    Thanks,
    Cecilia

    yes, that link is pretty much right, Ive run those manual commands many times and MOST of them works fine see below. the recommended way of doing this putst the database into quiesce mode which pretty much kills your DB. As far as I can remember, I did the manual way a couple years ago and had awful trouble with one of the steps (cant remember which) and ended up bringing DB down anyway so I would suggest doing the work in a maintenance window just in case. double check all the steps anyway as it looks like something changed in your environment to cause your initial errors, whatever scenario caused that (permissions or whatever) may still exist.
    14:32:48 SQL> DROP USER sysman CASCADE;
    DROP PUBLIC SYNONYM setemviewusercontext;
    DROP ROLE mgmt_user;
    DROP PUBLIC SYNONYM mgmt_target_blackouts;
    DROP USER mgmt_view;
    DROP USER dbsnmp CASCADE;
    -- remove the os folder contents
    rm $ORACLE_HOME/host_sid/
    rm $ORACLE_HOME/oc4j/j2ee/OC4J_DBConsole_host_sid
    -- then easiest way to install the repository is to run
    emca -config dbcontrol db -repos create

  • How to start Oracle Enterprise manager

    Hi,
    I installed the Oracle 10g, but I cann't start OEM. How to start OEM?

    I have similar problems. I have removed and installed Oracle twice to see if that would help. Every time I am able to actually start OEM, but when I reboot the PC it stops functioning. The two first times OEM was to be found at http://PJMOBILE:5500/em/ and the third time at http://localhost:5500/em/. I wonder why its different.
    So I read the previous notes on this issue with great interst. I tried the different advises but with out success.
    When I typed "emctl" I got the message "EM Configuration issue. C:\oracle\product\10.1.0\Db_1/PJMOBILE_global not found."
    WHen I types "emctl start dbconsole" I got the message "OC4J Configuration issue. C:\oracle\product\10.1.0\Db_1/oc4j/j2ee/OC4J_DBConsole_PJMOBILE_global not found."
    In both cases it looks for files in a path name based on my computer name PJMOBILE as opposed to based on "localhost". These directoriues are not there but their localhost counterparts are.
    So it seems to me that rebooting my machine has caused some environment variable to be erased.
    I hope this adds to the analysis of matters.
    Best regards
    /poul-jørgen

  • Can't start Oracle Enterprise Manager Application Server Control:

    I've install AS 10g 10.1.2 on x64 Win XP64 with the option of just Oracle J2EE and web services.
    Everything installed fine but when I try to connect to the Enterprise manger server control I get :
    IOException in sending Request :: Connection refused: connect
    Reading the trouble shooting guide I see that maybe the Apache variable max connections needs upping. Mine was set to 150 and I upped it to 200 (and restarted)
    still not joy.
    can anyone help?

    According to metalink certification there is an issue with Win XP 64 bit for OAS 10.1.2.0.2 which is that
    Only Installation Types Supported is J2EE OracleAS Developer Kit
    Maybe you could consider OAS version 10.1.3.x ?

  • Problems after starting the Enterprise Manager agent

    Hello,
    I have a problem, the agent of the enterprise manager does not start, do not know how I can do to reinstall the agent, in executing the command emctl start agent, inevitably show that the agent can not be started, I've done many things and not know what else can do, I have the version oracle 10gR2 10.2.0.5.0 on AIX 6.1, additionally do not know what operating system processes or daemons must be up to work.
    thanks for the help you can give me

    Look, this is the result of instructions:
    [saray]]/etc/rc.d]>emctl status dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.5.0
    Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
    http://saray:1158/em/console/aboutApplication
    EM Daemon is not running.
    Logs are generated in directory /oracle/app/product/10.2.0.5/saray_UFPS/sysman/log
    [saray]]/etc/rc.d]>emctl status dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.5.0
    Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
    http://saray:1158/em/console/aboutApplication
    EM Daemon is not running.
    Logs are generated in directory /oracle/app/product/10.2.0.5/saray_UFPS/sysman/log
    [saray]]/etc/rc.d]>emctl start dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.5.0
    Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
    http://saray:1158/em/console/aboutApplication
    ps: invalid list with -o.
    ps: illegal option -- -
    Usage: ps [-ANPaedfklmMZ] [-n namelist] [-F Format] [-o specifier[=header],...]
    [-p proclist][-G|-g grouplist] [-t termlist] [-U|-u userlist] [-c classlist] [ -T pid] [ -L pidlist]
    [-@ [wparname] ]
    Usage: ps [aceglnsuvwxX] [t tty] [ProcessNumber]
    Starting Oracle Enterprise Manager 10g Database Control .... started.
    Logs are generated in directory /oracle/app/product/10.2.0.5/saray_UFPS/sysman/log

  • Oracle Enterprise Manager not being accessed.

    Environemnt details:
    EBS->R 12.0.6
    Database->10.2.0.2
    OS->AIX 5.3
    All 64-bit
    When start dbconsole:
    $ emctl start dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.2.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://<host.domai>:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control .... started.
    Logs are generated in directory /prodapps/oratest/TEST/db/tech_st/10.2.0/app2.trakker.com.pk_TEST/sysman/log
    $
    and try to access OEM through the URL http://<host.domai>:1158/em following error message reported:
    500 Internal Server Error
    java.lang.NullPointerException     at oracle.cabo.servlet.xml.UIXPageBroker.getConfigurationName(Unknown Source)     at oracle.cabo.servlet.ui.BaseUIPageBroker.getConfiguration(Unknown Source)     at oracle.cabo.servlet.ui.BaseUIPageBroker.getService(Unknown Source)     at oracle.cabo.servlet.xml.UIXPageBroker.getService(Unknown Source)     at oracle.sysman.emSDK.svlt.EMServlet.initialize(EMServlet.java:417)     at oracle.sysman.eml.app.Console.init(Console.java:360)     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpApplication.loadServlet(HttpApplication.java:2130)     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpApplication.findServlet(HttpApplication.java:4560)     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2598)     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:643)     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)     at java.lang.Thread.run(Thread.java:568)
    The utility has never been used since its configuration.
    Any help will be highly appreciated.
    Regards,
    M.U.N.A

    Duplicate post ? - OEM configuration with EBS R12.0.6
    If you have not been able to successfully configure dbcontrol, I am not sure how you expect to be able to access and use it successfully ?
    Srini

  • Oracle Enterprise Manager 11g is not running

    Hi everyone.
    I can't open my Enterprise Manager in my browser.
    when I am typing this command "emctl status dbconsole",it gives me this error :
    C:\Windows\system32>emctl status dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
    https://localhost:1158/em/console/aboutApplication
    Oracle Enterprise Manager 11g is not running.
    Logs are generated in directory E:\app\Ahmad\product\11.2.0\dbhome_1/Ahmad-PC_or
    cl/sysman/log
    Thanks.

    user9077620 wrote:
    I type emctl start dbconsole
    then it mention to set variable ORACLE_UNQNAME then i did this step
    after that i retypr emctl start dbconsole , it gives me this error:
    C:\Windows\system32>emctl start dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
    https://localhost:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 11g Database Control ...The OracleDBConsoleo
    cl service is starting..............
    The OracleDBConsoleorcl service could not be started.
    A service specific error occurred: 2.
    More help is available by typing NET HELPMSG 3547.OS/Networking mis-configuration
    Oracle is victim; not culprit

  • Oracle Enterprise Manager - HTTP error: 503 Service Unavailable

    Dear all,
    some time ago I've upgraded Oracle Database 10g up to version 10.2.0.4.0 on a Linux system.
    Now if I try to connect to HTTP Oracle Enterprise Manager interface (http://(My server name):1158/em/console/aboutApplication) I see this error into my browser: "503 Service Unavailable - Service is not initialized correctly. The Em Key is not configured properly. Run "emctl status emkey" for more details."
    If I perform "emctl status dbconsole" command from command line I have this output
    TZ set to Europe/Vatican
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    http://(My server name):1158/em/console/aboutApplication
    Oracle Enterprise Manager 10g is not running.
    So I've tried to restart Oracle Enterprise Manager trough command line using "emctl start dbconsole":
    TZ set to Europe/Vatican
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    http://(My server name):1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control .... started.
    Now dbconsole seems to be running as follows
    TZ set to Europe/Vatican
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    http://(My server name):1158/em/console/aboutApplication
    Oracle Enterprise Manager 10g is running.
    but my browser always shows the same above error.
    If I try to perform the suggested "emctl status emkey" command trough command line I have this output:
    TZ set to Europe/Vatican
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    Please enter repository password: (Here I put sysman password)
    Exception caught
    ORA-06550: line 1, column 13:
    PLS-00201: identifier 'MGMT_TIME_SYNC.STARTUPSYNC' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00201: identifier 'MGMT_TIME_SYNC.STARTUPSYNC' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:330)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:287)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:744)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:217)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:968)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1189)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3369)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3475)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4399)
    at oracle.sysman.emSDK.conf.ConfigManager.startupEmKey(ConfigManager.java:855)
    at oracle.sysman.emSDK.conf.ConfigManager.statusEmKeyInRepos(ConfigManager.java:1113)
    at oracle.sysman.eml.sec.rep.EmKeyUtil.statusEmKey(EmKeyUtil.java:273)
    at oracle.sysman.eml.sec.rep.EmKeyUtil.main(EmKeyUtil.java:583)
    I've done no changes on Linux operating system side.
    Could somebody help me, please?
    Thanks for help and regards.
    DragonsLordKERNEL
    Edited by: DragonsLordKERNEL on 17-nov-2008 11.06

    Check if your emkey file is still under $ORACLE_HOME/sysman/config/emkey.ora
    Also check Oracle doc,
    http://download.oracle.com/docs/cd/B19306_01/em.102/b40002/security2.htm#BABJGGIG
    consider remove the recreate emkey if it doesn't work out.

  • OEM,Oracle Enterprise Manager does'nt get

    [https://192.168.20.220:1158/em/console/database/instance/repDown?target=acogrid.acolade.com.au&type=oracle_database]
    Hi,
    I installed Oracle 11g R2 in Linux machine and also changed the port number from 1521 to 1522.
    Now i can take oracle DB through sqlplus.....Database is OPEN.....Listener is STARTED.......
    But when i start oracle enterprise Manager (OEM),getting following errors..
    Database Instance ------ ( RED DOWN ARROW )
    Listener-------status ( DOWN )-----( RED DOWN ARROW )
    Host acogrid.acolade.com.au
    Port 1521
    Name LISTENER
    Oracle Home /app/oracle/product/11.2.0/db_1
    Location /app/oracle/product/11.2.0/db_1/network/admin
    Details TNS-12541: TNS:no listener
    Agent connection to Instance-------Status ( FAILED )----( RED DOWN ARROW )
    Status Failed
    Details ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach)
    Note: In the above errors, Please note, " port is 1521 "....But in TNSNAMES,LISTENER and SERVICE NAMES,i have mensioned 1522.
    Then How 1521 comes in OEM???????
    Please Help me to UP OEM............
    Arun Kurungatt

    Arun -
    After you create the EM repository, you cannot change the host name, IP address or listener configuration. If you do, db control will no longer work. In fact, just a few days ago, I made a listener configuration change and received the same error that you did from EM.
    The solution - drop and then recreate the EM repository.
    To drop:
    emca -deconfig dbcontrol db -repos drop
    To create:
    emca -config dbcontrol db -repos create
    Good luck!
    Scot
    Edited by: Scot Krause on Nov 16, 2010 9:09 AM

Maybe you are looking for

  • Structure copy in BEx query Designer?

    I created structure in BEx Query Designer in BI PRD which is our BI production system. I'd like to copy structure to BI DEV which is our BI development system. Is is possible? If you have any solution, tell me about that. Thanks.

  • How can i use my phone number for imessage on my macbook pro?

    I have been trying to sync my iMessages between my iPhone 4s and my macbook pro but it will only use my email. I have been told to change the setting in the message menu but I can't seem to find that! Help me please!!! Thank you!

  • Get error message when trying to scan slides

    HP Scanjet G4050. Latest drivers. Now up to 10.6.8 and when I try to scan slides or negatives, I get an error message: "Remove any objects from the scanner glass.  Load your slides and negatives.  Try scanning again." I have scanned in the past. Is t

  • Restoring sms from an older itunes backup

    Dear apple stuff, i want to know if there  a transfer program to transfer my old SMS from an old itunes back up to my new phone!! I ve lost almost 3-4 days of my llife searching for any working tool to do this!!!

  • MacBook Pro Power Management Issues and "Broken" Bootcamp

    This is not a question but rather a solution I have discovered to a problem I have experienced many times now. My Core 2 Duo 15" MacBook Pro (non-LED version) has exhibited several issues with the systems power management hardware. Firstly: Occasiona