mysql 5.1 db2i_DB2 9.5.0.0升级至9.5.0.9(小版本升级)

0.升级前DB2版本

[db2inst1@xifenfei ~]$ db2level

DB21085I Instance "db2inst1" uses "32" bits and DB2 code release "SQL09050"

with level identifier "03010107".

Informational tokens are "DB2 v9.5.0.0", "s071001", "LINUXIA3295", and Fix Pack

"0".

Product is installed at "/opt/db2/V9.5".

1.查看哪些实例

[root@xifenfei ~]# su - db2inst1

[db2inst1@xifenfei ~]$ db2ilist

db2inst1

db2inst2

2.关闭数据库

[db2inst1@xifenfei ~]$ db2 force applications all

SQL1032N No start database manager command was issued. SQLSTATE=57019

[db2inst1@xifenfei ~]$ db2 terminate

DB20000I The TERMINATE command completed successfully.

[db2inst1@xifenfei ~]$ db2stop

04/05/2012 09:17:13 0 0 SQL1032N No start database manager command was issued.

SQL1064N DB2STOP processing was successful.

[db2inst1@xifenfei ~]$ su - db2inst2

Password:

[db2inst2@xifenfei ~]$ db2 force applications all

DB20000I The FORCE APPLICATION command completed successfully.

DB21024I This command is asynchronous and may not be effective immediately.

[db2inst2@xifenfei ~]$ db2 terminate

DB20000I The TERMINATE command completed successfully.

[db2inst2@xifenfei ~]$ db2stop

04/05/2012 09:20:00 0 0 SQL1064N DB2STOP processing was successful.

SQL1064N DB2STOP processing was successful.

3.关闭管理服务器(DAS)

[root@xifenfei ~]# su - dasusr1

[dasusr1@xifenfei ~]$ db2admin stop

SQL4407W The DB2 Administration Server was stopped successfully.

4.卸装未使用的共享库

[db2inst1@xifenfei ~]$ $HOME/sqllib/bin/ipclean

/home/db2inst1/sqllib/bin/ipclean: Removing DB2 engine and client's IPC resources for db2inst1.

[db2inst2@xifenfei ~]$ $HOME/sqllib/bin/ipclean

/home/db2inst2/sqllib/bin/ipclean: Removing DB2 engine and client's IPC resources for db2inst2.

5.升级数据库软件和组件

[root@xifenfei ~]# cd server/

[root@xifenfei server]# ./installFixPack -b /opt/db2/V9.5/

DBI1017I installFixPack is updating the DB2 product(s) installed in

location /opt/db2/V9.5/.

DB2 installation is being initialized.

Total number of tasks to be performed: 36

Total estimated time for all tasks to be performed: 1165

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)

A major error occurred during the execution that caused this program to

terminate prematurely. If the problem persists, contact your technical service

representative.

For more information see the DB2 installation log at

"/tmp/installFixPack.log.9890".

--发生错误,通过日志文件寻找错误

[root@xifenfei server]# more /tmp/installFixPack.log.9890

Stopping DB2 Fault Monitor :.......Success

ERROR: The installFixPack command detected some DB2 libraries are still loaded

in memory and some applications might still be running in the current

installation copy. All applications must be stopped. See the fix pack readme

for pre-installation instructions, and re-run the installFixPack command.

Alternatively, to override automatic checking, you can re-issue the

installFixPack command with the '-f db2lib' parameter. Note: If you re-issue

the installFixPack command with the '-f db2lib' parameter, after the DB2

instances are updated, some applications might not work properly and might need

to be restarted to function properly against the updated DB2 instance.

Preparing the system :.......Failure

--发现是some DB2 libraries are still loaded,导致升级不能进行

--使用-f db2lib参数

[root@xifenfei server]# ./installFixPack -b /opt/db2/V9.5/ -f db2lib

DBI1017I installFixPack is updating the DB2 product(s) installed in

location /opt/db2/V9.5/.

DB2 installation is being initialized.

Total number of tasks to be performed: 36

Total estimated time for all tasks to be performed: 1165

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 86 second(s)

Task #5 end

Task #6 start

Description: The DB2 required component.

Estimated time 78 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 14 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 54 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 197 second(s)

Task #14 end

Task #15 start

Description: IBM Software Development Kit (SDK) for Java(TM)

Estimated time 32 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: Replication tools

Estimated time 16 second(s)

Task #20 end

Task #21 start

Description: Control Center

Estimated time 40 second(s)

Task #21 end

Task #22 start

Description: DB2 data source support

Estimated time 4 second(s)

Task #22 end

Task #23 start

Description: DB2 LDAP support

Estimated time 3 second(s)

Task #23 end

Task #24 start

Description: DB2 Instance Setup wizard

Estimated time 4 second(s)

Task #24 end

Task #25 start

Description: First Steps

Estimated time 3 second(s)

Task #25 end

Task #26 start

Description: Product Signature for DB2 Enterprise Server Edition

Estimated time 5 second(s)

Task #26 end

Task #27 start

Description: Sample database source

Estimated time 4 second(s)

Task #27 end

Task #28 start

Description: Installing or updating SA MP Base Component

Estimated time 40 second(s)

Task #28 end

Task #29 start

Description: Installing or updating DB2 HA scripts for SA MP Base Component

Estimated time 40 second(s)

Task #29 end

Task #30 start

Description: Setting DB2 library path

Estimated time 180 second(s)

Task #30 end

Task #31 start

Description: Executing control tasks

Estimated time 20 second(s)

Task #31 end

Task #32 start

Description: Updating global registry

Estimated time 20 second(s)

Task #32 end

Task #33 start

Description: Starting DB2 Fault Monitor

Estimated time 10 second(s)

Task #33 end

Task #34 start

Description: Updating the db2ls link

Estimated time 1 second(s)

Task #34 end

Task #35 start

Description: Updating the DB2 Administration Server

Estimated time 40 second(s)

Task #35 end

Task #36 start

Description: Updating existing DB2 instances

Estimated time 60 second(s)

Task #36 end

A minor error occurred during the execution.

For more information see the DB2 installation log at

"/tmp/installFixPack.log.15581".

--提示升级有错误发生

--检查日志文件

[root@xifenfei server]# more /tmp/installFixPack.log.15581

TSAMP_VERSION=3.2.1.2

DBI1130E The SA MP Base Component could not be installed or updated

because system prerequisites were not met. See the log file

/tmp/prereqSAM.log.17293 for details.

--发现是samp组件没有安装导致该错误,忽略

6.升级数据库

[root@xifenfei server]# su - db2inst1

[db2inst1@xifenfei ~]$ db2level -a

DB21085I Instance "db2inst1" uses "32" bits and DB2 code release "SQL09059"

with level identifier "060A0107".

Informational tokens are "DB2 v9.5.0.9", "s120228", "IP23310", and Fix Pack

"9".

Product is installed at "/opt/db2/V9.5".

[db2inst1@xifenfei ~]$ db2ilist

db2inst1

db2inst2

[db2inst1@xifenfei ~]$ db2start

04/05/2012 09:39:45 0 0 SQL1063N DB2START processing was successful.

SQL1063N DB2START processing was successful.

[db2inst1@xifenfei ~]$ db2 list database DIRECTORY

System Database Directory

Number of entries in the directory = 3

Database 1 entry:

Database alias = XFF

Database name = XIFENFEI

Local database directory = /home/db2inst1

Database release level = c.00

Comment = XIFENFEI TEST DATABASE

Directory entry type = Indirect

Catalog database partition number = 0

Alternate server hostname =

Alternate server port number =

Database 2 entry:

Database alias = TOOLSDB

Database name = TOOLSDB

Local database directory = /home/db2inst1

Database release level = c.00

Comment =

Directory entry type = Indirect

Catalog database partition number = 0

Alternate server hostname =

Alternate server port number =

Database 3 entry:

Database alias = SAMPLE

Database name = SAMPLE

Local database directory = /home/db2inst1

Database release level = c.00

Comment =

Directory entry type = Indirect

Catalog database partition number = 0

Alternate server hostname =

Alternate server port number =

[db2inst1@xifenfei ~]$ db2updv95 -d toolsdb

_________________________________________________________________________

_____ DB2 Service Tools _____

I B M

db2updv95

This tool is a service utility designed to update a DB2 Version 9.5

database to the current fixpak level.

_________________________________________________________________________

DB2 Universal Database Version 9.5, 5622-044 (c) Copyright IBM Corp. 2007

Licensed Material - Program Property of IBM

IBM DATABASE 2 Database update to current fix pack tool

db2updv95 completed successfully for database 'toolsdb'.

[db2inst1@xifenfei ~]$ db2updv95 -d SAMPLE

_________________________________________________________________________

_____ DB2 Service Tools _____

I B M

db2updv95

This tool is a service utility designed to update a DB2 Version 9.5

database to the current fixpak level.

_________________________________________________________________________

DB2 Universal Database Version 9.5, 5622-044 (c) Copyright IBM Corp. 2007

Licensed Material - Program Property of IBM

IBM DATABASE 2 Database update to current fix pack tool

db2updv95 completed successfully for database 'SAMPLE'.

--指定数据库别名

[db2inst1@xifenfei ~]$ db2updv95 -d Xff

_________________________________________________________________________

_____ DB2 Service Tools _____

I B M

db2updv95

This tool is a service utility designed to update a DB2 Version 9.5

database to the current fixpak level.

_________________________________________________________________________

DB2 Universal Database Version 9.5, 5622-044 (c) Copyright IBM Corp. 2007

Licensed Material - Program Property of IBM

IBM DATABASE 2 Database update to current fix pack tool

db2updv95 completed successfully for database 'Xff'.

[db2inst1@xifenfei ~]$ su - db2inst2

Password:

[db2inst2@xifenfei ~]$ db2 list database DIRECTORY

System Database Directory

Number of entries in the directory = 1

Database 1 entry:

Database alias = XIFENFEI

Database name = XIFENFEI

Local database directory = /home/db2inst2/xifenfei

Database release level = c.00

Comment =

Directory entry type = Indirect

Catalog database partition number = 0

Alternate server hostname =

Alternate server port number =

[db2inst2@xifenfei ~]$ db2start

04/05/2012 09:46:47 0 0 SQL1063N DB2START processing was successful.

SQL1063N DB2START processing was successful.

[db2inst2@xifenfei ~]$ db2updv95 -d xifenfei

_________________________________________________________________________

_____ DB2 Service Tools _____

I B M

db2updv95

This tool is a service utility designed to update a DB2 Version 9.5

database to the current fixpak level.

_________________________________________________________________________

DB2 Universal Database Version 9.5, 5622-044 (c) Copyright IBM Corp. 2007

Licensed Material - Program Property of IBM

IBM DATABASE 2 Database update to current fix pack tool

db2updv95 completed successfully for database 'xifenfei'.

7.补充说明

1)在升级数据库前需要做好数据库和软件备份

2)升级过程时先关闭所有db2相关进程,如果不能正常关闭(非本文上面列举操作相关进程),直接kill

3)升级过程中,如果实例,DAS等升级失败,需要后续手工升级

4)检查相关进程,如果没有正常启动,需要手工给予启动

5)一些工具进行绑定和重新绑定packages

db2 terminate

db2 connect to dbname

db2 BIND /home/db2inst2/sqllib/bnd/db2schema.bnd BLOCKING ALL GRANT PUBLIC SQLERROR CONTINUE

db2 BIND /home/db2inst2/sqllib/bnd/@db2ubind.lst BLOCKING ALL GRANT PUBLIC ACTION ADD

db2 BIND /home/db2inst2/sqllib/bnd/@db2cli.lst BLOCKING ALL GRANT PUBLIC ACTION ADD

db2 terminate

db2rbind xifenfei -l logfile all

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/514749.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

OpenYurt 深度解读:如何构建 Kubernetes 原生云边高效协同网络?

作者 | 郑超 导读:OpenYurt 是阿里巴巴开源的云边协同一体化架构,与同类开源方案相比,OpenYurt 拥有可实现边缘计算全场景覆盖的能力。在之前的一篇文章中,我们介绍了 OpenYurt 是如何在弱网和断网场景下实现边缘自治的。本文作为…

Dubbo-go 源码笔记(二)客户端调用过程

作者 | 李志信 导读:有了上一篇文章《Dubbo-go 源码笔记(一)Server 端开启服务过程》的铺垫,可以类比客户端启动于服务端的启动过程。其中最大的区别是服务端通过 zk 注册服务,发布自己的ivkURL并订阅事件开启监听&…

云原生时代需要什么样的存储系统?

导读:本文介绍了目前云原生环境下,支持有状态应用的几种典型存储方案的特点,并对市场主流的几个云原生存储产品实际测试性能进行对比。 现状 当前,云原生已经成为应用开发者在选择架构设计时的首选。云原生让应用开发者可以将所有…

mysql管理器源码_一个HelloWorld版的MySQL数据库管理器的设计与实现(源码)

2011年,实习期间写了一个简单的数据库管理器。今天,特意整理了下,分享给大家。有兴趣的同学,可以下载源码,瞧瞧。源码只有4个类:LoginGUI,DatabaseGUI,Record,MySQLModel。1.LoginGUI该类就是一个简单的登录…

我们身边的网络流量

作者:qinglianghu 一.网络流量中的善与恶 和我们一起在网上冲浪的不仅有你身边的亲朋好友,还有栖息在互联网上密密麻麻的网络爬虫。差不多每5次的网络浏览里,有2次是"虚假"的网络爬虫产生的。这些栖息在互联网上的爬虫也是有&quo…

58.3万笔/秒!看阿里的黑科技

简介: 11月11日0点刚过26秒,天猫双11的订单创建峰值就达到58.3万笔/秒,阿里云又一次扛住全球最大规模流量洪峰!58.3万笔/秒,这一数字是2009年第一次天猫双11的1457倍。数字的背后,隐藏着阿里巴巴很多不为人…

60+ 安全厂商的选择,为何 TA 一直坚持做威胁情报供应商?

威胁情报能给企业安全管理人员提供全面、准确、可执行和决策的信息,帮助企业提高应对安全威胁的效率,提升脆弱性管理和风险控制能力,了解其所处的威胁环境并用于决策。可以与企业已有的网络安全架构、产品、流程相整合,应用到 APT…

java方法重写_Java方法重写注意事项

1.重写方法的方法名和参数列表要和被重写方法一致。2.在 java 1.4版本以前,重写方法的返回值类型被要求必须与被重写方法一致,但是在java 5.0中放宽了这一个限制,添加了对协变返回类型的支持,在重写的时候,重写方法的返…

专访李飞飞 :从清华附中高材生到阿里飞刀,一口井钻出「云原生」

简介: 他初三上清华,如今是达摩院数据库首席科学家。李飞飞从学术界走向工业界,带领阿里云技术团队一手打造了云原生分布式数据库,让阿里「全面上云」的战役再下一城。今天,他用一口水井为我们道出了云原生&#xff01…

阿里雷卷:RSocket从入门到落地,RSocket让AJP换发青春

简介: 借助 RSocket 的架构提供,我们可以将之前比较复杂的方案简化,当然最最重要的是性能的提升,即便之前的一些性能提升技术点,可能由于一些约束等,现在和 RSocket 对接,那些问题都不存在啦&am…

英特尔拥抱开源,岂能没有杀手锏?

10 年前,Netscape 创始人、硅谷著名投资人马克安德森说“软件吞噬世界”,如今已发展为“开源吞噬世界”。据《2020年度 GitHub Octoverse 报告》显示,GitHub 上开发者数量达到 5600 万,新增 6000 万个存储库以及 19 亿个 contribu…

硬解析和软解析 mysql_Oracle学习之shared pool--硬解析和软解析

1.shared pool(共享池)的组成3块区域:free cache、library cache、row cachefree cache:空闲空间library cache:主要缓存SQL语句以及SQL语句对应的执行计划row cache:数据字典缓存select * from v$sgastat a where a.NAME librar…

Java全能手册火了!Redis/Nginx/Dubbo/Spring全家桶啥都有!

前言本文是为了帮大家快速回顾了Java中知识点,这套面试手册涵盖了诸多Java技术栈的面试题和答案,相信可以帮助大家在最短的时间内用作面试复习,能达到事半功倍效果。本来想将文件上传到github上,但由于文件太大有的都无法显示所以…

java角度_java中角度或弧度的计算 | 学步园

math中调用tan()的反三角函数。应该表达为(角度/180度)* π(3.14) Math.atan((dpPoint.y-dpCenter.y) / (dpPoint.x-dpCenter.x))角度 Math.atan((dpPoint.y-dpCenter.y) / (dpPoint.x-dpCenter.x)) / π(3.14) * 180度计算三角形的任意一个角度// format的模板java.text.Deci…

云原生实时数仓首次在2020双11核心数据场景落地

简介: 这是史上数据量、计算量最大的一年,是实时处理要求最高、与机器智能结合性最强的一次双11,也是全球最大规模的一次云原生实践。背后作为数据核心支撑的大数据平台更是创下新的世界纪录。 刚刚结束的2020天猫双11又创下两项新记录&…

Flink + 强化学习搭建实时推荐系统

大家好,我叫许日花名欢伯,在2016年盒马早期的时候,我就转到了盒马的事业部作为在线数据平台的研发负责人,现在阿里云的计算平台负责DataWorks的建模引擎团队。今天的分享内容也来源于另一位嘉宾李启平(首义&#xff09…

MySQL 避坑指南之隐式数据类型转换

作者 | 不剪发的Tony老师责编 | 欧阳姝黎出品 | CSDN博客????知之为知之,不知为不知,是知也。——《论语》今天我们来聊聊 MySQL 中存在的隐式数据类型转换以及可能带来的问题。当两个不同类型的数据进行运算时,为了使得它们能够兼容&…

二级java题型及分值_计算机二级java考试内容

计算机二级java考试内容Java支持快速原型和容易试验,它将导致快速程序开发。这是一个与传统的、耗时的“编译、链接和测试”形成鲜明对比的精巧的开发过程。下面是小编整理的关于计算机二级java考试内容,希望大家认真阅读!基本要求1.掌握Java语言的特点、…

淘宝直播在冲刺最复杂的人工智能技术!

01 上周,主播林珊珊测试了一下淘宝直播团队依据他个人形象打造的虚拟主播,也就是林珊珊下播以后,让虚拟主播上场,粉丝在直播间可以跟虚拟主播互动,虚拟主播则实时介绍商品,回答消费者提问。 第二天&#x…

2020双十一,阿里云GRTN拉开直播和RTC技术下半场的序幕

直播,已经成为了“剁手党”们最喜闻乐见的一种购物形式。对直播体验的极致追求,也是淘宝技术人们长期的努力方向。为了提升用户购物体验,让直播更加丝滑,让剁手更快一些,在2020双十一期间,淘宝首次启用了阿…