1, Preparation before installation
1.1 create RAID5 disk array
To view the number of hard disk devices, use the ll / dev/sd * command
[root@TradeProbe ~]# ll /dev/sd* brw-rw----. 1 root disk 8, 0 8 May 15:36 /dev/sda brw-rw----. 1 root disk 8, 1 8 May 15:36 /dev/sda1 brw-rw----. 1 root disk 8, 2 8 May 15:36 /dev/sda2 brw-rw----. 1 root disk 8, 16 8 May 15:36 /dev/sdb brw-rw----. 1 root disk 8, 32 8 May 15:36 /dev/sdc brw-rw----. 1 root disk 8, 48 8 May 15:36 /dev/sdd brw-rw----. 1 root disk 8, 64 8 May 15:36 /dev/sde [root@TradeProbe ~]#
Create a disk array using the mdadm command
[root@TradeProbe ~]# mdadm -Cv /dev/md0 -n 4 -l 5 /dev/sd[b-e] mdadm: layout defaults to left-symmetric mdadm: layout defaults to left-symmetric mdadm: chunk size defaults to 512K mdadm: size set to 41909248K mdadm: Defaulting to version 1.2 metadata mdadm: array /dev/md0 started. [root@TradeProbe ~]#
Use the mdadm -Q and mdadm -D commands to view disk information
[root@TradeProbe ~]# mdadm -Q /dev/md0 /dev/md0: 119.90GiB raid5 4 devices, 1 spare. Use mdadm --detail for more detail. [root@TradeProbe ~]# mdadm -D /dev/md0 /dev/md0: Version : 1.2 Creation Time : Sun Aug 15 15:43:01 2021 Raid Level : raid5 Array Size : 125727744 (119.90 GiB 128.75 GB) Used Dev Size : 41909248 (39.97 GiB 42.92 GB) Raid Devices : 4 Total Devices : 4 Persistence : Superblock is persistent Update Time : Sun Aug 15 15:46:32 2021 State : clean Active Devices : 4 Working Devices : 4 Failed Devices : 0 Spare Devices : 0 Layout : left-symmetric Chunk Size : 512K Consistency Policy : resync Name : TradeProbe:0 (local to host TradeProbe) UUID : 18ee9ecf:818459a7:f395d332:d354ea38 Events : 18 Number Major Minor RaidDevice State 0 8 16 0 active sync /dev/sdb 1 8 32 1 active sync /dev/sdc 2 8 48 2 active sync /dev/sdd 4 8 64 3 active sync /dev/sde [root@TradeProbe ~]#
Format disk array
[root@TradeProbe ~]# mkfs.ext4 /dev/md0 mke2fs 1.44.3 (10-July-2018) Create 31431936 blocks (4 blocks each) k)And 7864320 inode File system for file system UUID: d68906d4-9ba3-4f96-9213-0a6c4ddb263f Backups of superblocks are stored in the following blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872 Assigning group table: done Writing inode Table: completed Create log (131072 blocks) complete Write superblock and file system account statistics: completed [root@TradeProbe ~]#
Create the u01 directory under the "/" directory, and mount md0 to / u01 to keep it mounted automatically after startup.
[root@TradeProbe ~]# mkdir /u01 [root@TradeProbe ~]# mount /dev/md0 /u01 [root@TradeProbe ~]# echo "/dev/md0 /u01 ext4 defaults 0 0" >> /etc/fstab [root@TradeProbe ~]#
1.2 configure YUM source warehouse
Create an iso file and mount the local image disk. Keep the boot up and start automatically
[root@TradeProbe ~]# mkdir -p /media/iso [root@TradeProbe ~]# mount /dev/cdrom /media/iso/ mount: /media/iso: WARNING: device write-protected, mounted read-only. [root@TradeProbe ~]# echo "/dev/cdrom /media/iso iso9660 defaults 0 0" >> /etc/fstab [root@TradeProbe ~]#
Configure yum warehouse
[root@TradeProbe ~]# cd /etc/yum.repos.d/ [root@TradeProbe yum.repos.d]# vim rhel8.repo [BaseOS] name=BaseOS baseurl=file:///media/iso/BaseOS enabled=1 gpgcheck=0 [AppStream] name=AppStream baseurl=file:///media/iso/AppStream enabled=1 gpgcheck=0 [root@TradeProbe yum.repos.d]#
Test whether the yum warehouse configuration is successful and install the java software.
[root@TradeProbe yum.repos.d]# cd [root@TradeProbe ~]# dnf install java Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. AppStream 26 MB/s | 5.3 MB 00:00 BaseOS 22 MB/s | 2.2 MB 00:00 Dependency resolution. ================================================================================ software package Schema version Warehouse size ================================================================================ Installing: java-1.8.0-openjdk x86_64 1:1.8.0.201.b09-2.el8 AppStream 278 k Install dependencies: copy-jdk-configs noarch 3.7-1.el8 AppStream 27 k java-1.8.0-openjdk-headless x86_64 1:1.8.0.201.b09-2.el8 AppStream 32 M javapackages-filesystem noarch 5.3.0-1.module+el8+2447+6f56d9a6 AppStream 30 k ttmkfdir x86_64 3.0.9-54.el8 AppStream 62 k tzdata-java noarch 2018i-1.el8 AppStream 188 k xorg-x11-fonts-Type1 noarch 7.5-19.el8 AppStream 522 k lksctp-tools x86_64 1.0.18-3.el8 BaseOS 100 k Enabling module streams: javapackages-runtime 201801 Transaction summary ================================================================================ Install 8 software package Total: 34 M Installation size: 114 M Are you sure?[y/N]: y Download package: Run transaction check Transaction check succeeded. Run transaction test Transaction test succeeded. Run transaction Run script : copy-jdk-configs-3.7-1.el8.noarch 1/1 Run script : java-1.8.0-openjdk-headless-1:1.8.0.201.b09-2.el8.x86_64 1/1 In preparation : 1/1 Installing : lksctp-tools-1.0.18-3.el8.x86_64 1/8 Run script : lksctp-tools-1.0.18-3.el8.x86_64 1/8 Installing : tzdata-java-2018i-1.el8.noarch 2/8 Installing : ttmkfdir-3.0.9-54.el8.x86_64 3/8 Installing : xorg-x11-fonts-Type1-7.5-19.el8.noarch 4/8 Run script : xorg-x11-fonts-Type1-7.5-19.el8.noarch 4/8 Installing : javapackages-filesystem-5.3.0-1.module+el8+2447+6f56d9a6. 5/8 Installing : copy-jdk-configs-3.7-1.el8.noarch 6/8 Installing : java-1.8.0-openjdk-headless-1:1.8.0.201.b09-2.el8.x86_64 7/8 Run script : java-1.8.0-openjdk-headless-1:1.8.0.201.b09-2.el8.x86_64 7/8 Installing : java-1.8.0-openjdk-1:1.8.0.201.b09-2.el8.x86_64 8/8 Run script : java-1.8.0-openjdk-1:1.8.0.201.b09-2.el8.x86_64 8/8 Run script : copy-jdk-configs-3.7-1.el8.noarch 8/8 Run script : java-1.8.0-openjdk-1:1.8.0.201.b09-2.el8.x86_64 8/8 verification : copy-jdk-configs-3.7-1.el8.noarch 1/8 verification : java-1.8.0-openjdk-1:1.8.0.201.b09-2.el8.x86_64 2/8 verification : java-1.8.0-openjdk-headless-1:1.8.0.201.b09-2.el8.x86_64 3/8 verification : javapackages-filesystem-5.3.0-1.module+el8+2447+6f56d9a6. 4/8 verification : ttmkfdir-3.0.9-54.el8.x86_64 5/8 verification : tzdata-java-2018i-1.el8.noarch 6/8 verification : xorg-x11-fonts-Type1-7.5-19.el8.noarch 7/8 verification : lksctp-tools-1.0.18-3.el8.x86_64 8/8 Installed products updated. already installed: java-1.8.0-openjdk-1:1.8.0.201.b09-2.el8.x86_64 copy-jdk-configs-3.7-1.el8.noarch java-1.8.0-openjdk-headless-1:1.8.0.201.b09-2.el8.x86_64 javapackages-filesystem-5.3.0-1.module+el8+2447+6f56d9a6.noarch ttmkfdir-3.0.9-54.el8.x86_64 tzdata-java-2018i-1.el8.noarch xorg-x11-fonts-Type1-7.5-19.el8.noarch lksctp-tools-1.0.18-3.el8.x86_64 complete! [root@TradeProbe ~]#
1.3 install dependent packages related to ORACLE Database
The above figure shows the dependent packages required to install ORACLE database.
Check if the dependent packages are installed
[root@TradeProbe ~]# rpm --query --queryformat "%{NAME}-%{VERSION}.%{RELEASE} (%{ARCH})\n" bc binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat elfutils-libelf elfutils-libelf-devel fontconfig-devel libxcb smartmontools libX11 libXau libXtst libXrender libXrender-devel bc-1.07.1.5.el8 (x86_64) binutils-2.30.49.el8 (x86_64) Package not installed compat-libcap1 Package not installed compat-libstdc++-33 Package not installed gcc Package not installed gcc-c++ glibc-2.28.42.el8 (x86_64) Package not installed glibc-devel Package not installed ksh libaio-0.3.110.12.el8 (x86_64) Package not installed libaio-devel libgcc-8.2.1.3.5.el8 (x86_64) libstdc++-8.2.1.3.5.el8 (x86_64) Package not installed libstdc++-devel Package not installed make Package not installed sysstat elfutils-libelf-0.174.6.el8 (x86_64) Package not installed elfutils-libelf-devel Package not installed fontconfig-devel libxcb-1.13.5.el8 (x86_64) smartmontools-6.6.3.el8 (x86_64) libX11-1.6.7.1.el8 (x86_64) libXau-1.0.8.13.el8 (x86_64) libXtst-1.2.3.7.el8 (x86_64) libXrender-0.9.10.7.el8 (x86_64) Package not installed libXrender-devel [root@TradeProbe ~]#
Use the dnf install command to install dependent packages
[root@TradeProbe ~]# dnf install -y gcc gcc-c++ glibc-devel ksh libaio-devel libstdc++-devel make sysstat elfutils-libelf-devel fontconfig-devel libXrender-devel Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Last metadata expiration check: 0:05:32 Before, it was executed at 15:57:54 on Sunday, August 15, 2021. Dependency resolution. ================================================================================ software package Schema version Warehouse size ================================================================================ Installing: gcc x86_64 8.2.1-3.5.el8 AppStream 23 M gcc-c++ x86_64 8.2.1-3.5.el8 AppStream 12 M ksh x86_64 20120801-252.el8 AppStream 956 k libXrender-devel x86_64 0.9.10-7.el8 AppStream 22 k libstdc++-devel x86_64 8.2.1-3.5.el8 AppStream 2.0 M sysstat x86_64 11.7.3-2.el8 AppStream 426 k elfutils-libelf-devel x86_64 0.174-6.el8 BaseOS 53 k fontconfig-devel x86_64 2.13.1-3.el8 BaseOS 151 k glibc-devel x86_64 2.28-42.el8 BaseOS 1.0 M libaio-devel x86_64 0.3.110-12.el8 BaseOS 18 k make x86_64 1:4.2.1-9.el8 BaseOS 498 k Install dependencies: cpp x86_64 8.2.1-3.5.el8 AppStream 10 M isl x86_64 0.16.1-6.el8 AppStream 841 k libX11-devel x86_64 1.6.7-1.el8 AppStream 977 k libXau-devel x86_64 1.0.8-13.el8 AppStream 20 k libxcb-devel x86_64 1.13-5.el8 AppStream 1.1 M xorg-x11-proto-devel noarch 2018.4-1.el8 AppStream 283 k bzip2-devel x86_64 1.0.6-26.el8 BaseOS 224 k expat-devel x86_64 2.2.5-3.el8 BaseOS 55 k freetype-devel x86_64 2.9.1-4.el8 BaseOS 464 k glibc-headers x86_64 2.28-42.el8 BaseOS 464 k kernel-headers x86_64 4.18.0-80.el8 BaseOS 1.6 M libpng-devel x86_64 2:1.6.34-5.el8 BaseOS 328 k libuuid-devel x86_64 2.32.1-8.el8 BaseOS 94 k libxcrypt-devel x86_64 4.1.1-4.el8 BaseOS 25 k lm_sensors-libs x86_64 3.4.0-17.20180522git70f7e08.el8 BaseOS 58 k zlib-devel x86_64 1.2.11-10.el8 BaseOS 56 k Transaction summary ================================================================================ Install 27 software package Total: 57 M Installation size: 152 M Download package: Run transaction check Transaction check succeeded. Run transaction test Transaction test succeeded. Run transaction In preparation : 1/1 Installing : zlib-devel-1.2.11-10.el8.x86_64 1/27 Installing : xorg-x11-proto-devel-2018.4-1.el8.noarch 2/27 Installing : libXau-devel-1.0.8-13.el8.x86_64 3/27 Installing : libxcb-devel-1.13-5.el8.x86_64 4/27 Installing : libX11-devel-1.6.7-1.el8.x86_64 5/27 Installing : libpng-devel-2:1.6.34-5.el8.x86_64 6/27 Installing : lm_sensors-libs-3.4.0-17.20180522git70f7e08.el8.x86_64 7/27 Run script : lm_sensors-libs-3.4.0-17.20180522git70f7e08.el8.x86_64 7/27 Installing : libuuid-devel-2.32.1-8.el8.x86_64 8/27 Installing : kernel-headers-4.18.0-80.el8.x86_64 9/27 Run script : glibc-headers-2.28-42.el8.x86_64 10/27 Installing : glibc-headers-2.28-42.el8.x86_64 10/27 Installing : libxcrypt-devel-4.1.1-4.el8.x86_64 11/27 Installing : glibc-devel-2.28-42.el8.x86_64 12/27 Run script : glibc-devel-2.28-42.el8.x86_64 12/27 Installing : expat-devel-2.2.5-3.el8.x86_64 13/27 Installing : bzip2-devel-1.0.6-26.el8.x86_64 14/27 Installing : freetype-devel-2.9.1-4.el8.x86_64 15/27 Installing : libstdc++-devel-8.2.1-3.5.el8.x86_64 16/27 Installing : isl-0.16.1-6.el8.x86_64 17/27 Run script : isl-0.16.1-6.el8.x86_64 17/27 Installing : cpp-8.2.1-3.5.el8.x86_64 18/27 Run script : cpp-8.2.1-3.5.el8.x86_64 18/27 Installing : gcc-8.2.1-3.5.el8.x86_64 19/27 Run script : gcc-8.2.1-3.5.el8.x86_64 19/27 Installing : gcc-c++-8.2.1-3.5.el8.x86_64 20/27 Installing : fontconfig-devel-2.13.1-3.el8.x86_64 21/27 Installing : sysstat-11.7.3-2.el8.x86_64 22/27 Run script : sysstat-11.7.3-2.el8.x86_64 22/27 Installing : libXrender-devel-0.9.10-7.el8.x86_64 23/27 Installing : elfutils-libelf-devel-0.174-6.el8.x86_64 24/27 Installing : make-1:4.2.1-9.el8.x86_64 25/27 Run script : make-1:4.2.1-9.el8.x86_64 25/27 Installing : libaio-devel-0.3.110-12.el8.x86_64 26/27 Installing : ksh-20120801-252.el8.x86_64 27/27 Run script : ksh-20120801-252.el8.x86_64 27/27 verification : cpp-8.2.1-3.5.el8.x86_64 1/27 verification : gcc-8.2.1-3.5.el8.x86_64 2/27 verification : gcc-c++-8.2.1-3.5.el8.x86_64 3/27 verification : isl-0.16.1-6.el8.x86_64 4/27 verification : ksh-20120801-252.el8.x86_64 5/27 verification : libX11-devel-1.6.7-1.el8.x86_64 6/27 verification : libXau-devel-1.0.8-13.el8.x86_64 7/27 verification : libXrender-devel-0.9.10-7.el8.x86_64 8/27 verification : libstdc++-devel-8.2.1-3.5.el8.x86_64 9/27 verification : libxcb-devel-1.13-5.el8.x86_64 10/27 verification : sysstat-11.7.3-2.el8.x86_64 11/27 verification : xorg-x11-proto-devel-2018.4-1.el8.noarch 12/27 verification : bzip2-devel-1.0.6-26.el8.x86_64 13/27 verification : elfutils-libelf-devel-0.174-6.el8.x86_64 14/27 verification : expat-devel-2.2.5-3.el8.x86_64 15/27 verification : fontconfig-devel-2.13.1-3.el8.x86_64 16/27 verification : freetype-devel-2.9.1-4.el8.x86_64 17/27 verification : glibc-devel-2.28-42.el8.x86_64 18/27 verification : glibc-headers-2.28-42.el8.x86_64 19/27 verification : kernel-headers-4.18.0-80.el8.x86_64 20/27 verification : libaio-devel-0.3.110-12.el8.x86_64 21/27 verification : libpng-devel-2:1.6.34-5.el8.x86_64 22/27 verification : libuuid-devel-2.32.1-8.el8.x86_64 23/27 verification : libxcrypt-devel-4.1.1-4.el8.x86_64 24/27 verification : lm_sensors-libs-3.4.0-17.20180522git70f7e08.el8.x86_64 25/27 verification : make-1:4.2.1-9.el8.x86_64 26/27 verification : zlib-devel-1.2.11-10.el8.x86_64 27/27 Installed products updated. already installed: gcc-8.2.1-3.5.el8.x86_64 gcc-c++-8.2.1-3.5.el8.x86_64 ksh-20120801-252.el8.x86_64 libXrender-devel-0.9.10-7.el8.x86_64 libstdc++-devel-8.2.1-3.5.el8.x86_64 sysstat-11.7.3-2.el8.x86_64 elfutils-libelf-devel-0.174-6.el8.x86_64 fontconfig-devel-2.13.1-3.el8.x86_64 glibc-devel-2.28-42.el8.x86_64 libaio-devel-0.3.110-12.el8.x86_64 make-1:4.2.1-9.el8.x86_64 cpp-8.2.1-3.5.el8.x86_64 isl-0.16.1-6.el8.x86_64 libX11-devel-1.6.7-1.el8.x86_64 libXau-devel-1.0.8-13.el8.x86_64 libxcb-devel-1.13-5.el8.x86_64 xorg-x11-proto-devel-2018.4-1.el8.noarch bzip2-devel-1.0.6-26.el8.x86_64 expat-devel-2.2.5-3.el8.x86_64 freetype-devel-2.9.1-4.el8.x86_64 glibc-headers-2.28-42.el8.x86_64 kernel-headers-4.18.0-80.el8.x86_64 libpng-devel-2:1.6.34-5.el8.x86_64 libuuid-devel-2.32.1-8.el8.x86_64 libxcrypt-devel-4.1.1-4.el8.x86_64 lm_sensors-libs-3.4.0-17.20180522git70f7e08.el8.x86_64 zlib-devel-1.2.11-10.el8.x86_64 complete! [root@TradeProbe ~]#
compat-libcap1 and compat-libstdc++-33 cannot be installed using the yum warehouse. Download the rpm package from the Internet, upload it to the server / home/milk/soft directory, and use the rpm command to install.
[root@TradeProbe ~]# mkdir -p /home/milk/soft [root@TradeProbe ~]# cd /home/milk/soft/ [root@TradeProbe soft]# rpm -ivh compat-libcap1-1.10-7.el7.x86_64.rpm compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm Warning: compat-libcap1-1.10-7.el7.x86_64.rpm: head V3 RSA/SHA256 Signature, secret key ID f4a80eb5: NOKEY Verifying... ################################# [100%] In preparation... ################################# [100%] Upgrading/install... 1:compat-libstdc++-33-3.2.3-72.el7 ################################# [ 50%] 2:compat-libcap1-1.10-7.el7 ################################# [100%] [root@TradeProbe soft]#
1.4 upload Chinese fonts to redhat server
View installed Chinese Fonts
[root@TradeProbe soft]# fc-list :lang=zh /usr/share/fonts/google-noto-cjk/NotoSansCJK-Bold.ttc: Noto Sans Mono CJK SC,Noto Sans Mono CJK SC Bold:style=Bold,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-DemiLight.ttc: Noto Sans CJK TC,Noto Sans CJK TC DemiLight:style=DemiLight,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Black.ttc: Noto Serif CJK SC,Noto Serif CJK SC Black:style=Black,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Light.ttc: Noto Sans CJK SC,Noto Sans CJK SC Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Medium.ttc: Noto Sans CJK JP,Noto Sans CJK JP Medium:style=Medium,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Bold.ttc: Noto Sans CJK SC,Noto Sans CJK SC Bold:style=Bold,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Black.ttc: Noto Sans CJK SC,Noto Sans CJK SC Black:style=Black,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Thin.ttc: Noto Sans CJK SC,Noto Sans CJK SC Thin:style=Thin,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-ExtraLight.ttc: Noto Serif CJK JP,Noto Serif CJK JP ExtraLight:style=ExtraLight,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Black.ttc: Noto Serif CJK KR,Noto Serif CJK KR Black:style=Black,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Bold.ttc: Noto Serif CJK TC:style=Bold /usr/share/fonts/google-noto-cjk/NotoSansCJK-Medium.ttc: Noto Sans CJK TC,Noto Sans CJK TC Medium:style=Medium,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Light.ttc: Noto Serif CJK SC,Noto Serif CJK SC Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Bold.ttc: Noto Serif CJK SC:style=Bold /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Bold.ttc: Noto Serif CJK JP:style=Bold /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Bold.ttc: Noto Serif CJK KR:style=Bold /usr/share/fonts/google-noto-cjk/NotoSansCJK-Black.ttc: Noto Sans CJK TC,Noto Sans CJK TC Black:style=Black,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Medium.ttc: Noto Serif CJK KR,Noto Serif CJK KR Medium:style=Medium,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Thin.ttc: Noto Sans CJK TC,Noto Sans CJK TC Thin:style=Thin,Regular /usr/share/fonts/google-droid/DroidSansFallback.ttf: Droid Sans:style=Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-ExtraLight.ttc: Noto Serif CJK SC,Noto Serif CJK SC ExtraLight:style=ExtraLight,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Medium.ttc: Noto Sans CJK KR,Noto Sans CJK KR Medium:style=Medium,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc: Noto Sans Mono CJK JP,Noto Sans Mono CJK JP Regular:style=Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-ExtraLight.ttc: Noto Serif CJK TC,Noto Serif CJK TC ExtraLight:style=ExtraLight,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Medium.ttc: Noto Serif CJK TC,Noto Serif CJK TC Medium:style=Medium,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Light.ttc: Noto Serif CJK KR,Noto Serif CJK KR Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Light.ttc: Noto Serif CJK TC,Noto Serif CJK TC Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc: Noto Sans Mono CJK KR,Noto Sans Mono CJK KR Regular:style=Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Bold.ttc: Noto Sans CJK KR,Noto Sans CJK KR Bold:style=Bold,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-ExtraLight.ttc: Noto Serif CJK KR,Noto Serif CJK KR ExtraLight:style=ExtraLight,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Bold.ttc: Noto Sans CJK JP,Noto Sans CJK JP Bold:style=Bold,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Light.ttc: Noto Sans CJK KR,Noto Sans CJK KR Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-DemiLight.ttc: Noto Sans CJK JP,Noto Sans CJK JP DemiLight:style=DemiLight,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Black.ttc: Noto Serif CJK TC,Noto Serif CJK TC Black:style=Black,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Light.ttc: Noto Sans CJK TC,Noto Sans CJK TC Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Medium.ttc: Noto Serif CJK JP,Noto Serif CJK JP Medium:style=Medium,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc: Noto Sans CJK JP,Noto Sans CJK JP Regular:style=Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Black.ttc: Noto Sans CJK KR,Noto Sans CJK KR Black:style=Black,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Bold.ttc: Noto Sans Mono CJK KR,Noto Sans Mono CJK KR Bold:style=Bold,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc: Noto Sans CJK KR,Noto Sans CJK KR Regular:style=Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Bold.ttc: Noto Sans Mono CJK JP,Noto Sans Mono CJK JP Bold:style=Bold,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc: Noto Sans Mono CJK TC,Noto Sans Mono CJK TC Regular:style=Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Medium.ttc: Noto Serif CJK SC,Noto Serif CJK SC Medium:style=Medium,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Bold.ttc: Noto Sans Mono CJK TC,Noto Sans Mono CJK TC Bold:style=Bold,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-SemiBold.ttc: Noto Serif CJK KR,Noto Serif CJK KR SemiBold:style=SemiBold,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc: Noto Sans Mono CJK SC,Noto Sans Mono CJK SC Regular:style=Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Black.ttc: Noto Sans CJK JP,Noto Sans CJK JP Black:style=Black,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-SemiBold.ttc: Noto Serif CJK JP,Noto Serif CJK JP SemiBold:style=SemiBold,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Light.ttc: Noto Serif CJK JP,Noto Serif CJK JP Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Bold.ttc: Noto Sans CJK TC,Noto Sans CJK TC Bold:style=Bold,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Thin.ttc: Noto Sans CJK JP,Noto Sans CJK JP Thin:style=Thin,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Medium.ttc: Noto Sans CJK SC,Noto Sans CJK SC Medium:style=Medium,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc: Noto Sans CJK SC,Noto Sans CJK SC Regular:style=Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Thin.ttc: Noto Sans CJK KR,Noto Sans CJK KR Thin:style=Thin,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-SemiBold.ttc: Noto Serif CJK TC,Noto Serif CJK TC SemiBold:style=SemiBold,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Light.ttc: Noto Sans CJK JP,Noto Sans CJK JP Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Black.ttc: Noto Serif CJK JP,Noto Serif CJK JP Black:style=Black,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc: Noto Sans CJK TC,Noto Sans CJK TC Regular:style=Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-DemiLight.ttc: Noto Sans CJK KR,Noto Sans CJK KR DemiLight:style=DemiLight,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-SemiBold.ttc: Noto Serif CJK SC,Noto Serif CJK SC SemiBold:style=SemiBold,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Regular.ttc: Noto Serif CJK TC:style=Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Regular.ttc: Noto Serif CJK SC:style=Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-DemiLight.ttc: Noto Sans CJK SC,Noto Sans CJK SC DemiLight:style=DemiLight,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Regular.ttc: Noto Serif CJK JP:style=Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Regular.ttc: Noto Serif CJK KR:style=Regular [root@TradeProbe soft]#
No Chinese fonts were found in the installed fonts
Copy the font from the "C:\Windows\Fonts" directory in the Windows system to any local directory and upload it to the "/ root" directory of the server
Copy font to specified directory
[root@TradeProbe ~]# ls Public video document music anaconda-ks.cfg msyhbd.ttc msyh.ttc Template picture download desktop initial-setup-ks.cfg msyhl.ttc simsunb.ttf [root@TradeProbe ~]# cp msyhbd.ttc msyhl.ttc msyh.ttc simsunb.ttf /usr/share/fonts/ [root@TradeProbe ~]#
install font
[root@TradeProbe ~]# mkfontscale [root@TradeProbe ~]# mkfontdir [root@TradeProbe ~]# fc-cache [root@TradeProbe ~]#
Verify with the FC list: lang = zh command
[root@TradeProbe ~]# fc-list :lang=zh /usr/share/fonts/google-noto-cjk/NotoSansCJK-Bold.ttc: Noto Sans Mono CJK SC,Noto Sans Mono CJK SC Bold:style=Bold,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-DemiLight.ttc: Noto Sans CJK TC,Noto Sans CJK TC DemiLight:style=DemiLight,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Black.ttc: Noto Serif CJK SC,Noto Serif CJK SC Black:style=Black,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Light.ttc: Noto Sans CJK SC,Noto Sans CJK SC Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Medium.ttc: Noto Sans CJK JP,Noto Sans CJK JP Medium:style=Medium,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Bold.ttc: Noto Sans CJK SC,Noto Sans CJK SC Bold:style=Bold,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Black.ttc: Noto Sans CJK SC,Noto Sans CJK SC Black:style=Black,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Thin.ttc: Noto Sans CJK SC,Noto Sans CJK SC Thin:style=Thin,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-ExtraLight.ttc: Noto Serif CJK JP,Noto Serif CJK JP ExtraLight:style=ExtraLight,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Black.ttc: Noto Serif CJK KR,Noto Serif CJK KR Black:style=Black,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Bold.ttc: Noto Serif CJK TC:style=Bold /usr/share/fonts/google-noto-cjk/NotoSansCJK-Medium.ttc: Noto Sans CJK TC,Noto Sans CJK TC Medium:style=Medium,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Light.ttc: Noto Serif CJK SC,Noto Serif CJK SC Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Bold.ttc: Noto Serif CJK SC:style=Bold /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Bold.ttc: Noto Serif CJK JP:style=Bold /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Bold.ttc: Noto Serif CJK KR:style=Bold /usr/share/fonts/google-noto-cjk/NotoSansCJK-Black.ttc: Noto Sans CJK TC,Noto Sans CJK TC Black:style=Black,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Medium.ttc: Noto Serif CJK KR,Noto Serif CJK KR Medium:style=Medium,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Thin.ttc: Noto Sans CJK TC,Noto Sans CJK TC Thin:style=Thin,Regular /usr/share/fonts/google-droid/DroidSansFallback.ttf: Droid Sans:style=Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-ExtraLight.ttc: Noto Serif CJK SC,Noto Serif CJK SC ExtraLight:style=ExtraLight,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Medium.ttc: Noto Sans CJK KR,Noto Sans CJK KR Medium:style=Medium,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc: Noto Sans Mono CJK JP,Noto Sans Mono CJK JP Regular:style=Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-ExtraLight.ttc: Noto Serif CJK TC,Noto Serif CJK TC ExtraLight:style=ExtraLight,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Medium.ttc: Noto Serif CJK TC,Noto Serif CJK TC Medium:style=Medium,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Light.ttc: Noto Serif CJK KR,Noto Serif CJK KR Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Light.ttc: Noto Serif CJK TC,Noto Serif CJK TC Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc: Noto Sans Mono CJK KR,Noto Sans Mono CJK KR Regular:style=Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Bold.ttc: Noto Sans CJK KR,Noto Sans CJK KR Bold:style=Bold,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-ExtraLight.ttc: Noto Serif CJK KR,Noto Serif CJK KR ExtraLight:style=ExtraLight,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Bold.ttc: Noto Sans CJK JP,Noto Sans CJK JP Bold:style=Bold,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Light.ttc: Noto Sans CJK KR,Noto Sans CJK KR Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-DemiLight.ttc: Noto Sans CJK JP,Noto Sans CJK JP DemiLight:style=DemiLight,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Black.ttc: Noto Serif CJK TC,Noto Serif CJK TC Black:style=Black,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Light.ttc: Noto Sans CJK TC,Noto Sans CJK TC Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Medium.ttc: Noto Serif CJK JP,Noto Serif CJK JP Medium:style=Medium,Regular /usr/share/fonts/msyh.ttc: Microsoft YaHei UI:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta /usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc: Noto Sans CJK JP,Noto Sans CJK JP Regular:style=Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Black.ttc: Noto Sans CJK KR,Noto Sans CJK KR Black:style=Black,Regular /usr/share/fonts/msyhl.ttc: Microsoft YaHei ,Microsoft YaHei,Microsoft YaHei Light,Microsoft YaHei Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Bold.ttc: Noto Sans Mono CJK KR,Noto Sans Mono CJK KR Bold:style=Bold,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc: Noto Sans CJK KR,Noto Sans CJK KR Regular:style=Regular /usr/share/fonts/msyh.ttc: Microsoft YaHei ,Microsoft YaHei:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta /usr/share/fonts/google-noto-cjk/NotoSansCJK-Bold.ttc: Noto Sans Mono CJK JP,Noto Sans Mono CJK JP Bold:style=Bold,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc: Noto Sans Mono CJK TC,Noto Sans Mono CJK TC Regular:style=Regular /usr/share/fonts/msyhbd.ttc: Microsoft YaHei UI:style=Bold,Negreta,tučné,fed,Fett,Έντονα,Negrita,Lihavoitu,Gras,Félkövér,Grassetto,Vet,Halvfet,Pogrubiony,Negrito,Полужирный,Fet,Kalın,Krepko,Lodia /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Medium.ttc: Noto Serif CJK SC,Noto Serif CJK SC Medium:style=Medium,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Bold.ttc: Noto Sans Mono CJK TC,Noto Sans Mono CJK TC Bold:style=Bold,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-SemiBold.ttc: Noto Serif CJK KR,Noto Serif CJK KR SemiBold:style=SemiBold,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc: Noto Sans Mono CJK SC,Noto Sans Mono CJK SC Regular:style=Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Black.ttc: Noto Sans CJK JP,Noto Sans CJK JP Black:style=Black,Regular /usr/share/fonts/msyhbd.ttc: Microsoft YaHei ,Microsoft YaHei:style=Bold,Negreta,tučné,fed,Fett,Έντονα,Negrita,Lihavoitu,Gras,Félkövér,Grassetto,Vet,Halvfet,Pogrubiony,Negrito,Полужирный,Fet,Kalın,Krepko,Lodia /usr/share/fonts/msyhl.ttc: Microsoft YaHei UI,Microsoft YaHei UI Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-SemiBold.ttc: Noto Serif CJK JP,Noto Serif CJK JP SemiBold:style=SemiBold,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Light.ttc: Noto Serif CJK JP,Noto Serif CJK JP Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Bold.ttc: Noto Sans CJK TC,Noto Sans CJK TC Bold:style=Bold,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Thin.ttc: Noto Sans CJK JP,Noto Sans CJK JP Thin:style=Thin,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Medium.ttc: Noto Sans CJK SC,Noto Sans CJK SC Medium:style=Medium,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc: Noto Sans CJK SC,Noto Sans CJK SC Regular:style=Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Thin.ttc: Noto Sans CJK KR,Noto Sans CJK KR Thin:style=Thin,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-SemiBold.ttc: Noto Serif CJK TC,Noto Serif CJK TC SemiBold:style=SemiBold,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Light.ttc: Noto Sans CJK JP,Noto Sans CJK JP Light:style=Light,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Black.ttc: Noto Serif CJK JP,Noto Serif CJK JP Black:style=Black,Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc: Noto Sans CJK TC,Noto Sans CJK TC Regular:style=Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-DemiLight.ttc: Noto Sans CJK KR,Noto Sans CJK KR DemiLight:style=DemiLight,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-SemiBold.ttc: Noto Serif CJK SC,Noto Serif CJK SC SemiBold:style=SemiBold,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Regular.ttc: Noto Serif CJK TC:style=Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Regular.ttc: Noto Serif CJK SC:style=Regular /usr/share/fonts/google-noto-cjk/NotoSansCJK-DemiLight.ttc: Noto Sans CJK SC,Noto Sans CJK SC DemiLight:style=DemiLight,Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Regular.ttc: Noto Serif CJK JP:style=Regular /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Regular.ttc: Noto Serif CJK KR:style=Regular [root@TradeProbe ~]#
1.5 install xclock software package to facilitate oracle graphical installation
Use the dnf install command to install xterm
[root@TradeProbe ~]# dnf install -y xterm Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Last metadata expiration check: 0:22:43 Before, it was executed at 15:57:54 on Sunday, August 15, 2021. Dependency resolution. ================================================================================ software package framework edition Warehouse size ================================================================================ Installing: xterm x86_64 331-1.el8 AppStream 528 k Install dependencies: libXaw x86_64 1.0.13-10.el8 AppStream 194 k xterm-resize x86_64 331-1.el8 AppStream 38 k Install weak dependencies: xorg-x11-fonts-misc noarch 7.5-19.el8 AppStream 5.8 M Transaction summary ================================================================================ Install 4 software package Total: 6.5 M Installation size: 8.8 M Download package: Run transaction check Transaction check succeeded. Run transaction test Transaction test succeeded. Run transaction In preparation : 1/1 Installing : xterm-resize-331-1.el8.x86_64 1/4 Installing : xorg-x11-fonts-misc-7.5-19.el8.noarch 2/4 Run script : xorg-x11-fonts-misc-7.5-19.el8.noarch 2/4 Installing : libXaw-1.0.13-10.el8.x86_64 3/4 Installing : xterm-331-1.el8.x86_64 4/4 Run script : xterm-331-1.el8.x86_64 4/4 verification : libXaw-1.0.13-10.el8.x86_64 1/4 verification : xorg-x11-fonts-misc-7.5-19.el8.noarch 2/4 verification : xterm-331-1.el8.x86_64 3/4 verification : xterm-resize-331-1.el8.x86_64 4/4 Installed products updated. already installed: xterm-331-1.el8.x86_64 xorg-x11-fonts-misc-7.5-19.el8.noarch libXaw-1.0.13-10.el8.x86_64 xterm-resize-331-1.el8.x86_64 complete! [root@TradeProbe ~]#
Use the RPM command to install xorg-x11-xbitmaps-1.1 1-6. el7. noarch. RPM and xorg-x11-apps-7.7-21 el8. x86_ 64.rpm
[root@TradeProbe soft]# rpm -ivh xorg-x11-xbitmaps-1.1.1-13.el8.noarch.rpm xorg-x11-apps-7.7-21.el8.x86_64.rpm Warning: xorg-x11-xbitmaps-1.1.1-13.el8.noarch.rpm: head V3 RSA/SHA256 Signature, secret key ID 8483c65d: NOKEY Verifying... ################################# [100%] In preparation... ################################# [100%] Upgrading/install... 1:xorg-x11-xbitmaps-1.1.1-13.el8 ################################# [ 50%] 2:xorg-x11-apps-7.7-21.el8 ################################# [100%] [root@TradeProbe soft]#
Use the dnf command to install the libnsl package
[root@TradeProbe soft]# dnf install -y libnsl Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Last metadata expiration check: 0:26:30 Before, it was executed at 15:57:54 on Sunday, August 15, 2021. Dependency resolution. ================================================================================ software package framework edition Warehouse size ================================================================================ Installing: libnsl x86_64 2.28-42.el8 BaseOS 87 k Transaction summary ================================================================================ Install 1 package Total: 87 k Installation size: 147 k Download package: Run transaction check Transaction check succeeded. Run transaction test Transaction test succeeded. Run transaction In preparation : 1/1 Installing : libnsl-2.28-42.el8.x86_64 1/1 Run script : libnsl-2.28-42.el8.x86_64 1/1 verification : libnsl-2.28-42.el8.x86_64 1/1 Installed products updated. already installed: libnsl-2.28-42.el8.x86_64 complete! [root@TradeProbe soft]#
2, Create oracle users and groups
2.1 creating ORACLE users and groups
[root@TradeProbe soft]# groupadd oinstall [root@TradeProbe soft]# groupadd dba [root@TradeProbe soft]# groupadd asmdba [root@TradeProbe soft]# groupadd backupdba [root@TradeProbe soft]# groupadd dgdba [root@TradeProbe soft]# groupadd kmdba [root@TradeProbe soft]# groupadd racdba [root@TradeProbe soft]# groupadd oper [root@TradeProbe soft]# [root@TradeProbe soft]# useradd -g oinstall -G dba,asmdba,backupdba,dgdba,kmdba,racdba,oper -m oracle [root@TradeProbe soft]#
2.2 setting ORACLE user password
[root@TradeProbe soft]# passwd oracle Change user oracle Your password. New password: Re enter the new password: passwd: All authentication tokens have been successfully updated. [root@TradeProbe soft]#
3, Profile and disable services
3.1 configure domain name resolution file
[root@TradeProbe soft]# vim /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.14.20 tradeprobe ~
3.2 close selinux
[root@TradeProbe soft]# vim /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. # SELINUX=enforcing SELINUX=disabled # SELINUXTYPE= can take one of these three values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted
3.3 disable firewall
[root@TradeProbe soft]# systemctl stop firewalld.service [root@TradeProbe soft]# systemctl status firewalld.service ● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor p> Active: inactive (dead) since Sun 2021-08-15 16:35:19 CST; 16s ago Docs: man:firewalld(1) Process: 1008 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS > Main PID: 1008 (code=exited, status=0/SUCCESS) 8 May 15:36:07 TradeProbe systemd[1]: Starting firewalld - dynamic firewall da> 8 May 15:36:09 TradeProbe systemd[1]: Started firewalld - dynamic firewall dae> 8 June 15-16:35:19 TradeProbe systemd[1]: Stopping firewalld - dynamic firewall da> 8 June 15-16:35:19 TradeProbe systemd[1]: Stopped firewalld - dynamic firewall dae> lines 1-11/11 (END) [root@TradeProbe soft]#
4, Configure system kernel parameters and user environment variables
4.1 configuring system kernel parameters
[root@TradeProbe soft]# vim /etc/sysctl.conf # sysctl settings are defined through files in # /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/. # # Vendors settings live in /usr/lib/sysctl.d/. # To override a whole file, create a new file with the same in # /etc/sysctl.d/ and put new settings there. To override # only specific settings, add a file with a lexically later # name in /etc/sysctl.d/ and put new settings there. # # For more information, see sysctl.conf(5) and sysctl.d(5). fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 16451328 kernel.shmmax = 33692319744 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 use sysctl -p Make kernel effective [root@TradeProbe soft]# /sbin/sysctl -p fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 16451328 kernel.shmmax = 33692319744 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 [root@TradeProbe soft]#
4.2 configuring user environment variables
[root@TradeProbe soft]# su - oracle [oracle@TradeProbe ~]$ pwd /home/oracle [oracle@TradeProbe ~]$ vim .bash_profile # User specific environment and startup programs ORACLE_SID=tradeprobe;export ORACLE_SID ORACLE_UNQNAME=tradeprobe;export ORACLE_UNQNAME ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/19.2.0/db_1; export ORACLE_HOME NLS_DATE_FORMAT="YYYY:MM:DDHH24:MI:SS"; export NLS_DATE_FORMAT NLS_LANG=american_america.ZHS16GBK; export NLS_LANG TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN ORA_NLS11=$ORACLE_HOME/nls/data; export ORA_NLS11 PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin:$ORA_CRS_HOME/bin PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib export CLASSPATH THREADS_FLAG=native; export THREADS_FLAG export TEMP=/tmp export TMPDIR=/tmp umask 022
4.3 create a working directory and give corresponding permissions
[root@TradeProbe ~]# mkdir -p /u01/app/oracle/product/19.2.0/db_1 [root@TradeProbe ~]# chown -R oracle:oinstall /u01/ [root@TradeProbe ~]# chmod -R 775 /u01/ [root@TradeProbe ~]#
5, Install ORACLE19C
5.1 unzip "LINUX.X64_193000_db_home" Under oracle user
[oracle@TradeProbe database]$ unzip LINUX.X64_193000_db_home.zip -d $ORACLE_HOME /u01/app/oracle/product/19.2.0/db_1/lib/libclntsh.so.10.1 -> libclntsh.so /u01/app/oracle/product/19.2.0/db_1/lib/libclntsh.so.11.1 -> libclntsh.so /u01/app/oracle/product/19.2.0/db_1/lib/libclntsh.so.12.1 -> libclntsh.so /u01/app/oracle/product/19.2.0/db_1/lib/libclntsh.so.18.1 -> libclntsh.so /u01/app/oracle/product/19.2.0/db_1/precomp/public/SQLCA.H -> sqlca.h /u01/app/oracle/product/19.2.0/db_1/precomp/public/SQLDA.H -> sqlda.h /u01/app/oracle/product/19.2.0/db_1/precomp/public/ORACA.H -> oraca.h /u01/app/oracle/product/19.2.0/db_1/precomp/public/SQLCA.COB -> sqlca.cob /u01/app/oracle/product/19.2.0/db_1/precomp/public/ORACA.COB -> oraca.cob /u01/app/oracle/product/19.2.0/db_1/javavm/admin/classes.bin -> ../../javavm/jdk/jdk8/admin/classes.bin /u01/app/oracle/product/19.2.0/db_1/javavm/admin/libjtcjt.so -> ../../javavm/jdk/jdk8/admin/libjtcjt.so /u01/app/oracle/product/19.2.0/db_1/jdk/jre/bin/ControlPanel -> jcontrol /u01/app/oracle/product/19.2.0/db_1/javavm/admin/lfclasses.bin -> ../../javavm/jdk/jdk8/admin/lfclasses.bin /u01/app/oracle/product/19.2.0/db_1/javavm/lib/security/cacerts -> ../../../javavm/jdk/jdk8/lib/security/cacerts /u01/app/oracle/product/19.2.0/db_1/javavm/lib/sunjce_provider.jar -> ../../javavm/jdk/jdk8/lib/sunjce_provider.jar /u01/app/oracle/product/19.2.0/db_1/javavm/lib/security/README.txt -> ../../../javavm/jdk/jdk8/lib/security/README.txt /u01/app/oracle/product/19.2.0/db_1/javavm/lib/security/java.security -> ../../../javavm/jdk/jdk8/lib/security/java.security /u01/app/oracle/product/19.2.0/db_1/jdk/jre/lib/amd64/server/libjsig.so -> ../libjsig.so [oracle@TradeProbe database]$
5.2 startup/ runInstaller reported an error "INS-0810"
[oracle@TradeProbe ~]$ cd $ORACLE_HOME [oracle@TradeProbe db_1]$ ./runInstaller ERROR: Unable to verify the graphical display setup. This application requires X display. Make sure that xdpyinfo exist under PATH variable. Starting Oracle Database installation wizard...
Execute the command "export cv_assume_distinct = rhel7.6" in the ORACLE user environment
6.3 start graphic installation
Execute again
[oracle@TradeProbe db_1]$ ./runInstaller
Select "step by step setup software" and click next.
Select "single instance database installation" and click next
Select "Enterprise Edition" and go to the next step
Default installation path, next step
Default to "product list directory". Next
Default to authorized operating system group. Next
Don't check "automatically run configuration script", go to the next step
Default next
Default next
Default next
Two scripts are executed under the Root user
[root@TradeProbe ~]# /u01/app/oraInventory/orainstRoot.sh change permission/u01/app/oraInventory. Add read and write permissions for the group. Delete global read, Write and execute permissions. Change group name/u01/app/oraInventory reach oinstall. The execution of the script has completed. [root@TradeProbe ~]# /u01/app/oracle/product/19.2.0/db_1/root.sh Performing root user operation. The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/product/19.2.0/db_1 Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ... Creating /etc/oratab file... Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root script. Now product-specific root actions will be performed. Oracle Trace File Analyzer (TFA - Standalone Mode) is available at : /u01/app/oracle/product/19.2.0/db_1/bin/tfactl Note : 1. tfactl will use TFA Service if that service is running and user has been granted access 2. tfactl will configure TFA Standalone Mode only if user has no access to TFA Service or TFA is not installed [root@TradeProbe ~]#
After execution, click OK to next.
Click "close" to complete the installation of oracle database software.
[oracle@TradeProbe db_1]$ ./runInstaller ERROR: Unable to verify the graphical display setup. This application requires X display. Make sure that xdpyinfo exist under PATH variable. Starting Oracle Database installation wizard... The response file for this session can be found at: /u01/app/oracle/product/19.2.0/db_1/install/response/db_2021-08-15_04-54-41PM.rsp The log of this installation session can be found at the following location: /tmp/InstallActions2021-08-15_04-54-41PM/installActions2021-08-15_04-54-41PM.log Moved installation session log to: /u01/app/oraInventory/logs/InstallActions2021-08-15_04-54-41PM [oracle@TradeProbe db_1]$
Vi. configure monitoring
oracle users execute netca
[oracle@TradeProbe db_1]$ netca
Select "listener configuration" and go to the next step
"Add", next
Listener name is default. Next step
Default, next
Use the default port, next
Select no to go to the next step
Click "finish" to finish the listener configuration.
7, Create database
oracle users execute dbca
[oracle@TradeProbe db_1]$ dbca
Select Create database and click next
Select advanced configuration and go to the next step
Default, next
Name the "global database name" and "SID" as "tradeprobe", and choose whether to create a container database according to your needs. Cancel if you don't need it. Next step
Default, next.
Open the archiving and flashback area according to the actual needs. Next
Default, next
Default, next
Set the memory size and select the character set tab
Character set character settings, next
Default, next
Set the user password, select "all accounts use the same management password" here, and then click next
Default, next
next step
Create database process, wait.
So far, all ORACLE databases have been installed.
8, Test ORACLE Database
Access with Firefox browser https://localhost:5500/em/login , as shown below
Log in to the database using the sqlplus command