Oracle12cまでは、ダウンロードしてきたOracle Universal Installer(OUI)を含む圧縮ファイルを任意の一時フォルダに展開し
一時フォルダからOUIを実行、Oracleホームディレクトリを指定してインストールを行った。
この場合、一時フォルダ内に展開されていた各種のツールやバイナリファイルは、Oracleホーム以下にコピーされ
インストール終了後には一時フォルダは削除するのが通例だった。
ところが、Oracle18cのインストールでは圧縮ファイルを一時的に展開するフォルダを作成する必要は無く
setup.batを実行したフォルダが、ツールやバイナリファイルを含むOracleホームフォルダとして自動で設定されてしまう。
そのためセットアップの途中で指定するべきフォルダはOracleホームではなく、インストールの情報等を保持するためのOracleベースフォルダを指定することになる。
OracleホームとOracleベースの関係は、自由な配置で指定することが可能であるが、公式のガイド(database-installation-guide-microsoft-windows.pdf)によると
以下のような設定とすることを推奨している。
#Oracle Home Directory Naming Convention
By default, Oracle Universal Installer configures Oracle home directories using these
Oracle Optimal Flexible Architecture conventions.
The directory pattern syntax for Oracle homes is /pm/s/u/product/v/type_[n]. The
following table describes the variables used in this syntax:###Variable Description
名前 説明 pm A mount point name. s A standard directory name. u The name of the owner of the directory. v The version of the software. type The type of installation. For example: Database (dbhome), Client (client),or Oracle Grid Infrastructure (grid) n An optional counter, which enables you to install the same product morethan once in the same Oracle base directory. >For example: Database 1 and Database 2 (dbhome_1, dbhome_2)
したがって、oraclehomeというユーザーをOracleホーム・ユーザーとして、従来通りC:\appフォルダ以下にDBをインストールする場合は C:\app\oraclehome\product\18.0.0\db_home1 に、DBのインストール用圧縮ファイルを展開し、OracleBaseにC:\app\oraclehomeを指定すればよいということである。
なお、アンインストールをする場合には、Oracleホームの下にあるdeinstallフォルダ内のdeinstall.batを実行すればよいが、実行後には当然Oracleベース以下のディレクトリは削除されることに注意しよう。