查看: 4069|回复: 2

[精华] 在AMD64的64位instance上运行db2cc

[复制链接]
招聘 : c/c++研发
论坛徽章:
45
技术图书徽章
日期:2014-03-10 14:09:192012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-01-04 11:51:22ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15现任管理团队成员
日期:2011-05-07 01:45:082011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:50
跳转到指定楼层
1#
发表于 2006-6-16 04:31 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
上次一位老兄问过关于在AMD64的64位instance上运行db2cc的问题。
当初偶给的结论是在AMD64上不支持64位的JDK。
但是今天在做一个PMR的时候意外发现我们可以使用workaround来使用db2cc。
方法就是创建一个32位的instance,然后catalog那个64位的instance
db2 catalog tcpip node LOOPBACK
remote <hostname> server db2c_db2inst1
remote_instance db2inst1

具体参考:ftp://ftp.software.ibm.com/softw ... pers/linuxamd64.pdf
section 5.1 Control Center:
5.1 Control Center
In order to administer 64-bit instances on a DB2 UDB for Linux on
AMD64 computer with the Control Center, you must create a 32-bit
instance first. Follow the directions in the section “Creating DB2
Instances” above to create a 32-bit instance. Once a 32-bit instance is
created, you need to manually2 catalog the local 64-bit instance that you
want to administer.
To ensure that this works correctly, please follow these directions, which
assume a 64-bit instance called db2inst1 and a 32-bit instance called
db2inst2 exist.
1. At the command prompt in the db2inst2 instance, enter this
single command
db2 catalog tcpip node LOOPBACK
remote <hostname> server db2c_db2inst1
remote_instance db2inst1
where <hostname> is the name of your computer
2. Ensure that the DISPLAY environment variable is correctly set
3. Type db2cc to launch the Control Center
4. In the left pane of the Control Center window, click the + beside
“All Cataloged Systems”; you should see two entries – one with
the computer name in uppercase and another in lowercase
5. Click the + beside your computer name in lowercase
6. Click the + beside “Instances”
7. Click the + beside “LOOPBACK (db2inst1)”
8. Click the + beside Database; you should see the following:
2 The initial GA release of DB2 for AMD64 does not support automatically discovering or
cataloging local 64-bit DB2 instances from within the graphical tools. Also, do not attempt to
catalog local 64-bit instances/databases using “local” protocol (use tcpip instead). These
limitations will be removed in a subsequent fixpak/release.
Getting Started with DB2 for Linux on AMD64
Page 11
9. Right click “LOOPBACK (db2inst1)” and select “Start”; after a
few seconds you should see the following results:
You are now ready to administer your 64-bit instance!
论坛徽章:
3
授权会员
日期:2006-02-05 11:03:26数据库板块每日发贴之星
日期:2006-02-10 01:02:41IBM软件技术精英协会成员
日期:2006-12-21 15:37:12
2#
发表于 2006-6-16 08:08 | 只看该作者
值得借鉴!

使用道具 举报

回复
论坛徽章:
11
管理团队2006纪念徽章
日期:2006-04-16 22:44:45马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:502011新春纪念徽章
日期:2011-01-25 15:41:01
3#
发表于 2006-6-16 09:57 | 只看该作者

Re: 在AMD64的64位instance上运行db2cc

最初由 wangzhonnew 发布
[B]上次一位老兄问过关于在AMD64的64位instance上运行db2cc的问题。
当初偶给的结论是在AMD64上不支持64位的JDK。
但是今天在做一个PMR的时候意外发现我们可以使用workaround来使用db2cc。
方法就是创建一个32位的instance,然后catalog那个64位的instance
db2 catalog tcpip node LOOPBACK
remote <hostname> server db2c_db2inst1
remote_instance db2inst1

具体参考:ftp://ftp.software.ibm.com/softw ... pers/linuxamd64.pdf
section 5.1 Control Center:
5.1 Control Center
In order to administer 64-bit instances on a DB2 UDB for Linux on
AMD64 computer with the Control Center, you must create a 32-bit
instance first. Follow the directions in the section “Creating DB2
Instances” above to create a 32-bit instance. Once a 32-bit instance is
created, you need to manually2 catalog the local 64-bit instance that you
want to administer.
To ensure that this works correctly, please follow these directions, which
assume a 64-bit instance called db2inst1 and a 32-bit instance called
db2inst2 exist.
1. At the command prompt in the db2inst2 instance, enter this
single command
db2 catalog tcpip node LOOPBACK
remote <hostname> server db2c_db2inst1
remote_instance db2inst1
where <hostname> is the name of your computer
2. Ensure that the DISPLAY environment variable is correctly set
3. Type db2cc to launch the Control Center
4. In the left pane of the Control Center window, click the + beside
“All Cataloged Systems”; you should see two entries – one with
the computer name in uppercase and another in lowercase
5. Click the + beside your computer name in lowercase
6. Click the + beside “Instances”
7. Click the + beside “LOOPBACK (db2inst1)”
8. Click the + beside Database; you should see the following:
2 The initial GA release of DB2 for AMD64 does not support automatically discovering or
cataloging local 64-bit DB2 instances from within the graphical tools. Also, do not attempt to
catalog local 64-bit instances/databases using “local” protocol (use tcpip instead). These
limitations will be removed in a subsequent fixpak/release.
Getting Started with DB2 for Linux on AMD64
Page 11
9. Right click “LOOPBACK (db2inst1)” and select “Start”; after a
few seconds you should see the following results:
You are now ready to administer your 64-bit instance! [/B]


谢谢老大还能记得这个问题,我们已经觉得放弃64bit instance了,服务器的内存没有超过4GB,64bit的意义不大,而且以后的维护要靠用户自己,还是32bit的方便一些,安装、管理都方便。

Intel EM64T可能上市太急,很多软件还没跟上,我们倾向于求稳,所以放弃了64bit,呵呵

使用道具 举报

回复

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

本版积分规则 发表回复

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