oracle database 18c rpm 安装

简介: oracle rpm 安装,oracle rpm install.

安装参考文档:
https://docs.oracle.com/en/database/oracle/oracle-database/18/ladbi/automatically-configuring-oracle-linux-with-oracle-preinstallation-rpm.html#GUID-22846194-58EF-4552-AAC3-6F6D0A1DF794
https://docs.oracle.com/en/database/oracle/oracle-database/18/ladbi/running-rpm-packages-to-install-oracle-database.html#GUID-BB7C11E3-D385-4A2F-9EAF-75F4F0AACF02
11 Installing Oracle Database-Installing Oracle Database Using RPM Packages

软件下载路径:
https://www.oracle.com/technetwork/database/enterprise-edition/downloads/oracle18c-linux-180000-5022980.html
image

Installing Oracle Database RPM Manually

On Red Hat Enterprise Linux

操作系统环境装备

Red Hat Enterprise Linux Server release 7.3 (Maipo)
需要配置本地yum仓库。
手动安装compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm软件包。(rhel 7 未包含,需要从rhel 6 拷贝过来,附件已经包含该软件包)

YUM配置:
[root@prod04 ~]# cat /etc/yum.repos.d/development.repo 
[development]
name=yum server
baseurl=ftp://192.168.0.181/pub
enabled=1
gpgcheck=0

软件包安装条件:
[root@prod04 ~]# rpm -vih compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm 
warning: compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:compat-libstdc++-33-3.2.3-69.el6 ################################# [100%]

数据库基础环境准备

curl -o oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
yum -y localinstall oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
[root@prod04 ~]# curl -o oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 18244  100 18244    0     0  17856      0  0:00:01  0:00:01 --:--:-- 17868
[root@prod04 ~]# ls or
oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm  original-ks.cfg

[root@prod04 ~]# rpm -vih compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm 
warning: compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:compat-libstdc++-33-3.2.3-69.el6 ################################# [100%]

[root@prod04 ~]#  yum -y localinstall oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm 
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Examining oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm: oracle-database-preinstall-18c-1.0-1.el7.x86_64
Marking oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package oracle-database-preinstall-18c.x86_64 0:1.0-1.el7 will be installed
--> Processing Dependency: bc for package: oracle-database-preinstall-18c-1.0-1.el7.x86_64
--> Processing Dependency: bind-utils for package: oracle-database-preinstall-18c-1.0-1.el7.x86_64
--> Processing Dependency: compat-libcap1 for package: oracle-database-preinstall-18c-1.0-1.el7.x86_64
--> Processing Dependency: glibc-devel for package: oracle-database-preinstall-18c-1.0-1.el7.x86_64
--> Processing Dependency: ksh for package: oracle-database-preinstall-18c-1.0-1.el7.x86_64
--> Processing Dependency: libaio-devel for package: oracle-database-preinstall-18c-1.0-1.el7.x86_64
--> Processing Dependency: libstdc++-devel for package: oracle-database-preinstall-18c-1.0-1.el7.x86_64
--> Processing Dependency: nfs-utils for package: oracle-database-preinstall-18c-1.0-1.el7.x86_64
--> Processing Dependency: psmisc for package: oracle-database-preinstall-18c-1.0-1.el7.x86_64
--> Processing Dependency: smartmontools for package: oracle-database-preinstall-18c-1.0-1.el7.x86_64
--> Processing Dependency: sysstat for package: oracle-database-preinstall-18c-1.0-1.el7.x86_64
--> Processing Dependency: unzip for package: oracle-database-preinstall-18c-1.0-1.el7.x86_64
--> Processing Dependency: xorg-x11-utils for package: oracle-database-preinstall-18c-1.0-1.el7.x86_64
--> Processing Dependency: xorg-x11-xauth for package: oracle-database-preinstall-18c-1.0-1.el7.x86_64
--> Running transaction check
---> Package bc.x86_64 0:1.06.95-13.el7 will be installed
---> Package bind-utils.x86_64 32:9.9.4-37.el7 will be installed
--> Processing Dependency: bind-libs = 32:9.9.4-37.el7 for package: 32:bind-utils-9.9.4-37.el7.x86_64
--> Processing Dependency: libbind9.so.90()(64bit) for package: 32:bind-utils-9.9.4-37.el7.x86_64
--> Processing Dependency: libdns.so.100()(64bit) for package: 32:bind-utils-9.9.4-37.el7.x86_64
--> Processing Dependency: libisc.so.95()(64bit) for package: 32:bind-utils-9.9.4-37.el7.x86_64
--> Processing Dependency: libisccc.so.90()(64bit) for package: 32:bind-utils-9.9.4-37.el7.x86_64
--> Processing Dependency: libisccfg.so.90()(64bit) for package: 32:bind-utils-9.9.4-37.el7.x86_64
--> Processing Dependency: liblwres.so.90()(64bit) for package: 32:bind-utils-9.9.4-37.el7.x86_64
---> Package compat-libcap1.x86_64 0:1.10-7.el7 will be installed
---> Package glibc-devel.x86_64 0:2.17-157.el7 will be installed
--> Processing Dependency: glibc-headers = 2.17-157.el7 for package: glibc-devel-2.17-157.el7.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-157.el7.x86_64
---> Package ksh.x86_64 0:20120801-26.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-11.el7 will be installed
---> Package nfs-utils.x86_64 1:1.3.0-0.33.el7 will be installed
--> Processing Dependency: gssproxy >= 0.3.0-0 for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64
--> Processing Dependency: libtirpc >= 0.2.4-0.7 for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64
--> Processing Dependency: keyutils for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64
--> Processing Dependency: libevent for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64
--> Processing Dependency: libnfsidmap for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64
--> Processing Dependency: quota for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64
--> Processing Dependency: rpcbind for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64
--> Processing Dependency: libevent-2.0.so.5()(64bit) for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64
--> Processing Dependency: libnfsidmap.so.0()(64bit) for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64
--> Processing Dependency: libtirpc.so.1()(64bit) for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64
---> Package psmisc.x86_64 0:22.20-11.el7 will be installed
---> Package smartmontools.x86_64 1:6.2-7.el7 will be installed
--> Processing Dependency: mailx for package: 1:smartmontools-6.2-7.el7.x86_64
---> Package sysstat.x86_64 0:10.1.5-11.el7 will be installed
--> Processing Dependency: libsensors.so.4()(64bit) for package: sysstat-10.1.5-11.el7.x86_64
---> Package unzip.x86_64 0:6.0-16.el7 will be installed
---> Package xorg-x11-utils.x86_64 0:7.5-14.el7 will be installed
--> Processing Dependency: libXv.so.1()(64bit) for package: xorg-x11-utils-7.5-14.el7.x86_64
--> Processing Dependency: libXxf86dga.so.1()(64bit) for package: xorg-x11-utils-7.5-14.el7.x86_64
--> Processing Dependency: libXxf86misc.so.1()(64bit) for package: xorg-x11-utils-7.5-14.el7.x86_64
--> Processing Dependency: libdmx.so.1()(64bit) for package: xorg-x11-utils-7.5-14.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
--> Running transaction check
---> Package bind-libs.x86_64 32:9.9.4-37.el7 will be installed
---> Package glibc-headers.x86_64 0:2.17-157.el7 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-157.el7.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-157.el7.x86_64
---> Package gssproxy.x86_64 0:0.4.1-13.el7 will be installed
--> Processing Dependency: libini_config.so.3(INI_CONFIG_1.1.0)(64bit) for package: gssproxy-0.4.1-13.el7.x86_64
--> Processing Dependency: libverto-tevent for package: gssproxy-0.4.1-13.el7.x86_64
--> Processing Dependency: libbasicobjects.so.0()(64bit) for package: gssproxy-0.4.1-13.el7.x86_64
--> Processing Dependency: libcollection.so.2()(64bit) for package: gssproxy-0.4.1-13.el7.x86_64
--> Processing Dependency: libini_config.so.3()(64bit) for package: gssproxy-0.4.1-13.el7.x86_64
--> Processing Dependency: libref_array.so.1()(64bit) for package: gssproxy-0.4.1-13.el7.x86_64
---> Package keyutils.x86_64 0:1.5.8-3.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 libXv.x86_64 0:1.0.10-2.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 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-15.el7 will be installed
---> Package libtirpc.x86_64 0:0.2.4-0.8.el7 will be installed
---> Package lm_sensors-libs.x86_64 0:3.4.0-4.20160601gitf9185e5.el7 will be installed
---> Package mailx.x86_64 0:12.5-12.el7_0 will be installed
---> Package quota.x86_64 1:4.01-14.el7 will be installed
--> Processing Dependency: quota-nls = 1:4.01-14.el7 for package: 1:quota-4.01-14.el7.x86_64
--> Processing Dependency: tcp_wrappers for package: 1:quota-4.01-14.el7.x86_64
---> Package rpcbind.x86_64 0:0.2.0-38.el7 will be installed
--> Running transaction check
---> Package kernel-headers.x86_64 0:3.10.0-514.el7 will be installed
---> Package libXt.x86_64 0:1.1.4-6.1.el7 will be installed
--> Processing Dependency: libICE.so.6()(64bit) for package: libXt-1.1.4-6.1.el7.x86_64
--> Processing Dependency: libSM.so.6()(64bit) for package: libXt-1.1.4-6.1.el7.x86_64
---> Package libbasicobjects.x86_64 0:0.1.1-27.el7 will be installed
---> Package libcollection.x86_64 0:0.6.2-27.el7 will be installed
---> Package libini_config.x86_64 0:1.3.0-27.el7 will be installed
--> Processing Dependency: libpath_utils.so.1(PATH_UTILS_0.2.1)(64bit) for package: libini_config-1.3.0-27.el7.x86_64
--> Processing Dependency: libpath_utils.so.1()(64bit) for package: libini_config-1.3.0-27.el7.x86_64
---> Package libref_array.x86_64 0:0.1.5-27.el7 will be installed
---> Package libverto-tevent.x86_64 0:0.2.5-4.el7 will be installed
--> Processing Dependency: libtalloc.so.2(TALLOC_2.0.2)(64bit) for package: libverto-tevent-0.2.5-4.el7.x86_64
--> Processing Dependency: libtevent.so.0(TEVENT_0.9.9)(64bit) for package: libverto-tevent-0.2.5-4.el7.x86_64
--> Processing Dependency: libtalloc.so.2()(64bit) for package: libverto-tevent-0.2.5-4.el7.x86_64
--> Processing Dependency: libtevent.so.0()(64bit) for package: libverto-tevent-0.2.5-4.el7.x86_64
---> Package quota-nls.noarch 1:4.01-14.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-2.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-27.el7 will be installed
---> Package libtalloc.x86_64 0:2.1.6-1.el7 will be installed
---> Package libtevent.x86_64 0:0.9.28-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
 Package                                Arch           Version                                Repository                                                Size
=============================================================================================================================================================
Installing:
 oracle-database-preinstall-18c         x86_64         1.0-1.el7                              /oracle-database-preinstall-18c-1.0-1.el7.x86_64          55 k
Installing for dependencies:
 bc                                     x86_64         1.06.95-13.el7                         development                                              115 k
 bind-libs                              x86_64         32:9.9.4-37.el7                        development                                              1.0 M
 bind-utils                             x86_64         32:9.9.4-37.el7                        development                                              201 k
 compat-libcap1                         x86_64         1.10-7.el7                             development                                               19 k
 glibc-devel                            x86_64         2.17-157.el7                           development                                              1.1 M
 glibc-headers                          x86_64         2.17-157.el7                           development                                              668 k
 gssproxy                               x86_64         0.4.1-13.el7                           development                                               87 k
 kernel-headers                         x86_64         3.10.0-514.el7                         development                                              4.8 M
 keyutils                               x86_64         1.5.8-3.el7                            development                                               54 k
 ksh                                    x86_64         20120801-26.el7                        development                                              883 k
 libICE                                 x86_64         1.0.9-2.el7                            development                                               65 k
 libSM                                  x86_64         1.2.2-2.el7                            development                                               39 k
 libXmu                                 x86_64         1.1.2-2.el7                            development                                               71 k
 libXt                                  x86_64         1.1.4-6.1.el7                          development                                              173 k
 libXv                                  x86_64         1.0.10-2.el7                           development                                               18 k
 libXxf86dga                            x86_64         1.1.4-2.1.el7                          development                                               19 k
 libXxf86misc                           x86_64         1.0.3-7.1.el7                          development                                               19 k
 libaio-devel                           x86_64         0.3.109-13.el7                         development                                               13 k
 libbasicobjects                        x86_64         0.1.1-27.el7                           development                                               25 k
 libcollection                          x86_64         0.6.2-27.el7                           development                                               41 k
 libdmx                                 x86_64         1.1.3-3.el7                            development                                               16 k
 libevent                               x86_64         2.0.21-4.el7                           development                                              214 k
 libini_config                          x86_64         1.3.0-27.el7                           development                                               63 k
 libnfsidmap                            x86_64         0.25-15.el7                            development                                               47 k
 libpath_utils                          x86_64         0.2.1-27.el7                           development                                               27 k
 libref_array                           x86_64         0.1.5-27.el7                           development                                               26 k
 libstdc++-devel                        x86_64         4.8.5-11.el7                           development                                              1.5 M
 libtalloc                              x86_64         2.1.6-1.el7                            development                                               34 k
 libtevent                              x86_64         0.9.28-1.el7                           development                                               34 k
 libtirpc                               x86_64         0.2.4-0.8.el7                          development                                               88 k
 libverto-tevent                        x86_64         0.2.5-4.el7                            development                                              9.0 k
 lm_sensors-libs                        x86_64         3.4.0-4.20160601gitf9185e5.el7         development                                               41 k
 mailx                                  x86_64         12.5-12.el7_0                          development                                              244 k
 nfs-utils                              x86_64         1:1.3.0-0.33.el7                       development                                              377 k
 psmisc                                 x86_64         22.20-11.el7                           development                                              141 k
 quota                                  x86_64         1:4.01-14.el7                          development                                              179 k
 quota-nls                              noarch         1:4.01-14.el7                          development                                               91 k
 rpcbind                                x86_64         0.2.0-38.el7                           development                                               59 k
 smartmontools                          x86_64         1:6.2-7.el7                            development                                              405 k
 sysstat                                x86_64         10.1.5-11.el7                          development                                              310 k
 tcp_wrappers                           x86_64         7.6-77.el7                             development                                               79 k
 unzip                                  x86_64         6.0-16.el7                             development                                              169 k
 xorg-x11-utils                         x86_64         7.5-14.el7                             development                                              111 k
 xorg-x11-xauth                         x86_64         1:1.0.9-1.el7                          development                                               30 k

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

Total size: 14 M
Total download size: 14 M
Installed size: 30 M
Downloading packages:
(1/44): bc-1.06.95-13.el7.x86_64.rpm                                                                                                  | 115 kB  00:00:00     
(2/44): bind-utils-9.9.4-37.el7.x86_64.rpm                                                                                            | 201 kB  00:00:00     
(3/44): bind-libs-9.9.4-37.el7.x86_64.rpm                                                                                             | 1.0 MB  00:00:00     
(4/44): compat-libcap1-1.10-7.el7.x86_64.rpm                                                                                          |  19 kB  00:00:00     
(5/44): glibc-devel-2.17-157.el7.x86_64.rpm                                                                                           | 1.1 MB  00:00:00     
(6/44): glibc-headers-2.17-157.el7.x86_64.rpm                                                                                         | 668 kB  00:00:00     
(7/44): gssproxy-0.4.1-13.el7.x86_64.rpm                                                                                              |  87 kB  00:00:00     
(8/44): kernel-headers-3.10.0-514.el7.x86_64.rpm                                                                                      | 4.8 MB  00:00:00     
(9/44): keyutils-1.5.8-3.el7.x86_64.rpm                                                                                               |  54 kB  00:00:00     
(10/44): ksh-20120801-26.el7.x86_64.rpm                                                                                               | 883 kB  00:00:00     
(11/44): libICE-1.0.9-2.el7.x86_64.rpm                                                                                                |  65 kB  00:00:00     
(12/44): libSM-1.2.2-2.el7.x86_64.rpm                                                                                                 |  39 kB  00:00:00     
(13/44): libXt-1.1.4-6.1.el7.x86_64.rpm                                                                                               | 173 kB  00:00:00     
(14/44): libXv-1.0.10-2.el7.x86_64.rpm                                                                                                |  18 kB  00:00:00     
(15/44): libXxf86dga-1.1.4-2.1.el7.x86_64.rpm                                                                                         |  19 kB  00:00:00     
(16/44): libXmu-1.1.2-2.el7.x86_64.rpm                                                                                                |  71 kB  00:00:00     
(17/44): libXxf86misc-1.0.3-7.1.el7.x86_64.rpm                                                                                        |  19 kB  00:00:00     
(18/44): libaio-devel-0.3.109-13.el7.x86_64.rpm                                                                                       |  13 kB  00:00:00     
(19/44): libbasicobjects-0.1.1-27.el7.x86_64.rpm                                                                                      |  25 kB  00:00:00     
(20/44): libdmx-1.1.3-3.el7.x86_64.rpm                                                                                                |  16 kB  00:00:00     
(21/44): libcollection-0.6.2-27.el7.x86_64.rpm                                                                                        |  41 kB  00:00:00     
(22/44): libevent-2.0.21-4.el7.x86_64.rpm                                                                                             | 214 kB  00:00:00     
(23/44): libnfsidmap-0.25-15.el7.x86_64.rpm                                                                                           |  47 kB  00:00:00     
(24/44): libpath_utils-0.2.1-27.el7.x86_64.rpm                                                                                        |  27 kB  00:00:00     
(25/44): libref_array-0.1.5-27.el7.x86_64.rpm                                                                                         |  26 kB  00:00:00     
(26/44): libini_config-1.3.0-27.el7.x86_64.rpm                                                                                        |  63 kB  00:00:00     
(27/44): libstdc++-devel-4.8.5-11.el7.x86_64.rpm                                                                                      | 1.5 MB  00:00:00     
(28/44): libtalloc-2.1.6-1.el7.x86_64.rpm                                                                                             |  34 kB  00:00:00     
(29/44): libtevent-0.9.28-1.el7.x86_64.rpm                                                                                            |  34 kB  00:00:00     
(30/44): libtirpc-0.2.4-0.8.el7.x86_64.rpm                                                                                            |  88 kB  00:00:00     
(31/44): lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x86_64.rpm                                                                    |  41 kB  00:00:00     
(32/44): mailx-12.5-12.el7_0.x86_64.rpm                                                                                               | 244 kB  00:00:00     
(33/44): nfs-utils-1.3.0-0.33.el7.x86_64.rpm                                                                                          | 377 kB  00:00:00     
(34/44): libverto-tevent-0.2.5-4.el7.x86_64.rpm                                                                                       | 9.0 kB  00:00:00     
(35/44): psmisc-22.20-11.el7.x86_64.rpm                                                                                               | 141 kB  00:00:00     
(36/44): quota-4.01-14.el7.x86_64.rpm                                                                                                 | 179 kB  00:00:00     
(37/44): quota-nls-4.01-14.el7.noarch.rpm                                                                                             |  91 kB  00:00:00     
(38/44): rpcbind-0.2.0-38.el7.x86_64.rpm                                                                                              |  59 kB  00:00:00     
(39/44): smartmontools-6.2-7.el7.x86_64.rpm                                                                                           | 405 kB  00:00:00     
(40/44): sysstat-10.1.5-11.el7.x86_64.rpm                                                                                             | 310 kB  00:00:00     
(41/44): tcp_wrappers-7.6-77.el7.x86_64.rpm                                                                                           |  79 kB  00:00:00     
(42/44): unzip-6.0-16.el7.x86_64.rpm                                                                                                  | 169 kB  00:00:00     
(43/44): xorg-x11-utils-7.5-14.el7.x86_64.rpm                                                                                         | 111 kB  00:00:00     
(44/44): xorg-x11-xauth-1.0.9-1.el7.x86_64.rpm                                                                                        |  30 kB  00:00:00     
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                         20 MB/s |  14 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : libcollection-0.6.2-27.el7.x86_64                                                                                                        1/45 
  Installing : libtirpc-0.2.4-0.8.el7.x86_64                                                                                                            2/45 
  Installing : rpcbind-0.2.0-38.el7.x86_64                                                                                                              3/45 
  Installing : libICE-1.0.9-2.el7.x86_64                                                                                                                4/45 
  Installing : libbasicobjects-0.1.1-27.el7.x86_64                                                                                                      5/45 
  Installing : libref_array-0.1.5-27.el7.x86_64                                                                                                         6/45 
  Installing : libtalloc-2.1.6-1.el7.x86_64                                                                                                             7/45 
  Installing : libtevent-0.9.28-1.el7.x86_64                                                                                                            8/45 
  Installing : libverto-tevent-0.2.5-4.el7.x86_64                                                                                                       9/45 
  Installing : libSM-1.2.2-2.el7.x86_64                                                                                                                10/45 
  Installing : libXt-1.1.4-6.1.el7.x86_64                                                                                                              11/45 
  Installing : libXmu-1.1.2-2.el7.x86_64                                                                                                               12/45 
  Installing : 1:xorg-x11-xauth-1.0.9-1.el7.x86_64                                                                                                     13/45 
  Installing : libstdc++-devel-4.8.5-11.el7.x86_64                                                                                                     14/45 
  Installing : mailx-12.5-12.el7_0.x86_64                                                                                                              15/45 
  Installing : 1:smartmontools-6.2-7.el7.x86_64                                                                                                        16/45 
  Installing : ksh-20120801-26.el7.x86_64                                                                                                              17/45 
  Installing : libpath_utils-0.2.1-27.el7.x86_64                                                                                                       18/45 
  Installing : libini_config-1.3.0-27.el7.x86_64                                                                                                       19/45 
  Installing : gssproxy-0.4.1-13.el7.x86_64                                                                                                            20/45 
  Installing : tcp_wrappers-7.6-77.el7.x86_64                                                                                                          21/45 
  Installing : keyutils-1.5.8-3.el7.x86_64                                                                                                             22/45 
  Installing : psmisc-22.20-11.el7.x86_64                                                                                                              23/45 
  Installing : libXxf86dga-1.1.4-2.1.el7.x86_64                                                                                                        24/45 
  Installing : kernel-headers-3.10.0-514.el7.x86_64                                                                                                    25/45 
  Installing : glibc-headers-2.17-157.el7.x86_64                                                                                                       26/45 
  Installing : glibc-devel-2.17-157.el7.x86_64                                                                                                         27/45 
  Installing : 32:bind-libs-9.9.4-37.el7.x86_64                                                                                                        28/45 
  Installing : 32:bind-utils-9.9.4-37.el7.x86_64                                                                                                       29/45 
  Installing : lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x86_64                                                                                   30/45 
  Installing : sysstat-10.1.5-11.el7.x86_64                                                                                                            31/45 
  Installing : libaio-devel-0.3.109-13.el7.x86_64                                                                                                      32/45 
  Installing : compat-libcap1-1.10-7.el7.x86_64                                                                                                        33/45 
  Installing : libevent-2.0.21-4.el7.x86_64                                                                                                            34/45 
  Installing : 1:quota-nls-4.01-14.el7.noarch                                                                                                          35/45 
  Installing : 1:quota-4.01-14.el7.x86_64                                                                                                              36/45 
  Installing : bc-1.06.95-13.el7.x86_64                                                                                                                37/45 
  Installing : unzip-6.0-16.el7.x86_64                                                                                                                 38/45 
  Installing : libXv-1.0.10-2.el7.x86_64                                                                                                               39/45 
  Installing : libdmx-1.1.3-3.el7.x86_64                                                                                                               40/45 
  Installing : libnfsidmap-0.25-15.el7.x86_64                                                                                                          41/45 
  Installing : 1:nfs-utils-1.3.0-0.33.el7.x86_64                                                                                                       42/45 
  Installing : libXxf86misc-1.0.3-7.1.el7.x86_64                                                                                                       43/45 
  Installing : xorg-x11-utils-7.5-14.el7.x86_64                                                                                                        44/45 
  Installing : oracle-database-preinstall-18c-1.0-1.el7.x86_64                                                                                         45/45 
development/productid                                                                                                                 | 1.6 kB  00:00:00     
  Verifying  : libXxf86misc-1.0.3-7.1.el7.x86_64                                                                                                        1/45 
  Verifying  : 1:quota-4.01-14.el7.x86_64                                                                                                               2/45 
  Verifying  : libnfsidmap-0.25-15.el7.x86_64                                                                                                           3/45 
  Verifying  : libverto-tevent-0.2.5-4.el7.x86_64                                                                                                       4/45 
  Verifying  : libXmu-1.1.2-2.el7.x86_64                                                                                                                5/45 
  Verifying  : libini_config-1.3.0-27.el7.x86_64                                                                                                        6/45 
  Verifying  : libtalloc-2.1.6-1.el7.x86_64                                                                                                             7/45 
  Verifying  : libtevent-0.9.28-1.el7.x86_64                                                                                                            8/45 
  Verifying  : libdmx-1.1.3-3.el7.x86_64                                                                                                                9/45 
  Verifying  : 1:nfs-utils-1.3.0-0.33.el7.x86_64                                                                                                       10/45 
  Verifying  : libXv-1.0.10-2.el7.x86_64                                                                                                               11/45 
  Verifying  : unzip-6.0-16.el7.x86_64                                                                                                                 12/45 
  Verifying  : libref_array-0.1.5-27.el7.x86_64                                                                                                        13/45 
  Verifying  : glibc-devel-2.17-157.el7.x86_64                                                                                                         14/45 
  Verifying  : libbasicobjects-0.1.1-27.el7.x86_64                                                                                                     15/45 
  Verifying  : bc-1.06.95-13.el7.x86_64                                                                                                                16/45 
  Verifying  : 1:quota-nls-4.01-14.el7.noarch                                                                                                          17/45 
  Verifying  : glibc-headers-2.17-157.el7.x86_64                                                                                                       18/45 
  Verifying  : 32:bind-utils-9.9.4-37.el7.x86_64                                                                                                       19/45 
  Verifying  : 1:smartmontools-6.2-7.el7.x86_64                                                                                                        20/45 
  Verifying  : gssproxy-0.4.1-13.el7.x86_64                                                                                                            21/45 
  Verifying  : libevent-2.0.21-4.el7.x86_64                                                                                                            22/45 
  Verifying  : xorg-x11-utils-7.5-14.el7.x86_64                                                                                                        23/45 
  Verifying  : compat-libcap1-1.10-7.el7.x86_64                                                                                                        24/45 
  Verifying  : libICE-1.0.9-2.el7.x86_64                                                                                                               25/45 
  Verifying  : libaio-devel-0.3.109-13.el7.x86_64                                                                                                      26/45 
  Verifying  : lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x86_64                                                                                   27/45 
  Verifying  : 1:xorg-x11-xauth-1.0.9-1.el7.x86_64                                                                                                     28/45 
  Verifying  : libXt-1.1.4-6.1.el7.x86_64                                                                                                              29/45 
  Verifying  : 32:bind-libs-9.9.4-37.el7.x86_64                                                                                                        30/45 
  Verifying  : rpcbind-0.2.0-38.el7.x86_64                                                                                                             31/45 
  Verifying  : kernel-headers-3.10.0-514.el7.x86_64                                                                                                    32/45 
  Verifying  : libSM-1.2.2-2.el7.x86_64                                                                                                                33/45 
  Verifying  : oracle-database-preinstall-18c-1.0-1.el7.x86_64                                                                                         34/45 
  Verifying  : libXxf86dga-1.1.4-2.1.el7.x86_64                                                                                                        35/45 
  Verifying  : psmisc-22.20-11.el7.x86_64                                                                                                              36/45 
  Verifying  : keyutils-1.5.8-3.el7.x86_64                                                                                                             37/45 
  Verifying  : tcp_wrappers-7.6-77.el7.x86_64                                                                                                          38/45 
  Verifying  : libpath_utils-0.2.1-27.el7.x86_64                                                                                                       39/45 
  Verifying  : ksh-20120801-26.el7.x86_64                                                                                                              40/45 
  Verifying  : libtirpc-0.2.4-0.8.el7.x86_64                                                                                                           41/45 
  Verifying  : sysstat-10.1.5-11.el7.x86_64                                                                                                            42/45 
  Verifying  : libcollection-0.6.2-27.el7.x86_64                                                                                                       43/45 
  Verifying  : mailx-12.5-12.el7_0.x86_64                                                                                                              44/45 
  Verifying  : libstdc++-devel-4.8.5-11.el7.x86_64                                                                                                     45/45 

Installed:
  oracle-database-preinstall-18c.x86_64 0:1.0-1.el7                                                                                                          

Dependency Installed:
  bc.x86_64 0:1.06.95-13.el7                    bind-libs.x86_64 32:9.9.4-37.el7                                bind-utils.x86_64 32:9.9.4-37.el7            
  compat-libcap1.x86_64 0:1.10-7.el7            glibc-devel.x86_64 0:2.17-157.el7                               glibc-headers.x86_64 0:2.17-157.el7          
  gssproxy.x86_64 0:0.4.1-13.el7                kernel-headers.x86_64 0:3.10.0-514.el7                          keyutils.x86_64 0:1.5.8-3.el7                
  ksh.x86_64 0:20120801-26.el7                  libICE.x86_64 0:1.0.9-2.el7                                     libSM.x86_64 0:1.2.2-2.el7                   
  libXmu.x86_64 0:1.1.2-2.el7                   libXt.x86_64 0:1.1.4-6.1.el7                                    libXv.x86_64 0:1.0.10-2.el7                  
  libXxf86dga.x86_64 0:1.1.4-2.1.el7            libXxf86misc.x86_64 0:1.0.3-7.1.el7                             libaio-devel.x86_64 0:0.3.109-13.el7         
  libbasicobjects.x86_64 0:0.1.1-27.el7         libcollection.x86_64 0:0.6.2-27.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.0-27.el7                             libnfsidmap.x86_64 0:0.25-15.el7             
  libpath_utils.x86_64 0:0.2.1-27.el7           libref_array.x86_64 0:0.1.5-27.el7                              libstdc++-devel.x86_64 0:4.8.5-11.el7        
  libtalloc.x86_64 0:2.1.6-1.el7                libtevent.x86_64 0:0.9.28-1.el7                                 libtirpc.x86_64 0:0.2.4-0.8.el7              
  libverto-tevent.x86_64 0:0.2.5-4.el7          lm_sensors-libs.x86_64 0:3.4.0-4.20160601gitf9185e5.el7         mailx.x86_64 0:12.5-12.el7_0                 
  nfs-utils.x86_64 1:1.3.0-0.33.el7             psmisc.x86_64 0:22.20-11.el7                                    quota.x86_64 1:4.01-14.el7                   
  quota-nls.noarch 1:4.01-14.el7                rpcbind.x86_64 0:0.2.0-38.el7                                   smartmontools.x86_64 1:6.2-7.el7             
  sysstat.x86_64 0:10.1.5-11.el7                tcp_wrappers.x86_64 0:7.6-77.el7                                unzip.x86_64 0:6.0-16.el7                    
  xorg-x11-utils.x86_64 0:7.5-14.el7            xorg-x11-xauth.x86_64 1:1.0.9-1.el7                            

Complete!

database软件安装

yum -y localinstall oracle-database-ee-18c-1.0-1.x86_64.rpm
[root@prod04 ~]# cd /soft/
[root@prod04 soft]# yum -y localinstall oracle-database-ee-18c-1.0-1.x86_64.rpm 
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Examining oracle-database-ee-18c-1.0-1.x86_64.rpm: oracle-database-ee-18c-1.0-1.x86_64
Marking oracle-database-ee-18c-1.0-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package oracle-database-ee-18c.x86_64 0:1.0-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved

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

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

Total size: 7.8 G
Installed size: 7.8 G
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : oracle-database-ee-18c-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-18c configure
  Verifying  : oracle-database-ee-18c-1.0-1.x86_64                                                                                                       1/1 

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

Complete!

创建数据库

Log in as root.
To configure a sample Oracle Database instance, run the following service configuration script:
# /etc/init.d/oracledb_ORCLCDB-18c configure
Note:
You can modify the configuration parameters by editing the /etc/sysconfig/oracledb_ORCLCDB-18c.conf file.
This script creates a container database (ORCLCDB) with one pluggable database (ORCLPDB1) and configures the listener at the default port (1521).
[root@prod04 soft]# /etc/init.d/oracledb_ORCLCDB-18c 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.
[root@prod04 soft]#
=============
[oracle@prod04 bin]$ export ORACLE_HOME=/opt/oracle/product/18c/dbhome_1
[oracle@prod04 bin]$ export ORACLE_SID=ORCLCDB
[oracle@prod04 bin]$ ./sqlplus / as sysdba

SQL*Plus: Release 18.0.0.0.0 - Production on Mon Oct 22 12:42:47 2018
Version 18.3.0.0.0

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


Connected to:
Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.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
SQL> 

卸载软件

[root@prod04 soft]# rpm -e oracle-database-ee-18c-1.0-1.x86_64
相关文章
|
30天前
|
存储 Oracle 关系型数据库
|
21天前
|
Oracle 关系型数据库 网络安全
Oracle 19c 安装教程学习
Oracle 19c 安装教程学习
45 2
|
3月前
|
机器学习/深度学习 Oracle 关系型数据库
Oracle 19c单机一键安装脚本分享
Oracle 19c单机一键安装脚本分享
165 2
|
4月前
|
SQL Oracle 关系型数据库
MySQL、SQL Server和Oracle数据库安装部署教程
数据库的安装部署教程因不同的数据库管理系统(DBMS)而异,以下将以MySQL、SQL Server和Oracle为例,分别概述其安装部署的基本步骤。请注意,由于软件版本和操作系统的不同,具体步骤可能会有所变化。
285 3
|
5月前
|
SQL Oracle 关系型数据库
Oracle数据库基础教程:从安装到基本操作的全面介绍
Oracle数据库基础教程:从安装到基本操作的全面介绍
186 10
|
4月前
|
SQL Oracle 关系型数据库
Oracle数据库基础教程:从安装到基本操作的全面介绍
Oracle数据库基础教程:从安装到基本操作的全面介绍
|
5月前
|
Oracle 数据可视化 关系型数据库
Oracle数据库安装及使用Navicat连接oracle2
Oracle数据库安装及使用Navicat连接oracle
|
5月前
|
Oracle 安全 关系型数据库
Oracle数据库安装及使用Navicat连接oracle1
Oracle数据库安装及使用Navicat连接oracle
|
6月前
|
SQL Oracle 关系型数据库
Connect to Autonomous Database Using Oracle Database Tools
Connect to Autonomous Database Using Oracle Database Tools
60 1
|
5月前
|
Oracle 关系型数据库 数据库
Oracle 11G数据库安装步骤及截图操作2
Oracle 11G数据库安装步骤及截图操作
61 0