- 浏览: 271601 次
- 性别:
- 来自: 广州
最新评论
-
Yiwu_zh:
步骤清晰,跟着来做,真搭建好了
不过用的是10.5版本,输出有 ...
搭建简单的DB2 HADR -
luogen33:
db2备份单个表 -
gthao:
1 楼正解。。如果schema里面有内容的话,就删除不了,会报 ...
db2建立schema -
znttql:
整理的太好了 非常感谢啊
DB2 日期 时间 -
alvin198761:
能根据schame备份数据库不??
db2备份单个表
克服了无数小问题后,终于搭建起来测试环境了
总的教程:
http://www.ibm.com/developerworks/data/library/techarticle/dm-0504mcarthur/index.html
1.Server准备
2.文件系统
3.建立实例
4.rsh
5.测试
环境:
Server:
test64bit00
test64bit01
node:
0 test64bit00 0
1 test64bit00 1
2 test64bit01 0
3 test64bit01 1
User ID:
dpfinst1:x:1004:999::/db2home/dpfinst1:/bin/bash
dpffen1:x:1003:998::/db2home/dpffen1:/bin/bash
dpfdas1:x:1002:997::/home/dpfdas1:/bin/bash
Share home path:
/db2home
1.Server准备
现在vmware装好DB2,建好用户,然后使用clone功能复制多一台
然后更新各自的IP就好
因为DB2安装路径、版本,用户和组的ID都必须一样,所以这样做既省事又准确
2.文件系统
在test64bit00上
在test64bit01上
现在NFS就弄好了
3.建立实例
4.rsh
更新nodes列表:
添加rhost
5.测试
PS:途中遇到许多问题,整理了一些:
1.rsh 544 connection refused
A.首先确保iptables没有打开
B.在/etc/securetty里面添加
rexec
rsh
rlogin
C.去除多余的krb4
http://www.manotes.net/?tag=redhat-linux-ssh-port-544-connection-refused
2.各种NFS的配置
因为第一次配这个,所以要从头开始
http://www.liusuping.com/ubuntu-linux/Redhat-Linux-NFS-setting.html
http://server.zdnet.com.cn/server/2007/0831/482007.shtml
3.SQL5005C,SQL1042C
在NFS的client端必须要使用nolock的模式mount
不然db2_all反应很慢,报出以下错误:
http://newyue.blog.51cto.com/174760/562926
http://linux.die.net/man/5/nfs
http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/core/r0012308.htm
http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.rn.doc/rn/r0021677.htm
http://publib.boulder.ibm.com/infocenter/tivihelp/v2r1/index.jsp?topic=%2Fcom.ibm.tsiem.doc%2Ftg%2Fkp_sql5005cerrors.html
总的教程:
http://www.ibm.com/developerworks/data/library/techarticle/dm-0504mcarthur/index.html
1.Server准备
2.文件系统
3.建立实例
4.rsh
5.测试
环境:
Server:
test64bit00
test64bit01
node:
0 test64bit00 0
1 test64bit00 1
2 test64bit01 0
3 test64bit01 1
User ID:
dpfinst1:x:1004:999::/db2home/dpfinst1:/bin/bash
dpffen1:x:1003:998::/db2home/dpffen1:/bin/bash
dpfdas1:x:1002:997::/home/dpfdas1:/bin/bash
Share home path:
/db2home
1.Server准备
现在vmware装好DB2,建好用户,然后使用clone功能复制多一台
然后更新各自的IP就好
因为DB2安装路径、版本,用户和组的ID都必须一样,所以这样做既省事又准确
--添加用户 groupadd -g 999 db2iadm1 groupadd -g 998 db2fadm1 groupadd -g 997 dasadm1 useradd -u 1004 -g db2iadm1 -m -d /db2home/dpfinst1 dpfinst1 -p manager1 useradd -u 1003 -g db2fadm1 -m -d /db2home/dpffen1 dpffen1 -p manager1 useradd -u 1002 -g dasadm1 -m -d /home/dpfdas1 dpfdas1 -p manager1 passwd db2inst1 passwd db2fenc1 passwd dasusr1 --补齐包 rpm -ivh rsh-server-0.17-40.el5.x86_64.rpm --相应的服务 service portmap start service nfs start chkconfig rsh on --更新/etc/hosts 192.168.221.137 test64bit01 192.168.221.136 test64bit00
2.文件系统
在test64bit00上
mkdir /db2home --在/etc/fstab里面添加: /dev/sdc /db2home ext3 defaults 0 0 --在/etc/exports里面添加: /db2home test64bit00(rw,sync,no_root_squash) test64bit01(rw,sync,no_root_squash) --允许相应的server进行读写 --应用更改 /usr/sbin/exportfs -a
在test64bit01上
mkdir /db2home --在/etc/fstab里面添加: test64bit00:/db2home /db2home nfs rw,timeo=300,retrans=5,hard,intr,bg,nolock,suid --刷新最新的挂载点 mount -a
现在NFS就弄好了
[root@test64bit00 db2home]# touch a [root@test64bit01 db2home]# ll a -rw-r--r-- 1 root root 0 Nov 23 16:58 a
3.建立实例
--建立一次就好了 [root@test64bit00 db2home]# /opt/ibm/db2/V9.5/instance/db2icrt -u dpffen1 dpfinst1 DBI1070I Program db2icrt completed successfully. --把db2profile加到bash profile里面 [dpfinst1@test64bit01 ~]$ tail -1 .bash_profile /db2home/dpfinst1/sqllib/db2profile --更新相应的连接配置 --在/etc/services里面保证两边相同 [root@test64bit01 db2home]# grep -i dpf /etc/services DB2_dpfinst1 60020/tcp DB2_dpfinst1_1 60021/tcp DB2_dpfinst1_2 60022/tcp DB2_dpfinst1_END 60023/tcp db2 update dbm cfg using SVCENAME DB2_dpfinst1 db2set DB2COMM=tcpip
4.rsh
更新nodes列表:
[dpfinst1@test64bit00 ~]$ cat sqllib/db2nodes.cfg 0 test64bit00 0 1 test64bit00 1 2 test64bit01 0 3 test64bit01 1
添加rhost
vi /db2home/dpfinst1/.rhosts test64bit00 dpfinst1 test64bit01 dpfinst1 chmod 600 /db2home/dpfinst1/.rhosts
5.测试
[dpfinst1@test64bit00 ~]$ db2_all date Wed Nov 23 17:06:19 CST 2011 test64bit00: date completed ok Wed Nov 23 17:06:19 CST 2011 test64bit00: date completed ok Wed Nov 23 17:06:19 CST 2011 test64bit01: date completed ok Wed Nov 23 17:06:19 CST 2011 test64bit01: date completed ok
PS:途中遇到许多问题,整理了一些:
1.rsh 544 connection refused
connect to address 192.168.221.137 port 544: Connection refused Trying krb4 rsh... connect to address 192.168.221.137 port 544: Connection refused trying normal rsh (/usr/bin/rsh) test64bit01: Connection refused
A.首先确保iptables没有打开
B.在/etc/securetty里面添加
rexec
rsh
rlogin
C.去除多余的krb4
cd /usr/kerberos/bin mv rsh rsh.bak20110602 ln -s /usr/bin/rsh rsh
http://www.manotes.net/?tag=redhat-linux-ssh-port-544-connection-refused
2.各种NFS的配置
因为第一次配这个,所以要从头开始
http://www.liusuping.com/ubuntu-linux/Redhat-Linux-NFS-setting.html
http://server.zdnet.com.cn/server/2007/0831/482007.shtml
3.SQL5005C,SQL1042C
在NFS的client端必须要使用nolock的模式mount
不然db2_all反应很慢,报出以下错误:
[root@test64bit01 ~]# dmesg -c lockd: server 192.168.221.136 not responding, timed out lockd: server 192.168.221.136 not responding, timed out [dpfinst1@test64bit01 ~]$ db2 list db directory SQL5005C System Error. [dpfinst1@test64bit01 ~]$ db2start SQL1042C An unexpected system error occurred. SQLSTATE=58004
http://newyue.blog.51cto.com/174760/562926
http://linux.die.net/man/5/nfs
http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/core/r0012308.htm
http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.rn.doc/rn/r0021677.htm
http://publib.boulder.ibm.com/infocenter/tivihelp/v2r1/index.jsp?topic=%2Fcom.ibm.tsiem.doc%2Ftg%2Fkp_sql5005cerrors.html
发表评论
-
db2 redirect restore
2012-08-17 15:57 2750same machine online backup incl ... -
DB2删除冗余备份
2011-12-21 18:59 4328对于装在虚拟机上面的测试机,归档日志等备份文件往往会因为疏于管 ... -
DB2 日期 时间
2011-10-27 13:46 6591/****************************** ... -
SQLSTAT -964 导致apply失败
2011-10-09 21:51 2295环境: apply运行在非target数据库上面 appl ... -
搭建简单的DB2 HADR
2011-09-17 09:52 2013简单的HADR,只用一台虚拟机,两个实例间搭建。工作量不大,一 ... -
TSM RC=0x0000006A=106
2011-09-02 23:40 1393DB2归档日志没有被TSM备份 a3inr2fb@b03c ... -
db2ilist不显示实例列表
2011-08-08 18:29 2818https://www-304.ibm.com/support ... -
更改DB2实例的fence用户的两种方法
2011-07-27 21:23 4758碰到有个DB2的实例居然实例用户和fence用户是一样的 做了 ... -
HWM小测
2011-07-12 17:16 0HWM是oracle和DB2都有的概念,概念很简单,测试一下 ... -
DB2 SMS tablespace 容器大小不等测试
2011-06-28 21:53 2693看到官方文档有这句: 引用 When all space in ... -
db2查找执行次数最多的sql
2011-06-23 21:50 3525用此方法同时能够得到cost最大的语句 --首先抓取sn ... -
migrate from win to linux(遇到的问题)
2011-06-15 21:30 2753之前写过一篇在自己虚拟机简单测试的步骤 http://guoy ... -
db2 错误查询
2011-06-14 19:00 2409关键字:DB2 SQLCODE 查看 在DB2数据库中执行S ... -
db2 恢复误删表
2011-06-03 19:02 5203oracle如果误删了表,可以很方便的flash back 最 ... -
migrate from win to linux(简单版)
2011-05-24 16:13 2134本文讲述最简单的从windows到linux的db2迁移 1. ... -
安装db2 fix pack
2011-04-20 21:45 41351.停数据库 [root@localhost univer ... -
db2 express-c 不支持fixpack
2011-04-20 20:31 1351要真的升级,就只能重装db2软件了 [root@local ... -
linux下unstalling db2
2011-04-20 17:26 1724由于enterprise版本又到期了,又不想改系统日期,所以重 ... -
被问到的问题,导出DDL(DB2)
2011-04-15 20:41 862Generate the DDL statements for ... -
与数据库同时建立的文件
2011-03-19 16:27 1028db2rhist.asc This file cont ...
相关推荐
本文是生产实操记录。适用于AIX环境下DB2 DPF分区库迁移。也可参考进行Linux环境下DPF分区库迁移。记录了大量实操过程的报错和解决方法,也总结了实际能用的经验,同时有许多实践可用的命令和脚本。
搭建DB2 DPF(多分区) for LinuxUnix操作步骤
关于DB2的DPF功能原理以及在设计过程中的一些注意事项
DB2 DPF DB2多分区数据库.集群数据库,类似于ORACLE的RAC.但在架构上跟ORACLE RAC 存在很大的不同. DB2 DPF 采用非共享体系架构(Share-nothing)每个节点独立处理单一任务的能力,每个子 任务处理一部份数据.分区间...
db2v9 dpf 安装 for HP-UX
DB2 数据库分区特性(DPF) 李玉明 • DB2数据库分区的非共享体系架构 • 数据哈希分布和SQL并行处理的内部机制 • 无处不在的并行
本文档介绍了基于GPFS共享文件系统的DB2内置磁盘DPF数据仓库集群方案,具有很强的实用性。
较为详细的记录了DB2 DPF特征如何分区
DB2-DPF 介绍和详细搭建步骤
主要基于V9版本的DB2数据库介绍了分区特性的内容,内容不算很深入,不过大体方面都涉及到了。
详细的dpf搭建过程,记录了整个搭建流程。已经验证通过了
最好用的DPF阅读器,体积小,运行速度快,多种操作
DB2数据库开发培训
DB2 V10.5安装配置指南,dpf配置,hadr配置
DPF.iOS.Native.Components.v9.6.1 for xe10 测试通过
KEIL.STM32F4XX_DPF2.13.0资源包!
IBM 培训教程 After completing this course, ...integration with SAP, such as DPF, MDC and deep compression Understand various setup for high available system Be able to perform basic problem analysis
GNU c 常用的库函数 方便我们经常查阅, dpf版,还可以,使用还比较方便 换有应用例子
DPF.iOS.Native.Components.v9.1.0,2015年1月13日 最新。
在用车改造中FBC对DOC+DPF的性能影响试验,余昳,徐维,本文基在柴油中添加燃油添加剂FBC和DOC+DPF系统的联合使用,考察燃油添加剂对柴油机尾气排放微粒的影响以及对DOC+DPF系统工作特性的影�