之前装过18c和19c,虽然装成功了,但不符合规范吧,所以把之前的两篇安装的文章给删了怕误导别人。
因为:
从Oracle 18c开始,在安装数据库软件时,需要把压缩文件解压到$ORACLE_HOME路径下,在此目录下运行./runInstaller
19c安装来来回回拖了很久,没什么自己的时间。这篇就当个笔记吧。
修改(或新建)/etc/sysctl.d/97-oracle-database-sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
The /etc/sysctl.conf
file has been deprecated.
https://docs.oracle.com/en/database/oracle/oracle-database/19/ladbi/changing-kernel-parameter-values.html#GUID-FB0CC366-61C9-4AA2-9BE7-233EB6810A31
https://docs.oracle.com/en/database/oracle/oracle-database/19/ladbi/setting-udp-and-tcp-kernel-parameters-manually.html#GUID-F94545C8-7695-4866-89B0-F32651CD3658
https://docs.oracle.com/en/database/oracle/oracle-database/19/ladbi/checking-resource-limits-for-oracle-software-installation-users.html#GUID-293874BD-8069-470F-BEBF-A77C06618D5A
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft stack 10240KB
oracle hard stack 32768KB
关闭hugepage:
添加session required pam_limits.so到/etc/pam.d/login
修改/etc/hosts文件
redhat 7需要安装的包:
bc
binutils
compat-libcap1
compat-libstdc++
dtrace-modules
dtrace-modules-headers
dtrace-modules-provider-headers
dtrace-utils
elfutils-libelf
elfutils-libelf-devel
fontconfig-devel
glibc
glibc-devel
ksh
libaio
libaio-devel
libdtrace-ctf-devel
libX11
libXau
libXi
libXtst
libXrender
libXrender-devel
libgcc
librdmacm-devel
libstdc++
libstdc++-devel
libxcb
make
net-tools (for Oracle RAC and Oracle Clusterware)
nfs-utils (for Oracle ACFS)
python (for Oracle ACFS Remote)
python-configshell (for Oracle ACFS Remote)
python-rtslib (for Oracle ACFS Remote)
python-six (for Oracle ACFS Remote)
targetcli (for Oracle ACFS Remote)
smartmontools
sysstat
https://docs.oracle.com/en/database/oracle/oracle-database/19/ladbi/supported-red-hat-enterprise-linux-7-distributions-for-x86-64.html#GUID-2E11B561-6587-4789-A583-2E33D705E498
https://docs.oracle.com/en/database/oracle/oracle-database/19/ladbi/checking-kernel-and-package-requirements-for-linux.html#GUID-7065A86D-C2AB-4731-953B-12AC25C94156
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | greppackage_name
rpm -q binutils compat-libstdc++ gcc glibc libaio libgcc libstdc++ \
make sysstat unixodbc
缺少compat-libstdc++
yum install gcc –y
yum install unixODBC –y
把19c的压缩包上传到/u01/app/oracle/product/19/dbhome_1目录下,并解压
删除V981623-01.zip压缩包
kmod和kmod-libs包已经安装,只是版本低(可以更新,也可以忽略)
compat-libstdc++没有这个包
http://blog.itpub.net/26736162/viewspace-2214380/
Missing or Ignored package compat-libstdc++-33-3.2.3 causes Text Issues (文档 ID 2254198.1)
如果不使用Oracle Text那么可以忽略该包(Redhat 7或CentOS7 的安装包中不含该包)
这里从网上下载compat-libstdc++的包进行安装
顺便把kmod和kmod-libs包升级
dbca创建数据库