如果你用Oracle9iAS做服务器, 你最好用Oracle9iDS做开发。JDeveloper 是 Oracle9iDS 之一。 JDeveloper 和 9iAS 的关系是风与沙的关系(你是风儿我是沙)。
安装 JDeveloper 是世界上最容易的事(很像安装 Tomcat). 你只要在你的硬盘上开一文件夹,像 ( C:\jdev903 ), 然后把下载的 Jdev903.zip 解压至 C:\jdev903 之中就可。 然后双击
C:\jdev903\jdev\bin\jdevw.exe. 便起动了 JDeveloper.
下讲 风与沙 的联结:(以下是俺的笔记)
II. Configure Oracle9IAS to allow connection and deployment from JDeveloper.
1. Deploy Oc4jDcmServlet.ear (come with JDeveloper) on PC to Oracle9IAS (unix)
under DOS, go to: $JDEV\dcm\lib (here $JDEV is where you installed JDeveloper)
C:\jdev903\dcm\lib>java -jar /jdev903/j2ee/home/admin.jar
ormi://lexus.GrumpyNetworks.ca:1811
ias_admin lexus2003 -deploy
-file Oc4jDcmServlet.ear -deploymentName
C:\jdev903\dcm\lib>java -jar /jdev903/j2ee/home/admin.jar
ormi://lexus.GrumpyNetworks.ca:1811
ias_admin lexus2003
-bindWebApp Oc4jDcmServlet Oc4jDcmServlet
emd-web-site /Oc4jDcmServletAPI
C:\jdev903\dcm\lib>
2. Modify the EM servlet configuration on the Oracle9iAS server.
In ${ORACLE_HOME}/sysman/j2ee/application-deployments/em/emd/orion-web.xml,
comment out the following lines: (Please use view --> Source to see it)
In ${ORACLE_HOME}/sysman/j2ee/config/em-app.xml,
add the following lines:
where $ORACLE_HOME is the location of the Oracle9iAS Infrastructure
installed.
3. Re-start Enterprise Manager
(1). Make sure that DISPLAY is set, either DISPLAY=:0.0 on the server console or
DISPLAY=142.205.14.63:0.0 (my eXceed -- an X Server)
(2). emctl stop (will propmt you with admin password: lexus****)
(3). emctl start
4. From JDeveloper, create a connection ( connLEXUS ) to Oracle9iAS
connectionName: connLEXUS
connectionType: Oracle9iAS - Romote DCM
userName: ias_admin
passWord: lexus2003
EM OC4J server: lexus.GrumpyNetworks.ca
EM OC4J Port: 1810
9IAS Home: /usr4/app/oracle/9ias_rl2
(not the Infrasture Home)
5. Create deployment profile
6. Deploy the application, say loginServer
$ORACLE_HOME=/usr4/app/oracle/9ias_rl2
$ORACLE_HOME/j2ee/home/config/default-web-site.xml will
have an added entry:
name="loginServer"
root="/loginServer"/>