查看: 3950|回复: 7

Windows装多个ORACLE版本dbca无法建库

[复制链接]
论坛徽章:
151
2014年新春福章
日期:2014-04-17 11:38:13奥运会纪念徽章:皮划艇静水
日期:2012-07-31 15:42:58奥运会纪念徽章:田径
日期:2012-07-10 16:21:10奥运会纪念徽章:跆拳道
日期:2012-06-20 22:07:29奥运会纪念徽章:皮划艇静水
日期:2012-06-16 02:55:21奥运会纪念徽章:曲棍球
日期:2012-06-13 10:09:19蛋疼蛋
日期:2012-05-19 23:20:41迷宫蛋
日期:2012-05-16 17:35:25版主2段
日期:2012-05-15 15:24:11双黄蛋
日期:2012-03-19 19:34:04
跳转到指定楼层
1#
发表于 2005-5-24 14:06 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
不知道大伙有没碰过。新装了台机器,WINDOWS XP PROFESSIONAL。按顺序装了8I、9I、10G。装完后启动10G和8I的DBCA都成功建了库,最后启动9i的DBCA图形化界面一直无法启动,在命令行下运行出现如下的情况:

[php]
D:\\oracle\\ora92\\bin>dbca
Exception in thread "main" java.lang.UnsatisfiedLinkError: initializeCluster
        at oracle.ops.mgmt.nativesystem.WindowsSystem.initializeCluster(WindowsS
ystem.java:390)
        at oracle.ops.mgmt.cluster.GetActiveNodes.initializeCluster(GetActiveNod
es.java:260)
        at oracle.ops.mgmt.cluster.GetActiveNodes$ClusterWareThread.<init>(Compi
led Code)
        at oracle.ops.mgmt.cluster.GetActiveNodes.<init>(GetActiveNodes.java:139
)
        at oracle.ops.mgmt.cluster.GetActiveNodes.create(GetActiveNodes.java:158
)
        at
        at oracle.sysman.assistants.dbca.backend.Host.checkOPS(Host.java:1815)
        at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:469)
        at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:185)
        at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHo
st.java:54)
        at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:141)
        at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:85)
        at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:161)
[/php]

然后就停在这边不动了。哪位有碰过类似的情况?
招聘 : 运维开发工程师
论坛徽章:
1
会员2006贡献徽章
日期:2006-04-17 13:46:34
2#
发表于 2005-5-24 14:35 | 只看该作者
有可能,你可以建立不同的用户.因为windows下面的会写一部分信息在注册表中!

使用道具 举报

回复
论坛徽章:
114
授权会员
日期:2005-10-30 17:05:332013年新春福章
日期:2013-02-25 14:51:24奔驰
日期:2013-08-01 21:18:36宝马
日期:2013-12-04 21:52:282014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14
3#
发表于 2005-5-24 14:51 | 只看该作者
java classpath 的路径?

使用道具 举报

回复
论坛徽章:
31
授权会员
日期:2005-10-30 17:05:332012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:23马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:09:23
4#
发表于 2005-5-24 14:54 | 只看该作者
我的是9I 10G在一起没有问题

使用道具 举报

回复
论坛徽章:
114
授权会员
日期:2005-10-30 17:05:332013年新春福章
日期:2013-02-25 14:51:24奔驰
日期:2013-08-01 21:18:36宝马
日期:2013-12-04 21:52:282014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14
5#
发表于 2005-5-24 15:16 | 只看该作者
Hi,

Do you have multiple versions of Oracle (incl 10g) on the same box?

If so, running everything can be tricky.

Summary:
You can remove 10g paths if you need v9 utilities, or you can hack DDLs, or come up with another solution. Suggestions welcome. But, the hack techniques may simply convince you to take an approach similar to PD's post. :-)

Why? With 10g installed, the home selector technique to order the 'Path' no longer works for v9 dbca if the 'Path' includes both v9 and v10g (client or server) in any order.

<DETAILS IF CURIOUS>
I've found a problem running both 9201 (not patched for these tests) and 10g on the same box where the root cause appeared to be the 'Path' environment variable, and only in the case where the 'Path' includes both 9 and 10g stuff. (Note: PD's post to maintain separate accounts with runas can be used to segregate the 'Path' so these problems will not occur).

But, if you are stuck with a combined 9 and 10g path, here is what I've found.

The 'Path' ordering does not matter (big problem) if you are trying to run the v9 dbca, etc. In the example below, I've created a workaround to run v9 dbca when both v9 and v10g are installed and the 'Path' environment includes both.

The test, run:
G:\oracle\product\9.2.0\Db_9\bin\dbca (this is where I've installed 9201) This fails with "Exception in thread "main" java.lang.UnsatisfiedLinkError: initializeCluster...", because the 'Path' (any order) includes these:

G:\oracle\product\9.2.0\Db_9\bin;  (this is where I've installed 9201)
G:\oracle\product\10.1.0\Db_1\bin;
G:\oracle\product\10.1.0\Client_1\bin;


Since the order does not matter, the old trick (v8 and v9) of re-ordering the 'Path' with the home selector would also fail. Bummer.
Solution 1: The simple solution:
When you try to run v9 dbca (or other utilities), the 'Path' may not include: G:\oracle\product\10.1.0\Db_1\bin;
G:\oracle\product\10.1.0\Client_1\bin;
A quick fix to run v9 dbca is to /adjust/ your Path to include only: G:\oracle\product\9.2.0\Db_9\bin; (this is where I've installed 9201)

Solution 2: The *other* way. ;-)
You can run v9 dbca successfully, even if the 'Path' includes v9 and v10 if you *rename* the 10g "orasrvm.DLL" found in any 10g BIN directory. Rename it back after you are done, please.

If you have a 10g Server
G:\oracle\product\10.1.0\Db_1\BIN\orasrvm.DLL Then temporarily rename it to
G:\oracle\product\10.1.0\Db_1\BIN\_orasrvm.DLL (move out of way, and easy to find again)

If you have a 10g Client
G:\oracle\product\10.1.0\Client_1\BIN\orasrvm.DLL Then temporarily rename it to
G:\oracle\product\10.1.0\Client_1\BIN\_orasrvm.DLL (move out of way, and easy to find again)

The test, after hacking every 10g orasrvm.DLL, run: G:\oracle\product\9.2.0\Db_9\bin\dbca
Now works. Its magic. You get the idea, this sucks. ;-)

It works even though my environment 'Path' includes both v9 and v10 stuff.

G:\oracle\product\9.2.0\Db_9\bin;  (this is where I've installed 9201)
G:\oracle\product\10.1.0\Db_1\bin;
G:\oracle\product\10.1.0\Client_1\bin;

使用道具 举报

回复
论坛徽章:
151
2014年新春福章
日期:2014-04-17 11:38:13奥运会纪念徽章:皮划艇静水
日期:2012-07-31 15:42:58奥运会纪念徽章:田径
日期:2012-07-10 16:21:10奥运会纪念徽章:跆拳道
日期:2012-06-20 22:07:29奥运会纪念徽章:皮划艇静水
日期:2012-06-16 02:55:21奥运会纪念徽章:曲棍球
日期:2012-06-13 10:09:19蛋疼蛋
日期:2012-05-19 23:20:41迷宫蛋
日期:2012-05-16 17:35:25版主2段
日期:2012-05-15 15:24:11双黄蛋
日期:2012-03-19 19:34:04
6#
 楼主| 发表于 2005-5-24 15:24 | 只看该作者
最初由 花好月不圆 发布
[B]Hi,

Solution 2: The *other* way. ;-)
You can run v9 dbca successfully, even if the 'Path' includes v9 and v10 if you *rename* the 10g "orasrvm.DLL" found in any 10g BIN directory. Rename it back after you are done, please.

If you have a 10g Server
G:\oracle\product\10.1.0\Db_1\BIN\orasrvm.DLL Then temporarily rename it to
G:\oracle\product\10.1.0\Db_1\BIN\_orasrvm.DLL (move out of way, and easy to find again)


The test, after hacking every 10g orasrvm.DLL, run: G:\oracle\product\9.2.0\Db_9\bin\dbca
Now works. Its magic. You get the idea, this sucks. ;-)

It works even though my environment 'Path' includes both v9 and v10 stuff.

G:\oracle\product\9.2.0\Db_9\bin;  (this is where I've installed 9201)
G:\oracle\product\10.1.0\Db_1\bin;
G:\oracle\product\10.1.0\Client_1\bin; [/B]



It works,thannnnnnnnnnks  花好月不圆

使用道具 举报

回复
论坛徽章:
53
生肖徽章:羊
日期:2007-01-19 03:29:30慢羊羊
日期:2015-03-04 14:19:44鲜花蛋
日期:2012-01-07 15:00:092012新春纪念徽章
日期:2012-01-04 11:49:54ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41ITPUB十周年纪念徽章
日期:2011-09-27 16:30:47ITPUB官方微博粉丝徽章
日期:2011-06-29 09:48:25生肖徽章:猪
日期:2007-09-26 17:03:16生肖徽章:狗
日期:2007-09-26 17:03:08生肖徽章:鸡
日期:2007-09-26 17:02:57
7#
发表于 2007-2-28 15:56 | 只看该作者
收藏先,如遇问题可以用上!

使用道具 举报

回复
论坛徽章:
3
BLOG每日发帖之星
日期:2009-10-05 01:01:03祖国60周年纪念徽章
日期:2009-10-09 08:28:002010新春纪念徽章
日期:2010-03-01 11:20:50
8#
发表于 2007-2-28 16:34 | 只看该作者
个人认为环境变量问题..

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表