kailas.asm
山とシステム管理屋のメモサイト
開始行:
DB2 V9.7のREADME
http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/inde...
#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 d...
接続中のアプリケーションが存在する場合は、停止させても問...
***管理サービスの停止 [#s6f3be70]
db2das@test02:~> db2admin stop
SQL4407W The DB2 Administration Server was stopped succ...
***障害モニター・プロセスの停止 [#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 db2inst...
[i] DB2COMM=tcpip
[g] DB2SYSTEM=test02
[g] DB2INSTDEF=db2inst1
[g] DB2ADMINSERVER=db2das
-インスタンス自動開始解除
test02:~ # /opt/ibm/db2/V9.7/instance/db2iauto -off db2i...
***DB2プロセス間通信の有無を確認 [#s6ded560]
db2inst1@test02:~> sqllib/bin/ipclean
sqllib/bin/ipclean: Removing DB2 engine and client's IPC...
**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/db...
WARNING:
DBT3534W The db2prereqcheck utility determined that ASL...
DBI1017I installFixPack is updating the DB2 product(s) ...
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 ./sql...
test02:/home/db2inst1 # cp -ip ./sqllib/db2cshrc ./sqlli...
-インスタンスの更新
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 D...
database to the current fixpak level.
________________________________________________________...
DB2 Universal Database Version 9.5, 5622-044 (c) Copyrig...
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 db2in...
----
#counter
終了行:
DB2 V9.7のREADME
http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/inde...
#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 d...
接続中のアプリケーションが存在する場合は、停止させても問...
***管理サービスの停止 [#s6f3be70]
db2das@test02:~> db2admin stop
SQL4407W The DB2 Administration Server was stopped succ...
***障害モニター・プロセスの停止 [#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 db2inst...
[i] DB2COMM=tcpip
[g] DB2SYSTEM=test02
[g] DB2INSTDEF=db2inst1
[g] DB2ADMINSERVER=db2das
-インスタンス自動開始解除
test02:~ # /opt/ibm/db2/V9.7/instance/db2iauto -off db2i...
***DB2プロセス間通信の有無を確認 [#s6ded560]
db2inst1@test02:~> sqllib/bin/ipclean
sqllib/bin/ipclean: Removing DB2 engine and client's IPC...
**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/db...
WARNING:
DBT3534W The db2prereqcheck utility determined that ASL...
DBI1017I installFixPack is updating the DB2 product(s) ...
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 ./sql...
test02:/home/db2inst1 # cp -ip ./sqllib/db2cshrc ./sqlli...
-インスタンスの更新
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 D...
database to the current fixpak level.
________________________________________________________...
DB2 Universal Database Version 9.5, 5622-044 (c) Copyrig...
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 db2in...
----
#counter
ページ名: