一、备份(backup)数据库1、离线全备份1)、首先确保没有用户使用DB2: db2 list applications for db sample 2)、停掉数据库并重新启动,以便断掉所有连接: db2stop force db2start 3)、执行备份命令:(使用TSM作为备份的介质) db2 backup db sample use tsm 备份成功,将会返回一个时间戳。 4)、...【阅读全文】
环境:OS:Linux As 5DB:10.11.获取介质可以到ibm官网下载相应的安装介质,我这里下载的是db2_v101_linuxx64_expc.tar.gz2.解压缩[root@node3 db2]# tar -xvf db2_v101_linuxx64_expc.tar.gz[root@node3 db2]# ls -1db2_v101_linuxx64_expc.tar.gzexpc解压缩后生成expc目录,该目录的有如下的文件[root@nod...【阅读全文】
经常能够遇到类似的需求,使用生产环境的一个备份,到测试server上面进行测试环境的搭建。 这种需求的解决,通常有三种做法:1、利用数据库的重建恢复(1)在数据库1上面新建数据库:db2 "create database tpcd automatic storage no on /db2home"(2)创建schema,并创建一些表:db...【阅读全文】
Exit Program功能简介:Exit programs are user written extensions to the operating system that let you impose our own rules over specific areas within the operating system. Exit programs are integrated with the OS through exit points.介绍中提到的跳出点(exit points),其在AS400中的作用,适用来监...【阅读全文】