`
guoyanxi
  • 浏览: 271382 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表

db2 redirect restore

    博客分类:
  • db2
same machine online backup include logs from db2inst1 to db2inst2 db2 "restore db sample from '/test' on '/home/db2inst2' into sample LOGTARGET '/home/db2inst2/db2inst2/NODE0000/SQL00001/SQLOGDIR/' REDIRECT" --db2 "set tablespace containers for 0 using (file '/home/db2inst2/db2 ...

DB2删除冗余备份

    博客分类:
  • db2
 
对于装在虚拟机上面的测试机,归档日志等备份文件往往会因为疏于管理而逐渐塞满小小的硬盘 使用prune命令可以智能的删除除最近备份外的冗余备份 Read syntax diagramSkip visual syntax diagram >>-PRUNE--------------------------------------------------------> >--+-HISTORY--timestamp--+-------------------+--+------------+-+->< | ...
克服了无数小问题后,终于搭建起来测试环境了 总的教程: 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/dp ...

DB2 日期 时间

    博客分类:
  • db2
/*********************************************************************** --IBM DB2学习笔记-1:日期以及时间的使用 --彭建军 --2005-12-22 9:56 --测试环境:DB2 UDB V8.2 --适用于 IBM DB2 UDB for Linux、UNIX 和 Windows --说明:本文介绍了DB2日期以及时间的绝大部分应用 --欢迎转载,但请注明出处。 ***********************************************************************/ ...
http://www-01.ibm.com/support/docview.wss?uid=isg3T1012365 Problem(Abstract) When using the vi editor to open a large file, it prints error: ex: 0602-101 Out of memory saving lines for undo Cause The -y option of 'vi' can be used to override the maximum line setting of 1,048,560 with any value g ...
环境: apply运行在非target数据库上面 apply instance:dpapsort@g03edzrdb001 target instance:a3insort@g03edzrdb002 大概思路: 1.发现有问题的SET 2.查看apply log 3.查看相对应的source,target,table 4.查看snapshot 首先是以下SET出现问题,数据没有得到及时更新: dpapsort@g03edzrdb001:/home/dpapsort/torun => db2 "select activate, SET_NAME, STATUS ...
一直都说LVM可以在线增加空间,一直都没有试过 下面小试一下: 1.增加硬盘 2.创建PV 3.添加PV到VG 4.扩展LV 1.增加硬盘 该干嘛干嘛 添加后需要重启(有知道不用重启的办法吗) --这个是新添加的硬盘 [root@localhost ~]# fdisk -l /dev/sdb Disk /dev/sdb: 5368 MB, 5368709120 bytes 255 heads, 63 sectors/track, 652 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk /dev ...

搭建简单的DB2 HADR

    博客分类:
  • db2
简单的HADR,只用一台虚拟机,两个实例间搭建。工作量不大,一般5分钟左右能够完成。 步骤: 1.设定归档模式 2.使用备份建立standby数据库 3.设定hadr相关的参数 4.启动并测试 环境: Server: 127.0.0.1 Primary instance: db2inst4 Primary service/port: 42099 Standby instance: db2inst5 Standby service/port: 41099 DB name: SAMPLE --注意,切勿使用与DBM SVCENAME 太接近的端口,因为实例会默认使用那端口之后的连 ...

TSM RC=0x0000006A=106

    博客分类:
  • db2
DB2归档日志没有被TSM备份 a3inr2fb@b03cxnp46026:/db/a3inr2fb/db2backup# db2adutl query full Query for database R2FAPP Retrieving FULL DATABASE BACKUP information. No FULL DATABASE BACKUP images found for R2FAPP Retrieving INCREMENTAL DATABASE BACKUP information. No INCREMENTAL DATABASE BAC ...
https://www-304.ibm.com/support/docview.wss?uid=swg21420898 DB2ilist does not return the instance Problem(Abstract) There are cases when db2ilist does not return any instance when run as instance owner. Cause Changing DB2 file permission under the install path could lead to this issue. Resolving ...
碰到有个DB2的实例居然实例用户和fence用户是一样的 做了个测试,尝试更改fence用户 注意!无论使用哪个方法,都应该全面的备份数据库以及其参数设置。篇幅原因,这些以下没有列出。 鉴于第一个方法在db2idrop的时候会删除sqllib下面的某些文件,具有一定风险 所以推荐第二种方法,风险较小 ###方法一: 思路: 1.使用db2cfexp导出实例配置 2.停止实例 3.删除实例 4.使用新的fence用户建立实例 5.使用db2cfimp导入原有实例配置 6.启动新的实例 参考: [url]https://www-304.ibm.com/support/docview.wss?u ...
看到官方文档有这句: 引用 When all space in a single container in an SMS table space is allocated to tables, the table space is considered full, even if space remains in other containers。 The SMS table space is full as soon as any one of its containers is full. Thus, it is important to have the same amount of sp ...
用此方法同时能够得到cost最大的语句 --首先抓取snapshot [db2inst2@localhost ~]$ db2 get snapshot for all on sample > snap.out --根据执行次数排序 [db2inst2@localhost ~]$ grep -ni "number of executions" snap.out |grep -v "=0" |sort -k 6,6rn 846: Number of executions = 306 1198: Number ...
之前写过一篇在自己虚拟机简单测试的步骤 http://guoyanxi.iteye.com/blog/1056773 当然其中都是非常简单和理想化的环境,这篇文章打算记录其中遇到的问题 如果有机会应该还会写一篇总结出来,方便以后查阅 问题1.文本文件格式 --简单版当中写过如何处理,这里再复述一下 --使用db2look.sql ddl文件导入数据库结构 [db2inst2@localhost tmp]$ db2 -tvf db2look.sql; DB21007E End of file reached while reading the command. ...
在windows编辑过的文件上传到AIX的文件,如果使用二进制的传送方式,容易在VI内看到^M的字符 使用以下的工具能够简单的解决 vi开文件: 输入: :%s/[ctrl+v][回车]//[回车] ##或者使用sed命令来进行转换,如下: sed -e ’s,^M,,g’ textfile ##其中^M的输入方法是Ctrl+V, Ctrl+M ##批量文件的处理,可以用下面的命令: for f in `echo *.c`; do sed -e ’s,^M,,g’ $f;done
Global site tag (gtag.js) - Google Analytics