前回、RHEL8にRPMパッケージのOracle Database 19cをインストールしました。
今回はOracle Database Clientをインストールしてみます。
Oracle Database Clinetって別のマシンからリモートでDatabase Serverに接続する為のプログラム群と考えていいのですよね?
環境
・Red Hat Enterprise Linux release 8.5 (Ootpa)
・Kernel 4.18.0-348.7.1.el8_5.x86_64
・oracle-database-preinstall-19c-1.0-3.el7.x86_64.rpm
・開発環境、GNOME環境、日本語入力インストール
・Subscription登録
- Oracle Database Clientダウンロード
- 必要なパッケージのインストール
- オプションプ・パッケージのインストール
- sazanami fontのインストール
- インストール・ディレクトリの作成
- oracleユーザでログイン
- 展開
- 環境変数CV_ASSUME_DISTIDの設定
- runInstallerの実行
- インストール・タイプの選択
- Oracleベース・Oracleホームの場所の指定
- oraInventoryの場所の指定
- 前提条件のチェック
- サマリー
- インストール
Oracle Database 19c Client (19.3) for Linux x86-64
https://www.oracle.com/database/technologies/oracle19c-linux-downloads.html
今回はLINUX.X64_193000_client.zipをダウンロードしました。
x86-64でサポートされているRed Hat Enterprise Linux 8のディストリビューション
https://docs.oracle.com/cd/F19136_01/lacli/supported-red-hat-enterprise-linux-8-distributions-for-x86-64.html#GUID-B1487167-84F8-4F8D-AC31-A4E8F592374B
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
[root@rhel8 ~]# dnf install bc binutils elfutils-libelf elfutils-libelf-devel fontconfig-devel glibc glibc-devel ksh libaio libaio-devel libXrender libX11 libXau libXi libXtst libgcc libnsl librdmacm libstdc++ libstdc++-devel libxcb libibverbs make smartmontools sysstat Updating Subscription Management repositories. Package bc-1.07.1-5.el8.x86_64 is already installed. Package binutils-2.30-108.el8_5.1.x86_64 is already installed. Package elfutils-libelf-0.185-1.el8.x86_64 is already installed. Package elfutils-libelf-devel-0.185-1.el8.x86_64 is already installed. Package glibc-2.28-164.el8.x86_64 is already installed. Package glibc-devel-2.28-164.el8.x86_64 is already installed. Package ksh-20120801-254.el8.x86_64 is already installed. Package libaio-0.3.112-1.el8.x86_64 is already installed. Package libaio-devel-0.3.112-1.el8.x86_64 is already installed. Package libXrender-0.9.10-7.el8.x86_64 is already installed. Package libX11-1.6.8-5.el8.x86_64 is already installed. Package libXau-1.0.9-3.el8.x86_64 is already installed. Package libXi-1.7.10-1.el8.x86_64 is already installed. Package libXtst-1.2.3-7.el8.x86_64 is already installed. Package libgcc-8.5.0-4.el8_5.x86_64 is already installed. Package libstdc++-8.5.0-4.el8_5.x86_64 is already installed. Package libstdc++-devel-8.5.0-4.el8_5.x86_64 is already installed. Package libxcb-1.13.1-1.el8.x86_64 is already installed. Package libibverbs-35.0-1.el8.x86_64 is already installed. Package make-1:4.2.1-10.el8.x86_64 is already installed. Package smartmontools-1:7.1-1.el8.x86_64 is already installed. Package sysstat-11.7.3-6.el8.x86_64 is already installed. Dependencies resolved. ============================================================================================================ Package Architecture Version Repository Size ============================================================================================================ Installing: fontconfig-devel x86_64 2.13.1-4.el8 rhel-8-for-x86_64-baseos-rpms 151 k libnsl x86_64 2.28-164.el8 rhel-8-for-x86_64-baseos-rpms 103 k librdmacm x86_64 35.0-1.el8 rhel-8-for-x86_64-baseos-rpms 78 k Installing dependencies: bzip2-devel x86_64 1.0.6-26.el8 rhel-8-for-x86_64-baseos-rpms 224 k expat-devel x86_64 2.2.5-4.el8 rhel-8-for-x86_64-baseos-rpms 55 k freetype-devel x86_64 2.9.1-4.el8_3.1 rhel-8-for-x86_64-baseos-rpms 464 k libpng-devel x86_64 2:1.6.34-5.el8 rhel-8-for-x86_64-baseos-rpms 328 k libuuid-devel x86_64 2.32.1-28.el8 rhel-8-for-x86_64-baseos-rpms 97 k Transaction Summary ============================================================================================================ Install 8 Packages Total download size: 1.5 M Installed size: 4.7 M Is this ok [y/N]: y Downloading Packages: (1/8): libpng-devel-1.6.34-5.el8.x86_64.rpm 1.3 MB/s | 328 kB 00:00 (2/8): bzip2-devel-1.0.6-26.el8.x86_64.rpm 874 kB/s | 224 kB 00:00 (3/8): expat-devel-2.2.5-4.el8.x86_64.rpm 187 kB/s | 55 kB 00:00 (4/8): freetype-devel-2.9.1-4.el8_3.1.x86_64.rpm 2.3 MB/s | 464 kB 00:00 (5/8): libuuid-devel-2.32.1-28.el8.x86_64.rpm 457 kB/s | 97 kB 00:00 (6/8): librdmacm-35.0-1.el8.x86_64.rpm 406 kB/s | 78 kB 00:00 (7/8): libnsl-2.28-164.el8.x86_64.rpm 199 kB/s | 103 kB 00:00 (8/8): fontconfig-devel-2.13.1-4.el8.x86_64.rpm 438 kB/s | 151 kB 00:00 ------------------------------------------------------------------------------------------------------------ Total 1.7 MB/s | 1.5 MB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : libuuid-devel-2.32.1-28.el8.x86_64 1/8 Installing : expat-devel-2.2.5-4.el8.x86_64 2/8 Installing : libpng-devel-2:1.6.34-5.el8.x86_64 3/8 Installing : bzip2-devel-1.0.6-26.el8.x86_64 4/8 Installing : freetype-devel-2.9.1-4.el8_3.1.x86_64 5/8 Installing : fontconfig-devel-2.13.1-4.el8.x86_64 6/8 Installing : librdmacm-35.0-1.el8.x86_64 7/8 Running scriptlet: librdmacm-35.0-1.el8.x86_64 7/8 Installing : libnsl-2.28-164.el8.x86_64 8/8 Running scriptlet: libnsl-2.28-164.el8.x86_64 8/8 Verifying : bzip2-devel-1.0.6-26.el8.x86_64 1/8 Verifying : libpng-devel-2:1.6.34-5.el8.x86_64 2/8 Verifying : expat-devel-2.2.5-4.el8.x86_64 3/8 Verifying : freetype-devel-2.9.1-4.el8_3.1.x86_64 4/8 Verifying : libnsl-2.28-164.el8.x86_64 5/8 Verifying : libuuid-devel-2.32.1-28.el8.x86_64 6/8 Verifying : librdmacm-35.0-1.el8.x86_64 7/8 Verifying : fontconfig-devel-2.13.1-4.el8.x86_64 8/8 Installed products updated. Installed: bzip2-devel-1.0.6-26.el8.x86_64 expat-devel-2.2.5-4.el8.x86_64 fontconfig-devel-2.13.1-4.el8.x86_64 freetype-devel-2.9.1-4.el8_3.1.x86_64 libnsl-2.28-164.el8.x86_64 libpng-devel-2:1.6.34-5.el8.x86_64 librdmacm-35.0-1.el8.x86_64 libuuid-devel-2.32.1-28.el8.x86_64 Complete! |
オプションですがついでにインストールしました。
ipmiutil (Intelligent Platform Management Interface用)
libnsl2 (Oracle Database Client専用)
libnsl2-devel (Oracle Database Client専用)
net-tools (Oracle RACおよびOracle Clusterware用)
nfs-utils (Oracle ACFS用)
libnsl2-develはcodeready-builder-for-rhel-8-x86_64-rpms repoにあるので有効にします。
1 2 |
[root@rhel8 ~]# subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms Repository 'codeready-builder-for-rhel-8-x86_64-rpms' is enabled for this system. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
[root@rhel8 ~]# dnf install libnsl2 libnsl2-devel net-tools nfs-utils Updating Subscription Management repositories. Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) 6.8 MB/s | 6.3 MB 00:00 Package libnsl2-1.2.0-2.20180605git4a062cf.el8.x86_64 is already installed. Package net-tools-2.0-0.52.20160912git.el8.x86_64 is already installed. Package nfs-utils-1:2.3.3-46.el8.x86_64 is already installed. Dependencies resolved. ============================================================================================================ Package Arch Version Repository Size ============================================================================================================ Installing: libnsl2-devel x86_64 1.2.0-2.20180605git4a062cf.el8 codeready-builder-for-rhel-8-x86_64-rpms 35 k Installing dependencies: libtirpc-devel x86_64 1.1.4-5.el8 rhel-8-for-x86_64-baseos-rpms 127 k Transaction Summary ============================================================================================================ Install 2 Packages Total download size: 163 k Installed size: 357 k Is this ok [y/N]: y Downloading Packages: (1/2): libtirpc-devel-1.1.4-5.el8.x86_64.rpm 393 kB/s | 127 kB 00:00 (2/2): libnsl2-devel-1.2.0-2.20180605git4a062cf.el8.x86_64.rpm 28 kB/s | 35 kB 00:01 ------------------------------------------------------------------------------------------------------------ Total 127 kB/s | 163 kB 00:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : libtirpc-devel-1.1.4-5.el8.x86_64 1/2 Running scriptlet: libtirpc-devel-1.1.4-5.el8.x86_64 1/2 Installing : libnsl2-devel-1.2.0-2.20180605git4a062cf.el8.x86_64 2/2 Running scriptlet: libnsl2-devel-1.2.0-2.20180605git4a062cf.el8.x86_64 2/2 Verifying : libnsl2-devel-1.2.0-2.20180605git4a062cf.el8.x86_64 1/2 Verifying : libtirpc-devel-1.1.4-5.el8.x86_64 2/2 Installed products updated. Installed: libnsl2-devel-1.2.0-2.20180605git4a062cf.el8.x86_64 libtirpc-devel-1.1.4-5.el8.x86_64 Complete! |
ipmiutilはrepositoryが見つけられなかったのでRPM Packageをインストールしました。
IPMI Management Utilities
http://ipmiutil.sourceforge.net/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
[root@rhel8 ~]# dnf install http://ipmiutil.sourceforge.net/FILES/ipmiutil-3.1.8-1_el8.x86_64.rpm Updating Subscription Management repositories. ipmiutil-3.1.8-1_el8.x86_64.rpm 478 kB/s | 608 kB 00:01 Dependencies resolved. ============================================================================================================ Package Architecture Version Repository Size ============================================================================================================ Installing: ipmiutil x86_64 3.1.8-1.el8 @commandline 608 k Transaction Summary ============================================================================================================ Install 1 Package Total size: 608 k Installed size: 1.8 M Is this ok [y/N]: y Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: ipmiutil-3.1.8-1.el8.x86_64 1/1 Installing : ipmiutil-3.1.8-1.el8.x86_64 1/1 Running scriptlet: ipmiutil-3.1.8-1.el8.x86_64 1/1 Verifying : ipmiutil-3.1.8-1.el8.x86_64 1/1 Installed products updated. Installed: ipmiutil-3.1.8-1.el8.x86_64 Complete! |
runInstallerを実行すると文字化けするのでsazanami fontをインストールします。
英語でインストールする場合は不要でLANG=Cでそのままインストールできます。
sazanami fontはRHEL8では提供されていないようなのでOracle Linux 7のepel repositoryからインストールしました。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
[root@rhel8 ~]# dnf install https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-epel-release-el7-1.0-4.el7.x86_64.rpm Updating Subscription Management repositories. oracle-epel-release-el7-1.0-4.el7.x86_64.rpm 320 kB/s | 14 kB 00:00 Dependencies resolved. =============================================================================================== Package Architecture Version Repository Size =============================================================================================== Installing: oracle-epel-release-el7 x86_64 1.0-4.el7 @commandline 14 k Upgrading: oraclelinux-release-el7 x86_64 1.0-17.el7 ol7_latest 22 k Transaction Summary =============================================================================================== Install 1 Package Upgrade 1 Package Total size: 37 k Total download size: 22 k Is this ok [y/N]: y Downloading Packages: oraclelinux-release-el7-1.0-17.el7.x86_64.rpm 507 kB/s | 22 kB 00:00 ----------------------------------------------------------------------------------------------- Total 490 kB/s | 22 kB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: oraclelinux-release-el7-1.0-17.el7.x86_64 1/3 Upgrading : oraclelinux-release-el7-1.0-17.el7.x86_64 1/3 Running scriptlet: oraclelinux-release-el7-1.0-17.el7.x86_64 1/3 Running scriptlet: oracle-epel-release-el7-1.0-4.el7.x86_64 2/3 Installing : oracle-epel-release-el7-1.0-4.el7.x86_64 2/3 Running scriptlet: oracle-epel-release-el7-1.0-4.el7.x86_64 2/3 Cleanup : oraclelinux-release-el7-1.0-8.el7.x86_64 3/3 Running scriptlet: oraclelinux-release-el7-1.0-17.el7.x86_64 3/3 Running scriptlet: oracle-epel-release-el7-1.0-4.el7.x86_64 3/3 Verifying : oracle-epel-release-el7-1.0-4.el7.x86_64 1/3 Verifying : oraclelinux-release-el7-1.0-17.el7.x86_64 2/3 Verifying : oraclelinux-release-el7-1.0-8.el7.x86_64 3/3 Installed products updated. Upgraded: oraclelinux-release-el7-1.0-17.el7.x86_64 Installed: oracle-epel-release-el7-1.0-4.el7.x86_64 Complete! |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
[root@rhel8 ~]# dnf search sazanami Updating Subscription Management repositories. Oracle Linux 8 EPEL Packages for Development (x86_64) 24 MB/s | 41 MB 00:01 Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linu 26 MB/s | 30 MB 00:01 ============================== Name & Summary Matched: sazanami =============================== sazanami-fonts.src : Sazanami Japanese TrueType fonts sazanami-fonts-common.noarch : Common files for Sazanami Japanese TrueType fonts sazanami-gothic-fonts.noarch : Sazanami Gothic Japanese TrueType font sazanami-mincho-fonts.noarch : Sazanami Mincho Japanese TrueType font [root@rhel8 ~]# dnf install sazanami-* Updating Subscription Management repositories. Last metadata expiration check: 0:00:19 ago on Sun Jan 16 16:42:02 2022. Dependencies resolved. =============================================================================================== Package Arch Version Repository Size =============================================================================================== Installing: sazanami-fonts-common noarch 0.20040629-22.el7 ol7_developer_EPEL 24 k sazanami-gothic-fonts noarch 0.20040629-22.el7 ol7_developer_EPEL 2.9 M sazanami-mincho-fonts noarch 0.20040629-22.el7 ol7_developer_EPEL 3.9 M Transaction Summary =============================================================================================== Install 3 Packages Total download size: 6.9 M Installed size: 17 M Is this ok [y/N]: y Downloading Packages: (1/3): sazanami-fonts-common-0.20040629-22.el7.noarch.rpm 131 kB/s | 24 kB 00:00 (2/3): sazanami-gothic-fonts-0.20040629-22.el7.noarch.rpm 7.2 MB/s | 2.9 MB 00:00 (3/3): sazanami-mincho-fonts-0.20040629-22.el7.noarch.rpm 9.1 MB/s | 3.9 MB 00:00 ----------------------------------------------------------------------------------------------- Total 16 MB/s | 6.9 MB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : sazanami-fonts-common-0.20040629-22.el7.noarch 1/3 Installing : sazanami-gothic-fonts-0.20040629-22.el7.noarch 2/3 Running scriptlet: sazanami-gothic-fonts-0.20040629-22.el7.noarch 2/3 Installing : sazanami-mincho-fonts-0.20040629-22.el7.noarch 3/3 Running scriptlet: sazanami-mincho-fonts-0.20040629-22.el7.noarch 3/3 Verifying : sazanami-fonts-common-0.20040629-22.el7.noarch 1/3 Verifying : sazanami-gothic-fonts-0.20040629-22.el7.noarch 2/3 Verifying : sazanami-mincho-fonts-0.20040629-22.el7.noarch 3/3 Installed products updated. Installed: sazanami-fonts-common-0.20040629-22.el7.noarch sazanami-gothic-fonts-0.20040629-22.el7.noarch sazanami-mincho-fonts-0.20040629-22.el7.noarch Complete! |
インストール先のディレクトリを事前に作成しておきます。
1 2 |
[root@rhel8 ~]# mkdir -p /opt/oracle [root@rhel8 ~]# chown -R oracle:oinstall /opt/oracle |
oracleユーザのパスワードを設定してログインします。
1 2 3 4 5 6 7 8 9 10 11 12 |
[oracle@rhel8 ~]$ mkdir Oracle_Client [oracle@rhel8 ~]$ cd Oracle_Client/ [oracle@rhel8 Oracle_Client]$ unzip ../LINUX.X64_193000_client.zip Archive: ../LINUX.X64_193000_client.zip creating: client/ inflating: client/runInstaller creating: client/install/ inflating: client/install/runInstaller.sh inflating: client/install/.oui (snip) inflating: client/stage/globalvariables/variable.properties inflating: client/welcome.html |
oracleユーザで環境変数CV_ASSUME_DISTIDを設定します。
1 |
export CV_ASSUME_DISTID=OL7 |
これが無いとサポートOSチェックでエラーが発生します。この環境変数でOSはOracle Linux 7と認識させるようです(かな?)。
1 |
[oracle@rhel8 client]$ ./runInstaller |
Oracleベース: /opt/oracle/app
Oracleホーム: /opt/oracle/app/product/19.0.0/client_1
でインストールしました。
/opt/oracle/oraInventoryに指定しました。
スワップ・サイズで警告が発生しました。メモリ16GBなのでスワップサイズ16GB必要だけど、8GBしか無いよと。取り合えず無視で継続です。
インストールの途中でスクリプトの実行を要求されます。
rootでスクリプトを実行します。
1 2 3 4 5 6 7 |
[root@rhel8 ~]# /opt/oracle/oraInventory/orainstRoot.sh 権限を変更中 /opt/oracle/oraInventory. グループの読取り/書込み権限を追加中。 全ユーザーの読取り/書込み/実行権限を削除中。 グループ名の変更 /opt/oracle/oraInventory 宛先 oinstall. スクリプトの実行が完了しました。 |
スクリプトを実行すると[OK]でインストール完了です。