暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Oracle Database 19c RPM 安装简介

原创 eygle 2019-05-29
1227

安装 19c 的 rpm 版本非常简洁,和 18c 一致:


https://www.eygle.com/archives/2018/10/oracle_18c_orclcdb_install.html


以下是 19c 中的步骤。


首先下载 preinstall 包:


[root@sdb0 ~]# curl -o oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 18204 100 18204 0 0 12963 0 0:00:01 0:00:01 --:--:-- 246k

通过下载在本地的安装包进行安装:
[root@sdb0 ~]# yum -y localinstall oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Local Package Process
Examining oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm: oracle-database-preinstall-19c-1.0-1.el7.x86_64
Marking oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm to be installed
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.huaweicloud.com
* updates: mirrors.tuna.tsinghua.edu.cn
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package oracle-database-preinstall-19c.x86_64 0:1.0-1.el7 will be installed
--> Finished Dependency Resolution


Dependencies Resolved


===========================================================
Package Arch Version Repository Size
===========================================================
Installing:
oracle-database-preinstall-19c x86_64 1.0-1.el7 /oracle-database-preinstall-19c-1.0-1.el7.x86_64 55 k


Transaction Summary
===========================================================
Install 1 Package(s)


Total size: 55 k
Installed size: 55 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : oracle-database-preinstall-19c-1.0-1.el7.x86_64 1/1
Verifying : oracle-database-preinstall-19c-1.0-1.el7.x86_64 1/1


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


Complete!


安装数据库软件:


[root@sdb0 oracle]# yum -y localinstall oracle-database-ee-19c-1.0-1.x86_64.rpm
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Local Package Process
Examining oracle-database-ee-19c-1.0-1.x86_64.rpm: oracle-database-ee-19c-1.0-1.x86_64
Marking oracle-database-ee-19c-1.0-1.x86_64.rpm to be installed
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.huaweicloud.com
* updates: mirrors.tuna.tsinghua.edu.cn
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(s)


Total size: 6.9 G
Installed size: 6.9 G
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
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!


如果要创建数据库,执行 /etc/init.d/oracledb_ORCLCDB-19c 即可。


最后记录一下 preinstall 这个文件中的内容,其实可以看出预先所做的工作:


[root@sdb0 ~]# strings oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
oracle-database-preinstall-19c-1.0-1.el7

sU6afb1d8d957bd83bd7fd4fca7196972f9c0bf499

oracle-database-preinstall-19c

Sets the system for Oracle Database single instance and Real Application Cluster install for Oracle Linux 7
The Oracle Preinstallation RPM package installs software packages and sets system parameters required for Oracle Database single instance and Oracle Real Application Clusters installations for Oracle Linux Release 7
Files affected: /etc/sysctl.conf, /boot/grub/menu.lst OR /boot/grub2/grub.cfg
Files added: /etc/security/limits.d/oracle-database-preinstall-19c.conf
x86-ol7-builder-01.us.oracle.com
9Oracle
GPLv2
Test Environment/Libraries
linux
x86_64
if [ -f /etc/sysconfig/oracle-database-preinstall-19c/oracle-database-preinstall-19c.param ]; then
cp -f /etc/sysconfig/oracle-database-preinstall-19c/oracle-database-preinstall-19c.param /var/log/oracle-database-preinstall-19c/results/.oracle-database-preinstall-19c.param
if [ -d /etc/sysconfig/oracle-database-preinstall-19c ]; then
rm -rf /etc/sysconfig/oracle-database-preinstall-19c
if [ "$1" = "0" ] ; then # last uninstall
chkconfig --del oracle-database-preinstall-19c-firstboot
if [ -x /usr/bin/oracle-database-preinstall-19c-verify ]; then
/usr/bin/oracle-database-preinstall-19c-verify -u 2> /dev/null 1>&2
if [ "$1" = "0" ] ; then # last uninstall
if [ -d /etc/sysconfig/oracle-database-preinstall-19c ]; then
rm -rf /etc/sysconfig/oracle-database-preinstall-19c
if [ -d /var/log/oracle-database-preinstall-19c ]; then
rm -rf /var/log/oracle-database-preinstall-19c
20945731a9a5cf47301eb3894fe66b4007b2d47cb47c83f3efd31935034c0fd5
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
ba9ab54e1bc47b74e8859e9f93d85b0652f63ace604062693a14aecd7e5136ec
40f04387c34f512e513d380f08cd9126488d00c868fa31ebc5ed6b6d8c86673d
/etc/sysconfig/oracle-database-preinstall-19c/oracle-database-preinstall-19c-verify

oracle-database-preinstall-19c-firstboot
oracle-database-preinstall-19c.conf
oracle-database-preinstall-19c
oracle-database-preinstall-19c-verify
oracle-database-preinstall-19c.param
oracle-database-preinstall-19c-verify
oracle-database-preinstall-19c
results
/etc/rc.d/init.d/
/etc/security/limits.d/
/etc/sysconfig/
/etc/sysconfig/oracle-database-preinstall-19c/
/usr/bin/
/var/log/
/var/log/oracle-database-preinstall-19c/

cpio
x86_64-redhat-linux-gnu
Bourne-Again shell script, ASCII text executable
empty
directory
ASCII text
/usr/bin/oracle-database-preinstall-19c-verify 2>/dev/null 1>&2
if ! [ -f /etc/sysconfig/oracle-database-preinstall-19c/oracle-database-preinstall-19c.conf ]; then
chkconfig --add oracle-database-preinstall-19c-firstboot


仅作记录,供参考。

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论