数据库
首页 > 数据库> > ORACLE 19C RPM单机完整安装过程

ORACLE 19C RPM单机完整安装过程

作者:互联网

1.配置网络

 nmcli connection modify ens192 ipv4.address 192.168.1.169/24 ipv4.gateway 192.168.1.1 ipv4.method manual autoconnect yes

2.上传软件

mkdir /soft
##oracle rpm软件安装包,19c preinstall rpm软件安装包
[root@rpm19c soft]# ll
total 2631532
-rw-r--r--. 1 root root 2694664264 Apr  3 22:40 oracle-database-ee-19c-1.0-1.x86_64.rpm
-rw-r--r--. 1 root root      19552 Apr  3 22:39 oracle-database-preinstall-19c-1.0-2.el7.x86_64.rpm

3.配置主机名

hostnamectl set-hostname rpm19c

4.配置地址名解析

cat >> /etc/hosts <<EOF
#Public IP
192.168.1.169	rpm19c
EOF

5.配置yum镜像源

mount /dev/cdrom /mnt
mv /etc/yum.repos.d/* /tmp/

echo "[local]" >> /etc/yum.repos.d/local.repo
echo "name = local" >> /etc/yum.repos.d/local.repo
echo "baseurl = file:///mnt/" >> /etc/yum.repos.d/local.repo
echo "enabled = 1" >> /etc/yum.repos.d/local.repo
echo "gpgcheck = 0" >> /etc/yum.repos.d/local.repo
 
yum clean all
yum repolist all

6.安装19c preinstall rpm,主要是安装一些依赖

[root@rpm19c soft]# yum -y localinstall /soft/oracle-database-preinstall-19c-1.0-2.el7.x86_64.rpm
Loaded plugins: product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Examining /soft/oracle-database-preinstall-19c-1.0-2.el7.x86_64.rpm: oracle-database-preinstall-19c-1.0-2.el7.x86_64
Marking /soft/oracle-database-preinstall-19c-1.0-2.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package oracle-database-preinstall-19c.x86_64 0:1.0-2.el7 will be installed
--> Processing Dependency: bind-utils for package: oracle-database-preinstall-19c-1.0-2.el7.x86_64
--> Processing Dependency: compat-libcap1 for package: oracle-database-preinstall-19c-1.0-2.el7.x86_64
--> Processing Dependency: glibc-devel for package: oracle-database-preinstall-19c-1.0-2.el7.x86_64
--> Processing Dependency: ksh for package: oracle-database-preinstall-19c-1.0-2.el7.x86_64
--> Processing Dependency: libaio-devel for package: oracle-database-preinstall-19c-1.0-2.el7.x86_64
--> Processing Dependency: libstdc++-devel for package: oracle-database-preinstall-19c-1.0-2.el7.x86_64
--> Processing Dependency: net-tools for package: oracle-database-preinstall-19c-1.0-2.el7.x86_64
--> Processing Dependency: nfs-utils for package: oracle-database-preinstall-19c-1.0-2.el7.x86_64
--> Processing Dependency: psmisc for package: oracle-database-preinstall-19c-1.0-2.el7.x86_64
--> Processing Dependency: smartmontools for package: oracle-database-preinstall-19c-1.0-2.el7.x86_64
--> Processing Dependency: sysstat for package: oracle-database-preinstall-19c-1.0-2.el7.x86_64
--> Processing Dependency: unzip for package: oracle-database-preinstall-19c-1.0-2.el7.x86_64
--> Processing Dependency: xorg-x11-utils for package: oracle-database-preinstall-19c-1.0-2.el7.x86_64
--> Processing Dependency: xorg-x11-xauth for package: oracle-database-preinstall-19c-1.0-2.el7.x86_64
--> Running transaction check
---> Package bind-utils.x86_64 32:9.11.4-26.P2.el7 will be installed
--> Processing Dependency: bind-libs-lite(x86-64) = 32:9.11.4-26.P2.el7 for package: 32:bind-utils-9.11.4-26.P2.el7.x86_64
--> Processing Dependency: bind-libs(x86-64) = 32:9.11.4-26.P2.el7 for package: 32:bind-utils-9.11.4-26.P2.el7.x86_64
--> Processing Dependency: liblwres.so.160()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7.x86_64
--> Processing Dependency: libisccfg.so.160()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7.x86_64
--> Processing Dependency: libisc.so.169()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7.x86_64
--> Processing Dependency: libirs.so.160()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7.x86_64
--> Processing Dependency: libdns.so.1102()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7.x86_64
--> Processing Dependency: libbind9.so.160()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7.x86_64
--> Processing Dependency: libGeoIP.so.1()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7.x86_64
---> Package compat-libcap1.x86_64 0:1.10-7.el7 will be installed
---> Package glibc-devel.x86_64 0:2.17-317.el7 will be installed
--> Processing Dependency: glibc-headers = 2.17-317.el7 for package: glibc-devel-2.17-317.el7.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-317.el7.x86_64
---> Package ksh.x86_64 0:20120801-142.el7 will be installed
---> Package libaio-devel.x86_64 0:0.3.109-13.el7 will be installed
---> Package libstdc++-devel.x86_64 0:4.8.5-44.el7 will be installed
---> Package net-tools.x86_64 0:2.0-0.25.20131004git.el7 will be installed
---> Package nfs-utils.x86_64 1:1.3.0-0.68.el7 will be installed
--> Processing Dependency: libtirpc >= 0.2.4-0.7 for package: 1:nfs-utils-1.3.0-0.68.el7.x86_64
--> Processing Dependency: gssproxy >= 0.7.0-3 for package: 1:nfs-utils-1.3.0-0.68.el7.x86_64
--> Processing Dependency: rpcbind for package: 1:nfs-utils-1.3.0-0.68.el7.x86_64
--> Processing Dependency: quota for package: 1:nfs-utils-1.3.0-0.68.el7.x86_64
--> Processing Dependency: libnfsidmap for package: 1:nfs-utils-1.3.0-0.68.el7.x86_64
--> Processing Dependency: libevent for package: 1:nfs-utils-1.3.0-0.68.el7.x86_64
--> Processing Dependency: keyutils for package: 1:nfs-utils-1.3.0-0.68.el7.x86_64
--> Processing Dependency: libtirpc.so.1()(64bit) for package: 1:nfs-utils-1.3.0-0.68.el7.x86_64
--> Processing Dependency: libnfsidmap.so.0()(64bit) for package: 1:nfs-utils-1.3.0-0.68.el7.x86_64
--> Processing Dependency: libevent-2.0.so.5()(64bit) for package: 1:nfs-utils-1.3.0-0.68.el7.x86_64
---> Package psmisc.x86_64 0:22.20-17.el7 will be installed
---> Package smartmontools.x86_64 1:7.0-2.el7 will be installed
--> Processing Dependency: mailx for package: 1:smartmontools-7.0-2.el7.x86_64
---> Package sysstat.x86_64 0:10.1.5-19.el7 will be installed
--> Processing Dependency: libsensors.so.4()(64bit) for package: sysstat-10.1.5-19.el7.x86_64
---> Package unzip.x86_64 0:6.0-21.el7 will be installed
---> Package xorg-x11-utils.x86_64 0:7.5-23.el7 will be installed
--> Processing Dependency: libxcb.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libxcb-shape.so.0()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libdmx.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libXxf86vm.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libXxf86misc.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libXxf86dga.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libXv.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libXtst.so.6()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libXrender.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libXrandr.so.2()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libXinerama.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libXi.so.6()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libXext.so.6()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libX11.so.6()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libX11-xcb.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
---> Package xorg-x11-xauth.x86_64 1:1.0.9-1.el7 will be installed
--> Processing Dependency: libXmuu.so.1()(64bit) for package: 1:xorg-x11-xauth-1.0.9-1.el7.x86_64
--> Processing Dependency: libXau.so.6()(64bit) for package: 1:xorg-x11-xauth-1.0.9-1.el7.x86_64
--> Running transaction check
---> Package GeoIP.x86_64 0:1.5.0-14.el7 will be installed
--> Processing Dependency: geoipupdate for package: GeoIP-1.5.0-14.el7.x86_64
---> Package bind-libs.x86_64 32:9.11.4-26.P2.el7 will be installed
--> Processing Dependency: bind-license = 32:9.11.4-26.P2.el7 for package: 32:bind-libs-9.11.4-26.P2.el7.x86_64
---> Package bind-libs-lite.x86_64 32:9.11.4-26.P2.el7 will be installed
---> Package glibc-headers.x86_64 0:2.17-317.el7 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-317.el7.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-317.el7.x86_64
---> Package gssproxy.x86_64 0:0.7.0-29.el7 will be installed
--> Processing Dependency: libini_config >= 1.3.1-31 for package: gssproxy-0.7.0-29.el7.x86_64
--> Processing Dependency: libverto-module-base for package: gssproxy-0.7.0-29.el7.x86_64
--> Processing Dependency: libref_array.so.1(REF_ARRAY_0.1.1)(64bit) for package: gssproxy-0.7.0-29.el7.x86_64
--> Processing Dependency: libini_config.so.3(INI_CONFIG_1.2.0)(64bit) for package: gssproxy-0.7.0-29.el7.x86_64
--> Processing Dependency: libini_config.so.3(INI_CONFIG_1.1.0)(64bit) for package: gssproxy-0.7.0-29.el7.x86_64
--> Processing Dependency: libref_array.so.1()(64bit) for package: gssproxy-0.7.0-29.el7.x86_64
--> Processing Dependency: libini_config.so.3()(64bit) for package: gssproxy-0.7.0-29.el7.x86_64
--> Processing Dependency: libcollection.so.2()(64bit) for package: gssproxy-0.7.0-29.el7.x86_64
--> Processing Dependency: libbasicobjects.so.0()(64bit) for package: gssproxy-0.7.0-29.el7.x86_64
---> Package keyutils.x86_64 0:1.5.8-3.el7 will be installed
---> Package libX11.x86_64 0:1.6.7-2.el7 will be installed
--> Processing Dependency: libX11-common >= 1.6.7-2.el7 for package: libX11-1.6.7-2.el7.x86_64
---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed
---> Package libXext.x86_64 0:1.3.3-3.el7 will be installed
---> Package libXi.x86_64 0:1.7.9-1.el7 will be installed
---> Package libXinerama.x86_64 0:1.1.3-2.1.el7 will be installed
---> Package libXmu.x86_64 0:1.1.2-2.el7 will be installed
--> Processing Dependency: libXt.so.6()(64bit) for package: libXmu-1.1.2-2.el7.x86_64
---> Package libXrandr.x86_64 0:1.5.1-2.el7 will be installed
---> Package libXrender.x86_64 0:0.9.10-1.el7 will be installed
---> Package libXtst.x86_64 0:1.2.3-1.el7 will be installed
---> Package libXv.x86_64 0:1.0.11-1.el7 will be installed
---> Package libXxf86dga.x86_64 0:1.1.4-2.1.el7 will be installed
---> Package libXxf86misc.x86_64 0:1.0.3-7.1.el7 will be installed
---> Package libXxf86vm.x86_64 0:1.1.4-1.el7 will be installed
---> Package libdmx.x86_64 0:1.1.3-3.el7 will be installed
---> Package libevent.x86_64 0:2.0.21-4.el7 will be installed
---> Package libnfsidmap.x86_64 0:0.25-19.el7 will be installed
---> Package libtirpc.x86_64 0:0.2.4-0.16.el7 will be installed
---> Package libxcb.x86_64 0:1.13-1.el7 will be installed
---> Package lm_sensors-libs.x86_64 0:3.4.0-8.20160601gitf9185e5.el7 will be installed
---> Package mailx.x86_64 0:12.5-19.el7 will be installed
---> Package quota.x86_64 1:4.01-19.el7 will be installed
--> Processing Dependency: quota-nls = 1:4.01-19.el7 for package: 1:quota-4.01-19.el7.x86_64
--> Processing Dependency: tcp_wrappers for package: 1:quota-4.01-19.el7.x86_64
---> Package rpcbind.x86_64 0:0.2.0-49.el7 will be installed
--> Running transaction check
---> Package bind-license.noarch 32:9.11.4-26.P2.el7 will be installed
---> Package geoipupdate.x86_64 0:2.5.0-1.el7 will be installed
---> Package kernel-headers.x86_64 0:3.10.0-1160.el7 will be installed
---> Package libX11-common.noarch 0:1.6.7-2.el7 will be installed
---> Package libXt.x86_64 0:1.1.5-3.el7 will be installed
--> Processing Dependency: libSM.so.6()(64bit) for package: libXt-1.1.5-3.el7.x86_64
--> Processing Dependency: libICE.so.6()(64bit) for package: libXt-1.1.5-3.el7.x86_64
---> Package libbasicobjects.x86_64 0:0.1.1-32.el7 will be installed
---> Package libcollection.x86_64 0:0.7.0-32.el7 will be installed
---> Package libini_config.x86_64 0:1.3.1-32.el7 will be installed
--> Processing Dependency: libpath_utils.so.1(PATH_UTILS_0.2.1)(64bit) for package: libini_config-1.3.1-32.el7.x86_64
--> Processing Dependency: libpath_utils.so.1()(64bit) for package: libini_config-1.3.1-32.el7.x86_64
---> Package libref_array.x86_64 0:0.1.5-32.el7 will be installed
---> Package libverto-libevent.x86_64 0:0.2.5-4.el7 will be installed
---> Package quota-nls.noarch 1:4.01-19.el7 will be installed
---> Package tcp_wrappers.x86_64 0:7.6-77.el7 will be installed
--> Running transaction check
---> Package libICE.x86_64 0:1.0.9-9.el7 will be installed
---> Package libSM.x86_64 0:1.2.2-2.el7 will be installed
---> Package libpath_utils.x86_64 0:0.2.1-32.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================
 Package                               Arch          Version                               Repository                                               Size
=========================================================================================================================================================
Installing:
 oracle-database-preinstall-19c        x86_64        1.0-2.el7                             /oracle-database-preinstall-19c-1.0-2.el7.x86_64         56 k
Installing for dependencies:
 GeoIP                                 x86_64        1.5.0-14.el7                          local                                                   1.5 M
 bind-libs                             x86_64        32:9.11.4-26.P2.el7                   local                                                   156 k
 bind-libs-lite                        x86_64        32:9.11.4-26.P2.el7                   local                                                   1.1 M
 bind-license                          noarch        32:9.11.4-26.P2.el7                   local                                                    90 k
 bind-utils                            x86_64        32:9.11.4-26.P2.el7                   local                                                   260 k
 compat-libcap1                        x86_64        1.10-7.el7                            local                                                    19 k
 geoipupdate                           x86_64        2.5.0-1.el7                           local                                                    35 k
 glibc-devel                           x86_64        2.17-317.el7                          local                                                   1.1 M
 glibc-headers                         x86_64        2.17-317.el7                          local                                                   690 k
 gssproxy                              x86_64        0.7.0-29.el7                          local                                                   111 k
 kernel-headers                        x86_64        3.10.0-1160.el7                       local                                                   9.0 M
 keyutils                              x86_64        1.5.8-3.el7                           local                                                    54 k
 ksh                                   x86_64        20120801-142.el7                      local                                                   884 k
 libICE                                x86_64        1.0.9-9.el7                           local                                                    66 k
 libSM                                 x86_64        1.2.2-2.el7                           local                                                    39 k
 libX11                                x86_64        1.6.7-2.el7                           local                                                   607 k
 libX11-common                         noarch        1.6.7-2.el7                           local                                                   164 k
 libXau                                x86_64        1.0.8-2.1.el7                         local                                                    29 k
 libXext                               x86_64        1.3.3-3.el7                           local                                                    39 k
 libXi                                 x86_64        1.7.9-1.el7                           local                                                    40 k
 libXinerama                           x86_64        1.1.3-2.1.el7                         local                                                    14 k
 libXmu                                x86_64        1.1.2-2.el7                           local                                                    71 k
 libXrandr                             x86_64        1.5.1-2.el7                           local                                                    27 k
 libXrender                            x86_64        0.9.10-1.el7                          local                                                    26 k
 libXt                                 x86_64        1.1.5-3.el7                           local                                                   173 k
 libXtst                               x86_64        1.2.3-1.el7                           local                                                    20 k
 libXv                                 x86_64        1.0.11-1.el7                          local                                                    19 k
 libXxf86dga                           x86_64        1.1.4-2.1.el7                         local                                                    19 k
 libXxf86misc                          x86_64        1.0.3-7.1.el7                         local                                                    19 k
 libXxf86vm                            x86_64        1.1.4-1.el7                           local                                                    18 k
 libaio-devel                          x86_64        0.3.109-13.el7                        local                                                    13 k
 libbasicobjects                       x86_64        0.1.1-32.el7                          local                                                    26 k
 libcollection                         x86_64        0.7.0-32.el7                          local                                                    42 k
 libdmx                                x86_64        1.1.3-3.el7                           local                                                    16 k
 libevent                              x86_64        2.0.21-4.el7                          local                                                   214 k
 libini_config                         x86_64        1.3.1-32.el7                          local                                                    64 k
 libnfsidmap                           x86_64        0.25-19.el7                           local                                                    50 k
 libpath_utils                         x86_64        0.2.1-32.el7                          local                                                    28 k
 libref_array                          x86_64        0.1.5-32.el7                          local                                                    27 k
 libstdc++-devel                       x86_64        4.8.5-44.el7                          local                                                   1.5 M
 libtirpc                              x86_64        0.2.4-0.16.el7                        local                                                    89 k
 libverto-libevent                     x86_64        0.2.5-4.el7                           local                                                   8.9 k
 libxcb                                x86_64        1.13-1.el7                            local                                                   214 k
 lm_sensors-libs                       x86_64        3.4.0-8.20160601gitf9185e5.el7        local                                                    42 k
 mailx                                 x86_64        12.5-19.el7                           local                                                   245 k
 net-tools                             x86_64        2.0-0.25.20131004git.el7              local                                                   306 k
 nfs-utils                             x86_64        1:1.3.0-0.68.el7                      local                                                   412 k
 psmisc                                x86_64        22.20-17.el7                          local                                                   141 k
 quota                                 x86_64        1:4.01-19.el7                         local                                                   179 k
 quota-nls                             noarch        1:4.01-19.el7                         local                                                    90 k
 rpcbind                               x86_64        0.2.0-49.el7                          local                                                    60 k
 smartmontools                         x86_64        1:7.0-2.el7                           local                                                   547 k
 sysstat                               x86_64        10.1.5-19.el7                         local                                                   315 k
 tcp_wrappers                          x86_64        7.6-77.el7                            local                                                    79 k
 unzip                                 x86_64        6.0-21.el7                            local                                                   171 k
 xorg-x11-utils                        x86_64        7.5-23.el7                            local                                                   114 k
 xorg-x11-xauth                        x86_64        1:1.0.9-1.el7                         local                                                    30 k

Transaction Summary
=========================================================================================================================================================
Install  1 Package (+57 Dependent packages)

Total size: 21 M
Total download size: 21 M
Installed size: 40 M
Downloading packages:
---------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                    5.6 MB/s |  21 MB  00:00:03     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libXau-1.0.8-2.1.el7.x86_64                                                                                                          1/58 
  Installing : libxcb-1.13-1.el7.x86_64                                                                                                             2/58 
  Installing : libref_array-0.1.5-32.el7.x86_64                                                                                                     3/58 
  Installing : libevent-2.0.21-4.el7.x86_64                                                                                                         4/58 
  Installing : 32:bind-license-9.11.4-26.P2.el7.noarch                                                                                              5/58 
  Installing : libbasicobjects-0.1.1-32.el7.x86_64                                                                                                  6/58 
  Installing : libcollection-0.7.0-32.el7.x86_64                                                                                                    7/58 
  Installing : libICE-1.0.9-9.el7.x86_64                                                                                                            8/58 
  Installing : libtirpc-0.2.4-0.16.el7.x86_64                                                                                                       9/58 
  Installing : rpcbind-0.2.0-49.el7.x86_64                                                                                                         10/58 
  Installing : libSM-1.2.2-2.el7.x86_64                                                                                                            11/58 
  Installing : libverto-libevent-0.2.5-4.el7.x86_64                                                                                                12/58 
  Installing : 1:quota-nls-4.01-19.el7.noarch                                                                                                      13/58 
  Installing : psmisc-22.20-17.el7.x86_64                                                                                                          14/58 
  Installing : mailx-12.5-19.el7.x86_64                                                                                                            15/58 
  Installing : 1:smartmontools-7.0-2.el7.x86_64                                                                                                    16/58 
  Installing : libstdc++-devel-4.8.5-44.el7.x86_64                                                                                                 17/58 
  Installing : keyutils-1.5.8-3.el7.x86_64                                                                                                         18/58 
  Installing : libnfsidmap-0.25-19.el7.x86_64                                                                                                      19/58 
  Installing : libpath_utils-0.2.1-32.el7.x86_64                                                                                                   20/58 
  Installing : libini_config-1.3.1-32.el7.x86_64                                                                                                   21/58 
  Installing : gssproxy-0.7.0-29.el7.x86_64                                                                                                        22/58 
  Installing : ksh-20120801-142.el7.x86_64                                                                                                         23/58 
  Installing : libaio-devel-0.3.109-13.el7.x86_64                                                                                                  24/58 
  Installing : compat-libcap1-1.10-7.el7.x86_64                                                                                                    25/58 
  Installing : unzip-6.0-21.el7.x86_64                                                                                                             26/58 
  Installing : libX11-common-1.6.7-2.el7.noarch                                                                                                    27/58 
  Installing : libX11-1.6.7-2.el7.x86_64                                                                                                           28/58 
  Installing : libXext-1.3.3-3.el7.x86_64                                                                                                          29/58 
  Installing : libXi-1.7.9-1.el7.x86_64                                                                                                            30/58 
  Installing : libXrender-0.9.10-1.el7.x86_64                                                                                                      31/58 
  Installing : libXrandr-1.5.1-2.el7.x86_64                                                                                                        32/58 
  Installing : libXtst-1.2.3-1.el7.x86_64                                                                                                          33/58 
  Installing : libXxf86misc-1.0.3-7.1.el7.x86_64                                                                                                   34/58 
  Installing : libdmx-1.1.3-3.el7.x86_64                                                                                                           35/58 
  Installing : libXinerama-1.1.3-2.1.el7.x86_64                                                                                                    36/58 
  Installing : libXv-1.0.11-1.el7.x86_64                                                                                                           37/58 
  Installing : libXxf86vm-1.1.4-1.el7.x86_64                                                                                                       38/58 
  Installing : libXxf86dga-1.1.4-2.1.el7.x86_64                                                                                                    39/58 
  Installing : xorg-x11-utils-7.5-23.el7.x86_64                                                                                                    40/58 
  Installing : libXt-1.1.5-3.el7.x86_64                                                                                                            41/58 
  Installing : libXmu-1.1.2-2.el7.x86_64                                                                                                           42/58 
  Installing : 1:xorg-x11-xauth-1.0.9-1.el7.x86_64                                                                                                 43/58 
  Installing : lm_sensors-libs-3.4.0-8.20160601gitf9185e5.el7.x86_64                                                                               44/58 
  Installing : sysstat-10.1.5-19.el7.x86_64                                                                                                        45/58 
  Installing : net-tools-2.0-0.25.20131004git.el7.x86_64                                                                                           46/58 
  Installing : tcp_wrappers-7.6-77.el7.x86_64                                                                                                      47/58 
  Installing : 1:quota-4.01-19.el7.x86_64                                                                                                          48/58 
  Installing : 1:nfs-utils-1.3.0-0.68.el7.x86_64                                                                                                   49/58 
  Installing : geoipupdate-2.5.0-1.el7.x86_64                                                                                                      50/58 
  Installing : GeoIP-1.5.0-14.el7.x86_64                                                                                                           51/58 
  Installing : 32:bind-libs-lite-9.11.4-26.P2.el7.x86_64                                                                                           52/58 
  Installing : 32:bind-libs-9.11.4-26.P2.el7.x86_64                                                                                                53/58 
  Installing : 32:bind-utils-9.11.4-26.P2.el7.x86_64                                                                                               54/58 
  Installing : kernel-headers-3.10.0-1160.el7.x86_64                                                                                               55/58 
  Installing : glibc-headers-2.17-317.el7.x86_64                                                                                                   56/58 
  Installing : glibc-devel-2.17-317.el7.x86_64                                                                                                     57/58 
  Installing : oracle-database-preinstall-19c-1.0-2.el7.x86_64                                                                                     58/58 
  Verifying  : libtirpc-0.2.4-0.16.el7.x86_64                                                                                                       1/58 
  Verifying  : 32:bind-libs-9.11.4-26.P2.el7.x86_64                                                                                                 2/58 
  Verifying  : libXxf86misc-1.0.3-7.1.el7.x86_64                                                                                                    3/58 
  Verifying  : libdmx-1.1.3-3.el7.x86_64                                                                                                            4/58 
  Verifying  : libICE-1.0.9-9.el7.x86_64                                                                                                            5/58 
  Verifying  : kernel-headers-3.10.0-1160.el7.x86_64                                                                                                6/58 
  Verifying  : geoipupdate-2.5.0-1.el7.x86_64                                                                                                       7/58 
  Verifying  : libXinerama-1.1.3-2.1.el7.x86_64                                                                                                     8/58 
  Verifying  : libXrender-0.9.10-1.el7.x86_64                                                                                                       9/58 
  Verifying  : libXt-1.1.5-3.el7.x86_64                                                                                                            10/58 
  Verifying  : libXv-1.0.11-1.el7.x86_64                                                                                                           11/58 
  Verifying  : libXi-1.7.9-1.el7.x86_64                                                                                                            12/58 
  Verifying  : libXxf86vm-1.1.4-1.el7.x86_64                                                                                                       13/58 
  Verifying  : glibc-devel-2.17-317.el7.x86_64                                                                                                     14/58 
  Verifying  : 1:nfs-utils-1.3.0-0.68.el7.x86_64                                                                                                   15/58 
  Verifying  : libcollection-0.7.0-32.el7.x86_64                                                                                                   16/58 
  Verifying  : libbasicobjects-0.1.1-32.el7.x86_64                                                                                                 17/58 
  Verifying  : 1:smartmontools-7.0-2.el7.x86_64                                                                                                    18/58 
  Verifying  : oracle-database-preinstall-19c-1.0-2.el7.x86_64                                                                                     19/58 
  Verifying  : 32:bind-utils-9.11.4-26.P2.el7.x86_64                                                                                               20/58 
  Verifying  : rpcbind-0.2.0-49.el7.x86_64                                                                                                         21/58 
  Verifying  : GeoIP-1.5.0-14.el7.x86_64                                                                                                           22/58 
  Verifying  : xorg-x11-utils-7.5-23.el7.x86_64                                                                                                    23/58 
  Verifying  : sysstat-10.1.5-19.el7.x86_64                                                                                                        24/58 
  Verifying  : tcp_wrappers-7.6-77.el7.x86_64                                                                                                      25/58 
  Verifying  : 32:bind-license-9.11.4-26.P2.el7.noarch                                                                                             26/58 
  Verifying  : net-tools-2.0-0.25.20131004git.el7.x86_64                                                                                           27/58 
  Verifying  : libXtst-1.2.3-1.el7.x86_64                                                                                                          28/58 
  Verifying  : libX11-1.6.7-2.el7.x86_64                                                                                                           29/58 
  Verifying  : 32:bind-libs-lite-9.11.4-26.P2.el7.x86_64                                                                                           30/58 
  Verifying  : libxcb-1.13-1.el7.x86_64                                                                                                            31/58 
  Verifying  : lm_sensors-libs-3.4.0-8.20160601gitf9185e5.el7.x86_64                                                                               32/58 
  Verifying  : libini_config-1.3.1-32.el7.x86_64                                                                                                   33/58 
  Verifying  : libX11-common-1.6.7-2.el7.noarch                                                                                                    34/58 
  Verifying  : unzip-6.0-21.el7.x86_64                                                                                                             35/58 
  Verifying  : libXext-1.3.3-3.el7.x86_64                                                                                                          36/58 
  Verifying  : libevent-2.0.21-4.el7.x86_64                                                                                                        37/58 
  Verifying  : glibc-headers-2.17-317.el7.x86_64                                                                                                   38/58 
  Verifying  : libverto-libevent-0.2.5-4.el7.x86_64                                                                                                39/58 
  Verifying  : compat-libcap1-1.10-7.el7.x86_64                                                                                                    40/58 
  Verifying  : libXrandr-1.5.1-2.el7.x86_64                                                                                                        41/58 
  Verifying  : libaio-devel-0.3.109-13.el7.x86_64                                                                                                  42/58 
  Verifying  : gssproxy-0.7.0-29.el7.x86_64                                                                                                        43/58 
  Verifying  : ksh-20120801-142.el7.x86_64                                                                                                         44/58 
  Verifying  : libref_array-0.1.5-32.el7.x86_64                                                                                                    45/58 
  Verifying  : 1:xorg-x11-xauth-1.0.9-1.el7.x86_64                                                                                                 46/58 
  Verifying  : libpath_utils-0.2.1-32.el7.x86_64                                                                                                   47/58 
  Verifying  : 1:quota-4.01-19.el7.x86_64                                                                                                          48/58 
  Verifying  : libnfsidmap-0.25-19.el7.x86_64                                                                                                      49/58 
  Verifying  : libSM-1.2.2-2.el7.x86_64                                                                                                            50/58 
  Verifying  : libXxf86dga-1.1.4-2.1.el7.x86_64                                                                                                    51/58 
  Verifying  : libXmu-1.1.2-2.el7.x86_64                                                                                                           52/58 
  Verifying  : keyutils-1.5.8-3.el7.x86_64                                                                                                         53/58 
  Verifying  : libXau-1.0.8-2.1.el7.x86_64                                                                                                         54/58 
  Verifying  : libstdc++-devel-4.8.5-44.el7.x86_64                                                                                                 55/58 
  Verifying  : mailx-12.5-19.el7.x86_64                                                                                                            56/58 
  Verifying  : psmisc-22.20-17.el7.x86_64                                                                                                          57/58 
  Verifying  : 1:quota-nls-4.01-19.el7.noarch                                                                                                      58/58 
local/productid                                                                                                                   | 1.6 kB  00:00:00     

Installed:
  oracle-database-preinstall-19c.x86_64 0:1.0-2.el7                                                                                                      

Dependency Installed:
  GeoIP.x86_64 0:1.5.0-14.el7                    bind-libs.x86_64 32:9.11.4-26.P2.el7                       bind-libs-lite.x86_64 32:9.11.4-26.P2.el7   
  bind-license.noarch 32:9.11.4-26.P2.el7        bind-utils.x86_64 32:9.11.4-26.P2.el7                      compat-libcap1.x86_64 0:1.10-7.el7          
  geoipupdate.x86_64 0:2.5.0-1.el7               glibc-devel.x86_64 0:2.17-317.el7                          glibc-headers.x86_64 0:2.17-317.el7         
  gssproxy.x86_64 0:0.7.0-29.el7                 kernel-headers.x86_64 0:3.10.0-1160.el7                    keyutils.x86_64 0:1.5.8-3.el7               
  ksh.x86_64 0:20120801-142.el7                  libICE.x86_64 0:1.0.9-9.el7                                libSM.x86_64 0:1.2.2-2.el7                  
  libX11.x86_64 0:1.6.7-2.el7                    libX11-common.noarch 0:1.6.7-2.el7                         libXau.x86_64 0:1.0.8-2.1.el7               
  libXext.x86_64 0:1.3.3-3.el7                   libXi.x86_64 0:1.7.9-1.el7                                 libXinerama.x86_64 0:1.1.3-2.1.el7          
  libXmu.x86_64 0:1.1.2-2.el7                    libXrandr.x86_64 0:1.5.1-2.el7                             libXrender.x86_64 0:0.9.10-1.el7            
  libXt.x86_64 0:1.1.5-3.el7                     libXtst.x86_64 0:1.2.3-1.el7                               libXv.x86_64 0:1.0.11-1.el7                 
  libXxf86dga.x86_64 0:1.1.4-2.1.el7             libXxf86misc.x86_64 0:1.0.3-7.1.el7                        libXxf86vm.x86_64 0:1.1.4-1.el7             
  libaio-devel.x86_64 0:0.3.109-13.el7           libbasicobjects.x86_64 0:0.1.1-32.el7                      libcollection.x86_64 0:0.7.0-32.el7         
  libdmx.x86_64 0:1.1.3-3.el7                    libevent.x86_64 0:2.0.21-4.el7                             libini_config.x86_64 0:1.3.1-32.el7         
  libnfsidmap.x86_64 0:0.25-19.el7               libpath_utils.x86_64 0:0.2.1-32.el7                        libref_array.x86_64 0:0.1.5-32.el7          
  libstdc++-devel.x86_64 0:4.8.5-44.el7          libtirpc.x86_64 0:0.2.4-0.16.el7                           libverto-libevent.x86_64 0:0.2.5-4.el7      
  libxcb.x86_64 0:1.13-1.el7                     lm_sensors-libs.x86_64 0:3.4.0-8.20160601gitf9185e5.el7    mailx.x86_64 0:12.5-19.el7                  
  net-tools.x86_64 0:2.0-0.25.20131004git.el7    nfs-utils.x86_64 1:1.3.0-0.68.el7                          psmisc.x86_64 0:22.20-17.el7                
  quota.x86_64 1:4.01-19.el7                     quota-nls.noarch 1:4.01-19.el7                             rpcbind.x86_64 0:0.2.0-49.el7               
  smartmontools.x86_64 1:7.0-2.el7               sysstat.x86_64 0:10.1.5-19.el7                             tcp_wrappers.x86_64 0:7.6-77.el7            
  unzip.x86_64 0:6.0-21.el7                      xorg-x11-utils.x86_64 0:7.5-23.el7                         xorg-x11-xauth.x86_64 1:1.0.9-1.el7         

Complete!

7.安装oracle 19c software rpm

[root@rpm19c soft]# yum -y localinstall /soft/oracle-database-ee-19c-1.0-1.x86_64.rpm
Loaded plugins: product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Examining /soft/oracle-database-ee-19c-1.0-1.x86_64.rpm: oracle-database-ee-19c-1.0-1.x86_64
Marking /soft/oracle-database-ee-19c-1.0-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package oracle-database-ee-19c.x86_64 0:1.0-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================
 Package                                  Arch                     Version                  Repository                                              Size
=========================================================================================================================================================
Installing:
 oracle-database-ee-19c                   x86_64                   1.0-1                    /oracle-database-ee-19c-1.0-1.x86_64                   6.9 G

Transaction Summary
=========================================================================================================================================================
Install  1 Package

Total size: 6.9 G
Installed size: 6.9 G
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : oracle-database-ee-19c-1.0-1.x86_64                                                                                                   1/1 
[INFO] Executing post installation scripts...
[INFO] Oracle home installed successfully and ready to be configured.
To configure a sample Oracle Database you can execute the following service configuration script as root: /etc/init.d/oracledb_ORCLCDB-19c configure
  Verifying  : oracle-database-ee-19c-1.0-1.x86_64                                                                                                   1/1 

Installed:
  oracle-database-ee-19c.x86_64 0:1.0-1                                                                                                                  

Complete!

ORACLE_HOME目录位于:/opt/oracle/product/19c/dbhome_1

8.建库

[root@rpm19c ~]# /etc/init.d/oracledb_ORCLCDB-19c
Usage: /etc/init.d/oracledb_ORCLCDB-19c {start|stop|restart|configure|delete}
[root@rpm19c ~]# /etc/init.d/oracledb_ORCLCDB-19c configure
Configuring Oracle Database ORCLCDB.
Prepare for db operation
8% complete
Copying database files
31% complete
Creating and starting Oracle instance
32% complete
36% complete
40% complete
43% complete
46% complete
Completing Database Creation
51% complete
54% complete
Creating Pluggable Databases
58% complete
77% complete
Executing Post Configuration Actions
100% complete
Database creation complete. For details check the logfiles at:
 /opt/oracle/cfgtoollogs/dbca/ORCLCDB.
Database Information:
Global Database Name:ORCLCDB
System Identifier(SID):ORCLCDB
Look at the log file "/opt/oracle/cfgtoollogs/dbca/ORCLCDB/ORCLCDB.log" for further details.

Database configuration completed successfully. The passwords were auto generated, you must change them by connecting to the database using 'sqlplus / as sysdba' as the oracle user.

9.设置环境变量

cat <<EOF >>/home/oracle/.bash_profile
umask 022
export TMP=/tmp
export TMPDIR=\$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=\$ORACLE_BASE/product/19c/dbhome_1
export TNS_ADMIN=\$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=ORCLCDB
export PATH=/usr/sbin:\$PATH
export PATH=\$ORACLE_HOME/bin:\$ORACLE_HOME/OPatch:\$PATH
EOF

10.连接使用

[oracle@rpm19c ~]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Sat Apr 3 23:34:22 2021
Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL> show pdbs

    CON_ID CON_NAME			  OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
	 2 PDB$SEED			  READ ONLY  NO
	 3 ORCLPDB1			  READ WRITE NO
总结:

1.只适用于单机

2.无法指定安装目录

3.环境配置太简单(比如防火墙,selinux,环境变量很多都没有配置)

注定无法用于生产环境的安装以及使用,只适合Oracle新手小白体验使用新版19C数据库。

 

标签:x86,--,Dependency,64,ORACLE,RPM,el7,19C,58
来源: https://blog.51cto.com/luciferliu/3027835