●パッケージインストール
[root@rhel71ap ~]# mount /dev/cdrom /media
mount: /dev/sr0 is write-protected, mounting read-only
[root@rhel71ap ~]# vi /etc/yum.repos.d/dvd.repo
[root@rhel71ap ~]# cat /etc/yum.repos.d/dvd.repo
[dvd]
name=dvd
baseurl=file:///media/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@rhel71ap ~]#
systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld
systemctl list-unit-files | grep fire
vi /etc/selinux/config
システム要件は下記参照
yum -y install binutils
yum -y install compat-libcap1
yum -y install gcc
yum -y install gcc-c++
yum -y install glibc
yum -y install glibc.i686
yum -y install glibc-devel
yum -y install libaio
yum -y install libaio-devel
yum -y install libgcc
yum -y install libgcc.i686
yum -y install libstdc++
yum -y install libstdc++.i686
yum -y install libstdc++-devel
yum -y install dejavu-serif-fonts
yum -y install ksh
yum -y install make
yum -y install sysstat
yum -y install numactl
yum -y install numactl-devel
yum -y install motif
yum -y install motif-devel
yum -y install redhat-lsb
yum -y install redhat-lsb-core
yum -y install openssl
yum -y install compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm
yum -y install compat-libstdc++-33-3.2.3-72.el7.i686.rpm
●JDKとzip
yum -y install jdk-8u251-linux-x64.rpm
yum -y install unzip
yum -y install zip
●管理者作成
useradd weblogic
echo weblogic | passwd weblogic --stdin
●CUIでインストール
cd /tmp
unzip /root/fmw_12.2.1.4.0_wls_Disk1_1of1.zip
JAVA_HOME=/usr/java/jdk1.8.0_251-amd64;export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH; export PATH
java -version
[root@rhel71ap tmp]# cat createCentralInventory.sh
#!/bin/sh
# Create Central Inventory
output=`id`
UserID=`echo $output | cut -f1 -d ' ' | cut -f2 -d '=' | cut -f1 -d '('`
if [ "$UserID" != "0" ]; then
echo "This script must be executed as root"
exit 1
fi
INV=/weblogic/oraInventory
GRP=weblogic
INVPTRDIR=/etc
echo "Setting the inventory to $INV"
echo "Setting the group name to $GRP"
if [ -d $INVPTRDIR ]; then
chmod 755 $INVPTRDIR;
else
mkdir -p $INVPTRDIR;
fi
INVPTR=${INVPTRDIR}/oraInst.loc
INVLOC=$INV
PTRDIR="`dirname $INVPTR`";
# Create the software inventory location pointer file
if [ ! -d "$PTRDIR" ]; then
mkdir -p $PTRDIR;
fi
echo "Creating the Oracle inventory pointer file ($INVPTR)";
echo inventory_loc=$INVLOC > $INVPTR
echo inst_group=$GRP >> $INVPTR
chmod 644 $INVPTR
# Create the inventory directory if it doesn't exist
if [ ! -d "$INVLOC" ];then
echo "Creating the Oracle inventory directory ($INVLOC)";
mkdir -p $INVLOC;
fi
echo "Changing permissions of $INV to 770.";
chmod -R g+rw,o-rwx $INV;
if [ $? != 0 ]; then
echo "OUI-35086:WARNING: chmod of $INV to 770 failed!";
fi
echo "Changing groupname of $INV to $GRP.";
chgrp -R $GRP $INV;
if [ $? != 0 ]; then
echo "OUI-10057:WARNING: chgrp of $INV to $GRP failed!";
fi
echo "The execution of the script is complete"
※手動でやるなら
mkdir /data/package/weblogic/oraInventory
chmod 770 /data/package/weblogic/oraInventory
chgrp weblogic /data/package/weblogic/oraInventory
echo 'inventory_loc=/data/package/weblogic/oraInventory' >/etc/oraInst.loc
echo 'inst_group=weblogic' >>/etc/oraInst.loc
[root@rhel71ap tmp]# cat responseFile.txt
[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0
[GENERIC]
#Set this to true if you wish to skip software updates
DECLINE_AUTO_UPDATES=true
#My Oracle Support User Name
MOS_USERNAME=
#My Oracle Support Password
MOS_PASSWORD=<SECURE VALUE>
#If the Software updates are already downloaded and available on your local system, then specify the path to the directory where these patches are available and set SPECIFY_DOWNLOAD_LOCATION to true
AUTO_UPDATES_LOCATION=
#Proxy Server Name to connect to My Oracle Support
SOFTWARE_UPDATES_PROXY_SERVER=
#Proxy Server Port
SOFTWARE_UPDATES_PROXY_PORT=
#Proxy Server Username
SOFTWARE_UPDATES_PROXY_USER=
#Proxy Server Password
SOFTWARE_UPDATES_PROXY_PASSWORD=<SECURE VALUE>
#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=/weblogic/Oracle/Middleware/Oracle_Home
#The federated oracle home locations. This should be an existing Oracle Home. Multiple values can be provided as comma seperated values
FEDERATED_ORACLE_HOMES=
#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=WebLogic Server
[root@rhel71ap tmp]#
[root@rhel71db tmp]# /tmp/createCentralInventory.sh
Setting the inventory to /weblogic/oraInventory
Setting the group name to weblogic
Creating the Oracle inventory pointer file (/etc/oraInst.loc)
Changing permissions of /weblogic/oraInventory to 770.
Changing groupname of /weblogic/oraInventory to weblogic.
The execution of the script is complete
[weblogic@rhel71db ~]$ java -jar /tmp/fmw_12.2.1.4.0_wls.jar -silent -responseFile /home/weblogic/responseFile.txt
ランチャのログ・ファイルは/tmp/OraInstall2020-07-29_01-13-53AM/launcher2020-07-29_01-13-53AM.logです。
インストーラを抽出しています . . . . . . . . . 完了
CPU速度が300MHzを超えていることを確認してください. 実際3591.694MHz 問題なし
スワップ領域の確認中: 512MBを超えている必要があります. 実際8063MB 問題なし
このプラットフォームに64-bit JVMが必要かどうかを確認中. 実際 64 問題なし(64-bitは不要)
一時領域の確認中: 300MBを超えている必要があります. 実際188063MB 問題なし
/tmp/OraInstall2020-07-29_01-13-53AMからOracle Universal Installerの起動を準備中
ログ: /tmp/OraInstall2020-07-29_01-13-53AM/install2020-07-29_01-13-53AM.log
Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
レスポンス・ファイルの読取り中..
ソフトウェア更新をスキップ中
チェックの開始中: CertifiedVersions
予期した結果: oracle-6, oracle-7, redhat-7, redhat-6, SuSE-11, SuSE-12, SuSE-15の1つ
実際の結果: redhat-7.1
チェックが完了しました。このチェックの全体的な結果: 問題なし
CertifiedVersionsチェック: 成功しました。
チェックの開始中: CheckJDKVersion
予期した結果: 1.8.0_191
実際の結果: 1.8.0_251
チェックが完了しました。このチェックの全体的な結果: 問題なし
CheckJDKVersionチェック: 成功しました。
このセッションでは検証が有効です。
データの検証中
ファイルをコピー中
完了率: 10
完了率: 20
完了率: 30
完了率: 40
完了率: 50
完了率: 60
完了率: 70
完了率: 80
完了率: 90
完了率: 100
Oracle Fusion Middleware 12c WebLogic Server and Coherence 12.2.1.4.0のインストール が正常に完了しました。
ログが/weblogic/oraInventory/logsに正常にコピーされました。
[weblogic@rhel71db ~]$
GUIで
/usr/java/jdk-11.0.7/bin/java -jar fmw_12.2.1.4.0_wls.jar
→19cのインストーラが表示されたけど、インストール後は12cとなっていた。