- 浏览: 275693 次
- 性别:
- 来自: 广州
最新评论
-
Yiwu_zh:
步骤清晰,跟着来做,真搭建好了
不过用的是10.5版本,输出有 ...
搭建简单的DB2 HADR -
luogen33:
db2备份单个表 -
gthao:
1 楼正解。。如果schema里面有内容的话,就删除不了,会报 ...
db2建立schema -
znttql:
整理的太好了 非常感谢啊
DB2 日期 时间 -
alvin198761:
能根据schame备份数据库不??
db2备份单个表
1.停数据库
2.开始升级
升级database:
升级相关的系统目录:
连接数据库:
库文件版本对比:
至此,fix pack打完
[root@localhost universal]# su - db2inst2 --su到instance ID [db2inst2@localhost ~]$ db2 force applications all --断掉所有连接 DB20000I The FORCE APPLICATION command completed successfully. DB21024I This command is asynchronous and may not be effective immediately. [db2inst2@localhost ~]$ db2 terminate --断掉自己 DB20000I The TERMINATE command completed successfully. [db2inst2@localhost ~]$ db2stop --停instance 04/20/2011 21:01:34 0 0 SQL1064N DB2STOP processing was successful. SQL1064N DB2STOP processing was successful. [db2inst2@localhost ~]$ db2licd -end --停lisence管理器 [db2inst2@localhost ~]$ db2_ps --确认关停了 Node 0 UID PID PPID C STIME TTY TIME CMD [db2inst2@localhost ~]$ db2iauto -off db2inst2 --v9的fp1,fp2需要关闭自动运行(why?)
2.开始升级
[root@localhost universal]# ./installFixPack -b /opt/ibm/db2s/v9.7 DBI1017I installFixPack is updating the DB2 product(s) installed in location /opt/ibm/db2s/v9.7. DB2 installation is being initialized. Total number of tasks to be performed: 43 Total estimated time for all tasks to be performed: 1471 Task #1 start Description: Stopping DB2 Fault Monitor Estimated time 10 second(s) Task #1 end Task #2 start Description: Preparing the system Estimated time 120 second(s) Task #2 end Task #3 start Description: Base Client Support for installation with root privileges Estimated time 3 second(s) Task #3 end Task #4 start Description: Product Messages - English Estimated time 11 second(s) Task #4 end Task #5 start Description: Base client support Estimated time 102 second(s) Task #5 end Task #6 start Description: Java Runtime Support Estimated time 94 second(s) Task #6 end Task #7 start Description: Java Help (HTML) - English Estimated time 7 second(s) Task #7 end Task #8 start Description: Base server support for installation with root privileges Estimated time 7 second(s) Task #8 end Task #9 start Description: Global Secure ToolKit Estimated time 27 second(s) Task #9 end Task #10 start Description: Java support Estimated time 11 second(s) Task #10 end Task #11 start Description: SQL procedures Estimated time 3 second(s) Task #11 end Task #12 start Description: ICU Utilities Estimated time 41 second(s) Task #12 end Task #13 start Description: Java Common files Estimated time 20 second(s) Task #13 end Task #14 start Description: Base server support Estimated time 231 second(s) Task #14 end Task #15 start Description: IBM Software Development Kit (SDK) for Java(TM) Estimated time 44 second(s) Task #15 end Task #16 start Description: Control Center Help (HTML) - English Estimated time 13 second(s) Task #16 end Task #17 start Description: Connect support Estimated time 3 second(s) Task #17 end Task #18 start Description: Communication support - TCP/IP Estimated time 3 second(s) Task #18 end Task #19 start Description: Parallel Extension Estimated time 3 second(s) Task #19 end Task #20 start Description: EnterpriseDB code Estimated time 3 second(s) Task #20 end Task #21 start Description: Replication tools Estimated time 19 second(s) Task #21 end Task #22 start Description: Relational wrappers common Estimated time 3 second(s) Task #22 end Task #23 start Description: Control Center Estimated time 42 second(s) Task #23 end Task #24 start Description: Command Line Processor Plus Estimated time 3 second(s) Task #24 end Task #25 start Description: DB2 data source support Estimated time 7 second(s) Task #25 end Task #26 start Description: DB2 LDAP support Estimated time 3 second(s) Task #26 end Task #27 start Description: DB2 Instance Setup wizard Estimated time 8 second(s) Task #27 end Task #28 start Description: Spatial Extender client Estimated time 3 second(s) Task #28 end Task #29 start Description: Base application development tools Estimated time 35 second(s) Task #29 end Task #30 start Description: DB2 Update Service Estimated time 4 second(s) Task #30 end Task #31 start Description: First Steps Estimated time 3 second(s) Task #31 end Task #32 start Description: Product Signature for DB2 Enterprise Server Edition Estimated time 5 second(s) Task #32 end Task #33 start Description: Sample database source Estimated time 4 second(s) Task #33 end Task #34 start Description: DB2 Text Search Estimated time 201 second(s) Task #34 end Task #35 start Description: Informix data source support Estimated time 4 second(s) Task #35 end Task #36 start Description: Installing or updating SA MP Estimated time 40 second(s) Task #37 start Description: Installing or updating DB2 HA scripts for SA MP Estimated time 40 second(s) Task #37 end Task #38 start Description: Setting DB2 library path Estimated time 180 second(s) Task #38 end Task #39 start Description: Executing control tasks Estimated time 20 second(s) Task #39 end Task #40 start Description: Updating global registry Estimated time 20 second(s) Task #40 end Task #41 start Description: Starting DB2 Fault Monitor Estimated time 10 second(s) Task #41 end Task #42 start Description: Updating the db2ls link Estimated time 1 second(s) Task #42 end Task #43 start Description: Updating existing DB2 instances Estimated time 60 second(s) Task #43 end The execution completed successfully. For more information see the DB2 installation log at "/tmp/installFixPack.log.24452".
升级database:
[root@localhost v9.7]# instance/db2iupdt db2inst2 DBI1070I Program db2iupdt completed successfully.
升级相关的系统目录:
[db2inst2@localhost universal]$ db2updv97 -d sample _________________________________________________________________________ _____ DB2 Service Tools _____ I B M db2updv97 This tool is a service utility designed to update a DB2 Version 9.7 database to the current fixpak level. _________________________________________________________________________ DB2 Universal Database Version 9.7, 5622-044 (c) Copyright IBM Corp. 2008 Licensed Material - Program Property of IBM IBM DATABASE 2 Database update to current fix pack tool db2updv97 completed successfully for database 'sample'.
连接数据库:
[db2inst2@localhost universal]$ db2 connect to sample Database Connection Information Database server = DB2/LINUX 9.7.2 --已经是新版本了 SQL authorization ID = DB2INST2 Local database alias = SAMPLE
库文件版本对比:
--升级前 [db2inst2@localhost ~]$ db2ls -a -q -b /opt/ibm/db2s/v9.7 Install Path : /opt/ibm/db2s/v9.7 Feature Response File ID Level Fix Pack Feature Description --------------------------------------------------------------------------------------------------------------------- BASE_CLIENT_R 9.7.0.1 1 Base Client Support for installation with root privileges DB2_PRODUCT_MESSAGES_EN 9.7.0.1 1 Product Messages - English BASE_CLIENT 9.7.0.1 1 Base client support JAVA_RUNTIME_SUPPORT 9.7.0.1 1 Java Runtime Support DB2_JAVA_HELP_EN 9.7.0.1 1 Java Help (HTML) - English BASE_DB2_ENGINE_R 9.7.0.1 1 Base server support for installation with root privileges GSK 9.7.0.1 1 Global Secure ToolKit JAVA_SUPPORT 9.7.0.1 1 Java support SQL_PROCEDURES 9.7.0.1 1 SQL procedures ICU_SUP 9.7.0.1 1 ICU Utilities JAVA_COMMON_FILES 9.7.0.1 1 Java Common files BASE_DB2_ENGINE 9.7.0.1 1 Base server support JDK 9.7.0.1 1 IBM Software Development Kit (SDK) for Java(TM) DB2_CONTROL_CENTER_HELP_EN 9.7.0.1 1 Control Center Help (HTML) - English CONNECT_SUPPORT 9.7.0.1 1 Connect support COMMUNICATION_SUPPORT_TCPIP 9.7.0.1 1 Communication support - TCP/IP DATABASE_PARTITIONING_SUPPORT 9.7.0.1 1 Parallel Extension EDB 9.7.0.1 1 EnterpriseDB code REPL_CLIENT 9.7.0.1 1 Replication tools RELATIONAL_WRAPPERS_COMMON 9.7.0.1 1 Relational wrappers common CONTROL_CENTER 9.7.0.1 1 Control Center CLPPLUS 9.7.0.1 1 Command Line Processor Plus DB2_DATA_SOURCE_SUPPORT 9.7.0.1 1 DB2 data source support LDAP_EXPLOITATION 9.7.0.1 1 DB2 LDAP support INSTANCE_SETUP_SUPPORT 9.7.0.1 1 DB2 Instance Setup wizard SPATIAL_EXTENDER_CLIENT_SUPPORT 9.7.0.1 1 Spatial Extender client APPLICATION_DEVELOPMENT_TOOLS 9.7.0.1 1 Base application development tools DB2_UPDATE_SERVICE 9.7.0.1 1 DB2 Update Service FIRST_STEPS 9.7.0.1 1 First Steps ESE_PRODUCT_SIGNATURE 9.7.0.1 1 Product Signature for DB2 Enterprise Server Edition DB2_SAMPLE_DATABASE 9.7.0.1 1 Sample database source TEXT_SEARCH 9.7.0.1 1 DB2 Text Search INFORMIX_DATA_SOURCE_SUPPORT 9.7.0.1 1 Informix data source support --升级后 [db2inst2@localhost universal]$ db2ls -a -q -b /opt/ibm/db2s/v9.7 Install Path : /opt/ibm/db2s/v9.7 Feature Response File ID Level Fix Pack Feature Description --------------------------------------------------------------------------------------------------------------------- BASE_CLIENT_R 9.7.0.2 2 Base Client Support for installation with root privileges DB2_PRODUCT_MESSAGES_EN 9.7.0.2 2 Product Messages - English BASE_CLIENT 9.7.0.2 2 Base client support JAVA_RUNTIME_SUPPORT 9.7.0.2 2 Java Runtime Support DB2_JAVA_HELP_EN 9.7.0.2 2 Java Help (HTML) - English BASE_DB2_ENGINE_R 9.7.0.2 2 Base server support for installation with root privileges GSK 9.7.0.2 2 Global Secure ToolKit JAVA_SUPPORT 9.7.0.2 2 Java support SQL_PROCEDURES 9.7.0.2 2 SQL procedures ICU_SUP 9.7.0.2 2 ICU Utilities JAVA_COMMON_FILES 9.7.0.2 2 Java Common files BASE_DB2_ENGINE 9.7.0.2 2 Base server support JDK 9.7.0.2 2 IBM Software Development Kit (SDK) for Java(TM) DB2_CONTROL_CENTER_HELP_EN 9.7.0.2 2 Control Center Help (HTML) - English CONNECT_SUPPORT 9.7.0.2 2 Connect support COMMUNICATION_SUPPORT_TCPIP 9.7.0.2 2 Communication support - TCP/IP DATABASE_PARTITIONING_SUPPORT 9.7.0.2 2 Parallel Extension EDB 9.7.0.2 2 EnterpriseDB code REPL_CLIENT 9.7.0.2 2 Replication tools RELATIONAL_WRAPPERS_COMMON 9.7.0.2 2 Relational wrappers common CONTROL_CENTER 9.7.0.2 2 Control Center CLPPLUS 9.7.0.2 2 Command Line Processor Plus DB2_DATA_SOURCE_SUPPORT 9.7.0.2 2 DB2 data source support LDAP_EXPLOITATION 9.7.0.2 2 DB2 LDAP support INSTANCE_SETUP_SUPPORT 9.7.0.2 2 DB2 Instance Setup wizard SPATIAL_EXTENDER_CLIENT_SUPPORT 9.7.0.2 2 Spatial Extender client APPLICATION_DEVELOPMENT_TOOLS 9.7.0.2 2 Base application development tools DB2_UPDATE_SERVICE 9.7.0.2 2 DB2 Update Service FIRST_STEPS 9.7.0.2 2 First Steps ESE_PRODUCT_SIGNATURE 9.7.0.2 2 Product Signature for DB2 Enterprise Server Edition DB2_SAMPLE_DATABASE 9.7.0.2 2 Sample database source TEXT_SEARCH 9.7.0.2 2 DB2 Text Search INFORMIX_DATA_SOURCE_SUPPORT 9.7.0.2 2 Informix data source support
至此,fix pack打完
发表评论
-
db2 redirect restore
2012-08-17 15:57 2805same machine online backup incl ... -
DB2删除冗余备份
2011-12-21 18:59 4364对于装在虚拟机上面的测试机,归档日志等备份文件往往会因为疏于管 ... -
DB2 DPF 测试环境搭建
2011-11-23 17:20 5840克服了无数小问题后,终于搭建起来测试环境了 总的教程: htt ... -
DB2 日期 时间
2011-10-27 13:46 6623/****************************** ... -
SQLSTAT -964 导致apply失败
2011-10-09 21:51 2334环境: apply运行在非target数据库上面 appl ... -
搭建简单的DB2 HADR
2011-09-17 09:52 2096简单的HADR,只用一台虚拟机,两个实例间搭建。工作量不大,一 ... -
TSM RC=0x0000006A=106
2011-09-02 23:40 1431DB2归档日志没有被TSM备份 a3inr2fb@b03c ... -
db2ilist不显示实例列表
2011-08-08 18:29 2852https://www-304.ibm.com/support ... -
更改DB2实例的fence用户的两种方法
2011-07-27 21:23 4812碰到有个DB2的实例居然实例用户和fence用户是一样的 做了 ... -
HWM小测
2011-07-12 17:16 0HWM是oracle和DB2都有的概念,概念很简单,测试一下 ... -
DB2 SMS tablespace 容器大小不等测试
2011-06-28 21:53 2747看到官方文档有这句: 引用 When all space in ... -
db2查找执行次数最多的sql
2011-06-23 21:50 3582用此方法同时能够得到cost最大的语句 --首先抓取sn ... -
migrate from win to linux(遇到的问题)
2011-06-15 21:30 2807之前写过一篇在自己虚拟机简单测试的步骤 http://guoy ... -
db2 错误查询
2011-06-14 19:00 2510关键字:DB2 SQLCODE 查看 在DB2数据库中执行S ... -
db2 恢复误删表
2011-06-03 19:02 5270oracle如果误删了表,可以很方便的flash back 最 ... -
migrate from win to linux(简单版)
2011-05-24 16:13 2173本文讲述最简单的从windows到linux的db2迁移 1. ... -
db2 express-c 不支持fixpack
2011-04-20 20:31 1399要真的升级,就只能重装db2软件了 [root@local ... -
linux下unstalling db2
2011-04-20 17:26 1749由于enterprise版本又到期了,又不想改系统日期,所以重 ... -
被问到的问题,导出DDL(DB2)
2011-04-15 20:41 897Generate the DDL statements for ... -
与数据库同时建立的文件
2011-03-19 16:27 1055db2rhist.asc This file cont ...
相关推荐
如同WebSphere MQ,安装DB2的Fixpack以保持最新状态: 1. 解压Fixpack到临时目录。 2. 运行`db2level`确认当前版本。 3. 应用Fixpack,通常通过`db2fp`命令。 4. 重启DB2服务以应用更改。 #### 2.3 验证DB2安装 ...
db2安装包64位linux系统安装包 Version: "v10.5.0.11
- **Linux (64-bit):** `http://delivery04.dhe.ibm.com/sar/CMA/IMA/00vft/0/v9fp9_linuxx64_universal_fixpack.tar.gz` - **HP Unix (64-bit):** `...
当需要升级到Fix Pack 1时,可以选择在原有路径上升级所有实例,或者在新的路径上安装新的DB2 9 Fix Pack 1。然后,可以将I1和I2指向新路径,接着升级到Fix Pack 2。这样,实例I3也可以独立地更新到新版本。这种分步...
- **地址**: `http://delivery04.dhe.ibm.com/sar/CMA/IMA/00vft/0/v9fp9_linuxx64_universal_fixpack.tar.gz` - **描述**: 适用于Linux 64位操作系统的补丁包,包含了必要的修复程序和性能改进。 - **用途**: 适用...
本文档适用于DB2 Performance Expert Version 2.1.1, 2.1.2 和 Version 2.2 Fix Pack 1,同时支持DB2 UDB Version 8.1和Version 8.2,以及AIX Version 5.0,Microsoft Windows 2000 Server/Professional 和 XP等操作...
此外,还可能需要安装和应用补丁(fix pack),以保持数据库软件的最新状态和安全性。 6. **安全管理**: 在Linux环境下,DB2的安全管理包括用户权限、访问控制、审计日志等。要确保数据库的安全运行,需设置合适...
此外,建议将 DB2 升级到 V9.7 或 V10.1 的最新 FIXPACK 版本。 ##### 2.2 操作系统要求 DB2 V10.5 对不同的操作系统有着不同的最低要求。例如,在 Windows 平台上,最低要求为 Windows Server 2012。可以通过 db2...
- **Fixpack介绍**:定期发布的补丁集,包含bug修复和小功能增强。 - **部署方法**:如何应用这些补丁到已安装的DB2系统上。 #### 三、深入理解DB2部署过程 - **配置文件详解**:深入了解`db2_install`命令中...
db2top支持在所有UNIX平台上运行的IBM DB2 Version 9.1 Fix Pack 4及更高版本,以及DB2 Version 8.1 Fix Pak 16及以上版本。它适用于以下几种场景: - **简化数据库监控**:db2top可以同时监控多个数据库分区,提供...
例如,DB2 V11.1的推荐补丁是Mod 4 Fix Pack 4,V10.5是Fix Pack 10,V10.1是Fix Pack 6,V9.8是Fix Pack 5,以此类推。用户应参照IBM官方文档(如swg27038033和swg21321001)进行版本和补丁的选择。 总的来说,...
- **系统需求**:确保已安装 IBM DB2 9.5 for Linux, UNIX, and Windows, Fixpack 1 或更高版本。 - **权限要求**:用户需拥有 DB2 数据库服务器上的 DBADM 权限,以便能够创建和管理数据库以及执行文本搜索相关的...
java-font-fixpack-wqy.tar.gz 仅增加了文泉驿微米黑字体(中、日、韩均可以用,以下均同),英文字体未变 java-font-fixpack-wqy-dejavu.tar.gz 中文用文泉驿,英文改为全套的Dejavu字体 java-font-fixpack-wqy-...
6. **Tivoli Monitoring Language Support Fixpack (Patch) V6.1**: 语言支持的修复包。 7. **Tivoli Monitoring for Databases Language Support V6.1**: 数据库监控的语言支持。 注意:安装DB2数据库后,还需要...
- 安装完成后,通过 `db2level` 命令检查版本信息,确认Fix Pack已正确安装。 #### 五、IBM Tivoli Directory Server 6.2的安装 1. **运行安装脚本**:启动Tivoli Directory Server 6.2的安装脚本,选择英语作为...
"Release Notes for Fix Pack 1.pdf"包含了DB2 V9的第一个修订包的详细信息。修复包是用来解决产品发布后发现的问题和提供额外改进的软件更新。通过这份文档,用户可以了解到修复的bug、新增的功能以及任何潜在的...
该工具适用于 IBM DB2 Version 9.1 Fix Pack 4 及更高版本以及 Version 8.1 Fix Pak 16 或以上版本。 #### 三、连接需求 为了使 `db2top` 正常工作,需要满足一定的连接条件。具体而言,`db2top` 必须能够与目标 ...
确保应用最新的DB2修订包(Fix Pack),因为它们通常包含性能改进。 最后,IBM提供了丰富的在线资源,如DB2 v8 HTML Documentation,可以帮助用户获取最新的调优技术和信息。 总结起来,调优DB2 UDB v8涉及多个...