0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[OCI] BaseDB(Oracle19c)のパッチ適用中に何分DBが停止するか確認する

Posted at

環境

BaseDB:Oracle Database 19c SE2(19.20)
シェイプ:VM.Standard.E4.Flex (AMD)
CPUコア数:4

測定結果

1 . データベースシステムのパッチ適用
パッチ適用時間 約20分。そのうち、約17分20秒のあいだ、DBプロセスが停止。

2 . データベースのパッチ適用
パッチ適用時間 約25分30秒。そのうち、約13分45秒のあいだ、DBプロセスが停止。

エビデンス

データベース・システム(Grid Infrastructure)のパッチ適用(19.20 -> 19.21)

パッチ適用に要した時間は約20分でした。

image.png

5秒ごとに ps -ef | grep smon コマンドを実行し、ASM・DBプロセスの有無を確認しました。

★★★ パッチ適用開始 ★★★
Thu Dec 21 02:00:49 UTC 2023

~

★ ASM・DBプロセス稼働中 ★
Thu Dec 21 02:00:52 UTC 2023
grid      7707  3878  0 02:00 pts/2    00:00:00 grep smon
root     10841     1  0 01:06 ?        00:00:27 /u01/app/19.0.0.0/grid/bin/osysmond.bin
grid     11767     1  0 01:06 ?        00:00:00 asm_smon_+ASM1
oracle   26009     1  0 01:12 ?        00:00:00 ora_smon_DB19c

~

★ DBのプロセスが消えた(約2分10秒後) ★
Thu Dec 21 02:03:03 UTC 2023
root     10841     1  0 01:06 ?        00:00:28 /u01/app/19.0.0.0/grid/bin/osysmond.bin
grid     11767     1  0 01:06 ?        00:00:00 asm_smon_+ASM1
grid     11815  3878  0 02:03 pts/2    00:00:00 grep smon
oracle   26009     1  0 01:12 ?        00:00:00 ora_smon_DB19c

Thu Dec 21 02:03:08 UTC 2023
root     10841     1  0 01:06 ?        00:00:28 /u01/app/19.0.0.0/grid/bin/osysmond.bin
grid     11767     1  0 01:06 ?        00:00:00 asm_smon_+ASM1
grid     12169  3878  0 02:03 pts/2    00:00:00 grep smon

~

★ ASMのプロセスが消えた(約2分40秒後) ★
Thu Dec 21 02:03:38 UTC 2023
grid     11767     1  0 01:06 ?        00:00:00 asm_smon_+ASM1
grid     14087  3878  0 02:03 pts/2    00:00:00 grep smon

Thu Dec 21 02:03:43 UTC 2023
grid     14604  3878  0 02:03 pts/2    00:00:00 grep smon

~

★ ASMのプロセスが起動した(約17分10秒後) ★
Thu Dec 21 02:18:00 UTC 2023
grid     40543  3878  0 02:18 pts/2    00:00:00 grep smon

Thu Dec 21 02:18:05 UTC 2023
grid     40922     1  0 02:18 ?        00:00:00 asm_smon_+ASM1
grid     40945  3878  0 02:18 pts/2    00:00:00 grep smon

~

★ DBのプロセスが起動した(約19分10秒後)※nomount ★
Thu Dec 21 02:20:01 UTC 2023
grid     40922     1  0 02:18 ?        00:00:00 asm_smon_+ASM1
grid     56719  3878  0 02:20 pts/2    00:00:00 grep smon

Thu Dec 21 02:20:06 UTC 2023
grid     40922     1  0 02:18 ?        00:00:00 asm_smon_+ASM1
oracle   57325     1  0 02:20 ?        00:00:00 ora_smon_DB19c
grid     57344  3878  0 02:20 pts/2    00:00:00 grep smon

~

★ DBがOpenした(約19分30秒後) ※別途取得したコマンドから時間を算出 ★
Thu Dec 21 02:20:26 UTC 2023
grid     40922     1  0 02:18 ?        00:00:00 asm_smon_+ASM1
oracle   57325     1  0 02:20 ?        00:00:00 ora_smon_DB19c
grid     61239  3878  0 02:20 pts/2    00:00:00 grep smon

~

★★★ パッチ適用終了 ★★★
Thu Dec 21 02:20:43 UTC 2023

パッチ適用開始 2分10秒~19分30秒の間でDBプロセスが停止していたことが確認できました。

データベースのパッチ適用(19.20 -> 19.21)

パッチ適用に要した時間は約25分30秒でした。

image.png

5秒ごとに ps -ef | grep smon コマンドを実行し、ASM・DBプロセスの有無を確認しました。

★★★ パッチ適用開始 ★★★
Thu Dec 21 02:39:11 UTC 2023

~

★ ASM・DBプロセス稼働中 ★
Thu Dec 21 02:39:12 UTC 2023
grid       511  3878  0 02:39 pts/2    00:00:00 grep smon
grid     40922     1  0 02:18 ?        00:00:00 asm_smon_+ASM1
oracle   57325     1  0 02:20 ?        00:00:00 ora_smon_DB19c

~

★ DBのプロセスが消えた(約6分30秒後) ★
Thu Dec 21 02:45:44 UTC 2023
grid     14301  3878  0 02:45 pts/2    00:00:00 grep smon
grid     40922     1  0 02:18 ?        00:00:00 asm_smon_+ASM1
oracle   57325     1  0 02:20 ?        00:00:00 ora_smon_DB19c

Thu Dec 21 02:45:49 UTC 2023
grid     14535  3878  0 02:45 pts/2    00:00:00 grep smon
grid     40922     1  0 02:18 ?        00:00:00 asm_smon_+ASM1

~

★ ASMプロセスは停止なし ★

~
★ DBのプロセスが起動した(約20分後) ★
Thu Dec 21 02:59:03 UTC 2023
grid     28335  3878  0 02:59 pts/2    00:00:00 grep smon
grid     40922     1  0 02:18 ?        00:00:00 asm_smon_+ASM1

Thu Dec 21 02:59:08 UTC 2023
oracle   28422     1  0 02:59 ?        00:00:00 ora_smon_DB19c
grid     28610  3878  0 02:59 pts/2    00:00:00 grep smon
grid     40922     1  0 02:18 ?        00:00:00 asm_smon_+ASM1


~

★ DBがOpenした(約20分15秒後) ※別途取得したコマンドから時間を算出 ★
Thu Dec 21 02:59:18 UTC 2023
oracle   28422     1  0 02:59 ?        00:00:00 ora_smon_DB19c
grid     29457  3878  0 02:59 pts/2    00:00:00 grep smon
grid     40922     1  0 02:18 ?        00:00:00 asm_smon_+ASM1

~

★★★ パッチ適用終了 ★★★
Thu Dec 21 03:04:41 UTC 2023

パッチ適用開始 6分30秒~20分15秒の間でDBプロセスが停止していたことが確認できました。
またASMプロセスは停止しませんでした。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?