Top / Installmemo / DB2 / fix

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS


DB2 V9.7のREADME
http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=/com.ibm.db2.luw.qb.server.doc/doc/t0006352.html
#contentsx
**DB2の停止 [#r1f5966b]
***インスタンスの停止 [#d639df96]
-導入されているインスタンスの確認
 test02:~ # /opt/ibm/db2/V9.7/instance/db2ilist
 db2inst1
-インスタンスの停止
 test02:~ # su - db2inst1
 db2inst1@test02:~> db2stop
 SQL1025N  The database manager was not stopped because databases are still active.
接続中のアプリケーションが存在する場合は、停止させても問題無いことを確認した後に「db2 force applications all」を実行し強制切断させる。

***管理サービスの停止 [#s6f3be70]
 db2das@test02:~> db2admin stop
 SQL4407W  The DB2 Administration Server was stopped successfully.


***障害モニター・プロセスの停止 [#sa649543]
障害モニター・コーディネーター (FMC) が稼働している場合、インスタンスが自動開始しないようにします。 
-FMC が開始されているか確認
FMC: up と表示されればFMCが稼働しています。
 test02:~ # /opt/ibm/db2/V9.7/bin/db2fmcu
 FMC: up: PID = 8640
-システム再始動の後、インスタンスが自動開始されるか確認
 test02:~ # /opt/ibm/db2/V9.7/instance/db2iset -i db2inst1 -all
 [i] DB2COMM=tcpip
 [g] DB2SYSTEM=test02
 [g] DB2INSTDEF=db2inst1
 [g] DB2ADMINSERVER=db2das
-インスタンスが自動開始解除
-インスタンス自動開始解除
 test02:~ # /opt/ibm/db2/V9.7/instance/db2iauto -off db2inst1
 test02:~ #

***DB2プロセス間通信の有無を確認 [#s6ded560]
 db2inst1@test02:~> sqllib/bin/ipclean
 sqllib/bin/ipclean: Removing DB2 engine and client's IPC resources for db2inst1.

**FIX PACKの適用 [#t7217c09]
***Fix packの展開 [#y9a6ae10]
モジュール本体と言語モジュールの双方を同一ディレクトリに展開
 test02:/tmp/db2 # tar xvfz v9.5fp10_linuxx64_server.tar.gz
 test02:/tmp/db2 # tar xvfz v9.5fp10_linuxx64_nlpack.tar.gz
***fix packの適用 [#p02244c1]
 test02:/tmp/db2/server # ./installFixPack -b /opt/ibm/db2/V9.5/
 WARNING:
 DBT3534W  The db2prereqcheck utility determined that ASLR is set to ON and that this could cause issues with some tools.
 DBI1017I  installFixPack is updating the DB2 product(s) installed in
       location /opt/ibm/db2/V9.5/.
 
 
 DB2 installation is being initialized.
 
  Total number of tasks to be performed: 37
 Total estimated time for all tasks to be performed: 1553
 
 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 #37 start
 Description: Updating existing DB2 instances
 Estimated time 60 second(s)
 Task #37 end
 
 The execution completed successfully. 
 
 For more information see the DB2 installation log at
 "/tmp/installFixPack.log.11909".

**適用後の作業 [#fc0bc162]
***インスタンスの更新 [#m2390730]
-導入されているインスタンスの確認
 test02:~ # /opt/ibm/db2/V9.7/instance/db2ilist
 db2inst1
-db2profileおよびdb2cshrcのバックアップ
 test02:/home/db2inst1 # cp -ip ./sqllib/db2profile ./sqllib/db2profile.2012120701
 test02:/home/db2inst1 # cp -ip ./sqllib/db2cshrc ./sqllib/db2cshrc.2012120701
-インスタンスの更新
 test02:~ # /opt/ibm/db2/V9.5/instance/db2iupdt db2inst1
 DBI1070I  Program db2iupdt completed successfully.
db2profileおよびdb2cshrcに変更を行っていた場合は、バックアップから変更箇所を反映しなおす。
***管理サービスの更新 [#q709bb68]
 test02:~ # /opt/ibm/db2/V9.5/instance/dasupdt
 SQL4407W  DB2 Administration Server を正常に停止しました。
 SQL4406W  DB2 Administration Server を正常に開始しました。
 DBI1070I  Program dasupdt completed successfully.

***システム・カタログ・オブジェクトの更新 [#sfcfbfa7]
-データベースの一覧を取得
 db2inst1@test02:~> db2 list database  directory
 システム・データベース・ディレクトリー
 ディレクトリー中の項目数 = 1
 データベース 1 項目:
 データベース別名                             = TESTDB
 データベース名                               = TESTDB
 ローカル・データベース・ディレクトリー       = /db/teps
 データベース・リリース・レベル               = c.00
 コメント                                     =
 ディレクトリー項目タイプ                     = 間接
 カタログ・データベース・パーティション番号   = 0
 代替サーバー・ホスト名                       =
 代替サーバーのポート番号                     =
-各データベースのシステム・カタログ・オブジェクト更新
 db2inst1@test02:~> db2updv95 -d TESTDB
 ________________________________________________________________________
 
                     _____   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 'TESTDB'.

***インスタンスと 管理サービスの起動 [#t381737f]
-管理サービスの起動
 db2das@test02:~> db2admin start
-インスタンスの起動
 db2inst1@test02:~> db2start

***自動開始の有効化 [#hdc223c6]
fixpack導入前にインスタンス自動開始解除を行っている場合はインスタンス自動開始を有効化する。
 test02:~ # /opt/ibm/db2/V9.7/instance/db2iauto -on db2inst1
----
#counter