ORACLE_HOME 环境变量导致 Oracle 数据库和 Oracle OC4J 之间出现混淆
我遇到了一些 Oracle 问题...
我将 Oracle 11g Express Edition 安装到此处:
C:\oraclexe\app\oracle\product\11.2.0\server
.. 这样就有这样的文件夹如:
C:\oraclexe\app\oracle\product\11.2.0\server\bin C:\oraclexe\app\oracle\product\11.2.0\server\config
C:\oraclexe\app\oracle\product\11.2.0\server\database
C:\oraclexe\app\oracle\product\11.2.0\server\lib
等等...数据库工作正常..
我现在将 OC4J 安装到 C:\ oc4j_extended_101350
..这样就有文件夹,例如:
C:\oc4j_extend_101350\bin
C:\oc4j_extend_101350\j2ee
C:\oc4j_extend_101350\webservices
等等..
现在 OC4J 要求我定义环境变量 ORACLE_HOME
,其中应设置为 C:\oc4j_extended_101350
以便 OC4J 正常工作..但是,如果我这样做,Oracle数据库将停止工作...并且如果我删除ORACLE_HOME
环境变量,或将其设置为Oracle数据库的安装位置,OC4J将停止工作..
所以是有什么解决办法吗?那么 OC4J 和 Oracle 数据库都可以工作吗?
我的系统是 Windows 7 64 位,以防万一这很重要..
编辑:
另外,我需要两者同时协同工作,所以我不确定脚本解决方案是否有效..
I'm having some Oracle trouble ...
I installed Oracle 11g Express Edition to here:
C:\oraclexe\app\oracle\product\11.2.0\server
.. so that there are folders such as:
C:\oraclexe\app\oracle\product\11.2.0\server\bin
C:\oraclexe\app\oracle\product\11.2.0\server\config
C:\oraclexe\app\oracle\product\11.2.0\server\database
C:\oraclexe\app\oracle\product\11.2.0\server\lib
and so on ... and the database is working fine ..
I now install OC4J to C:\oc4j_extended_101350
.. so that there are folders such as:
C:\oc4j_extended_101350\bin
C:\oc4j_extended_101350\j2ee
C:\oc4j_extended_101350\webservices
and so on ..
Now OC4J requires me to define the environment variable ORACLE_HOME
, which should be set to C:\oc4j_extended_101350
in order for OC4J to work .. However, if I do this, the Oracle Database stops working ... and if I delete the ORACLE_HOME
environment variable, or set it to where Oracle Database is installed, OC4J stops working ..
So is there any solution for this ? So that both OC4J and Oracle Database work ?
My system is Windows 7 64-bit, in case this matters ..
EDIT:
Also, I need BOTH to work together simultaneously with each other, so I'm not sure if a script solution will work or not ..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
两种安装都需要设置 ORACLE_HOME,但设置为不同的值。我的专业知识是 UNIX,而不是 Windows,答案是让用户或程序在需要的地方正确设置该变量。它不适用于单一的普世价值,或者未设置的普世价值。
Ex(伪语法,不是真正的命令):
在Windows中,也许您可以在“服务级别”设置此变量,或者您可能需要使用老式方法并执行批处理文件。就像我说的,我不了解 Windows。
别担心,你可以的!!只需进行一些尝试即可。发布您的解决方案。
Both installs require the ORACLE_HOME to be set, but to different values. My expertise is UNIX, not Windows, and there the answer is to have the user or program set this variable correctly where it is needed. It won't work with a single universal value, or with it unset.
Ex (pseudo syntax, not real commands):
In windows, maybe you can set this variable at the "service level", or perhaps you will need to go oldschool and do a batch file. Like I said, I don't know Windows.
Don't worry, you can do it!! It'll just take some trys. Post your solution.