Catching Database Control Exceptions...

I would like to catch exceptions generated when the database control loses connection to its data source.
At the moment, the database control is part of a java control, which in turn is exposed as a web service. When the connection to the database (on a different server) is disconnected during use, a SOAP Fault is returned to the clients when further calls are made.
The plan is to catch these non-descript errors and exceptions so that I can return a custom SOAP message that is not necessarily a Fault.
Any ideas?

namespace "Eg" is missing from the below nodes
the elements should look something like this
<Eg:faultMessage name="faultMessage" xmlns:Eg="namespace uri">
<Eg:message>Operation + Key [EgOperation] is not supported.</Eg:message>
</Eg:faultMessage>

Similar Messages

  • Catch database failure exception

    Hello,
    i would like catch INSERT and UPDATE exception when it do some database error.
    If i use WHEN OTHERS i catch all exceptio ( i think database error too ), but i want to catch only database errors. How i can do?
    thanks!!!

    Does a "numeric or value error" when inserting a too large value into a table column count as a database error?
    As the first person in the history of the world ever to want to do this, it perhaps would help if you explained why?

  • Woes wiring up an ejb to use a database control

    first my question & then background:
    how do i wire up an ejb to use a database control jcx object so that the dbcontrol is instantiated at runtime?
    here's the scene:
    i created a java page flow from a database control & this works correctly, but i also need to be able to expose some of the functionality to another deployed application. this application, incidentally is not a workshop application; but rather is a hand-coded war.
    the first application (a workshop app) renders forms that use a database control to persist the data. it only uses one table & therefore, there is only one pojo. as i mentioned, this resides in web project & works correctly. i abstracted my dbcontrol & my pojo to a separate java controls project & built this as a library. the jpf still has no problems seeing the dbcontrol.
    there is a second application (a non workshop app) that needs to be able to use a method provided by the dbcontrol. i created an ejb in a third project in the first application that makes the call to dbcontrol in the exact same way that the jpf did. but i am finding, however, that the dbcontrol is null whenever the ejb makes the call to it's method.
    here's the more detailed design:
    i started with a database control. i mapped to my datasource, wrote out the sql for the methods i wanted & generated the pageflow from this. i rewrote the pageflow/jsps to suit my needs & everything just works. i did notice at the time that i generated the page flow that the dbcontrol was never instantiated. here is a snippet of the jpf:
    <pre>
    public class SiteAlertMessageManagementController extends PageFlowController {
    * This is the control used to generate this pageflow
    * @common:control
    private SiteAlertMessageDBControl dbControl;
    public Forward getCurrentMessage() {  
    SiteAlertMessage currentMessage = dbControl.getCurrentMessage();
    </pre>
    because SiteAlertMessageDBControl is an interface, i assumed that the '@common:control' annotation told weblogic what it needed to know in order to instantiate a runtime class of time SiteAlertMessageDBControl. because it just worked, i never questioned this.
    with the form read/write functionality complete, i assumed i could quickly wrap an ejb around the dbcontrol method & be done with it. i soon realized that i could not create an ejb inside a web project & that an ejb project would not have classpath visibility to my dbcontrol & pojo, so i put the dbcontrol & the pojo into a java control project & made a library out of this. i double checked that the web project could see the classes in the library & they could.
    so i created a separate ejb project that also could now see the classes in the library. i thought i was in the home stretch. i now have these projects in my first application:
    administrationControls, administrationWeb, & administrationEjb. i moved the administrationControls.jar & the administrationEjb.jar over to the WEB-INF/lib directory of my (remember: non-workshop) war & wired up the code to pull the bean off jndi tree to make the rmi call. but it didn't work. so i backtracked & created a new jsp back in my workshop project that would make the same rmi call so that i could use the debugger. with this as the background, here is my specific problem.
    what i noticed is that the ejb code itself works correctly. i guess i should show it as well.
    <pre>
    public class SiteAlertMessagesAPI extends GenericSessionBean implements SessionBean {
    * This is the control used to generate this pageflow
    * @common:control
    private SiteAlertMessageDBControl dbControl;
    public void ejbCreate() {
    // Your code here
    * @ejbgen:remote-method
    public SiteAlertMessage getCurrentMessage() throws Exception {
    SiteAlertMessage message = null;
    try {
    // dbControl is null here
    message = dbControl.getCurrentMessage();
    catch (Exception e) {
    e.printStackTrace();
    return message;
    </pre>
    the problem is that my dbControl object is null. what i did was cut & paste the code from the jpf over to my bean. like i stated earlier, i assumed that the annotation would tell weblogic to instantiate an instance. this was obviously not the case. incidentally, i rewrote my ejbCreate() method like this:
    <pre>
    public void ejbCreate() {
    // Your code here
    dbControl = new SiteAlertMessageDBControl();
    </pre>
    but workshop gives me a "error: this type is abstract and thus cannot be instantiated" warning.
    my question is: how do i wire up an ejb to use a database control jcx object so that the dbcontrol is instantiated at runtime?
    any light you could shed on this would be most appreciated. thanks,
    doug

    Hi,
    unfortunatly, it's not possible to use a control outside a control or a
    web service...
    Emmanuel
    douglas thomas a ?crit :
    first my question & then background:
    how do i wire up an ejb to use a database control jcx object so that the dbcontrol is instantiated at runtime?
    here's the scene:
    i created a java page flow from a database control & this works correctly, but i also need to be able to expose some of the functionality to another deployed application. this application, incidentally is not a workshop application; but rather is a hand-coded war.
    the first application (a workshop app) renders forms that use a database control to persist the data. it only uses one table & therefore, there is only one pojo. as i mentioned, this resides in web project & works correctly. i abstracted my dbcontrol & my pojo to a separate java controls project & built this as a library. the jpf still has no problems seeing the dbcontrol.
    there is a second application (a non workshop app) that needs to be able to use a method provided by the dbcontrol. i created an ejb in a third project in the first application that makes the call to dbcontrol in the exact same way that the jpf did. but i am finding, however, that the dbcontrol is null whenever the ejb makes the call to it's method.
    here's the more detailed design:
    i started with a database control. i mapped to my datasource, wrote out the sql for the methods i wanted & generated the pageflow from this. i rewrote the pageflow/jsps to suit my needs & everything just works. i did notice at the time that i generated the page flow that the dbcontrol was never instantiated. here is a snippet of the jpf:
    <pre>
    public class SiteAlertMessageManagementController extends PageFlowController {
    * This is the control used to generate this pageflow
    * @common:control
    private SiteAlertMessageDBControl dbControl;
    public Forward getCurrentMessage() {  
    SiteAlertMessage currentMessage = dbControl.getCurrentMessage();
    </pre>
    because SiteAlertMessageDBControl is an interface, i assumed that the '@common:control' annotation told weblogic what it needed to know in order to instantiate a runtime class of time SiteAlertMessageDBControl. because it just worked, i never questioned this.
    with the form read/write functionality complete, i assumed i could quickly wrap an ejb around the dbcontrol method & be done with it. i soon realized that i could not create an ejb inside a web project & that an ejb project would not have classpath visibility to my dbcontrol & pojo, so i put the dbcontrol & the pojo into a java control project & made a library out of this. i double checked that the web project could see the classes in the library & they could.
    so i created a separate ejb project that also could now see the classes in the library. i thought i was in the home stretch. i now have these projects in my first application:
    administrationControls, administrationWeb, & administrationEjb. i moved the administrationControls.jar & the administrationEjb.jar over to the WEB-INF/lib directory of my (remember: non-workshop) war & wired up the code to pull the bean off jndi tree to make the rmi call. but it didn't work. so i backtracked & created a new jsp back in my workshop project that would make the same rmi call so that i could use the debugger. with this as the background, here is my specific problem.
    what i noticed is that the ejb code itself works correctly. i guess i should show it as well.
    <pre>
    public class SiteAlertMessagesAPI extends GenericSessionBean implements SessionBean {
    * This is the control used to generate this pageflow
    * @common:control
    private SiteAlertMessageDBControl dbControl;
    public void ejbCreate() {
    // Your code here
    * @ejbgen:remote-method
    public SiteAlertMessage getCurrentMessage() throws Exception {
    SiteAlertMessage message = null;
    try {
    // dbControl is null here
    message = dbControl.getCurrentMessage();
    catch (Exception e) {
    e.printStackTrace();
    return message;
    </pre>
    the problem is that my dbControl object is null. what i did was cut & paste the code from the jpf over to my bean. like i stated earlier, i assumed that the annotation would tell weblogic to instantiate an instance. this was obviously not the case. incidentally, i rewrote my ejbCreate() method like this:
    <pre>
    public void ejbCreate() {
    // Your code here
    dbControl = new SiteAlertMessageDBControl();
    </pre>
    but workshop gives me a "error: this type is abstract and thus cannot be instantiated" warning.
    my question is: how do i wire up an ejb to use a database control jcx object so that the dbcontrol is instantiated at runtime?
    any light you could shed on this would be most appreciated. thanks,
    doug

  • !!!! Urgent Database Control Not working, Plz help !!!!!

    Hi,
    I have a webservice and in the same server(weblogic 9.2) a data source(cgAppSource) is configured. the database control is not instanciating properly, it is always remains null despite the calling of webservice. I am getting NullPointerException in the webservice. First time I am using annotation to execute a SQL query. It is urgent.can anyone please help me. what code change I have to do in both the files.
    SampleDatabaseControl.java -
    package control;
    import java.sql.SQLException;
    import org.apache.beehive.controls.api.bean.ControlBean;
    import org.apache.beehive.controls.system.jdbc.JdbcControl;
    @org.apache.beehive.controls.api.bean.ControlExtension
    @JdbcControl.ConnectionDataSource(jndiName="java:comp/env/jdbc/cgAppSource")
    public interface SampleDatabaseControl extends JdbcControl ,ControlBean{
         static final long serialVersionUID = 1L;
    @JdbcControl.SQL(statement="SELECT SYSDATE FROM DUAL")
    public String returnSysDate() throws SQLException;
    The webservice : ControlWebservice.java
    package service;
    import javax.jws.WebService;
    import javax.jws.WebMethod;
    import javax.jws.soap.SOAPBinding;
    import weblogic.jws.WLHttpTransport;
    import org.apache.beehive.controls.api.bean.Control;
    import control.SampleDatabaseControl;
    @WebService(name="ControlWebservicePortType", serviceName="ControlWebservice",
              targetNamespace="localhost")
    @SOAPBinding(style=SOAPBinding.Style.DOCUMENT,
              use=SOAPBinding.Use.LITERAL,
              parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
    @WLHttpTransport(contextPath="ControlWebserviceProj", serviceUri="ControlWebservice",
              portName="ControlWebservicePort")
    public class ControlWebservice {
         @Control
         private SampleDatabaseControl SampleDatabaseControl;
         @WebMethod()
         public String returnDate()
              String returnValue = null;
              try{
                   returnValue = "This message sent date :" + SampleDatabaseControl.returnSysDate(); // getting null pointer Exception here.
              catch(Exception e)
                   e.printStackTrace();
              return returnValue;
    }

    Hi james,
    In that link it says to 'Create a Beehive-enabled Server Domain' in which On the second page(named <strong>Select Domain Source</strong>), I need to place a check in the <strong>Apache Beehive</strong> checkbox . But in my machine when I follow the steps I dont find any such checkbox in the (named <strong>Select Domain Source</strong>) page. Is this the problem? I can see only two check boxes. The page looks like......
    Generate a domain configured automatically to support the following product. // radio select
    Weblogic Server (Required) //check box
    Workshop for Weblogic Platform // check box
    Base this domain on an existing domain. //radio select
    Templatelocation .... // a browse option
    Do I need to do some other configuration to make beehive check box active in the page? All the beehive jars are present in the instalation. And as far as I remember I did the full instalation of Weblogic 9.2 after downloading from the bea site. and I am giving the beehive related jar
    <p>
    beehive-controls.jar,beehive-jdbc-control.jar,weblogic-jdbc-control.jar in the lib folder wnder WEB-INF and deploying.
    </p>

  • Error Starting Database Control when upgrading 10.2.0.1 - 10.2.0.4

    Ran the upgrade on Monday. Not a grid. Single instance.
    It failed and we were forced to roll back using an OS backup...
    The database upgrade assistant failed with an error that it 'could not complete the Enterprise Manager configuration with the following error ' Error starting the database control refer to the log file at ..emConfig.log.
    The log is large (102k)
    In looking at the log, other than several entries stating:No value was set for the parameter ORACLE_HOSTNAME, the first thing of note is 'invalid node list' followed by two java exceptions. The log shows the successful deletion of the existing service OracleDBConsole
    and the error of not able to read ..staticports.ini file (it does not exist)
    The next error (futher down the log) is an exit value of 1 when java is executing rt.jar to 'update home'
    eventually resulting in another java stack trace.
    Is this enough information to help with ideas, or do I need to post the entire log file?

    Oct 12, 2009 10:14:26 AM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at D:\oracle\product\10.2.0\db_1\cfgtoollogs\dbua\orcl08\upgrade0\emConfig.log.
    Oct 12, 2009 10:14:26 AM oracle.sysman.emcp.ParamsManager setParam
    oracle.ops.mgmt.cluster.InvalidNodeListException: PRKC-1035 : Node names for this cluster could not be retrieved
    [PRKH-1010 : Unable to communicate with CRS services.
      [OCR Error(Native: prsr_initCLSS:[21])]]
         at oracle.ops.mgmt.cluster.Cluster.verifyNodeList(Cluster.java:948)
         at oracle.ops.mgmt.cluster.Cluster.isSharedPath(Cluster.java:846)
         at oracle.sysman.emcp.util.ClusterUtil.isShared(ClusterUtil.java:792)
         at oracle.sysman.emcp.EMDBCConfig.performUpgrade(EMDBCConfig.java:298)
         at oracle.sysman.emcp.EMDBCConfig.invoke(EMDBCConfig.java:167)
         at oracle.sysman.emcp.EMDBCConfig.invoke(EMDBCConfig.java:133)
         at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:172)
         at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:436)
         at oracle.sysman.assistants.util.em.EMConfigStep.executeImpl(EMConfigStep.java:140)
         at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
         at oracle.sysman.assistants.util.step.BasicStep.callStep(BasicStep.java:251)
         at oracle.sysman.assistants.dbma.backend.EMConfigStep.executeStepImpl(EMConfigStep.java:104)
         at oracle.sysman.assistants.dbma.backend.SummarizableStep.executeImpl(SummarizableStep.java:175)
         at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
         at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
         at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2488)
         at java.lang.Thread.run(Thread.java:534)
    Exception Caused by:
    oracle.ops.mgmt.cluster.ClusterException: PRKH-1010 : Unable to communicate with CRS services.
    [OCR Error(Native: prsr_initCLSS:[21])]
         at oracle.ops.mgmt.cluster.GetActiveNodes.<init>(GetActiveNodes.java:174)
         at oracle.ops.mgmt.cluster.GetActiveNodes.create(GetActiveNodes.java:216)
         at oracle.ops.mgmt.cluster.Cluster.getNodes(Cluster.java:298)
         at oracle.ops.mgmt.cluster.Cluster.verifyNodeList(Cluster.java:937)
         at oracle.ops.mgmt.cluster.Cluster.isSharedPath(Cluster.java:846)
         at oracle.sysman.emcp.util.ClusterUtil.isShared(ClusterUtil.java:792)
         at oracle.sysman.emcp.EMDBCConfig.performUpgrade(EMDBCConfig.java:298)
         at oracle.sysman.emcp.EMDBCConfig.invoke(EMDBCConfig.java:167)
         at oracle.sysman.emcp.EMDBCConfig.invoke(EMDBCConfig.java:133)
         at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:172)
         at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:436)
         at oracle.sysman.assistants.util.em.EMConfigStep.executeImpl(EMConfigStep.java:140)
         at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
         at oracle.sysman.assistants.util.step.BasicStep.callStep(BasicStep.java:251)
         at oracle.sysman.assistants.dbma.backend.EMConfigStep.executeStepImpl(EMConfigStep.java:104)
         at oracle.sysman.assistants.dbma.backend.SummarizableStep.executeImpl(SummarizableStep.java:175)
         at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
         at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
         at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2488)
         at java.lang.Thread.run(Thread.java:534)
    Oct 12, 2009 10:14:38 AM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
    CONFIG: File/directory D:\oracle\product\10.2.0\db_1\oc4j\j2ee\OC4J_DBConsole_hal-00-dbs-08.hal.net_ORCL08 does not exist
    Oct 12, 2009 10:14:39 AM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: Invalid node list: hal-00-dbs-08.hal.net
    oracle.ops.mgmt.cluster.InvalidNodeListException: PRKC-1035 : Node names for this cluster could not be retrieved
    [PRKH-1010 : Unable to communicate with CRS services.
      [OCR Error(Native: prsr_initCLSS:[21])]]
         at oracle.ops.mgmt.cluster.Cluster.verifyNodeList(Cluster.java:948)
         at oracle.ops.mgmt.cluster.Cluster.isSharedPath(Cluster.java:846)
         at oracle.sysman.emcp.util.ClusterUtil.isShared(ClusterUtil.java:792)
         at oracle.sysman.emcp.EMAgentConfig.performUpgrade(EMAgentConfig.java:708)
         at oracle.sysman.emcp.EMAgentConfig.invoke(EMAgentConfig.java:238)
         at oracle.sysman.emcp.EMAgentConfig.invoke(EMAgentConfig.java:208)
         at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:175)
         at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:436)
         at oracle.sysman.assistants.util.em.EMConfigStep.executeImpl(EMConfigStep.java:140)
         at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
         at oracle.sysman.assistants.util.step.BasicStep.callStep(BasicStep.java:251)
         at oracle.sysman.assistants.dbma.backend.EMConfigStep.executeStepImpl(EMConfigStep.java:104)
         at oracle.sysman.assistants.dbma.backend.SummarizableStep.executeImpl(SummarizableStep.java:175)
         at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
         at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
         at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2488)
         at java.lang.Thread.run(Thread.java:534)
    Exception Caused by:
    oracle.ops.mgmt.cluster.ClusterException: PRKH-1010 : Unable to communicate with CRS services.
    [OCR Error(Native: prsr_initCLSS:[21])]
         at oracle.ops.mgmt.cluster.GetActiveNodes.<init>(GetActiveNodes.java:174)
         at oracle.ops.mgmt.cluster.GetActiveNodes.create(GetActiveNodes.java:216)
         at oracle.ops.mgmt.cluster.Cluster.getNodes(Cluster.java:298)
         at oracle.ops.mgmt.cluster.Cluster.verifyNodeList(Cluster.java:937)
         at oracle.ops.mgmt.cluster.Cluster.isSharedPath(Cluster.java:846)
         at oracle.sysman.emcp.util.ClusterUtil.isShared(ClusterUtil.java:792)
         at oracle.sysman.emcp.EMAgentConfig.performUpgrade(EMAgentConfig.java:708)
         at oracle.sysman.emcp.EMAgentConfig.invoke(EMAgentConfig.java:238)
         at oracle.sysman.emcp.EMAgentConfig.invoke(EMAgentConfig.java:208)
         at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:175)
         at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:436)
         at oracle.sysman.assistants.util.em.EMConfigStep.executeImpl(EMConfigStep.java:140)
         at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
         at oracle.sysman.assistants.util.step.BasicStep.callStep(BasicStep.java:251)
         at oracle.sysman.assistants.dbma.backend.EMConfigStep.executeStepImpl(EMConfigStep.java:104)
         at oracle.sysman.assistants.dbma.backend.SummarizableStep.executeImpl(SummarizableStep.java:175)
         at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
         at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
         at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2488)
         at java.lang.Thread.run(Thread.java:534)
    Oct 12, 2009 10:14:40 AM oracle.sysman.emcp.ParamsManager getParam
    Service "OracleDBConsoleORCL08" create SUCCESS
    Oct 12, 2009 10:14:41 AM oracle.sysman.emcp.EMAgentConfig updateDBControlPort
    CONFIG: Setting https port as: -1
    Oct 12, 2009 10:14:46 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Starting execution: D:\oracle\product\10.2.0\db_1\jdk\jre\bin\java -classpath D:\oracle\product\10.2.0\db_1\jdk\jre\lib\rt.jar;D:\oracle\product\10.2.0\db_1\jdk\jre\lib\i18n.jar;D:\oracle\product\10.2.0\db_1\jlib\ewt3.jar;D:\oracle\product\10.2.0\db_1\jlib\ewtcompat-3_3_15.jar;D:\oracle\product\10.2.0\db_1\jlib\share.jar;D:\oracle\product\10.2.0\db_1\jlib\swingall-1_1_1.jar;D:\oracle\product\10.2.0\db_1\jlib\oracle_ice5.jar;D:\oracle\product\10.2.0\db_1\jlib\jewt4.jar;D:\oracle\product\10.2.0\db_1\jlib\help4.jar;D:\oracle\product\10.2.0\db_1\jlib\kodiak.jar;D:\oracle\product\10.2.0\db_1\lib\xmlparserv2.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-mapping.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-utility.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-collation.jar;D:\oracle\product\10.2.0\db_1\classes;D:\oracle\product\10.2.0\db_1\jlib\oemlt-10_1_0.jar;D:\oracle\product\10.2.0\db_1\jlib\emca.jar;D:\oracle\product\10.2.0\db_1\sysman\jlib\emCORE.jar;D:\oracle\product\10.2.0\db_1\oc4j\j2ee\home\oc4j.jar;D:\oracle\product\10.2.0\db_1\jlib\emConfigInstall.jar;D:\oracle\product\10.2.0\db_1\oc4j\j2ee\home\db_oc4j_deploy.jar;D:\oracle\product\10.2.0\db_1\jlib\srvm.jar;D:\oracle\product\10.2.0\db_1\jlib\srvmhas.jar;D:\oracle\product\10.2.0\db_1\jlib\srvmasm.jar;D:\oracle\product\10.2.0\db_1\jlib\netcfg.jar;D:\oracle\product\10.2.0\db_1\jlib\oraclepki103.jar;D:\oracle\product\10.2.0\db_1\jlib\ldapjclnt10.jar;D:\oracle\product\10.2.0\db_1\assistants\jlib\assistantsCommon.jar;D:\oracle\product\10.2.0\db_1\assistants\dbua\jlib\dbma.jar;;D:\oracle\product\10.2.0\db_1\oui\jlib\OraInstaller.jar oracle.sysman.emcp.target.TargetManager -updateTargets db -EM_HOME D:\oracle\product\10.2.0\HTTP -ORACLE_HOME D:\oracle\product\10.2.0\db_1 -UPDATE_HOME D:\oracle\product\10.2.0\HTTP -DB_OH D:\oracle\product\10.2.0\db_1 -SID_LIST ORCL08 -PORT 1521 -SERVICE_NAME orcl08
    Oct 12, 2009 10:14:46 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Exit value of 1
    Oct 12, 2009 10:14:46 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Scanning targets in emHome: D:\oracle\product\10.2.0\HTTP
    Oct 12, 2009 10:14:46 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: The properties file null\sysman\config\emcalog.properties needed to initialize the EMCA logger was not found. Default settings will be used
    Oct 12, 2009 10:14:46 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Error executing D:\oracle\product\10.2.0\db_1\jdk\jre\bin\java -classpath D:\oracle\product\10.2.0\db_1\jdk\jre\lib\rt.jar;D:\oracle\product\10.2.0\db_1\jdk\jre\lib\i18n.jar;D:\oracle\product\10.2.0\db_1\jlib\ewt3.jar;D:\oracle\product\10.2.0\db_1\jlib\ewtcompat-3_3_15.jar;D:\oracle\product\10.2.0\db_1\jlib\share.jar;D:\oracle\product\10.2.0\db_1\jlib\swingall-1_1_1.jar;D:\oracle\product\10.2.0\db_1\jlib\oracle_ice5.jar;D:\oracle\product\10.2.0\db_1\jlib\jewt4.jar;D:\oracle\product\10.2.0\db_1\jlib\help4.jar;D:\oracle\product\10.2.0\db_1\jlib\kodiak.jar;D:\oracle\product\10.2.0\db_1\lib\xmlparserv2.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-mapping.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-utility.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-collation.jar;D:\oracle\product\10.2.0\db_1\classes;D:\oracle\product\10.2.0\db_1\jlib\oemlt-10_1_0.jar;D:\oracle\product\10.2.0\db_1\jlib\emca.jar;D:\oracle\product\10.2.0\db_1\sysman\jlib\emCORE.jar;D:\oracle\product\10.2.0\db_1\oc4j\j2ee\home\oc4j.jar;D:\oracle\product\10.2.0\db_1\jlib\emConfigInstall.jar;D:\oracle\product\10.2.0\db_1\oc4j\j2ee\home\db_oc4j_deploy.jar;D:\oracle\product\10.2.0\db_1\jlib\srvm.jar;D:\oracle\product\10.2.0\db_1\jlib\srvmhas.jar;D:\oracle\product\10.2.0\db_1\jlib\srvmasm.jar;D:\oracle\product\10.2.0\db_1\jlib\netcfg.jar;D:\oracle\product\10.2.0\db_1\jlib\oraclepki103.jar;D:\oracle\product\10.2.0\db_1\jlib\ldapjclnt10.jar;D:\oracle\product\10.2.0\db_1\assistants\jlib\assistantsCommon.jar;D:\oracle\product\10.2.0\db_1\assistants\dbua\jlib\dbma.jar;;D:\oracle\product\10.2.0\db_1\oui\jlib\OraInstaller.jar oracle.sysman.emcp.target.TargetManager -updateTargets db -EM_HOME D:\oracle\product\10.2.0\HTTP -ORACLE_HOME D:\oracle\product\10.2.0\db_1 -UPDATE_HOME D:\oracle\product\10.2.0\HTTP -DB_OH D:\oracle\product\10.2.0\db_1 -SID_LIST ORCL08 -PORT 1521 -SERVICE_NAME orcl08
    Oct 12, 2009 10:14:46 AM oracle.sysman.emcp.EMAgentConfig performUpdateTargets
    CONFIG: Error upgrading EM configuration to the latest version.
    Oct 12, 2009 10:14:46 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Starting execution: D:\oracle\product\10.2.0\db_1\jdk\jre\bin\java -classpath D:\oracle\product\10.2.0\db_1\jdk\jre\lib\rt.jar;D:\oracle\product\10.2.0\db_1\jdk\jre\lib\i18n.jar;D:\oracle\product\10.2.0\db_1\jlib\ewt3.jar;D:\oracle\product\10.2.0\db_1\jlib\ewtcompat-3_3_15.jar;D:\oracle\product\10.2.0\db_1\jlib\share.jar;D:\oracle\product\10.2.0\db_1\jlib\swingall-1_1_1.jar;D:\oracle\product\10.2.0\db_1\jlib\oracle_ice5.jar;D:\oracle\product\10.2.0\db_1\jlib\jewt4.jar;D:\oracle\product\10.2.0\db_1\jlib\help4.jar;D:\oracle\product\10.2.0\db_1\jlib\kodiak.jar;D:\oracle\product\10.2.0\db_1\lib\xmlparserv2.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-mapping.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-utility.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-collation.jar;D:\oracle\product\10.2.0\db_1\classes;D:\oracle\product\10.2.0\db_1\jlib\oemlt-10_1_0.jar;D:\oracle\product\10.2.0\db_1\jlib\emca.jar;D:\oracle\product\10.2.0\db_1\sysman\jlib\emCORE.jar;D:\oracle\product\10.2.0\db_1\oc4j\j2ee\home\oc4j.jar;D:\oracle\product\10.2.0\db_1\jlib\emConfigInstall.jar;D:\oracle\product\10.2.0\db_1\oc4j\j2ee\home\db_oc4j_deploy.jar;D:\oracle\product\10.2.0\db_1\jlib\srvm.jar;D:\oracle\product\10.2.0\db_1\jlib\srvmhas.jar;D:\oracle\product\10.2.0\db_1\jlib\srvmasm.jar;D:\oracle\product\10.2.0\db_1\jlib\netcfg.jar;D:\oracle\product\10.2.0\db_1\jlib\oraclepki103.jar;D:\oracle\product\10.2.0\db_1\jlib\ldapjclnt10.jar;D:\oracle\product\10.2.0\db_1\assistants\jlib\assistantsCommon.jar;D:\oracle\product\10.2.0\db_1\assistants\dbua\jlib\dbma.jar;;D:\oracle\product\10.2.0\db_1\oui\jlib\OraInstaller.jar oracle.sysman.emcp.target.TargetManager -updateTargets db -EM_HOME D:\oracle\product\10.2.0\db_1 -ORACLE_HOME D:\oracle\product\10.2.0\db_1 -UPDATE_HOME D:\oracle\product\10.2.0\db_1 -DB_OH D:\oracle\product\10.2.0\db_1 -SID_LIST ORCL08 -PORT 1521 -SERVICE_NAME orcl08
    Oct 12, 2009 10:14:47 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Exit value of 1
    Oct 12, 2009 10:14:47 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Scanning targets in emHome: D:\oracle\product\10.2.0\db_1
    No targets found in emHome: D:\oracle\product\10.2.0\db_1
    Oct 12, 2009 10:14:47 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: The properties file null\sysman\config\emcalog.properties needed to initialize the EMCA logger was not found. Default settings will be used
    Oct 12, 2009 10:14:47 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Error executing D:\oracle\product\10.2.0\db_1\jdk\jre\bin\java -classpath D:\oracle\product\10.2.0\db_1\jdk\jre\lib\rt.jar;D:\oracle\product\10.2.0\db_1\jdk\jre\lib\i18n.jar;D:\oracle\product\10.2.0\db_1\jlib\ewt3.jar;D:\oracle\product\10.2.0\db_1\jlib\ewtcompat-3_3_15.jar;D:\oracle\product\10.2.0\db_1\jlib\share.jar;D:\oracle\product\10.2.0\db_1\jlib\swingall-1_1_1.jar;D:\oracle\product\10.2.0\db_1\jlib\oracle_ice5.jar;D:\oracle\product\10.2.0\db_1\jlib\jewt4.jar;D:\oracle\product\10.2.0\db_1\jlib\help4.jar;D:\oracle\product\10.2.0\db_1\jlib\kodiak.jar;D:\oracle\product\10.2.0\db_1\lib\xmlparserv2.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-mapping.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-utility.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-collation.jar;D:\oracle\product\10.2.0\db_1\classes;D:\oracle\product\10.2.0\db_1\jlib\oemlt-10_1_0.jar;D:\oracle\product\10.2.0\db_1\jlib\emca.jar;D:\oracle\product\10.2.0\db_1\sysman\jlib\emCORE.jar;D:\oracle\product\10.2.0\db_1\oc4j\j2ee\home\oc4j.jar;D:\oracle\product\10.2.0\db_1\jlib\emConfigInstall.jar;D:\oracle\product\10.2.0\db_1\oc4j\j2ee\home\db_oc4j_deploy.jar;D:\oracle\product\10.2.0\db_1\jlib\srvm.jar;D:\oracle\product\10.2.0\db_1\jlib\srvmhas.jar;D:\oracle\product\10.2.0\db_1\jlib\srvmasm.jar;D:\oracle\product\10.2.0\db_1\jlib\netcfg.jar;D:\oracle\product\10.2.0\db_1\jlib\oraclepki103.jar;D:\oracle\product\10.2.0\db_1\jlib\ldapjclnt10.jar;D:\oracle\product\10.2.0\db_1\assistants\jlib\assistantsCommon.jar;D:\oracle\product\10.2.0\db_1\assistants\dbua\jlib\dbma.jar;;D:\oracle\product\10.2.0\db_1\oui\jlib\OraInstaller.jar oracle.sysman.emcp.target.TargetManager -updateTargets db -EM_HOME D:\oracle\product\10.2.0\db_1 -ORACLE_HOME D:\oracle\product\10.2.0\db_1 -UPDATE_HOME D:\oracle\product\10.2.0\db_1 -DB_OH D:\oracle\product\10.2.0\db_1 -SID_LIST ORCL08 -PORT 1521 -SERVICE_NAME orcl08
    Oct 12, 2009 10:14:47 AM oracle.sysman.emcp.ParamsManager getParam
    Oct 12, 2009 10:14:47 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Starting execution: D:\oracle\product\10.2.0\db_1\jdk\jre\bin\java -classpath D:\oracle\product\10.2.0\db_1\jdk\jre\lib\rt.jar;D:\oracle\product\10.2.0\db_1\jdk\jre\lib\i18n.jar;D:\oracle\product\10.2.0\db_1\jlib\ewt3.jar;D:\oracle\product\10.2.0\db_1\jlib\ewtcompat-3_3_15.jar;D:\oracle\product\10.2.0\db_1\jlib\share.jar;D:\oracle\product\10.2.0\db_1\jlib\swingall-1_1_1.jar;D:\oracle\product\10.2.0\db_1\jlib\oracle_ice5.jar;D:\oracle\product\10.2.0\db_1\jlib\jewt4.jar;D:\oracle\product\10.2.0\db_1\jlib\help4.jar;D:\oracle\product\10.2.0\db_1\jlib\kodiak.jar;D:\oracle\product\10.2.0\db_1\lib\xmlparserv2.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-mapping.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-utility.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-collation.jar;D:\oracle\product\10.2.0\db_1\classes;D:\oracle\product\10.2.0\db_1\jlib\oemlt-10_1_0.jar;D:\oracle\product\10.2.0\db_1\jlib\emca.jar;D:\oracle\product\10.2.0\db_1\sysman\jlib\emCORE.jar;D:\oracle\product\10.2.0\db_1\oc4j\j2ee\home\oc4j.jar;D:\oracle\product\10.2.0\db_1\jlib\emConfigInstall.jar;D:\oracle\product\10.2.0\db_1\oc4j\j2ee\home\db_oc4j_deploy.jar;D:\oracle\product\10.2.0\db_1\jlib\srvm.jar;D:\oracle\product\10.2.0\db_1\jlib\srvmhas.jar;D:\oracle\product\10.2.0\db_1\jlib\srvmasm.jar;D:\oracle\product\10.2.0\db_1\jlib\netcfg.jar;D:\oracle\product\10.2.0\db_1\jlib\oraclepki103.jar;D:\oracle\product\10.2.0\db_1\jlib\ldapjclnt10.jar;D:\oracle\product\10.2.0\db_1\assistants\jlib\assistantsCommon.jar;D:\oracle\product\10.2.0\db_1\assistants\dbua\jlib\dbma.jar;;D:\oracle\product\10.2.0\db_1\oui\jlib\OraInstaller.jar oracle.sysman.emcp.target.TargetManager -updateTargets db -EM_HOME D:\oracle\product\10.2.0\db_1\hal-00-dbs-08.hal.net_ORCL08 -ORACLE_HOME D:\oracle\product\10.2.0\db_1 -UPDATE_HOME D:\oracle\product\10.2.0\db_1 -DB_OH D:\oracle\product\10.2.0\db_1 -SID_LIST ORCL08 -PORT 1521 -SERVICE_NAME orcl08
    Oct 12, 2009 10:14:47 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Exit value of 1
    Oct 12, 2009 10:14:47 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Scanning targets in emHome: D:\oracle\product\10.2.0\db_1\hal-00-dbs-08.hal.net_ORCL08
    Not updating db target: orcl08 in home: D:\oracle\product\10.2.0\db_1\hal-00-dbs-08.hal.net_ORCL08 as home: D:\oracle\product\10.2.0\db_1 and set home: D:\oracle\product\10.2.0\db_1, port: 1521 and set port: 1521 are same
    Oct 12, 2009 10:14:47 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: The properties file null\sysman\config\emcalog.properties needed to initialize the EMCA logger was not found. Default settings will be used
    Oct 12, 2009 10:14:47 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Error executing D:\oracle\product\10.2.0\db_1\jdk\jre\bin\java -classpath D:\oracle\product\10.2.0\db_1\jdk\jre\lib\rt.jar;D:\oracle\product\10.2.0\db_1\jdk\jre\lib\i18n.jar;D:\oracle\product\10.2.0\db_1\jlib\ewt3.jar;D:\oracle\product\10.2.0\db_1\jlib\ewtcompat-3_3_15.jar;D:\oracle\product\10.2.0\db_1\jlib\share.jar;D:\oracle\product\10.2.0\db_1\jlib\swingall-1_1_1.jar;D:\oracle\product\10.2.0\db_1\jlib\oracle_ice5.jar;D:\oracle\product\10.2.0\db_1\jlib\jewt4.jar;D:\oracle\product\10.2.0\db_1\jlib\help4.jar;D:\oracle\product\10.2.0\db_1\jlib\kodiak.jar;D:\oracle\product\10.2.0\db_1\lib\xmlparserv2.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-mapping.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-utility.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-collation.jar;D:\oracle\product\10.2.0\db_1\classes;D:\oracle\product\10.2.0\db_1\jlib\oemlt-10_1_0.jar;D:\oracle\product\10.2.0\db_1\jlib\emca.jar;D:\oracle\product\10.2.0\db_1\sysman\jlib\emCORE.jar;D:\oracle\product\10.2.0\db_1\oc4j\j2ee\home\oc4j.jar;D:\oracle\product\10.2.0\db_1\jlib\emConfigInstall.jar;D:\oracle\product\10.2.0\db_1\oc4j\j2ee\home\db_oc4j_deploy.jar;D:\oracle\product\10.2.0\db_1\jlib\srvm.jar;D:\oracle\product\10.2.0\db_1\jlib\srvmhas.jar;D:\oracle\product\10.2.0\db_1\jlib\srvmasm.jar;D:\oracle\product\10.2.0\db_1\jlib\netcfg.jar;D:\oracle\product\10.2.0\db_1\jlib\oraclepki103.jar;D:\oracle\product\10.2.0\db_1\jlib\ldapjclnt10.jar;D:\oracle\product\10.2.0\db_1\assistants\jlib\assistantsCommon.jar;D:\oracle\product\10.2.0\db_1\assistants\dbua\jlib\dbma.jar;;D:\oracle\product\10.2.0\db_1\oui\jlib\OraInstaller.jar oracle.sysman.emcp.target.TargetManager -updateTargets db -EM_HOME D:\oracle\product\10.2.0\db_1\hal-00-dbs-08.hal.net_ORCL08 -ORACLE_HOME D:\oracle\product\10.2.0\db_1 -UPDATE_HOME D:\oracle\product\10.2.0\db_1 -DB_OH D:\oracle\product\10.2.0\db_1 -SID_LIST ORCL08 -PORT 1521 -SERVICE_NAME orcl08
    Oct 12, 2009 10:14:47 AM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ASM_SID.
    Oct 12, 2009 10:14:47 AM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ASM_PORT.
    Oct 12, 2009 10:14:47 AM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ASM_OH.
    Oct 12, 2009 10:14:47 AM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter TNS_ADMIN.
    Oct 12, 2009 10:14:47 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Starting execution: D:\oracle\product\10.2.0\db_1\jdk\jre\bin\java -classpath D:\oracle\product\10.2.0\db_1\jdk\jre\lib\rt.jar;D:\oracle\product\10.2.0\db_1\jdk\jre\lib\i18n.jar;D:\oracle\product\10.2.0\db_1\jlib\ewt3.jar;D:\oracle\product\10.2.0\db_1\jlib\ewtcompat-3_3_15.jar;D:\oracle\product\10.2.0\db_1\jlib\share.jar;D:\oracle\product\10.2.0\db_1\jlib\swingall-1_1_1.jar;D:\oracle\product\10.2.0\db_1\jlib\oracle_ice5.jar;D:\oracle\product\10.2.0\db_1\jlib\jewt4.jar;D:\oracle\product\10.2.0\db_1\jlib\help4.jar;D:\oracle\product\10.2.0\db_1\jlib\kodiak.jar;D:\oracle\product\10.2.0\db_1\lib\xmlparserv2.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-mapping.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-utility.jar;D:\oracle\product\10.2.0\db_1\jlib\orai18n-collation.jar;D:\oracle\product\10.2.0\db_1\classes;D:\oracle\product\10.2.0\db_1\jlib\oemlt-10_1_0.jar;D:\oracle\product\10.2.0\db_1\jlib\emca.jar;D:\oracle\product\10.2.0\db_1\sysman\jlib\emCORE.jar;D:\oracle\product\10.2.0\db_1\oc4j\j2ee\home\oc4j.jar;D:\oracle\product\10.2.0\db_1\jlib\emConfigInstall.jar;D:\oracle\product\10.2.0\db_1\oc4j\j2ee\home\db_oc4j_deploy.jar;D:\oracle\product\10.2.0\db_1\jlib\srvm.jar;D:\oracle\product\10.2.0\db_1\jlib\srvmhas.jar;D:\oracle\product\10.2.0\db_1\jlib\srvmasm.jar;D:\oracle\product\10.2.0\db_1\jlib\netcfg.jar;D:\oracle\product\10.2.0\db_1\jlib\oraclepki103.jar;D:\oracle\product\10.2.0\db_1\jlib\ldapjclnt10.jar;D:\oracle\product\10.2.0\db_1\assistants\jlib\assistantsCommon.jar;D:\oracle\product\10.2.0\db_1\assistants\dbua\jlib\dbma.jar;;D:\oracle\product\10.2.0\db_1\oui\jlib\OraInstaller.jar oracle.sysman.emcp.target.TargetManager -updateTargets db -EM_HOME D:\oracle\product\10.2.0\db_1\hal-00-dbs-08.hal.net_ORCL08.upgrade -ORACLE_HOME D:\oracle\product\10.2.0\db_1 -UPDATE_HOME D:\oracle\product\10.2.0\db_1 -DB_OH D:\oracle\product\10.2.0\db_1 -SID_LIST ORCL08 -PORT 1521 -SERVICE_NAME orcl08
    Oct 12, 2009 10:14:48 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Exit value of 1
    Oct 12, 2009 10:14:48 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Scanning targets in emHome: D:\oracle\product\10.2.0\db_1\hal-00-dbs-08.hal.net_ORCL08.upgrade
    Not updating db target: orcl08 in home: D:\oracle\product\10.2.0\db_1\hal-00-dbs-08.hal.net_ORCL08.upgrade as home: D:\oracle\product\10.2.0\db_1 and set home: D:\oracle\product\10.2.0\db_1, port: 1521 and set port: 1521 are same
    CONFIG: Waiting for service 'OracleDBConsoleORCL08' to fully start
    CONFIG: Initialization failure for service during start
    Oct 12, 2009 10:23:55 AM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error starting Database Control
    Refer to the log file at D:\oracle\product\10.2.0\db_1\cfgtoollogs\dbua\orcl08\upgrade0\emConfig.log for more details.
    Oct 12, 2009 10:23:55 AM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error starting Database Control
         at oracle.sysman.emcp.EMDBPostConfig.performUpgrade(EMDBPostConfig.java:763)
         at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:232)
         at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:193)
         at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:184)
         at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:436)
         at oracle.sysman.assistants.util.em.EMConfigStep.executeImpl(EMConfigStep.java:140)
         at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
         at oracle.sysman.assistants.util.step.BasicStep.callStep(BasicStep.java:251)
         at oracle.sysman.assistants.dbma.backend.EMConfigStep.executeStepImpl(EMConfigStep.java:104)
         at oracle.sysman.assistants.dbma.backend.SummarizableStep.executeImpl(SummarizableStep.java:175)
         at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
         at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
         at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2488)
         at java.lang.Thread.run(Thread.java:534)

  • Oracle 10g  Database control installation error

    Hi,
    Installing oracle 10g database control had give me an error.But Repository created successfully . please find the log file below
    Is there i need to install ...? before i start to run emca to install Database Control.
    my points of interest are here
    FileNotFoundException: /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/http-web-site.xml (No such file or directory)
    i didn't find jms.xml,rmi.xml,http-web-site.xml etc in this location /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/
    File/directory /opt/db/oracle/product/10.2.0/sysman/emdrep/config/repository.variables does not exist
    Let me know how to slove this error.
    Thanks,
    anil
    Error
    =========
    emca -config dbcontrol db -repos create
    STARTED EMCA at Apr 8, 2008 4:33:25 PM
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: XXX
    Listener port number: 1521
    Password for SYS user:
    Password for DBSNMP user:
    Password for SYSMAN user:
    Email address for notifications (optional):
    Outgoing Mail (SMTP) server for notifications (optional):
    You have specified the following settings
    Database ORACLE_HOME ................ /opt/db/oracle/product/10.2.0
    Database hostname ................ xxx.xxxx.local
    Listener port number ................ 1521
    Database SID ................ XXX
    Email address for notifications ...............
    Outgoing Mail (SMTP) server for notifications ...............
    Do you wish to continue? [yes(Y)/no(N)]: yes
    Apr 8, 2008 4:34:55 PM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_2008-04-08_04-33-25-PM.log.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig updateReposVars
    SEVERE: File/directory /opt/db/oracle/product/10.2.0/sysman/emdrep/config/repository.variables does not existApr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Failed to unlock all EM-related accounts
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Failed to unlock all EM-related accounts
    Refer to the log file at /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_2008-04-08_04-33-25-PM.log for more details.
    Could not complete the configuration. Refer to the log file at /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_2008-04-08_04-33-25-PM.log for more details.
    the following is log generated (emca_2008-04-08_04-33-25-PM.log)
    Apr 8, 2008 4:34:56 PM oracle.sysman.emcp.util.OUIInventoryUtil setOUILoc
    CONFIG: Setting oracle.installer.oui_loc to /opt/db/oracle/product/10.2.0/oui
    Apr 8, 2008 4:34:56 PM oracle.sysman.emcp.util.OUIInventoryUtil setOUILoc
    CONFIG: Setting oracle.installer.oui_loc to /opt/db/oracle/product/10.2.0/oui
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Homes to scan for used ports: [opt/db/oracle/product/10.2.0]
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Searching all DBConsole instances for used ports under ORACLE_HOME /opt/db/oracle/product/10.2.0
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager findUsedPortsFromXML
    CONFIG: Could not find or correctly parse file /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/jms.xml in searching for tag jms-server with att
    ribute port
    java.io.FileNotFoundException: /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/jms.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at java.io.FileReader.<init>(FileReader.java:41)
    at oracle.sysman.emcp.util.PortManager.findUsedPortsFromXML(PortManager.java:282)
    at oracle.sysman.emcp.util.PortManager.markAllUsedPorts(PortManager.java:1172)
    at oracle.sysman.emcp.util.PortManager.getFreePorts(PortManager.java:543)
    at oracle.sysman.emcp.EMDBPreConfig.getFreePorts(EMDBPreConfig.java:2324)
    at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2261)
    at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:670)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:233)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:160)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:141)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking JMS port: null from /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager findUsedPortsFromXML
    CONFIG: Could not find or correctly parse file /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/rmi.xml in searching for tag rmi-server with att
    ribute port
    java.io.FileNotFoundException: /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/rmi.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at java.io.FileReader.<init>(FileReader.java:41)
    at oracle.sysman.emcp.util.PortManager.findUsedPortsFromXML(PortManager.java:282)
    at oracle.sysman.emcp.util.PortManager.markAllUsedPorts(PortManager.java:1176)
    at oracle.sysman.emcp.util.PortManager.getFreePorts(PortManager.java:543)
    at oracle.sysman.emcp.EMDBPreConfig.getFreePorts(EMDBPreConfig.java:2324)
    at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2261)
    at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:670)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:233)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:160)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:141)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking RMI port: null from /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager findUsedPortsFromXML
    CONFIG: Could not find or correctly parse file /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/http-web-site.xml in searching for tag web-site
    with attribute port
    java.io.FileNotFoundException: /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/http-web-site.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at java.io.FileReader.<init>(FileReader.java:41)
    at oracle.sysman.emcp.util.PortManager.findUsedPortsFromXML(PortManager.java:282)
    at oracle.sysman.emcp.util.PortManager.markAllUsedPorts(PortManager.java:1180)
    at oracle.sysman.emcp.util.PortManager.getFreePorts(PortManager.java:543)
    at oracle.sysman.emcp.EMDBPreConfig.getFreePorts(EMDBPreConfig.java:2324)
    at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2261)
    at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:670)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:233)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:160)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:141)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking HTTP port: null from /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.FileUtil getProperties
    CONFIG: Error reading file /opt/db/oracle/product/10.2.0/sysman/config/emd.properties
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager getAgentPort
    CONFIG: Cannot parse EMD_URL correctly. No port identified
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking Agent port: null from /opt/db/oracle/product/10.2.0/sysman/config/emd.properties
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Cannnot parse EMD_URL correctly. No port identified
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.FileUtil getProperties
    CONFIG: Error reading file /opt/db/oracle/product/10.2.0/install/staticports.ini
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager getFreePorts
    CONFIG: /opt/db/oracle/product/10.2.0:mcidm11.pacs11.local:null:SDM:{}:null:{DBCONTROL_HTTP_PORT=1158, RMI_PORT=5520, JMS_PORT=5540, AGENT_PORT=3938}
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter AGENT_PORT_SDM.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: AGENT_PORT_SDM value: 3938
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DBCONTROL_HTTP_PORT_SDM.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DBCONTROL_HTTP_PORT_SDM value: 1158
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter JMS_PORT_SDM.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: JMS_PORT_SDM value: 5540
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter RMI_PORT_SDM.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: RMI_PORT_SDM value: 5520
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMDBPreConfig getFreePorts
    CONFIG: Ports assigned for SID: SDM : {DBCONTROL_HTTP_PORT=1158, RMI_PORT=5520, JMS_PORT=5540, AGENT_PORT=3938}
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: SDM, oracleHome: /opt/db/oracle/product/10.2.0, and user: SYS
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig createRepository
    CONFIG: Spooling to /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_repos_create_2008-04-08_04-34-58-PM.log
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: SDM, oracleHome: /opt/db/oracle/product/10.2.0, and user: SYS
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig grantPrivsToDbsnmp
    CONFIG: Exception while granting priviliges.
    oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-00942: table or view does not exist
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1467)
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeSql(SQLEngine.java:1708)
    at oracle.sysman.emcp.EMReposConfig.grantPrivsToDbsnmp(EMReposConfig.java:503)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:208)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
    CONFIG: Failed to grant priviliges to dbsnmp.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig updateReposVars
    SEVERE: File/directory /opt/db/oracle/product/10.2.0/sysman/emdrep/config/repository.variables does not existApr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: SDM, oracleHome: /opt/db/oracle/product/10.2.0, and user: SYS
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig unlockAccounts
    CONFIG: Unlocking dbsnmp and sysman
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig unlockAccounts
    CONFIG: ORA-06550: line 1, column 62:
    PLS-00201: identifier 'SYSMAN.MGMT_VIEW_PRIV' must be declared
    ORA-06550: line 1, column 62:
    PL/SQL: Statement ignored
    oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-06550: line 1, column 62:
    PLS-00201: identifier 'SYSMAN.MGMT_VIEW_PRIV' must be declared
    ORA-06550: line 1, column 62:
    PL/SQL: Statement ignored
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1467)
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeSql(SQLEngine.java:1708)
    at oracle.sysman.emcp.EMReposConfig.unlockAccounts(EMReposConfig.java:566)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:235)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Failed to unlock all EM-related accounts
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Failed to unlock all EM-related accounts
    Refer to the log file at /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_2008-04-08_04-33-25-PM.log for more details.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Failed to unlock all EM-related accounts
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:239)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)

    Hi all,
    i started creating database control repository, when i saw emca running i had seen repository created successfully , but sysman user is not created at this point of time. Then i looked into emca_repos_create_2008-04-10_11-57-03-AM.log file but the file is unable to open because it's looking for file emreposcre.sql which creates sysman user in this location /opt/db/oracle/product/10.2.0/sysman/admin/emdrep/sql/
    i feel while installing the database these files are not created....? or i need to run any scripts before running emca ....?
    give me some inputs to this thread.
    Thanks,
    nil
    STARTED EMCA at Apr 10, 2008 11:55:41 AM
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: XXXXX
    Listener port number: 1521
    Password for SYS user:
    Password for SYSMAN user:
    Do you wish to continue? [yes(Y)/no(N)]: yes
    Apr 10, 2008 11:57:02 AM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /opt/db/oracle/product/10.2.0/cfgtoollog
    Apr 10, 2008 11:57:03 AM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Apr 10, 2008 11:57:03 AM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    Enterprise Manager configuration completed successfully
    FINISHED EMCA at Apr 10, 2008 11:57:03 AM
    mcidm11 10.2.0/bin>
    CONFIG: Spooling to /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_repos_create_2008-04-10_11-57-03-AM.log
    Apr 10, 2008 11:57:03 AM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Apr 10, 2008 11:57:03 AM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    mcidm11 emca/SDM> pwd
    /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM
    mcidm11 emca/SDM> more emca_repos_create_2008-04-10_11-57-03-AM.log
    SP2-0310: unable to open file "/opt/db/oracle/product/10.2.0/sysman/admin/emdrep/sql/emreposcre.sql"mcidm11 emca/SDM> cd
    Directory: /opt/db
    mcidm11 /opt/db> cd /opt/db/oracle/product/10.2.0/sysman/admin/emdrep/sql/
    Directory: /opt/db/oracle/product/10.2.0/sysman/admin/emdrep/sql
    mcidm11 emdrep/sql> ls
    core db ias ocs

  • Database control: how to read output of sproc that returns result set

    I have a stored procedure that returns a result set. Should I use a RowSet control to wrap this, or a database control, or neither? Am I better off with straight JDBC in a Java control?
    Thanks.

    Sorry for missing the point totally...
    DOKTL also contains long text for FM parameters...
    This is a modified version of your code that retrieves the long text and displays it...
    DATA: parameter TYPE TABLE OF swotfupar,
          ls_parameter LIKE LINE OF parameter,
          search_string TYPE doktl-object,
          texttab type table of doktl-doktext with header line.
    PARAMETERS: fubaname TYPE swcontdef-abapname
                              DEFAULT 'POPUP_TO_CONFIRM',
                pa_lang TYPE sy-langu.
    START-OF-SELECTION.
      CALL FUNCTION 'SWO_QUERY_FUNCTION_PARAMETERS'
        EXPORTING
          functionmodule            = fubaname
        TABLES
          function_parameters       = parameter
    *   EXCEPTIONS
    *     FUNCTION_NOT_FOUND        = 1
    *     OTHERS                    = 2
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP AT parameter INTO ls_parameter.
        CONCATENATE `                              `            "30 spaces
                    ls_parameter-parameter INTO search_string.
        OVERLAY search_string WITH fubaname.
        SELECT doktext FROM doktl INTO TABLE texttab
               WHERE id = 'FU'
               AND langu = pa_lang
               AND object = search_string.
        WRITE:/ 'Long Text for', ls_parameter-parameter.
        LOOP AT texttab.
          NEW-LINE.
          WRITE: AT 10 texttab COLOR COL_HEADING.
        ENDLOOP.
      ENDLOOP.
    Hope this helps you
    Regards,
    Dushyant Shetty

  • EM 10g Database Control - Status: Agent Unreachable

    Hi,
    OS: AIX 5L
    Database: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit
    We have installed 2 instances with EM 10g database control option.
    At the end EM was running over the second database.
    Then we switch it to look over the first one by reconfiguring these files:
    $ORACLE_HOME/sysman/config/emd.properties;
    $ORACLE_HOME/sysman/config/pref/dbastudio-oradba.crd.
    Now EM seems to work fine except for this error: Agent Unreachable.
    oradba@aix09(:SIGP)/u01/apps/oradba/product/10.1.0/aix09_SIGP/sysman/log > emctl status agent
    Oracle Enterprise Manager 10g Database Control Release 10.1.0.2.0
    Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved.
    Agent Version : 10.1.0.2.0
    OMS Version : 10.1.0.2.0
    Protocol Version : 10.1.0.2.0
    Agent Home : /u01/apps/oradba/product/10.1.0/aix09_SIGP
    Agent binaries : /u01/apps/oradba/product/10.1.0
    Agent Process ID : 4284428
    Parent Process ID : 3399760
    Agent URL : http://aix09:1830/emd/main
    Started at : 2004-08-09 12:24:29
    Started by user : oradba
    Last Reload : 2004-08-09 12:24:29
    Last successful upload : (none)
    Last attempted upload : 2004-08-09 14:29:51
    Total Megabytes of XML files uploaded so far : 0.00
    Number of XML files pending upload : 1955
    Size of XML files pending upload(MB) : 50.12
    Available disk space on upload filesystem : 4.60%
    Agent is Running and Ready
    /aix09_SIGP/sysman/log/ emagent.trc:
    2004-08-09 14:31:53 Thread-1910 ERROR upload: Failed to upload file A0000001.xml, ret = -2
    2004-08-09 14:31:53 Thread-1910 WARN upload: FxferSend: received http error in header from repository: http:/
    /aix09:5500/em/upload/
    ERROR-400|ORA-04020: deadlock detected while trying to lock object 30x700000021709BF80x700000021B01D200x700000
    0267473A8
    2004-08-09 14:31:53 Thread-1910 ERROR upload: Failed to upload file A0000001.xml, ret = -2
    2004-08-09 14:31:53 Thread-1910 ERROR upload: 3 Failures in a row for A0000001.xml, we give up
    2004-08-09 14:31:53 Thread-1910 ERROR upload: Error in uploadXMLFiles. Trying again in 300.00 seconds.
    After connecting as sysman I’ve ran these statements:
    SQL> SELECT emd_url
    2 FROM mgmt_targets t
    3 WHERE t.target_name = 'aix09'
    4 AND t.target_type = 'host';
    EMD_URL
    http://aix09:1830/emd/main
    SQL> SELECT t.target_name, t.target_type,
    2 TO_CHAR(t.load_timestamp,'DD-MON-YYYY HH24:MI:SS') "discovery_time
    3 TO_CHAR(t.last_updated_time,'DD-MON-YYYY HH24:MI:SS') "last_metada
    ta_load",
    4 TO_CHAR(a.marker_timestamp,'DD-MON-YYYY HH24:MI:SS') "last_severit
    y_load",
    5 TO_CHAR(t.last_load_time,'DD-MON-YYYY HH24:MI:SS') "last_metric_lo
    ad"
    6 FROM mgmt_targets t, mgmt_availability_marker a
    7 WHERE t.target_guid = a.target_guid
    8 AND t.target_name = 'aix09'
    9 AND t.target_type = 'host';
    TARGET_NAME
    TARGET_TYPE discovery_time
    last_metadata_load last_severity_load last_metric_load
    aix09
    host 03-AUG-2004 14:47:55
    05-AUG-2004 18:28:45 05-AUG-2004 18:30:42 05-AUG-2004 17:13:55
    Does any one know what do I have to do to solve this problem ?
    Thanks in advance,
    Vitor

    Can you start a browser on the client machine?
    (netscape/mozilla) and try to load
    http://aix09:1830/emd/main
    Make sure both the client and the OMS server can resolve aix09 hostname
    Make sure the client can resolve the OMS server name.

  • Workshop 8.1 beta - problem with creating Database control

    I am using Workshop 8.1 beta to create a webservice, which uses a database control
    to query the Db, as simpel as it comes. However, I get the following exception
    when I try to create the new DBControl:
    java.lang.AssertionError
         at workshop.pageflow.ui.dialogs.wizards.jbcx.db.util.DbControlWizardUtil.getTables(DbControlWizardUtil.java:268)
         at workshop.pageflow.ui.dialogs.wizards.jbcx.db.util.DbControlWizardUtil.getTablesAndViews(DbControlWizardUtil.java:223)
         at workshop.pageflow.ui.dialogs.wizards.jbcx.db.step.PickMethodsStep$4.run(PickMethodsStep.java:299)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:140)
         at java.awt.Dialog.show(Dialog.java:538)
         at com.bea.ide.ui.wizard.WizardDialog.show(WizardDialog.java:117)
         at workshop.pageflow.ui.dialogs.wizards.jbcx.db.DbControlWizard.runWizard(DbControlWizard.java:96)
         at workshop.pageflow.ui.dialogs.wizards.jbcx.db.FileNewDbControlWizardAction.doAction(FileNewDbControlWizardAction.java:58)
         at workshop.pageflow.ui.dialogs.wizards.jbcx.db.DbControlWizardDocHandler.launchWizard(DbControlWizardDocHandler.java:87)
         at workshop.pageflow.ui.dialogs.wizards.jbcx.db.DbControlWizardDocHandler.createNewFile(DbControlWizardDocHandler.java:72)
         at workshop.shell.wizards.NewFileWizard.getDisplayURI(NewFileWizard.java:232)
         at workshop.shell.actions.file.FileNewAction$1.run(FileNewAction.java:111)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    What's interesting is that it works well for the default dbcontrols of cgDataSource
    and cgSampleDataSource. The connection pool and the datasources were created successfully
    in the server. Its the workshop that seems to be complaining.
    Anyone face this problem?

    Sanjeev,
    This newsgroup is for Workshop 7.0 issues, till WebLogic Platform 8.1 goes
    GA.
    Meanwhile, please post Workshop 8.1 beta issues on
    weblogic.developer.interest.81beta.workshop newsgroup.
    Regards,
    Anurag
    "Sanjeev Saha" <[email protected]> wrote in message
    news:[email protected]...
    >
    I am using Workshop 8.1 beta to create a webservice, which uses a databasecontrol
    to query the Db, as simpel as it comes. However, I get the followingexception
    when I try to create the new DBControl:
    java.lang.AssertionError
    atworkshop.pageflow.ui.dialogs.wizards.jbcx.db.util.DbControlWizardUtil.getTab
    les(DbControlWizardUtil.java:268)
    atworkshop.pageflow.ui.dialogs.wizards.jbcx.db.util.DbControlWizardUtil.getTab
    lesAndViews(DbControlWizardUtil.java:223)
    atworkshop.pageflow.ui.dialogs.wizards.jbcx.db.step.PickMethodsStep$4.run(Pick
    MethodsStep.java:299)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
    atjava.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    va:197)
    atjava.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :150)
    atjava.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :140)
    at java.awt.Dialog.show(Dialog.java:538)
    at com.bea.ide.ui.wizard.WizardDialog.show(WizardDialog.java:117)
    atworkshop.pageflow.ui.dialogs.wizards.jbcx.db.DbControlWizard.runWizard(DbCon
    trolWizard.java:96)
    atworkshop.pageflow.ui.dialogs.wizards.jbcx.db.FileNewDbControlWizardAction.do
    Action(FileNewDbControlWizardAction.java:58)
    atworkshop.pageflow.ui.dialogs.wizards.jbcx.db.DbControlWizardDocHandler.launc
    hWizard(DbControlWizardDocHandler.java:87)
    atworkshop.pageflow.ui.dialogs.wizards.jbcx.db.DbControlWizardDocHandler.creat
    eNewFile(DbControlWizardDocHandler.java:72)
    atworkshop.shell.wizards.NewFileWizard.getDisplayURI(NewFileWizard.java:232)
    at workshop.shell.actions.file.FileNewAction$1.run(FileNewAction.java:111)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
    atjava.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    va:197)
    atjava.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    What's interesting is that it works well for the default dbcontrols ofcgDataSource
    and cgSampleDataSource. The connection pool and the datasources werecreated successfully
    in the server. Its the workshop that seems to be complaining.
    Anyone face this problem?

  • Getting result set from stored procedures in database controls in weblogic

    I am calling a stored procedure from database control which actually returns a result set
    when i call the stored procedure like
    * @jc:sql statement="call PROC4()"
    ResultSet sampleProc() throws SQLException;
    it gives me exception saying
    "weblogic.jws.control.ControlException: Method sampleProc is DML but does not return void or int"
    I would appreciate any help
    Thanks,
    Uma

    Thanks for you reply!
    1) The stored procedure has head
    CREATE OR REPLACE PROCEDURE X_OWNER.DISPLAY_ADDRESS
    cv_1 IN OUT SYS_REFCURSOR
    AS
    err_msg VARCHAR2(100);
    BEGIN
    --Adaptive Server has expanded all '*' elements in the following statement
    OPEN cv_1 FOR
    Select ...
    commit;
    EXCEPTION
    WHEN OTHERS THEN
    err_msg := SQLERRM;
    dbms_output.put_line (err_msg);
    ROLLBACK;
    END;
    If I only run select .. in DBArtisan, it display all 2030,000 rows in 3:44 minutes
    2) But when call stored procedure, it will take 80-100 minutes .
    3) The stored procedure is translated from sybase using migration tools, it's very simple, in sybase it just
    CREATE PROCEDURE X_OWNER.DISPLAY_ADDRESS
    AS
    BEGIN
    select ..
    The select part is exact same.
    4) The perl code is almost exact same, except the query sql:
    sybase verson: my $sql ="exec DISPLAY_ADDRESS";
    and no need bind the cursor parameter.
    This is batch job, we create a file with all information, and ftp to clients everynight.
    Thanks!
    Rulin

  • Problems with EM Database Control after applying 10.2.0.4 patchset

    Hello all,
    Host: Linux x86
    DB: Single-instance running EM Database Control. Originally 10.2.0.1 patched to 10.2.0.4
    Last night I upgraded the database from 10.2.0.1 to 10.2.0.4. All appeared to go well. I didn't get any errors in the process and when I logged in to the database control, all appeared well. It was late at night so I didn't browse around for very long, though. When I came in this morning and did some more extensive testing, upon logging in I first noticed that in the General section the database version was listed as 10.2.0.1.0. I thought that this was pretty odd since I had just been logged on to SQL*Plus and saw that the database was reporting back that it was at version 10.2.0.4.0. I refreshed the page and I saw
    "java.lang.Exception: IOException in reading Response :: Connection reset"
    at the top of the page. I have seen this problem before and, in the past, it has been resolved by either restarting the dbconsole or making sure that the monitoring configuration is set up correctly. The first thing that I did was issue
    [host]$ emctl stop dbconsole followed by
    [host]$ emctl start dbconsole
    to see if that would do the trick. When I saw that it didn't, I went into the Monitoring Configuration and was surprised to see that it said "No items were found." I refreshed the page and this error appeared:
    oracle.sysman.emSDK.emd.comm.CommException: IOException in reading Response :: Connection reset
    I tried to follow all of the instructions in the ReadMe as closely as I could. I have been searching on the Internet and the Oracle Forums for most of the day to try to find out the cause of this error. I see that people have these errors, but the circumstances are not the same as mine. Is this a common problem? Does anyone know what I can do to resolve it?
    Any help would be greatly appreciated.
    Thanks!
    John

    Hello Satish,
    Thank you for your reply. I don't know if this is normal or not but, now after the upgrade, in the ORACLE_HOME I have a directory that's been created called hostnameSID (the fully qualified host name of my computer and the SID of the database).  Inside of it is a sysman directory, an emctl.pid file and an oraInst.loc file.  I also still have a syman directory under the ORACLEHOME but the dbconsole appears to be running out of the hostname_SID directory.  Is that normal?
    I looked up the article that you referenced and looked for the targets.xml file first in the ORACLE_HOME/sysman/emd directory. I found a targets.xml file along with several other similar files, targets.xml.1, targets.xml.2, etc. The targets.xml file just had the following:
    <Targets>
    </Targets>
    Seeing that it was blank, I then took a look at the the hostname_SID/sysman/emd folder. I saw only one targets.xml file in this location and when I opened it up it had the following:
    <Targets AGENT_TOKEN="+alpha numeric string+">
    <Target TYPE="oracle_emd" NAME="+hostname+:3938"/>
    <Target TYPE="host" NAME="+hostname+"/>
    </Targets>
    The contents of that file seemed to match what the article which you cited indicated should be in the file. Since I have a single instance managed by the dbconsole and not EM Grind Control, I'm expecting the files to be a little bit different. Am I wrong in assuming that? Still, I'm not sure if I should have the hostname_SID directory beneath the ORACLE_HOME.
    Any ideas?
    Thanks again for your help,
    John

  • Can't create or import Database Control Repository on fresh install

    I've just installed the latest 10g version on a Linux system. Afterward, and after exporting my ORACLE_SID and ORACLE_HOME variables, on trying to start the EM Control (emctl), I got the dreaded "OC4J Configuration issue" error:
    ./emctl start dbconsole
    TZ set to US/Eastern
    OC4J Configuration issue. /usr/local/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_myhostname_myoracledb not found.
    lsnrctl hung when connecting or checking status:
    ./lsnrctl
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 25-JUN-2007 16:14:23
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Welcome to LSNRCTL, type "help" for information.
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myhostname)(PORT=1521)))
    So I ran netca to configure the listener, and that seemed to work, but at the end it complained that the port was already in use (even though netstat -a shows nothing on port 1521). Then I tried to create the repository (emca -repos create), but that failed too ("SYSMAN already exists"):
    INFO: Creating the EM repository (this may take a while) ...
    Jun 25, 2007 4:18:55 PM oracle.sysman.emcp.EMReposConfig createRepository
    CONFIG: ORA-20001: SYSMAN already exists..
    ORA-06512: at line 17
    oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-20001: SYSMAN already exists..
    ORA-06512: at line 17
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1467)
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeScript(SQLEngine.java:841)
    at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:265)
    at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:306)
    at oracle.sysman.emcp.EMReposConfig.createRepository(EMReposConfig.java:360)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:182)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    Jun 25, 2007 4:18:55 PM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Error creating the repository
    Jun 25, 2007 4:18:55 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Refer to the log file at /usr/local/oracle/product/10.2.0/db_1/cfgtoollogs/emca/myoracledb/emca_repos_create_<date>.log for
    Jun 25, 2007 4:18:55 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error creating the repository
    Refer to the log file at /usr/local/oracle/product/10.2.0/db_1/cfgtoollogs/emca/myoracledb/emca_2007-06-25_04-18-37-PM.log for morJun 25, 2007 4:18:55 PM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error creating the repository
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:194)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    I'm not sure what else to try. Any thoughts?
    Thank you,
    ~John

    Please let me know if this isn't the correct log:
    $ cat $ORACLE_HOME/cfgtoollogs/emca/oracledb/emca_2007-06-27_04-51-05-PM.log
    Jun 27, 2007 4:51:05 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag '-config' set to true
    Jun 27, 2007 4:51:05 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'UPDATE_EMAIL' set to true
    Jun 27, 2007 4:51:05 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'dbcontrol' set to true
    Jun 27, 2007 4:51:05 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'db' set to true
    Jun 27, 2007 4:51:05 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'create' set to true
    Jun 27, 2007 4:51:05 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'drop' set to true
    Jun 27, 2007 4:51:05 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: ORACLE_HOME value: /usr/local/oracle/product/10.2.0/db_1
    Jun 27, 2007 4:51:05 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
    Jun 27, 2007 4:51:05 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: EM_HOME value: /usr/local/oracle/product/10.2.0/db_1
    Jun 27, 2007 4:51:09 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: SID value: oracledb
    Jun 27, 2007 4:51:09 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
    Jun 27, 2007 4:51:09 PM oracle.sysman.emcp.util.ClusterUtil getLocalNode
    CONFIG: This is expected, as we might be calling it from a non-rac home
    Jun 27, 2007 4:51:09 PM oracle.sysman.emcp.util.ClusterUtil getLocalNode
    CONFIG: Error retrieving the local node for the cluster
    Jun 27, 2007 4:51:09 PM oracle.sysman.emcp.util.ClusterUtil getLocalNode
    CONFIG: PRKH-1010 : Unable to communicate with CRS services.
    [OCR Error(Native: prsr_initCLSS:[21])]
    Jun 27, 2007 4:51:09 PM oracle.sysman.emcp.util.ClusterUtil getLocalNode
    CONFIG: Cluster Error Message: PRKH-1010 : Unable to communicate with CRS services.
    [OCR Error(Native: prsr_initCLSS:[21])]
    Jun 27, 2007 4:51:09 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
    Jun 27, 2007 4:51:09 PM oracle.sysman.emcp.util.DBControlUtil isDBConsoleConfigured
    CONFIG: Sid: oracledb Host: [hostname] Node: null OH: /usr/local/oracle/product/10.2.0/db_1 isDBC: false
    Jun 27, 2007 4:51:09 PM oracle.sysman.emcp.util.CentralAgentUtil isCentralAgentConfigured
    CONFIG: Sid: oracledb Host: [hostname] Node: null OH: /usr/local/oracle/product/10.2.0/db_1 agentHome: null isCentral: false
    Jun 27, 2007 4:51:09 PM oracle.sysman.emcp.util.CentralAgentUtil isCentralAgentConfigured
    CONFIG: Sid: oracledb Host: [hostname] Node: null OH: /usr/local/oracle/product/10.2.0/db_1 agentHome: null isCentral: false
    Jun 27, 2007 4:51:09 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter SYS_PWD.
    Jun 27, 2007 4:51:09 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: oracledb, oracleHome: /usr/local/oracle/product/10.2.0/db_1, and user:
    Jun 27, 2007 4:51:10 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 27, 2007 4:51:10 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'asm_db' set to false
    Jun 27, 2007 4:51:10 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'asm_db' set to false
    Jun 27, 2007 4:51:12 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: PORT value: 1521
    Jun 27, 2007 4:51:15 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter SYS_PWD.
    Jun 27, 2007 4:51:15 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: oracledb, oracleHome: /usr/local/oracle/product/10.2.0/db_1, and user: SYS
    Jun 27, 2007 4:51:15 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 27, 2007 4:51:17 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: oracledb, oracleHome: /usr/local/oracle/product/10.2.0/db_1, and user: DBSNMP
    Jun 27, 2007 4:51:17 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 27, 2007 4:51:20 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: EMAIL_ADDRESS value:
    Jun 27, 2007 4:51:21 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: MAIL_SERVER_NAME value:
    Jun 27, 2007 4:51:21 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
    Jun 27, 2007 4:51:21 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: CONFIRMATION ANSWER value:
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: CONFIRMATION ANSWER value: yes
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter LOG_FILE.
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DB_UNIQUE_NAME.
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DB_UNIQUE_NAME.
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: oracledb, oracleHome: /usr/local/oracle/product/10.2.0/db_1, and user: SYS
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.DatabaseChecks getDbUniqueName
    CONFIG: No Database unique name available. Will try to retrieve it from DB itself
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_UNIQUE_NAME value: oracledb
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /usr/local/oracle/product/10.2.0/db_1/cfgtoollogs/emca/oracledb/emca_2007-06-27_04-51-05-PM.log.
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'CHECK_CONFIG' set to true
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: oracledb, oracleHome: /usr/local/oracle/product/10.2.0/db_1, and user: SYS
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: oracledb, oracleHome: /usr/local/oracle/product/10.2.0/db_1, and user: DBSNMP
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter MODIFY_SID.
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: oracledb, oracleHome: /usr/local/oracle/product/10.2.0/db_1, and user: SYS
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'asm_db' set to false
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter MODIFY_SID.
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.DatabaseChecks getDbServiceName
    CONFIG: No service name available. Will try to set db_unique_name.db_domain
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: oracledb, oracleHome: /usr/local/oracle/product/10.2.0/db_1, and user: SYS
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_UNIQUE_NAME value:
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DB_UNIQUE_NAME.
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.DatabaseChecks getDbUniqueName
    CONFIG: No Database unique name available. Will try to retrieve it from DB itself
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_UNIQUE_NAME value: oracledb
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DB_DOMAIN.
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.DatabaseChecks getDbDomain
    CONFIG: No db domain available. Will query db for db_domain parameter
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_DOMAIN value: world
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_UNIQUE_NAME value: oracledb
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: SERVICE_NAME value: oracledb.world
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter MODIFY_SID.
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DBID.
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.DatabaseChecks getDbid
    CONFIG: No dbid available. Will query db to extract it.
    Jun 27, 2007 4:51:23 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: oracledb, oracleHome: /usr/local/oracle/product/10.2.0/db_1, and user: SYS
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DBID value: 3244183297
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'db' set to true
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter MODIFY_SID.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.DatabaseChecks getDbServiceName
    CONFIG: No service name available. Will try to set db_unique_name.db_domain
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: oracledb, oracleHome: /usr/local/oracle/product/10.2.0/db_1, and user: SYS
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_UNIQUE_NAME value:
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DB_UNIQUE_NAME.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.DatabaseChecks getDbUniqueName
    CONFIG: No Database unique name available. Will try to retrieve it from DB itself
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_UNIQUE_NAME value: oracledb
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_DOMAIN value: world
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_UNIQUE_NAME value: oracledb
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: SERVICE_NAME value: oracledb.world
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: oracledb, oracleHome: /usr/local/oracle/product/10.2.0/db_1, and user: SYS
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter EMAIL_ADDRESS.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter MAIL_SERVER_NAME.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: oracledb, oracleHome: /usr/local/oracle/product/10.2.0/db_1, and user: SYS
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.EMDBPreConfig invoke
    CONFIG: Passed repository configuration check
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter MODIFY_SID.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter MODIFY_SID.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter GLOBAL_DB_UNIQUE_NAME.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.DatabaseChecks getGlobalDbUniqueName
    CONFIG: No Global database unique name available. Will try to retrieve it from DB itself
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: oracledb, oracleHome: /usr/local/oracle/product/10.2.0/db_1, and user: SYS
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DB_DOMAIN value: world
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: GLOBAL_DB_UNIQUE_NAME value: oracledb.world
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.FileUtil _copyFile
    CONFIG: Copying file /usr/local/oracle/product/10.2.0/db_1/sysman/config/emd.properties to /usr/local/oracle/product/10.2.0/db_1/sysman/config/emd.properties.emca.tmp
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.FileUtil backupFile
    CONFIG: The original file /usr/local/oracle/product/10.2.0/db_1/sysman/config/emd.properties has been copied to /usr/local/oracle/product/10.2.0/db_1/sysman/config/emd.properties.emca.tmp
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.FileUtil _copyFile
    CONFIG: Copying file /usr/local/oracle/product/10.2.0/db_1/sysman/config/emoms.properties.emca to /usr/local/oracle/product/10.2.0/db_1/sysman/config/emoms.properties
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.FileUtil backupFile
    CONFIG: The original file /usr/local/oracle/product/10.2.0/db_1/sysman/config/emoms.properties.emca has been copied to /usr/local/oracle/product/10.2.0/db_1/sysman/config/emoms.properties
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.FileUtil _copyFile
    CONFIG: Copying file /usr/local/oracle/product/10.2.0/db_1/sysman/emd/targets.xml to /usr/local/oracle/product/10.2.0/db_1/sysman/emd/targets.xml.emca.tmp
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.FileUtil backupFile
    CONFIG: The original file /usr/local/oracle/product/10.2.0/db_1/sysman/emd/targets.xml has been copied to /usr/local/oracle/product/10.2.0/db_1/sysman/emd/targets.xml.emca.tmp
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'IS_CENTRAL_AGENT_RECONFIG' set to false
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.CentralAgentUtil isCentralAgentConfigured
    CONFIG: Sid: oracledb Host: [hostname] Node: null OH: /usr/local/oracle/product/10.2.0/db_1 agentHome: null isCentral: false
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.DBControlUtil isDBConsoleConfigured
    CONFIG: Sid: oracledb Host: [hostname] Node: null OH: /usr/local/oracle/product/10.2.0/db_1 isDBC: false
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'IS_CENTRAL_AGENT_CONFIGURED' set to false
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager setFlag
    CONFIG: Flag 'IS_DBCONTROL_CONFIGURED' set to false
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DBCONTROL_HTTP_PORT.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter AGENT_PORT.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter RMI_PORT.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter JMS_PORT.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.DBControlUtil isDBConsoleConfigured
    CONFIG: Sid: oracledb Host: [hostname] Node: null OH: /usr/local/oracle/product/10.2.0/db_1 isDBC: false
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter PORTS_FILE.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter JMS_PORT_oracledb.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter JMS_PORT.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter RMI_PORT_oracledb.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter RMI_PORT.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DBCONTROL_HTTP_PORT_oracledb.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DBCONTROL_HTTP_PORT.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter AGENT_PORT_oracledb.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter AGENT_PORT.
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.OUIInventoryUtil setOUILoc
    CONFIG: Setting oracle.installer.oui_loc to /usr/local/oracle/product/10.2.0/db_1/oui
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.OUIInventoryUtil setOUILoc
    CONFIG: Setting oracle.installer.oui_loc to /usr/local/oracle/product/10.2.0/db_1/oui
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Homes to scan for used ports: [usr/local/oracle/product/10.2.0/db_1]
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Searching all DBConsole instances for used ports under ORACLE_HOME /usr/local/oracle/product/10.2.0/db_1
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking JMS port: null from /usr/local/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking RMI port: null from /usr/local/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking HTTP port: null from /usr/local/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.PortManager getAgentPort
    CONFIG: Cannot parse EMD_URL correctly. No port identified
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking Agent port: null from /usr/local/oracle/product/10.2.0/db_1/sysman/config/emd.properties
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Cannnot parse EMD_URL correctly. No port identified
    Jun 27, 2007 4:51:24 PM oracle.sysman.emcp.util.FileUtil getProperties
    CONFIG: Error reading file /usr/local/oracle/product/10.2.0/db_1/install/staticports.ini
    Jun 27, 2007 4:51:25 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Failed to allocate port(s) in the specified range(s) for the following process(es): JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]
    Refer to the log file at /usr/local/oracle/product/10.2.0/db_1/cfgtoollogs/emca/oracledb/emca_2007-06-27_04-51-05-PM.log for more details.
    Jun 27, 2007 4:51:25 PM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Failed to allocate port(s) in the specified range(s) for the following process(es): JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]
    at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2266)
    at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:670)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:233)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:160)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:141)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)

  • Date substitutions in a database control

    Running the method shown below on a database control I have created results in the error shown...
    * @jc:sql statement::
    * SELECT AVAILABILITY FROM CORMORANTPOC_SAILINGS,
    * CORMORANTPOC_ROUTES
    * WHERE
    * CORMORANTPOC_ROUTES.ID = CORMORANTPOC_SAILINGS.ROUTE_ID
    * AND SAILING_DATE = {sailingDate}
    * AND DEPARTURE_PORT = {departurePort}
    * AND ARRIVAL_PORT = {arrivalPort}
    public Availability getAvailabilityForSailing(String departurePort, String arrivalPort, Date sailingDate) throws SQLException;
    The error returned (when valid strings and date are provided) is "ORA-00933: SQL command not properly ended".
    I am using Oracle thin drivers with an Oracle 9i database. The Date datatype above is the java.sql.Date one. If I remove the "AND SAILING_DATE = {sailingDate}" line from the query then it runs fine, without the exception.
    I have also tried substituting the {sailingDate} part of the query with to_date('2005-03-05','YYYY-MM-DD') but I get the same error.
    Please help!
    Cheers,
    Mike.

    Hi Gautam
    I don't think Database control has any attribute on Role.
    The database control takes the connection from the datasource that is specified in the jcx. I am not sure if there is any attribute at the connection pool level that will allow you to set a role.
    Or you can call a method in the dbcontrol that executes a set role.. statement and then run other methods.
    Thanks
    Vimala

  • Database Control always gets "The database status is currently unavailable"

    I have two 10.1.0 databases installed on a Windows XP machine. Instance orcl always gets this message. Instance orcltwo does not. If I shut down orcl and then start the web database control page I can select the startup button and it starts up the database and then goes back to the pages that says that the database is not available. The console for that database is running with no errors that I can find. The DBSNMP account is not locked. The SYSMAN account is not locked. There are no errors in any log file that I can find. What am I doing wrong here. The orcltwo instance has no problems at all.

    Just to share this experience with everyone. This happened with Grid Control (not sure if it applies to Database Control).
    All the targets in EM (except the Agent) showed Down or Unavailable for two weeks. This is how I checked it.
    Note that if the Agent is not able to upload Metrics to the repository due to one reason or the other, you will not be able to see the current status.
    Assuming your ORACLE_HOME is different from your AGENT_HOME. Check the emagent trace file in the Agent home.
    e.g with AGENT home as D:\oracle\agent\
    check D:\oracle\agent\sysman\log\emagent.trc to see the latest error message.
    Then check the upload directory to see if there are xml files waiting to be uploaded
    e.g D:\oracle\agent\sysman\emd\upload
    This directory should be clear of .xml file if your metrics loading is working.
    From the Agents Monitoring screen in Enterprice Manager (Management System -> Agent), under the Upload session where there is Upload Metric Data button, check for "Last Successful Upload" and "Data Pending Upload " and any error messages. If the Metric upload is not working, the Data Pending uplaod will be more than 0.00MB and the error message link will show you the xml file it is unable to load. Which you will find in my example D:\oracle\agent\sysman\emd\upload
    I my example upload file B0002332.xml is the one I found on the error url and when I viewed it in the directory, the structure is different from others. This inability to load it caused all other upload files to be queuing. There was a line in it as
         <METRIC_GUID><![CDATA[€=3F6739EE03C21CE7CA5E32FD9185]]></METRIC_GUID>
    Looking at the structure of other files, I took a guess (not the best , this is a test EM) and changed it to
         <METRIC_GUID>80C23F6739EE03C21CE7CA5E32FD9185</METRIC_GUID>
    Then all the two weeks 32MB of xml files loaded automatically within seconds. Logoff EM and Login, everything showed the correct status.
    Hope this helps.

  • Database Control

    Internet Explorer is telling me it cannot connect to my Database Web Page. I imported two Oracle 9i databases from a Solaris server to a Oracle 10g new Windows 2003 server. I am building another Oracle database on this same server. I can access all three instances with plsql. Until recently, I could access the web pages of all three instances with Start->OraDB10g_home1->Database Control SID. I can still log onto two of the three SID web pages, but the third was giving me some security violation and now it just cannot access the page. I made all three web pages TRUSTED SITES. I am just getting my feet wet with Oracle 10g. Can someone please give me some insight into how I can restore access to my ServiceName:em#### web page? Thank you for your help in advance.

    In a command prompt window, I entered
    set ORACLE_SID=MYSIDNAME<enter> #MYSIDNAME=ACTUAL DB NAME
    emctl status dbconsole
    The output told me: Oracle Enterprise Manager is not running.
    I tried another option of the same command. I again set the oracle_sid and then
    emctl start dbconsole
    The output told me: The requested service has already been started.
    I tried Start->All Programs->Oracle OraDB10g_home1->Database Controle SIDname
    Again Internet Explorer could not connect to the window to manage my database.
    I tried stopping and then restarting the service OracleDBConsoleSIDname by right clicking on MyComputer, selecting Manage, selecting Services, and then right clicking on the service to select stop and then later to start.
    The service took a long time to stop. Then it took forever to start. The status says Starting for a long while (between a minute or two).
    I looked at some log files to see what was going on.
    In the emoms.log, I saw such error messages as:
    2008-08-12 19:40:23,316 [HttpRequestHandler-160937764] WARN jdbc.ConnectionCache _getConnection:306 - IO exception: the Network Adapter could not establish the connection.
    ERROR eml.OMSHandshake get ParameterFromDB.563 - Io exception: The Network Adapter could not establish the connection
    I found a more recently dated error message from the time I was trying to restart the DBConsole service for the database in the file Oracle DBConsoleSIDNamesrvc.log
    The following line was repeated many, many times as if a process was being retried inside a loop:
    08/20/08 09:57:15 Received exitCode 1 from emctl istatus
    08/20/08 09:57:23 Received exitCode 1 from emctl istatus
    08/20/08 09:58:15 Received exitCode 1 from emctl istatus
    and then finally
    08/20/08 09:58:23 Received exitCode 3 from emctl istatus
    08/20/08 09:58:30 dbconsole started
    DOES ANYONE HAVE ANY IDEAS WHAT I CAN DO TO MAKE THIS SERVICE START PROPERLY SO THAT IT HANDSHAKES WELL WITH MY DATABASE WINDOW?

Maybe you are looking for