Centos7.5 RPM installation oracle19c

19c installation, compared to 11g, in addition to support graphics, command line, the biggest improvement silent installation, is to support the RPM installation.

What RPM is the? RPM is an acronym for Red-Hat Package Manager (RPM Package Manager), was originally Red Hat Linux distributions designed to manage the Linux program suite, because it is easy to follow and powerful GPL rules, so popular, gradually adopted by other distributions. Appear RPM package management, so that Linux is easy to install, upgrade, indirectly, to enhance the applicability of Linux. Although the name of his file format marked signs of RedHat, but its original design philosophy is open, now including OpenLinux, SuSE and Turbo Linux and other Linux-distributions are commonly used, can be regarded as the accepted industry standard.

Linux install Oracle 19c on the need OL7, RHEL7, SLES12 and more later. Oracle Enterprise Linux6 and RedHat Linux6 does not appear in the official list given,

19c relevant technical documentation,
https://docs.oracle.com/en/database/oracle/oracle-database/19/index.html
RPM package download link 19c is,
https://www.oracle.com/database/technologies /oracle19c-linux-downloads.html
19c began to support business version of RPM, capacity is 2.5GB,

RPM installation database 19c, only three-step operation,

Step 1: Preparing the Environment

Step 2: mounting oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

Step 3: Installation oracle-database-ee-19c-1.0-1.x86_64.rpm

Step 1: Preparing the Environment

1. Physical memory less than 2G
2. Hard disk space may be less than 12G
3. 2G swap partition space less than
turn off the firewall and the SELINUX
#sed -i '/ the SELINUX / S / enforcing / Disabled /' / etc / SELinux / config & systemctl disable the setenforce 0 && && systemctl firewalld.service STOP firewalld.service
modify kernel parameters
# vi /etc/sysctl.conf
modify, add the following (not less than the following values, gray does not already exist smaller than this)
kernel.shmall = 2097152 # total shared memory, 8G memory settings: 2097152 * 4k / 1024/1024
kernel.shmmax 1073741824 # = maximum shared memory segment size
fs.aio-max-nr = 1048576 # end of the system the maximum number of shared memory
fs.file-max = 6815744 # set the maximum number of open files
kernel.shmmni = 4096
= 32000 100 128 250 kernel.sem
net.ipv4.ip_local_port_range = 65500 # 9000 the IPv4 port range may be used
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
= 262144 net.core.wmem_default
net.core.wmem_max = 1048576
modification has been completed, enable the configuration
#sysctl -p
modify user limit file
#vi /etc/security/limits.conf (the contents of the documents so as not to add extra spaces. It may not take effect)
end of the line add the following to
the Oracle Soft nproc 655350
the Oracle Hard nproc 655350
the Oracle Soft nofile 655350
the Oracle 655360 Hard nofile
the Oracle Stack 102400 Soft
#vi /etc/security/limits.d/20-nproc.con

  •      soft    nproc     655350
    

root soft nproc unlimited

Step 2: mounting oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

oracle-database-preinstall-19c Download
https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/index.html
Here Insert Picture Description
search preinstall-19c, find,
Here Insert Picture Description
install oracle-database-preinstall need a lot of dependencies
if there yum source may automatically resolve dependencies
if not only the installation package ready ahead
Here Insert Picture Description
#yum localinstall -y oracle-database-preinstall -19c-1.0-1.el7.x86_64.rpm
Here Insert Picture Description
more dependent addition compat-libstdc + ± 33 can be in the package operating system installation files to find
the prompts MOS (2254198.1). this package is needed to Oracle Text, Oracle Text if not, you can ignore this package, the RedHat installation package 7 has been deleted.
compat-libstdc + ± 33 address to download
http://www.rpmfind.net/linux/rpm2html/search.php?query=compat-libstdc%2B%2B-33(x86-64)
Here Insert Picture Description

Step 3: Installation oracle-database-ee-19c-1.0-1.x86_64.rpm

#yum localinstall -y oracle-database-ee-19c-1.0-1.x86_64.rpm
Here Insert Picture Description
#创建数据库实例
cat /etc/sysconfig/oracledb_ORCLCDB-19c.conf 可以通过此文件配置实例端口和路径
Here Insert Picture Description
#cat /etc/init.d/oracledb_ORCLCDB-19c 可以通过此文件修改实例名称SID名称等更详细的信息,更改之前最好备份
#/etc/init.d/oracledb_ORCLCDB-19c configure 建立数据库实例,大概十几分钟的过程,和服务器性能有关
Here Insert Picture Description
和11g相同,oracle用户的profile,需要做些配置,增加环境变量,
#cat /home/oracle/.bash_profile
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/19c/dbhome_1
export ORACLE_SID=ORCLCDB
export PATH= O R A C L E H O M E / b i n : ORACLE_HOME/bin: PATH: H O M E / . l O c a l / b i n : HOME/.local/bin: HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export NLS_LANG=AMERICAN_AMERICA.UTF8
#source /home/oracle/.bash_profile
修改oracle用户密码
#passwd oracle
登陆数据库
#su - oracle
#sqlplus / as sysdba
Here Insert Picture Description
system默认:manager
sys默认:change_on_install
使用SQL Plus登录数据库时,system使用密码manager可直接登录。
但如果是sys用户,密码必须加上as sysdba,即完整密码为:change_on_install as sysdba
Here Insert Picture Description
修改system密码
SQL> password system
Here Insert Picture Description
监听
#lsnrctl status
#lsnrctl stop
#lsnrctl start

从安装步骤看,RPM确实简单,除了需要关注安装路径和数据库文件的磁盘空间,以及保证依赖包具备,需要做的,就是一个RPM指令,降低了以往Linux下的安装复杂性,和19c倡导Autonomous自治不谋而和,真正实现了一键安装

参考https://blog.csdn.net/bisal/article/details/100909708

Released three original articles · won praise 0 · Views 26

Guess you like

Origin blog.csdn.net/weixin_43885834/article/details/104418387