4
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.

個別パッチを適用した状態のデータベース・ソフトウェア・イメージで BaseDB を作成してみる。(Oracle Cloud Infrastructure)

Posted at

表題の通り個別パッチを適用した状態のデータベース・ソフトウェア・イメージを作成して、そのイメージで BaseDB を作成してみるやで。
彡(゚)(゚)

1. データベース・ソフトウェア・イメージとは

データベース・ソフトウェア・イメージは OCI の BaseDB や ExaC@C で利用可能な過去バージョンや個別パッチを適用した状態の「ゴールド・イメージ」を作成する機能です。詳細は下記マニュアルを参照して下さい。

Oracle Databaseソフトウェア・イメージの管理
https://docs.oracle.com/ja-jp/iaas/exadata/doc/ecc-oracle-database-software-images.html

2. 個別パッチを適用したデータベース・ソフトウェア・イメージの作成

コンソールからデータベース・ソフトウェア・イメージを作成してみます。今回選択したバージョンは RU 19.18, RU 19.18 に適用する個別パッチとして 35340838 を選択します。この個別パッチの詳細は下記リンク(※ログインが必要です)を参照してください。

BACKOUT OF FIX 33556274 AND 35146630 DUE TO SERVICE DOES NOT START ONCE PDB IS IN RESTRICTED MODE AFTER APPLYING 19.18 GI RU
https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=35340838

データベース・ソフトウェア・イメージの入力項目はシンプルです。バージョンと RU を選択して、個別パッチ番号も入力してボタンを押すと……。
dbi001.png

イメージができあがります。

dbi002.png

3. 個別パッチが適用されたデータベース・ソフトウェア・イメージで BaseDB を作成

できあがったデータベース・ソフトウェア・イメージを選択して BaseDB を作成します。下記がデータベース・ソフトウェア・イメージを選択する画面となります。
dbi003.png

イメージを選択して作成ボタンを祖押してからしばらくすると……。
dbi004.png

選択したイメージで BaseDB が作成されています。

4. インベントリの確認(opatch lsinventory)

opatch lsinventoryコマンドで適用されたパッチを確認します。BaseDB に SSH接続して、oracleユーザーで opatch lsinventory を実行してみます。

suso su - oracle
cd $ORACLE_HOME
cd OPatch/
./opatch lsinventory

結果は以下の通り(※抜粋)です。Patch 35340838 が適用されていることが確認できます。

[oracle@aysoskdb19c1918oneoff OPatch]$ ./opatch lsinventory
Oracle Interim Patch Installer version 12.2.0.1.39
Copyright (c) 2023, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/19.0.0.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/19.0.0.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.39
OUI version       : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19.0.0.0/dbhome_1/cfgtoollogs/opatch/opatch2023-08-25_08-24-46AM_1.log

Lsinventory Output file location : /u01/app/oracle/product/19.0.0.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2023-08-25_08-24-46AM.txt
--------------------------------------------------------------------------------
Local Machine Information::
Hostname: aysoskdb19c1918oneoff.aysoskprvsubnet.aysoskvcn01.oraclevcn.com
ARU platform id: 226
ARU platform description:: Linux x86-64

Installed Top-level Products (1):

Oracle Database 19c                                                  19.0.0.0.0
There are 1 products installed in this Oracle Home.


Interim patches (6) :

Patch  35340838     : applied on Wed Aug 23 14:06:07 UTC 2023
Unique Patch ID:  25262624
Patch description:  "OCW Interim patch for 35340838"
   Created on 12 Jun 2023, 18:09:51 hrs PST8PDT
   Bugs fixed:
     13742922, 17787434, 23320062, 24611963, 24677421, 24943214, 25642320

     35065298, 35083711, 35110038, 35136735, 35147957, 35340838

Patch  34684487     : applied on Fri Feb 03 11:27:16 UTC 2023
Unique Patch ID:  25093445
Patch description:  "VM DBCS  CLONING OF 19.17 AND 23C FAILS WITH KCC  EARLY REGISTRATION FOR CF FILE(S) WITH CSS FAILED"
   Created on 2 Feb 2023, 05:12:28 hrs PST8PDT
   Bugs fixed:
     34684487
   This patch overlays patches:
     34765931, 29517242, 34765931
   This patch needs patches:
     34765931, 29517242, 34765931
   as prerequisites

Patch  34786990     : applied on Fri Feb 03 11:26:21 UTC 2023
Unique Patch ID:  25032666
Patch description:  "OJVM RELEASE UPDATE: 19.18.0.0.230117 (34786990)"
   Created on 6 Dec 2022, 13:24:50 hrs UTC
   Bugs fixed:
     26716835, 28209601, 28777073, 29224710, 29254623, 29415774, 29445548

     34149263, 34346865, 34450366, 34461697, 34473578, 34604941, 34786432

Patch  34699616     : applied on Fri Feb 03 11:25:03 UTC 2023
Unique Patch ID:  24975198
Patch description:  "DSTV40 UPDATE - TZDATA2022E - NEED OJVM FIX"
   Created on 18 Oct 2022, 04:02:53 hrs PST8PDT
   Bugs fixed:
     12565410, 12949919, 14112098, 15897884, 16799766, 17443054, 18759260

     33613833, 34006650, 34533150, 34699616

Patch  34777391     : applied on Fri Feb 03 11:24:24 UTC 2023
Unique Patch ID:  25072500
Patch description:  "JDK BUNDLE PATCH 19.0.0.0.230117"
   Created on 11 Jan 2023, 00:42:28 hrs PST8PDT
   Bugs fixed:
     34777391
   This patch overlays patches:
     29834717, 30080447, 30087906, 30125133, 31281355, 30446228, 31771877

     33806152, 32490416, 33810130, 32918394, 33197296, 34422617, 33497160, 34113634

Patch  34765931     : applied on Fri Feb 03 11:20:45 UTC 2023
Unique Patch ID:  25098466
Patch description:  "DATABASE RELEASE UPDATE : 19.18.0.0.230117 (REL-JAN230131) (34765931)"
   Created on 27 Jan 2023, 11:25:14 hrs UTC
   Bugs fixed:
     10123661, 1297945, 14570574, 14735102, 15931756, 15959416, 16662822

     34899985, 34958012, 35001966, 7391838, 8460502, 8476681, 9002767



--------------------------------------------------------------------------------

OPatch succeeded.
[oracle@aysoskdb19c1918oneoff OPatch]$

5. まとめ

個別パッチが適用された状態で BaseDB を作成できました。
めちゃくちゃ地味な機能なんですが、何気に神機能かも……?

皆さんどんどん活用して下さいね彡(^)(^)

4
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
4
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?