免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 9481 | 回复: 18
打印 上一主题 下一主题

[WebSphere] 请教JDBC连接数据库问题 [复制链接]

论坛徽章:
1
白羊座
日期:2014-05-04 17:53:33
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-09-09 10:31 |只看该作者 |正序浏览
刚接触Websphere,请教各位高手以下问题:
1、Websphere Application Server和Database可以分别安装在不同的主机上吗?我的情况是WAS安装上XP上,Oracle 10g安装在虚拟机上,运行Linux平台;

2、WAS通过JDBC连接Oracle时,ojdbc6.jar文件在哪里?WAS所在的主机没有这个文件,我自己下载了一个,但还是无法连通。Oracle 10g所在的Linux系统倒是有一个ojdbc14.jar文件,但在WAS控制台设定为其路径后,也不能连通;

3、设置好JDBC提供程序和数据源后,测试连接时报错:无法连接到节点,确保 Node Agent 正在运行并重试测试连接操作。这个Node Agent是要装在Oracle所在的主机上吗?

谢谢!

论坛徽章:
1
白羊座
日期:2014-05-04 17:53:33
19 [报告]
发表于 2013-09-16 15:52 |只看该作者
回复 18# Shell_HAT


    The Plug-ins installation wizard--这个是怎么调用出来?我不知从哪调用。我只是在“Web 服务器”中点击了“生成插件”,产生一个 xml 的文件。以为将这个文件COPY入 Web Server再修改 httpd.conf 就可以呢。

论坛徽章:
33
ChinaUnix元老
日期:2015-02-02 08:55:39CU十四周年纪念徽章
日期:2019-08-20 08:30:3720周年集字徽章-周	
日期:2020-10-28 14:13:3020周年集字徽章-20	
日期:2020-10-28 14:04:3019周年集字徽章-CU
日期:2019-09-08 23:26:2519周年集字徽章-19
日期:2019-08-27 13:31:262016科比退役纪念章
日期:2022-04-24 14:33:24
18 [报告]
发表于 2013-09-16 15:22 |只看该作者
回复 17# jackiew

你的插件安装到哪台机器了?

The Plug-ins installation wizard installs the plug-in module, configures the Web server for communicating with the application server, and creates a Web server configuration definition in the application server, if possible.

Some topologies, such as the Web server on one system and the application server on another system, prevent the Plug-ins installation wizard from creating the Web server definition in the application server configuration on the remote system. In such a case, the Plug-ins installation wizard creates a script that you can copy to the application server system. Run the script to create the Web server configuration definition within the application server configuration.

论坛徽章:
1
白羊座
日期:2014-05-04 17:53:33
17 [报告]
发表于 2013-09-16 14:57 |只看该作者
回复 16# Shell_HAT


    我的系统执行这条命令没有返回有用的结果。

这个apache 2.2是几年前就装上了,而且是以二进制码安装的,应该没有这个 .so 文件吧。是不是要重新编译 apache 包含这个模块?

论坛徽章:
33
ChinaUnix元老
日期:2015-02-02 08:55:39CU十四周年纪念徽章
日期:2019-08-20 08:30:3720周年集字徽章-周	
日期:2020-10-28 14:13:3020周年集字徽章-20	
日期:2020-10-28 14:04:3019周年集字徽章-CU
日期:2019-09-08 23:26:2519周年集字徽章-19
日期:2019-08-27 13:31:262016科比退役纪念章
日期:2022-04-24 14:33:24
16 [报告]
发表于 2013-09-16 14:44 |只看该作者
回复 15# jackiew
  1. find / -type f -name "mod_was_*.so"
复制代码

论坛徽章:
1
白羊座
日期:2014-05-04 17:53:33
15 [报告]
发表于 2013-09-16 14:32 |只看该作者
Shell_HAT 发表于 2013-09-10 14:58
回复 12# jackiew


我在WAS控制台中的服务器->Web 服务器里生成了插件文件,接下来如何配置到Apache中呢?IBM的文档中说:
  1. [Linux] [Solaris] 配置 httpd.conf 文件中的条目。
  2. 将 LoadModule 和 WebSpherePluginConfig 伪指令的下列示例用作配置文件的模板:

  3. LoadModule
  4.      was_ap22_module /opt/IBM/WebSphere/Plugins/bin/mod_was_ap22_http.so

  5. 本地分布式示例:

  6. WebSpherePluginConfig
  7.      profile_root/config/cells/
  8.         dmgrcell/nodes/managednode/servers/webserver1/plugin-cfg.xml

复制代码
http://pic.dhe.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=%2Fcom.ibm.websphere.nd.doc%2Finfo%2Fae%2Fae%2Ftins_manualWebApache22.html

可是这个was_ap22_module /opt/IBM/WebSphere/Plugins/bin/mod_was_ap22_http.so在哪里找?

谢谢!

论坛徽章:
1
白羊座
日期:2014-05-04 17:53:33
14 [报告]
发表于 2013-09-10 15:12 |只看该作者
回复 13# Shell_HAT


    谢谢!我再研究下怎么弄,有问题再请教。

论坛徽章:
33
ChinaUnix元老
日期:2015-02-02 08:55:39CU十四周年纪念徽章
日期:2019-08-20 08:30:3720周年集字徽章-周	
日期:2020-10-28 14:13:3020周年集字徽章-20	
日期:2020-10-28 14:04:3019周年集字徽章-CU
日期:2019-09-08 23:26:2519周年集字徽章-19
日期:2019-08-27 13:31:262016科比退役纪念章
日期:2022-04-24 14:33:24
13 [报告]
发表于 2013-09-10 14:58 |只看该作者
回复 12# jackiew


    WAS安装程序里面包含插件的安装程序。我们一般是把插件安装到apache所在的那台机器上面。

论坛徽章:
1
白羊座
日期:2014-05-04 17:53:33
12 [报告]
发表于 2013-09-10 14:38 |只看该作者
还想继续再问问:
WAS要支持apache2还需要在WAS中生成一个插件是吗?
apache2版本:2.2.9-10

论坛徽章:
1
白羊座
日期:2014-05-04 17:53:33
11 [报告]
发表于 2013-09-10 11:10 |只看该作者
OK啦,原来是ojdbc6.jar这个文件的问题,之前不知从哪个网站下的,今天从Oracle官方网站下的,就没有问题了。
  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP