
DB2
inthirties
程序员紫龙,喜欢编程,热爱编程的老年程序员
展开
-
DB2 HADR安装与配置案例(ZT)
<br />学了好长时间DB2了,写一些关于db2这个HADR组件的功能吧。HADR是high availability disaster recovery的简写。组成HADR,需要一对机器(DB2并没有支持多个从机,是因为这样会给系统的管理带来很大麻烦),一个主机(primary),一个从机(secondary)。从高可用性上来讲,当主机发生故障时,从机可以很快的接替主机工作,可以减少数据库的故障时间;从灾难恢复上来讲,如果主机由于不可预测的灾难发生了故障,远程的从机数据不受任何影响,可以保证数据不会丢失转载 2010-08-06 23:32:00 · 1776 阅读 · 0 评论 -
RHEL AS 4上安装DB2
copy安装包, 解压 tar -zxvf v9.7_linuxia32_server.tar.gz RHEL 分发产品的程序包要求: * 对于使用异步 I/O 的 DB2数据库服务 器,libaio.so.1 是必需的。 * 对于 DB2 Net Search Extender,libstdc++.so.5 是必需的。 * 对于 DB2 数据 库服务器和客户机,libstdc++.so.6 是必需的。但是,如果使用了 IBM Tivoli® System Aut原创 2010-08-18 10:26:00 · 1316 阅读 · 0 评论 -
Oracle MYSQL DB2 sql分页
Oracle MYSQL DB2 sql分页Oracle , MYSQL , DB2 , sql , paginationOracle select * from (select rownum,name from user_tables where rownum startIndex 如果加了order就更麻烦了 select * from (select rownum,name from user_tables order by orderstr) where rownum startI原创 2010-08-18 11:42:00 · 1521 阅读 · 0 评论 -
使用db2top的工具Monitor你的DB2数据库(ZT)
Monitor , 数据库 , 工具IBM alphaworks提供了一个db2top的小工具 ,来帮助你实时监控你的db2数据库 。 更为方便的是,支持分区数据 库,也能够让你监控session级别的应用. 用法如下:下载 (86.61 KB)7 分钟前 Usage: db2top [-d dbname] [-n nodename] [-u username] [-p password] [-V schema] [-i interval] [-P ] [-a] [-R] [-k]转载 2010-08-12 10:17:00 · 3672 阅读 · 0 评论 -
db2support - Problem analysis and environment collection tool command
db2support<br /> db2support - Problem analysis and environment collection tool command<br /><br /> Collects environment data about either a client or server machine and places the files containing system data into a compressed file archive.<br /><br原创 2010-08-12 10:14:00 · 1366 阅读 · 0 评论 -
DB2 重定向恢复
重定向恢复方法一: 步骤: 1.带 REDIRECT 选项发出 RESTORE DATABASE 命令。 例如: db2 restore db flm from d taken at 20080603115210 to e redirect; 2.修改容器位置 例如: db2 set tablespace containers for 0 using (path 'D:/DB2/NODE0000/FLM/T0000000'); db2 set tablespace c转载 2010-08-10 23:23:00 · 4068 阅读 · 0 评论 -
DB2常用命令
<br />1 创建数据库 :<br /> ->db2 create db dbname<br /> 创建表:<br /> ->db2 create table name(col1 type1 [not null][primary key],col2 type2 [not null]) in tablespace_name<br /> 根据已有的表创建新表:<br /> ->db2 create table new like old<br /> ->db2 create原创 2010-08-10 21:39:00 · 4485 阅读 · 0 评论 -
DB2 fundamental - Tablespace (additional the different between Oracle's and Its)
Similar to Oracle database, DB2 also has the conception of table space. A table space is the storage structure containing tables, indexes, larger objects/long data such as LOB Object, therefore the table space orginze these datas in database to group them原创 2010-08-11 10:34:00 · 845 阅读 · 0 评论 -
DB2 tip -- Customize the prompt of your db2's console.
<br />Tip 1. Specify the word in your db2 console.<br /> <br />While you come into db2 console. The console will display the prompt in this system. The default word of dbs console's prompt is DB2=>. As you see, it is very plain, and can not give our more原创 2010-08-11 09:17:00 · 859 阅读 · 0 评论 -
db2常用命令 1
<br />1.数据库 的启动、停止<br /> db2start --启动<br /> db2stop [force] --停止<br /><br /> 2.与数据 库的连接、断开<br /> db2 CONNECT TO DBName [user UserID using PWD] --建立连接<br /> db2 CONNECT reset /db2 disconnect CURRENT --断开连接<br /><br /> 3.实例 的创建、删除<br原创 2010-08-11 08:49:00 · 1693 阅读 · 0 评论 -
如何调整DB2数据库性能实用技巧分享
如何调整DB2数据库 性能实用技巧分享,呵呵,废话就多说了,看资料了,可能对你有有所帮助,学习咯 1. SQL COST ANALYSIS 许多情况下,一个简单的SQL就可能让DB2系统 处于尴尬的状态。调整参数也不能解决此问题。由于DBA很难去改变这些垃圾SQL的现状,所以留给DBA的就是下面的情况: (1). Change or add indexes (2). Change clustering (3). Change catalog statistics. 注:一个SQL语转载 2010-08-10 22:44:00 · 1326 阅读 · 0 评论 -
DB2 进程技术模型
DB2® 进程 技术模型方面的知识可以帮助您理解数据库管理器与其相关联的组件的交互方式,并且可以帮助您在发生问题时进行故障诊断。所有 DB2 数据库服务器使用的进程 技术模型都旨在简化数据库服务器与客户机之间的通信。它还确保数据库应用程序独立于数据库控制块和关键数据库文件之类的资源。DB2 数据库服务器必须执行各种不同的任务,例如处理数据库应用程序请求或确保将日志记录写入磁盘。通常,每项任务都由一个独立的引擎可分派单元 (EDU)执行。采用多线程体系结构对于 DB2 数据库服务器而言有很多优点。由于同原创 2010-08-10 21:42:00 · 1587 阅读 · 0 评论 -
db2查看执行计划
如果没有建立过执行计划表的话,先要建立执行计划表 连接数据库 ,并执行脚本文件 EXPLAIN.DDL db2 connect to db2inst1 db2 -tvf $HOME/sqllib/misc/EXPLAIN.DDL 开始执行计划模式 db2 connect to db2inst1 db2 set current explain mode explain 这点和Oracle里的10046及sql_trace一样。 此过程中的sql执行将被trace 关闭执行计划模式 d原创 2010-08-07 18:13:00 · 9417 阅读 · 0 评论 -
bufferpool不足导致的错误
<br />在db2diag.log中发现错误<br /> <br />--CLI ERROR-------------<br /> cliRC = -1<br /> line = 806<br /> file = dbapi.c<br /><br />SQL STATE = 57011<br /> Native Error Code = -1218<br /> [IBM ][CLI Driver][DB2/LINUXX8664] SQL1218N There ar原创 2010-08-07 01:02:00 · 2446 阅读 · 0 评论 -
DB2初学者刚开始必须掌握那些DB2的基本命令和知识(ZT)
DB2初学者刚开始必须掌握那些DB2的基本命令和知识初学者 , 命令 , 知识问:DB2 初学者刚开始必须掌握那些DB2的基本命令 和知识<br /><br /> 答:<br /><br /> db2start<br /> db2stop<br /> db2 connect<br /> db2 list<br /> ……<br /> 更重要的,在学会db2基本命令前,需要熟悉SQL 语言<br /><br /><br /> DB2常用命令<br /> dasa转载 2010-08-18 10:27:00 · 1308 阅读 · 0 评论