红帽企业Linux5下Oracle 12C 安装手册

Oracle 12C 首次安装,期待已久的Oracle 12C 终于发布了,我迫不及待的下载了介质,红帽企业Linux5下Oracle 12C 安装了一睹风采。

下载地址:
或者直接到edelivery下载:https://edelivery.oracle.com

V38500-01_1of2.zip
V38500-01_2of2.zip

官方安装文档地址:

1、安装依赖包 对于linux5,官方给出的如下:

binutils-2.17.50.0.6 compat-libstdc++-33-3.2.3 compat-libstdc++-33-3.2.3 (32 bit) gcc-4.1.2 gcc-c++-4.1.2 glibc-2.5-58 glibc-2.5-58 (32 bit) glibc-devel-2.5-58 glibc-devel-2.5-58 (32 bit) ksh libaio-0.3.106 libaio-0.3.106 (32 bit) libaio-devel-0.3.106 libaio-devel-0.3.106 (32 bit) libgcc-4.1.2 libgcc-4.1.2 (32 bit) libstdc++-4.1.2 libstdc++-4.1.2 (32 bit) libstdc++-devel 4.1.2 libXext-1.0.1 libXext-1.0.1 (32 bit) libXtst-1.0.1 libXtst-1.0.1 (32 bit) libX11-1.0.3 libX11-1.0.3 (32 bit) libXau-1.0.1 libXau-1.0.1 (32 bit) libXi-1.0.1 libXi-1.0.1 (32 bit) make-3.81 sysstat-7.0.2

额外增加x86_64

1. compat-libcap1-1.10-1 (x86_64) 2. compat-libstdc++-33-3.2.3-69.el6 (x86_64) 3. gcc-4.4.4-13.el6 (x86_64) 4. gcc-c++-4.4.4-13.el6 (x86_64) 5. glibc-devel-2.12-1.7.el6 (x86_64) 6. ksh <== any version of ksh is acceptable 7. libstdc++-devel-4.4.4-13.el6 (x86_64) 8. libaio-devel-0.3.107-10.el6 (x86_64) 

将安装光盘挂载到虚拟机,进入Server目录。使用rpm -qa查询包是否安装,使用rpm -ivh安装未安装的包

[root@ora12c Server]# pwd /media/OL5.7 x86_64 dvd 20110728/Server [root@ora12c Server]# rpm -qa compat-libstdc [root@ora12c Server]# rpm -ivh compat-libstdc++-33-3.2.3-61. compat-libstdc++-33-3.2.3-61.i386.rpm compat-libstdc++-33-3.2.3-61.x86_64.rpm [root@ora12c Server]# rpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpm warning: compat-libstdc++-33-3.2.3-61.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159 Preparing... ########################################### [100%] package compat-libstdc++-33-3.2.3-61.i386 is already installed [root@ora12c Server]# rpm -ivh compat-libstdc++-33-3.2.3-61.x86_64.rpm warning: compat-libstdc++-33-3.2.3-61.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159 Preparing... ########################################### [100%] package compat-libstdc++-33-3.2.3-61.x86_64 is already installed

按照此方法将所有包安装

2、创建oracle用户和组

[root@ora12c Server]# groupadd oinstall [root@ora12c Server]# groupadd dba [root@ora12c Server]# useradd -g oinstall -G dba oracle [root@ora12c Server]# passwd oracle Changing password for user oracle. New UNIX password: BAD PASSWORD: it is based on a dictionary word Retype new UNIX password: passwd: all authentication tokens updated successfully.

3、创建目录

[root@ora12c Server]# mkdir -p /oracle/ [root@ora12c Server]# chown -R oracle:oinstall /oracle/ [root@ora12c Server]# chmod -R 775 /oracle/

4、修改内核参数
在/etc/sysctl.conf文件下加入如下参数

[root@ora12c Server]# vim /etc/sysctl.conf fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 536870912 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

/sbin/sysctl -p 使参数生效

[root@ora12c Server]# /sbin/sysctl -p fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 536870912 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 net.ipv4.ip_forward = 0 net.ipv4.conf.default.rp_filter = 2 net.ipv4.conf.default.accept_source_route = 0 kernel.sysrq = 0 kernel.core_uses_pid = 1 net.ipv4.tcp_syncookies = 1 kernel.msgmnb = 65536 kernel.msgmax = 65536 kernel.shmmax = 68719476736 kernel.shmall = 4294967296

5、修改用户限制
在/etc/security/limits.conf加入相关配置

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/e6903b6888f64ac14a06fe644ff23795.html