Oracel 12cR1install for Oracle Linux 6.5
Database software:
db12102_V46095-01_1of2.zip
db12102_V46095-01_2of2.zip
Grid Infrastructure:
gi12012_V46096-01_1of2.zip
gi12012_V46096-01_1of2.zip
下載地址:
http://edelivery.oracle.com/
硬盤空間最低要求:6.5G以上
內存空間最低要求:2G以上
SWAP空間分配 :
RAM
Swap Space
Between 1 GB and 2 GB
1.5 times the size of RAM
Between 2 GB and 16 GB
Equal to the size of RAM
More than 16 GB
16G
修改/etc/hosts文件,必需包含一個全限定名
<IP-address> <fully-qualified-machine-name> <machine-name>
例如:
127.0.0.1 localhost.localdomain localhost
192.168.0.210 ol6-121.localdomain ol6-121
在Oracle 12c可以自動或手動完成一些系統的基本配置
可以使用 "oracle-rdbms-server-12cR1-preinstall"包執行所有預安裝步驟,通過下面的命令:
# yum install oracle-rdbms-server-12cR1-preinstall -y
注意:如果沒有安裝yum庫,要首先安裝yum庫,通過下面的方法
# cd /etc/yum.repos.d
# wget https://public-yum.oracle.com/public-yum-ol6.repo
也可在安裝之前最後做一次完全的包更新(非必需)
# yum update
# yum install oracle-rdbms-server-12cR1-preinstall -y
如果不使用"oracle-rdbms-server-12cR1-preinstall"包執行預安裝操作,你需要手動執行下面的安裝步驟:
◆添加或修改/etc/sysctl.conf文件
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
執行生效
/sbin/sysctl -p
◆修改/etc/security/limits.conf文件
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
◆安裝必需系統rpm包
# From Public Yum or ULN
yum install binutils -y
yum install compat-libcap1 -y
yum install compat-libstdc++-33 -y
yum install compat-libstdc++-33.i686 -y
yum install gcc -y
yum install gcc-c++ -y
yum install glibc -y
yum install glibc.i686 -y
yum install glibc-devel -y
yum install glibc-devel.i686 -y
yum install ksh -y
yum install libgcc -y
yum install libgcc.i686 -y
yum install libstdc++ -y
yum install libstdc++.i686 -y
yum install libstdc++-devel -y
yum install libstdc++-devel.i686 -y
yum install libaio -y
yum install libaio.i686 -y
yum install libaio-devel -y
yum install libaio-devel.i686 -y
yum install libXext -y
yum install libXext.i686 -y
yum install libXtst -y
yum install libXtst.i686 -y
yum install libX11 -y
yum install libX11.i686 -y
yum install libXau -y
yum install libXau.i686 -y
yum install libxcb -y
yum install libxcb.i686 -y
yum install libXi -y
yum install libXi.i686 -y
yum install make -y
yum install sysstat -y
yum install unixODBC -y
yum install unixODBC-devel -y
通過下面的命令檢查包的完整性:
# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' \binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libgcc libstdc++ libstdc++-devel libaio libaio-devel libXext libXtst libX11 libXau libxcb libXi make sysstat unixODBC unixODBC-devel
◆創建用戶組和用戶
groupadd oinstall默認已經有
groupadd dba默認已經有
groupadd oper
groupadd asmadmin
userdel oracle
cd /home rm -rf oracle
useradd -g oinstall -G dba,oper,asmadmin oracle
passwd oracle
passwd oracle
在文件“/etc/security/limits.d/90-nproc.conf”添加下面的內容
$ vi /etc/security/limits.d/90-nproc.conf
# Change this
* soft nproc 1024
# To this
* - nproc 16384
修改"/etc/selinux/config"文件
SELINUX=permissive #或是enforcing
執行下面的命令使生效或重啟服務器
# setenforce Permissive
# service iptables stop
# chkconfig iptables off
mkdir -p /u01/app/oracle/product/12.1.0.2/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01