Configuring EM Database Control when database is running on different IP

OS Solaris
DB Oracle 10.2.0.2
The have the following situation:
We have a veritas active/passive cluster. This is not RAC. Server name is abc. But the database is running on VIP xyz. How do I configure database control to run on vip xyz. whenever I run emca -config dbconsole db, it always sees the server name as abc.
I also tried emca -config dbconsole db -HOST xyz but finally it always shows the hostname as abc.
I was able to get EM to see the targets (database, listener) properly on the vip xyz by manually editing the targets.xml file. So now the situation is, on the home page it shows that the datbaase is up and the listener is up, but it complains that it cannot connect to the database.
I really appreciate any help in this.
-Nags

DBConsole installs requiring different hostnames (virtual) than the physical hostname, simply set ORACLE_HOSTNAME variable to the new virtual hostname and run emca.
in detail please read this note , it might help you
Configure DB Control 10.2 for use in Active/Passive High Availability Environments
Overview and Requirements:
In order for the DB Control to service a database instance after failing over to a different host in the cluster, the following conditions must be met:
1. Install on a shared disk/volume which holds the binaries, the configuration and the runtime data (including the database). Installations on non-shared devices are not supported.
2. Configuration data and metadata must also failover to the surviving node
3. Inventory location must failover to the surviving node
4. Software owner and timezone parameters must be the same on all cluster member nodes that will host this database
Installation and Configuration:
• In order to override the physical hostname of the cluster member with a virtual hostname, you must use the parameter ORACLE_HOSTNAME to configure DBConsole
• For inventory pointer, software must be installed using the commandline parameter ‘-invPtrLoc’ to point to the shared inventory location file, which includes the path to the shared inventory location.
• The database software, the configuration of the database and DB Control is done on a shared volume.
Note: The use of OCFS V1 to install shared Oracle binaries is currently not supported.
If you are using an NFS mounted volume for the installation, please ensure that you specify rsize and wsize in your mount command to prevent running into I/O issues.
See Metalink Note <279393.1>
Example:
lxdb.acme.com:/u01/app/share1 /u01/app/share1 nfs rw,bg,rsize=32768,wsize=32768,hard,nointr,tcp,noac,vers=3,timeo=600 0 0
A. Setup the alias for the virtual hostname/virtual IP address
You can do this by either allowing the clusterware to set it up, or manually before installation and startup of Oracle services. This virtual hostname must be static and resolveable consistently on the network: All nodes participating in the setup must resolve the virtual IP address to the same hostname. Standard TCP tools like nslookup and traceroute can be used to verify.
B. Setup shared storage
This can be storage managed by the clusterware that is in use or, you can use any shared file system (FS) volume as long as it is not an unsupported type, such as OCFS V1. The most common shared FS is NFS.
C. Setup the environment:
Some OS versions require specific OS patches to be applied prior to installing 10gR2. The user installing and using the 10gR2 software must also have sufficient kernel resources available. Refer to the installation guide for more details.
Before you launch the installer, certain environment variables need to be verified. Each of these variables must be set identical for the account installing the software on ALL machines participating in the cluster:
• OS variable TZ
Timezone setting. Recommended to unset this prior to the installation
• PERL variables
Variables like PERL5LIB should be unset to prevent the install (OUI) and DB Control to pick up the wrong set of PERL libraries
• Paths used for dynamic libraries
Based on the OS, the variables can be LD_LIBRARY_PATH, LIBPATH, SHLIB_PATH or DYLD_LIBRARY_PATH. These variables should ONLY point to directories, which will be visible and usable on each node of the cluster.
D. Ensure that oracle user name, ID and group name and ID are in sync on all cluster members
The user and group of the software owner should be defined identically on all nodes of the cluster. This can be verified using the ‘id’ command:
$ id -a
uid=1234(oracle) gid=5678(dba) groups=5678(dba)
E. Ensure that inventory files are on the shared storage
1. Create your new ORACLE_HOME directory.
2. Create the Oracle Inventory directory under the new oracle home
cd <shared oracle home>
mkdir oraInventory
3. Create the oraInst.loc file. This file contains the Inventory directory path information needed by the Universal Installer.
a. vi oraInst.loc
b. Enter the path information to the Oracle Inventory directory, and specify the group of the software owner as the dba user:
Example:
inventory_loc=/app/oracle/product/10.2/oraInventory
inst_group=dba
F. Start the installer:
You need to point to the inventory location file oraInst.loc (under the ORACLE_BASE in this case), as well as specifying the hostname of the virtual group. Debug parameter is optional.
runInstaller -invPtrLoc /app/oracle/share1/oraInst.loc ORACLE_HOSTNAME=lxdb.acme.com –debug
G. Update the SPFILE and tnsnames.ora file
Add an listener entry to the spfile file that points to an entry in the tnsnames file calling the virtual IP directly. As an example, set a tnsnames.ora entry that points to the virtual host name:
LISTENER_DBC =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = lxdb.acme.com)(PORT = 1521))
Then update the spfile parameter local_listener to point to the new tnsnames.ora entry:
SQL> alter system set local_listener='LISTENER_DBC';
SQL> show parameter local
NAME TYPE VALUE
local_listener string LISTENER_DBC
H. Startup of services:
Ensure that you start your services in the proper order:
- establish IP address on the active node
- start the TNS listener
- start the database
- start dbconsole
- test functionality
In case of failure…
- Establish IP on failover box
- start TNS listener lsnrctl start
- start the database dbstart
- start dbconsole emctl start dbconsole
- test functionality
If you want to manually stop or shutdown a service:
Stop the application
Stop DB Control emctl stop dbconsole
Stop TNS listener lsnrctl stop
Stop DB dbshut
Stop IP

Similar Messages

  • 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)

  • Do i need to reconfigure OEM Database Control when change ip address?

    Hi all.
    Do i need to reconfigure OEM Database Control after a change of ip address?
    I mean, i have an OEL5 box with 10g Rel2. I have configure the server with a static ip address.
    This server will be sent to another location and it's possible the ip address will be changed. It will remain a static ip, but may change. Since i plan to deliver this server with rman jobs within OEM Database Control. I'd like to know if this will continue working after an eventual ip address change ....
    Regards....!

    myluism wrote:
    Hi all.
    Do i need to reconfigure OEM Database Control after a change of ip address?
    I mean, i have an OEL5 box with 10g Rel2. I have configure the server with a static ip address.
    This server will be sent to another location and it's possible the ip address will be changed. It will remain a static ip, but may change. Since i plan to deliver this server with rman jobs within OEM Database Control. I'd like to know if this will continue working after an eventual ip address change ....
    Regards....!It depends.
    When you created the dbcontrol, the configuration was put in a directory in ORACLE_HOME named something like 'hostname_sid' and there are also files under that where the hostname is baked into either the file name or a property of a configration defined within a file. If it is truly hostname, you might be ok, but if it is actually IP address instead of host name (I have seen that) then you obviously have a problem.
    Over the years (and across several versions) I've found the OEM repository to be rather "brittle", and Oracle to have a rather cavalier attitude about rebuilding it. As a result, I specifically DO NOT have anything important - and very specifically my backup jobs - in the repository. I still schedule my backups through rman, though I know many people use dbms_scheduler. But even that appears to not be the same as an oem controlled schedule.

  • Error in installing Database Control with Database Creation Assistant

    I'm trying to install the Database Control on Win2003 with the Database Creation Assistant. I get the following error. D:\oracle\product\10.2.0\admin\ECOMDB\pfile\init.ora (The system cannot find the path specified).
    Our init.ora file is not in that path and our file is named initECOMDB.ora. How do I tell DBCA the correct path and file name to use?
    By the way I'm a unix guy and this is the first time I've done Oracle on Windows. The database had been created by someone else and the files are sort of slung all over the place.
    Replies appreciated.
    Kirk

    Open initECOMDB.ora, it may be calling D:\oracle\product\10.2.0\admin\ECOMDB\pfile\init.ora which does not exist. Change it to the correct directory or remove it if all the required parameters are already in initECOMDB.ora. The line to look for is ifile
    BTW - if your database has already been created, you can create its database control from the command line:
    emca -config dbcontrol db -repos create

  • How to configure SCSM exchange connector when exchange server is in different domain.

    We installed/configured SCSM in ABC domain and now need to use exchange connector for incident alert mail.
    But exchange server is in different domain, say XYZ.
    How do we configure?
    Thanks,
    Abhilash

    Cannot configure trust at AD level. But in the config article, following points are given.. but not clear on first 2 steps. Also, we did not find option to "navigate to certificate template and right click certificate templates".
    sorry, i dont have much exp with certificates. If steps are described little more clear, would be helpful.
    a.     If your Service Manager management server does not have a trusted relationship with the Exchange Server, open Certificate Services and create a duplicate copy of the Web Server Certificate Template. Ensure that Private Key Export and Publish
    in AD are selected, and then add Read and Enroll permission to Authenticated Users.
    b.     In Certificate Services, navigate to Certificate Template and right-click Certificate Templates. Click New and then click Certificate Template to Issue. Select the template that you created in the previous step.
    c.     In Exchange Server, open the Microsoft Management Console and add the Certificates snap-in for the local computer. Right-click the Personal logical store, and then hover over All Tasks.
    d.     Select Request for New certificate and in the Certificate Enrollment wizard, select Active Directory Enrollment Policy and select the template that you created previously. When you select the certificate, you can click More Information to type
    the Exchange Server’s FQDN name as the common name in the Subject tab. You can also type the FQDN name as the Friendly Name in the General tab.
    Thanks,
    Abhilash

  • AttachCurrentThread fails when several VMs running in different threads

    Hi,
    I would like to build an application that runs several JVMs in parallel. I'm using Java6 and according to the JNI specs this should be possible as long as each VM instance is running in a separate thread.
    In the below mentioned demo application two threads are created. Both instantiate a VM (which works well). But only one thread seems to be able to run AttachCurrentThread. When AttachCurrentThread is called for the second one I get the following error:
    # An unexpected error has been detected by Java Runtime Environment:
    #  SIGSEGV (0xb) at pc=0x080486ae, pid=1428, tid=3035118512
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
    # Problematic frame:
    # C  [jvmthreads+0x6ae]But because one thread successfully instantiates a java class I think that the basic code structure is OK. It seems to be a threading issue. My application looks as follows:
    #include <stdlib.h>
    #include <jni.h>
    #include <pthread.h>
    #define USER_CLASSPATH "myclasses.jar"
    #define CLASS_NAME "com.foobar/DummyRtbosFiller"
    JavaVM* JavaThreads_createJVM(){
         JNIEnv *env;
        JavaVM *vm;
        jint res;
        setenv("JAVA_VM_VERSION", "1.5", 1);
    //    setenv("JAVA_VM_VERSION", "1.5", 0);
        JavaVMInitArgs vm_args;
        JavaVMOption options[7];
        options[0].optionString = malloc(3000*sizeof(char));
        sprintf(options[0].optionString, "-Djava.class.path="USER_CLASSPATH);
        options[1].optionString = "-Xmx64m";
         int enableRemDebugging = 0;
         if(enableRemDebugging){
             printf("enable remote debugging");
              // intellij remote debugging support
              options[2].optionString = "-Xdebug";
              options[3].optionString = "-Xnoagent";
              options[4].optionString = "-Djava.compiler=NONE";
              options[5].optionString = "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=34343";
              vm_args.nOptions = 6;
         }else{
              vm_args.nOptions = 2;
         vm_args.options = options;
        vm_args.version = JNI_VERSION_1_4;
        vm_args.ignoreUnrecognized = JNI_TRUE;
        /* Create the Java VM */
        res = JNI_CreateJavaVM(&vm, (void**)&env, &vm_args);
        printf("java started.\n");
         return vm;
    * \brief Shuts down an existing java virtual machine.
    * \param jvm Pointer to the jvm to be destroyed.
    * This method is used to shut down an existing java virtual machine.
    int JavaThreads_destroyJVM(JavaVM *jvm){
    //     JNIEnv *env = getAttachedEnv(self, jvm);
    //     if ((*env)->ExceptionOccurred(env)) {
    //        (*env)->ExceptionDescribe(env);
          // detach the current thread from the vm
        (*jvm)->DetachCurrentThread(jvm);
        (*jvm)->DestroyJavaVM(jvm);
         return 0;
    * \brief Attaches the current thread to a given vm instance
    * \param self Pointer to bbcm-instance
    * \param jvm Pointer to the jvm use for attachment
    * This method is used to attach the current thread to a given vm instance
    JNIEnv* getAttachedEnv(JavaVM *jvm){
         JNIEnv *localEnv = NULL;
         int envErr = 0;
         /* get a local java env */
         envErr = (*jvm)->AttachCurrentThread( jvm, (void**)&localEnv, NULL );
         if ( envErr != 0 ){
              if ( (*localEnv)->ExceptionCheck( localEnv ) == JNI_TRUE ){
                (*localEnv)->ExceptionDescribe( localEnv );
         if((*localEnv)->ExceptionOccurred(localEnv)){
             (*localEnv)->ExceptionDescribe(localEnv);
         if (localEnv == NULL) {
            printf("ERROR: failed to get ENV pointer in pushContext");
              //  JavaThreads_destroyJVM(jvm);
            return (JNIEnv*) NULL;
         return localEnv;
    * \brief Create a new instance of the transcriber application
    * \return Pointer to the java object
    * This method is used to create a new instance transcriber application
    jobject startJavaSubSystem(JavaVM *jvm, char* argString){
        printf("attaching env pointer.\n");
         JNIEnv *env = getAttachedEnv(jvm);
        printf("thread attachment done.\n");
         jclass cls;
         jmethodID mid;
         jobject transcriber;
         cls = (*env)->FindClass(env, CLASS_NAME);
        if (cls == NULL) {
            JavaThreads_destroyJVM(jvm);
         jstring jArgumentString = (*env)->NewStringUTF(env, argString);
        mid = (*env)->GetMethodID(env, cls, "<init>", "(ILjava/lang/String;)V");
         if (mid == NULL) {
            JavaThreads_destroyJVM(jvm);
        printf("starting object instantiation\n");
        (*env)->NewObject(env, cls, mid, 1, jArgumentString);
         return transcriber;
    void startJavaThread(char* arg){
         JavaVM *jvm;
        printf("create a jvm instance for component '%s'\n", arg);
         jvm = JavaThreads_createJVM();
        printf("attempting to start component '%s'\n", arg);
        startJavaSubSystem(jvm, arg);
        printf("component '%s' started !\n", arg);
        // sleep forever to keep the thread alive
        sleep(10000);
    int main(int argc, char **argv) {
          pthread_t thread1, thread2;
          /* Create independent threads each of which will instantiate a java VM. */
         int iret1 = pthread_create( &thread1, NULL, startJavaThread,  (void*) "test47");
         sleep(1);
         int iret2 = pthread_create( &thread2, NULL, startJavaThread, (void*) "test48");
         pthread_join( thread1, NULL);
         pthread_join( thread2, NULL);
         printf("Thread 1 returns: %d\n",iret1);
         printf("Thread 2 returns: %d\n",iret2);
         return 0;
    }What could be my mistake?
    Any help (links, docs, ideas) is welcome.
    Best regards, Holger

    You're right. I got confused by the specs of JNI_GetCreatedJVMs:
    JNI_GetCreatedJavaVMs function returns all virtual machine instances
    that have been created in the current process.But unfortunately you're completely right (cf. http://java.sun.com/javase/6/docs/technotes/guides/jni/spec/invocation.html#wp9502 )
    As of JDK/JRE 1.2, creation of multiple VMs in a single process is not supported.Nothing seems to have changed since then. :-(
    thanks for the help, bg, holger

  • Oracle Enterprise Manager Database Control

    Please help me.
    Here's oracle installing step:
    1. Install Oracle 11g software with "Advance" option. I just install software without creating a Data base at this time.
    2. Create a Data base with DBCA
    I couldn't see the Oracle Enterprise Manager Database Control at "Services " window while
    "Chapter 3: Getting Started with Oracle Enterprise Manager" says that:
    This chapter introduces you to Oracle Enterprise Manager Database Control. The Oracle Universal Installer installs Oracle Enterprise Manager Database Control when you install the Oracle software. Enterprise Manager Database Control provides a Web-based interface that you can use to manage your Oracle instance and database.
    Thank in advance!

    Hi,
    You didn’t create a Database that’s why you don’t have Oracle Enterprise Manager Database Control.
    Create Database with DBCA and you will get an option “Configure database with Enterprise manager” (step 5).
    At the end of DB creation you will get a link for Oracle Enterprise Manager Database Control.
    Browse the link to open EM Database control.
    If you choose to create DB with Oracle installation then you will get Oracle Enterprise Manager Database Control.
    Regards,
    Satishbabu Gunukula
    http://oracleracexpert.blogspot.com

  • Remote access database using EM Database Control Console

    When I install the Oracle database 10g, it gives me two choices:
    1)Using Grid Control for Database Management and
    2)Using Database Control for Database Management.
    When I select the #2, according to the Guide, I'll be able to manage my database locally. (Assume the database server's IP address is: DB_IP_Address, then I can use: http://DB_IP_Address:5560/em). But wait a minute___
    a)What does this "locally" mean? If the Oracle DB is installed in a remote location, and there is no LAN connection to it, can I still access it via the Oracle Enterprise Manager (Database Control Console)? (i.e., via the HTTP protocol)
    b)The same question is asked for the iSQL*Plus in regarding to the remote access. I guess the answer to a) above will automatically answer the b) ? (Actually I doubt that I can access remote database using the iSQL*Plus via HTTP protocol).
    Thanks
    Scott

    Hi,
    and there is no LAN connection to itWell you'll need some network link in order to connect successfully.
    What is meant by locally is that you can only manage databases installed on the local computer.
    For example if you installed it on machine "CPTR1", and on another machine "CPTR2", then you can't use http://cptr1:5560/em to manage the databases on "CPTR2. And vice versa.
    About iSQL*Plus, in fact, as far as the tns alias is ok from "CPTR1", you can connect to the databases on "CPTR2", "CPTR3", ....
    HTH,
    Yoann.

  • Missing plugin database control

    hi,
    I am using oracle 11g on OEL 5.8. Facing problem in database control, when i click to performance tab it shows me missing plugin. I have install jre 6 but no luck.
    Also when i type java - version  it shows me old version 1.4. JAVA_HOME parameter is set to jre6 path in bash_profile.
    Thanks.

    Hello,
    These are temporary lock files created during the import process.
    Check another discussion thread -
    Transport Issue
    Thanks

  • Db Export when database is in read only mode

    Hi All,
    I have to perform a full database export when database is in read only mode. My db version is 9i.
    Kindly let me know whether that export file is valid enough to do full import in new database and make database oprational.
    Thanks.

    rajaryan wrote:
    Hi All,
    I have to perform a full database export when database is in read only mode. My db version is 9i.
    Kindly let me know whether that export file is valid enough to do full import in new database and make database oprational.
    Thanks.Check the log file, if you haven't got any error, then it's valid
    BTW - Why you've taken full export of the database? Why not using RMAN?
    See the following video tutorial:
    http://kamranagayev.wordpress.com/2010/03/29/rman-video-tutorial-series-performing-disaster-recovery-with-rman/

  • Configure Database Control web page in MSCS Failover Cluster

    I have a two-node windows 2000 cluster that is managed with Microsoft Cluster Services and Oracle FailSafe Manager. The cluster works fine, so does connecting to the database with SQL; however, I have been unable to use the database control EM web page to access the database. The page appears with the Database/Instance/Listener titles but no data/information appears.
    There is a virtual host name and IP address for the cluster which I can use successfully when accessing thru SQL. I've tried the system name and the virtual cluster name in the http://<SYSTEMNAME>:1521/em web address. I've tried both without the "em".
    The emctl agent is running. The dbconsole service is running correctly.
    Which name should I use in the web address - host system name or virtual (cluster) host name? What configuration parameters am I missing?
    Any help would be greatly appreciated.
    Thanks in advance!

    Problem could be same but reason could be diffrent
    please paste the emos.trc and tell the oms version , platform.

  • How to configure Enterprise Manager Database Control (EMDC) to make it work on 2 servers working (primary and standby) under DG rules

    Hello everybody i use Oracle Database EE 11.2.0.4 with DG.
    In those cases i need to get Enterprise Manager Database Control running against DB with no RAC and no DG i perform the following steps:
    I Logon SQLPLUS as user SYS or SYSTEM, and drop the sysman account and management objects:
    DECLARE
    CURSOR c1 IS
    SELECT owner, synonym_name name
    FROM dba_synonyms
    WHERE table_owner = 'SYSMAN';
    BEGIN
    FOR r1 IN c1 LOOP
    IF r1.owner = 'PUBLIC' THEN
    EXECUTE IMMEDIATE 'DROP PUBLIC SYNONYM '||r1.name;
    ELSE
    EXECUTE IMMEDIATE 'DROP SYNONYM '||r1.owner||'.'||r1.name;
    END IF;
    END LOOP;
    END;
    DROP USER mgmt_view CASCADE;
    DROP ROLE mgmt_user;
    DROP USER sysman CASCADE;
    After that i run
    emca -config dbcontrol db -repos recreate
    But what should i do in cases i have 2 servers working (primary and standby) under DG rules?

    Hi ,
    It is not possible to monitor/administer a Logical or Physical Standby database, i.e Data Guard, using Enterprise Manager Database Control.  This is primarily due to the fact that Database Control is designed to monitor 1 database and a Data Guard environment, by definition, includes more than 1 database.
    If you attempt to run emca against a standby Database, you will get an error like (i.e. ORA-01219: database not open).
    Database Control, can, of course, be used to monitor the current Primary database (with no ability to administer or monitor Data Guard related functionality).  In such a case, when failover occurs Database Control must be reconfigured to run on the new Primary database using the commands detailed in Note 278100.1 How To Drop, Create And Recreate DB Control In A 10g Database, section C. Recreate/ReConfig DB Control, Option 2. Recreate the DB Control Configuration Files and Repository.
    Enterprise Manager Grid Control or Cloud Control provides the functionality for viewing, monitoring, and administering primary and standby databases in a Data Guard configuration.
    Reference: Is it Possible to Configure Database Control for a Logical or Physical Standby Database? (Doc ID 315116.1)
    You can use EM 12c cloud control to monitor and manager Standby DB effectively
    Ref to below link for details
    Set Up and Manage Oracle Data Guard using Oracle Enterprise Manager Cloud Control 12c
    Regards,
    Rahul

  • The service name is invalid When starting the Database Control

    Dear Oracle Expert,
    I have installed Oracle database 11g on Windows Professional x64 Edition Version 2003 Service Pack 2..
    When I try to start the Database control after renaming the IP_address to the local machine name which is robert. It prompts back with an error.
    C:\>emctl status dbconsole
    Environment variable ORACLE_SID not defined. Please define it.
    C:\>set ORACLE_SID=ocp11g
    C:\>emctl status dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    https://192.168.1.67:1158/em/console/aboutApplication
    Oracle Enterprise Manager 11g is not running.
    C:\>emctl start dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    https://192.168.1.67:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 11g Database Control ...The service name is i
    nvalid.
    More help is available by typing NET HELPMSG 2185.
    C:\>hostname
    robert
    C:\>emctl status dbconsole
    OC4J Configuration issue. C:\app\Administrator\product\11.1.0\db_1/oc4j/j2ee/OC4
    J_DBConsole_192.168.1.67_ocp11g not found.
    C:\>set ORACLE_SID=ocp11g
    C:\>emctl status dbconsole
    OC4J Configuration issue. C:\app\Administrator\product\11.1.0\db_1/oc4j/j2ee/OC4
    J_DBConsole_192.168.1.67_ocp11g not found.
    C:\>emctl start dbconsole
    OC4J Configuration issue. C:\app\Administrator\product\11.1.0\db_1/oc4j/j2ee/OC4
    J_DBConsole_192.168.1.67_ocp11g not found.
    C:\>SET ORACLE_HOME= C:\app\Administrator\product\11.1.0\db_1\oc4j\j2ee\OC4J_DBC
    onsole_robert_ocp11g
    C:\>set ORACLE_SID=ocp11g
    C:\>emctl status dbconsole
    OC4J Configuration issue. C:\app\Administrator\product\11.1.0\db_1/oc4j/j2ee/OC4
    J_DBConsole_192.168.1.67_ocp11g not found.
    C:\>emctl start dbconsole
    OC4J Configuration issue. C:\app\Administrator\product\11.1.0\db_1/oc4j/j2ee/OC4
    J_DBConsole_192.168.1.67_ocp11g not found.
    C:\>
    Thanks in advance.
    Rlee

    Hello Oracle experts,
    I have to managed to Configure the Database Control by configuring a Microsoft Network adapter on my laptop but
    right now I can't access it within the URL.
    Tests of the running Database control include:
    C:\Documents and Settings\Administrator>emctl status dbconsole
    Environment variable ORACLE_SID not defined. Please define it.
    C:\Documents and Settings\Administrator>SET ORACLE_SID=ocp11
    C:\Documents and Settings\Administrator>emctl status dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    http://robert:1158/em/console/aboutApplication
    Oracle Enterprise Manager 11g is running.
    Logs are generated in directory C:\app\Administrator\product\11.1.0\db_2/robert_
    ocp11/sysman/log
    C:\Documents and Settings\Administrator>
    When I try to access the database control, I am un able to.
    The page cannot be found
    The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
    Please try the following:
    If you typed the page address in the Address bar, make sure that it is spelled correctly.
    Open the robert:1158 home page, and then look for links to the information you want.
    Click the Back button to try another link.
    Click Search to look for information on the Internet.
    HTTP 404 - File not found
    Internet Explorer
    Is this something related to Internet Explorer.
    Kindly rescue me out.
    Regards,
    RLee

  • Is OEM database control configured for the DBs?

    Hi
    I have multiple oracle (10gR2) databases running on a linux (5.8) server. How can I check that for which of the databases has the OEM Database Control been configured and on what port is it listening?
    Best regards

    Thank you everyone!
    Here is what I see (I have changed the DB names):
    ==============
    [oracle@vm58-1 install]$ emctl status dbconsole
    TZ set to US/Eastern
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
    https://vm58-1.com:1158/em/console/aboutApplication
    EM Daemon is not running.
    Logs are generated in directory
    /u01/app/oracle/product/10.2.0/db_1/vm58-1.com_db1/sysman/log
    [oracle@vm58-1 install]$ export ORACLE_SID=db2
    [oracle@vm58-1 install]$ emctl status dbconsole
    TZ set to US/Eastern
    OC4J Configuration issue.
    /u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_vm58-1.com_db2
    not found.
    [oracle@vm58-1 install]$
    ==============
    So it seems that DB Console was configured for db1. When I try to start it, I get following output
    ========
    [oracle@vm58-1 install]$ export ORACLE_SID=db1
    [oracle@vm58-1 install]$ emctl start dbconsole
    TZ set to US/Eastern
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
    https://vm58-1.com:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control
    ========
    And these "dots" just continue to appear and it is running for 15+ minutes now.
    Please advise how to check what is happening.
    Grid Control suggestion - I agree. I believe Grid Control is not free and the client does not seem to be interested to spend more money :-)
    Best regards

  • Run Singlular Database Control and Grid Control Agents at the same time????

    Hello,
    I have walked into a new job where one of my 1st tasks is installing and configuring EM Grid Control version 10.2.0.3. Most of the individual databases already have singular EM/Database Control also set up for basic monitoring - some are 10.2.0.1 databases; some are 9.2.0.7 databases.
    Can I continue to run the existing singular EM Database Controls for monitoring and managing the databases while I am getting connected, the new agents up and running, and the Grid Control templates and alerts and notification fully set up?
    Or will I have to shut down those agents fully prior to installing the new 10.2.0.3 agents???
    I am hoping so since they use different communication ports of 1158 for the singular Database Controls versus 4889 for Enterprise Wide Grid Control.
    Thanks for any help in clarifying this.
    KL

    OK, so as long as I keep the homes separate & straight, I could conceivably allow them both (Database Control and Grid Control Agent) to run AND be used at the same time - even when using secured grid control (https), correct? Just have the separate homes for separate agents and use separate ports for the different consoles?
    Of course I might still run into an issue with this, ass I am also in the process of securing Grid Control... The current Database Console used by the app users to monitor is NOT an https url...
    The real reason for this is because some app users are used to using the EM Database Control for application monitoring. I would like to not take that away from them while I am in the process of setting up all of the users, roles, alerts, groups, etc. on Grid Control.

Maybe you are looking for