Creating a Connection to Oracle9i Application Server

To create a connection to an Oracle9i Application Server instance:

  1. Install the DCM Servlet, Oc4jDcmServlet.ear, to a running Oracle Enterprise Manager instance. This servlet is required to run in the same OC4J instance (same JVM) as the Enterprise Manager servlet. The DCM Servlet is located at <jdev_install>/dcm/lib/Oc4jDcmServlet.ear.
  2. Deploy the Oc4jDcmServlet.ear using the following two admin.jar commands. Enter the commands as follows, but substituting ${xxx} parameters with the actual values for your configuration. For example, substitute ${ORACLE_HOME} with the Oracle Home directory for your Oracle Application Server configuration.
    1. java -jar ${ORACLE_HOME}/j2ee/home/admin.jar ormi://${EM_OC4J_HOST}:${EM_OC4J_PORT} ${IAS_ADMIN_USER} ${IAS_ADMIN_PASS} -deploy -file Oc4jDcmServlet.ear -deploymentName Oc4jDcmServlet

      Example:

      java -jar ${ORACLE_HOME}/j2ee/home/admin.jar ormi://localhost:1811 ias_admin manager -deploy -file Oc4jDcmServlet.ear -deploymentName Oc4jDcmServlet

    2. java -jar ${ORACLE_HOME}/j2ee/home/admin.jar ormi://${EM_OC4J_HOST}:${EM_OC4J_PORT} ${IAS_ADMIN_USER} ${IAS_ADMIN_PASS} -bindWebApp Oc4jDcmServlet oc4j-dcm-servlet emd-web-site /Oc4jDcmServletAPI

      Example:

      java -jar ${ORACLE_HOME}/j2ee/home/admin.jar ormi://localhost:1811 ias_admin manager -bindWebApp Oc4jDcmServlet oc4j-dcm-servlet emd-web-site /Oc4jDcmServletAPI

      where the username and password for Enterprise Manager is ias_admin/manager.

  3. Modify the Enterprise Manager servlet configuration by editing the following files:

    1. In ${ORACLE_HOME}/sysman/j2ee/application-deployments/em/emd/orion-web.xml , comment out the following lines:
          <classpath path="/<ORACLE_HOME>/dcm/lib/dcm.jar"/> 
          <classpath path="/<ORACLE_HOME>/j2ee/home/jaznplugin.jar"/> 
      	            
    2. In ${ORACLE_HOME}/sysman/j2ee/config/em-app.xml, add the following lines:
       
          <!-- Added dcm.jar and jaznplugin.jar in order to let -->
          <!-- EM share the same DCM stack with the DCM servlet API -->
          <library path="/<ORACLE_HOME>/j2ee/home/jaznplugin.jar"/>
          <library path="/<ORACLE_HOME>/dcm/lib/dcm.jar"/>            

      where ${ORACLE_HOME} is the location of the Oracle9 iAS ORACLE_HOME.

  4. Create an application server connection to Oracle9iAS. Make sure to enter the Enterprise Manager OC4J Host Name which contains this DCM servlet when prompted in the JDeveloper Application Server Connection Wizard.
  5. Restart the Enterprise Manager: after deploying oc4j-dcm-servlet.ear to a running Enterprise Manager OC4J instance and editing the orion-web.xml and em-app.xml files (required for Oracle9iAS 9.0.2 only), you must restart Enterprise Manager by issuing these commands from ${ORACLE_HOME}/bin/:
         emctl stop
    	emctl start
    	        

    You will be prompted for the Enterprise Manager password.


Related topics

Connecting to an Application Server
Working with the OC4J Application Servers

Creating a Connection to Oracle Application Server

 

Copyright © 1997, 2004, Oracle. All rights reserved.