linux虚拟机:CentOS7.6
Oracle:19C
Oracle Database 19c ,也就是12.2.0.3,最初在livesql.oracle.com上发布,是Oracle Database 12c和18c系列产品的最终版本,因此也是“长期支持”版本(以前称为“终端版本”)。 “长期支持”意味着Oracle Database 19c提供4年的高级支持(截止到2023年1月底)和至少3年的延长支持(截至2026年1月底)。 这个扩展的支持窗口对我们的很多客户至关重要,因为很多客户制定了相关的升级策略。有关最新的Oracle支持计划,请参阅My Oracle Support上的文档ID 742060.1。截止目前,Oracle Database 19c已经可以在Oracle数据库一体机上使用了。
Oracle12c版本的说明:
Oracle12cR2=12.2.0.1
Oracle18C=12.2.0.2
Oracle19c=12.2.0.3
系统要求 | 说明 |
---|---|
内存 | 必须高于1G的物理内存 |
交换空间 | 一般为内存的2倍 swap |
硬盘 | 5G以上 |
[root@localhost ~]# groupadd dba,asmdba,backupdba,dgdba,kmdba,racdba,oper,oinstall
[root@localhost ~]# useradd -g oinstall -G dba,asmdba,backupdba,dgdba,kmdba,racdba,oper oracle19
[root@localhost ~]# passwd oracle19
[root@localhost ~]# mkdir -p /u01/app/oracle19/product/19.2.0/db_1
[root@localhost ~]# chown -R oracle19:oinstall /u01/app/oracle19/
[root@localhost ~]# su - oracle19
[oracle19@localhost ~]$ vi .bash_profile
export ORACLE_HOME=/u01/app/oracle19/product/19.2.0/db_1
export PATH=$PATH:/u01/app/oracle19/product/19.2.0/db_1/bin
export ORACLE_SID=orcl
[oracle19@localhost ~]$ source .bash_profile
[root@localhost db_1]# pwd
/u01/app/oracle19/product/19.2.0/db_1
[root@localhost db_1]# ll
-rw-r--r--. 1 oracle19 oinstall 3059705302 Jun 14 16:46 LINUX.X64_193000_db_home.zip
解压安装
unzip LINUX.X64_193000_db_home.zip
vim /etc/sysctl.conf
加入以下内容
fs.file-max = 6815744
fs.aio-max-nr = 1048576
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576 --- 同时拥有异步IO请求数目
fs.file-max = 6815744 --- 在Linux中可以打开的文件数目
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 = 1048586 --- 发送的套接字协议缓冲区最大大小
以下是使用rpm包安装19c时自动在sysctl中写入的配置
# oracle-database-preinstall-19c setting for fs.file-max is 6815744
fs.file-max = 6815744
# oracle-database-preinstall-19c setting for kernel.sem is '250 32000 100 128'
kernel.sem = 250 32000 100 128
# oracle-database-preinstall-19c setting for kernel.shmmni is 4096
kernel.shmmni = 4096
# oracle-database-preinstall-19c setting for kernel.shmall is 1073741824 on x86_64
kernel.shmall = 1073741824
# oracle-database-preinstall-19c setting for kernel.shmmax is 4398046511104 on x86_64
kernel.shmmax = 4398046511104
# oracle-database-preinstall-19c setting for kernel.panic_on_oops is 1 per Orabug 19212317
kernel.panic_on_oops = 1
# oracle-database-preinstall-19c setting for net.core.rmem_default is 262144
net.core.rmem_default = 262144
# oracle-database-preinstall-19c setting for net.core.rmem_max is 4194304
net.core.rmem_max = 4194304
# oracle-database-preinstall-19c setting for net.core.wmem_default is 262144
net.core.wmem_default = 262144
# oracle-database-preinstall-19c setting for net.core.wmem_max is 1048576
net.core.wmem_max = 1048576
# oracle-database-preinstall-19c setting for net.ipv4.conf.all.rp_filter is 2
net.ipv4.conf.all.rp_filter = 2
# oracle-database-preinstall-19c setting for net.ipv4.conf.default.rp_filter is 2
net.ipv4.conf.default.rp_filter = 2
# oracle-database-preinstall-19c setting for fs.aio-max-nr is 1048576
fs.aio-max-nr = 1048576
# oracle-database-preinstall-19c setting for net.ipv4.ip_local_port_range is 9000 65500
net.ipv4.ip_local_port_range = 9000 65500
要使 /etc/sysctl.conf 更改立即生效,执行以下命令。 输入:sysctl -p显示如下
[root@localhost ~]# sysctl -p
fs.file-max = 6815744
fs.aio-max-nr = 1048576
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
用yum安装缺少的依赖,然后checkAgain
点击install
安装完成
netca
dbca