免费注册 查看新帖 |

Chinaunix

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

[WebSphere] 急急!!!DB2,Websphere,AIX的安装与配置!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-06-15 03:41 |只看该作者 |正序浏览
各位DX,有谁在AIX上安装配置过Websphere及DB2的请帮忙:
1.如果Websphere 与DB2 在一个机器上,怎么配置?在DB2中如何配置Websphere的部分,在Websphere中如何配置DB2?

2.如果在HA的环境下,比较理想的资源方式应该是一台RS/6000装Websphere,另一台装DB2,又该如何配置Websphere与DB2? 但是当双机进行切换,比如DB2的主机Down了,备机(Websphere)上应该如何配置?只需要在ha_startup shell中加入DB2的启动吗?反过来,Websphere的机器Down了呢?(在IBM上见到有Websphere Cluster的文档,但是上面的例子举例用了4台机器,大部分HA的情况下,我们只有双机,这种情况下怎么办?)。我想,如何这样不行,是不是只有将DB2和Websphere放在一台机器上了?资源利用不好呀!

本人对AIX与DB2较熟,对Websphere很陌生,希望大家帮助!

因为有个面试可能要问到Websphere在AIX下与DB2配置,所以比较急,请在这个环境下有经验的人指导一下。

论坛徽章:
0
11 [报告]
发表于 2003-06-20 00:22 |只看该作者

急急!!!DB2,Websphere,AIX的安装与配置!!

To vlife:

谢谢了!

按照HA的原理,DB2和Websphere是应该两个机器都安装,只是一台机器启动DB2 database,另一台机器启动 Websphere及DB2 Client。只是切换的时候才启动相应的DB2或是Websphere。

因为对Websphere不懂,所以问一个比较低级的问题:你说的两个机器同时发布,是指两台机器上都要将Websphere启动(或是只是在发布时将另外一台机器中的Websphere启动?)?我就有点不懂了,一是这有违于HA的原理将资源分配利用,二是那我就没必要装成Cascating方式了,只装成Rotating方式,这样反正DB2 Database Server的机器也不能减轻负担,也要启动WAS。

谢谢你的回答,对于DB的切换,通过你的回答,我比较确信了。

论坛徽章:
0
10 [报告]
发表于 2003-06-19 10:58 |只看该作者

急急!!!DB2,Websphere,AIX的安装与配置!!

如果采用主机和备机的形式,明确的以下:
1、应用和数据库是分开的,两台机器上都装有websphere的应用,这个保持同步应该很简单,发布的时候两台机器同时发布就可以了。
2、数据库放在阵列上,切换的时候,数据库方面需要做的只是catalog一下就可以了。

论坛徽章:
0
9 [报告]
发表于 2003-06-19 02:52 |只看该作者

急急!!!DB2,Websphere,AIX的安装与配置!!

谢谢老大!

又问过一哥们,他说应该是:
在本机上装DB2,阵列上放数据库。在主机上建库,然后在备机上catalog dbname,注意修改database manager的参数,让主备机相同。

看来比较合理,但我有点怀疑,DB2这个智能?备机上没有相应的配置,只catalog一下就行了(当然,这个时候sharevg应该在备机上varyon了)?

有没有人能更明白的解释一下?

论坛徽章:
0
8 [报告]
发表于 2003-06-18 07:57 |只看该作者

急急!!!DB2,Websphere,AIX的安装与配置!!

DB2和Websphere的双机我没有实践过!
第二个问题我说的是当db2和websphere安装在同一台机器上时要这么作,所谓的远程机器其实就是本地机器,只是用catalog远程机器的方式而已。(was4+db2 7),was5.0的参数都保存在了XML文件中,所以不需要用DB2来保存参数了。

论坛徽章:
0
7 [报告]
发表于 2003-06-17 21:09 |只看该作者

急急!!!DB2,Websphere,AIX的安装与配置!!

老大,另外,有两个问题请教一下。

第一、在HA的情况下,如果将DB2安装在陈列盘上,在生产机与备份机上安装完DB2,如何在生产机上配置完后,让备份机有相同的配置?也即是说,配置文件有哪几个?如果拷贝到备份机上,还需要做一些什么修改?

第二、websphere使用的db2数据库catalog成一个远程的数据库,在catalog时用的是远程主机名,当db2的机器down,websphere的机器接管,这时db2所在的主机名不见了,websphere是否要重新catalog?那就是在HA的启动脚本里加入stop websphere,startup db2, catalog database,startup websphere?

先谢谢了!

论坛徽章:
0
6 [报告]
发表于 2003-06-17 21:03 |只看该作者

急急!!!DB2,Websphere,AIX的安装与配置!!

老大

论坛徽章:
0
5 [报告]
发表于 2003-06-16 08:09 |只看该作者

急急!!!DB2,Websphere,AIX的安装与配置!!

老大,我现在非常想知道在HA的两种方式下,你如何实现的?可以email: ddlldd2000@yahoo.com,谢谢老大!

好象你今天上网特早呀!

论坛徽章:
0
4 [报告]
发表于 2003-06-16 08:02 |只看该作者

急急!!!DB2,Websphere,AIX的安装与配置!!

1、如果webspher或db2安装在同一台机器上,值得注意的是要把websphere使用的db2数据库catalog成一个远程的数据库
2、要看采用何种HA方式,一、一种方式是一台主机,一台备份机,另一种方式是两台互为备份,这两种方式都可以实现。

论坛徽章:
0
3 [报告]
发表于 2003-06-15 05:08 |只看该作者

急急!!!DB2,Websphere,AIX的安装与配置!!

自己再UP一下,看到另外一个写得比较详细的说明,share出来:
I presume you are following the document supplied by IBM for installing WAS
3.5 & DB2 6.1 on AIX

To set up DB2 as a client to a remote database.
On the machine with the database that you want to connect to:
1. Configure the database manager to use TCP/IP on AIX:
   On the server machine, log in as the DB2 instance owner.
   Set DB2COMM to TPC/IP, e.g.,
                db2set DB2COMM=tcpip
2. Edit /etc/services file to include DB2 connection and
   interrupt service ports if they do not already exist, e.g.,
        db2cdb2inst1     50000/tcp   # DB2 connection service port
        db2idb2inst1     50001/tcp   # DB2 interrupt connection
where  db2cdb2inst1 if you are following the default userid db2inst1 for the
installation

3. Update the database manager configuration, e.g.,
                db2 update dbm cfg using svcename db2cdb2inst1
   the arguement after svcename must match the name of the service that you
placed in /etc/services.


4. Add the following line in the db2profile which is located in the
/home/db2instance_owner/sqllib directory :
               export DB2COMM=tcpip

5. Catalog the node, e.g.,
       db2 catalog tcpip node loop remote <hostname>; server
<DB2_connection_service_port>;
where <DB2_connection_service_port>; is  db2cdb2inst1 if you are following
the default userid for the installation & loop is just a alias name of the
node,

6. Catalog the database, e.g.,
       db2 catalog database was as wasloop at node loop
where wasloop is as dbalias of was db which is created as part of
installation
7. Stop and start DB2.
       % db2stop
       % db2start
8. Make sure admin.config has the dbURL point to the database alias  ie,
com.ibm.ejs.sm.adminServer.dbUrl=jdbc\:db2\:<dbAliasName>;
The db alias should be wasloop in this case if you have entered the command
in step 6

Now, you can start your admin server. You won't see any error in your
tracefile.
  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP