首页 > 数据库 > Oracle > Oracle12cr2单实例安装
12C安装过程
操作系统选项数据库
操作系统版本rehat linux redhat 6
数据库版本Oracle 12.2.0.1
如果系统未安装图形界面需要安装
挂载镜像
mount /dev/cdrom /mnt
配置yum源
[root@prod1 yum.repos.d]# vi oen.repo
[oem]
name=oem
baseurl=file:///mnt/Server/
gpgcheck=0
enabled=1
检查没有安装的组
yum grouplist | more
没有安装的组件
ps -A | egrep -i "gnome|kde|mate|cinnamon|lx|xfce|jwm"
使用yum grouplist 可以看到有Desktop、Desktop Platfrom、X Window System、Graphics Creation Tools等桌面环境有关的软件组件可以安装
安装相关组件
yum groupinstall "Desktop" "Desktop Platform"
yum groupinstall "X Window System" "Graphics Creation Tools"
[root@prod1 ~]# grep MemTotal /proc/meminfo
MemTotal: 2035896 kB
# grep SwapTotal /proc/meminfo
SwapTotal: 4144760 kB
# df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 2.0G 320M 1.6G 18% /tmp
# df –h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 43G 2.6G 38G 7% /
/dev/sda3 2.0G 320M 1.6G 18% /tmp
tmpfs 995M 0 995M 0% /dev/shm
/dev/sr0 3.6G 3.6G 0 100% /media/Oracle Linux Server dvd 20110119
# free
total used free shared buffers cached
Mem: 2035896 639972 1395924 0 34364 355956
-/+ buffers/cache: 249652 1786244
Swap: 4144760 0 4144760
[root@prod1 yum.repos.d]# cat /etc/oracle-release
Oracle Linux Server release 5.6
[root@prod1 yum.repos.d]# uname -r
2.6.32-100.26.2.el5
配置yum源
[root@prod1 yum.repos.d]# vi oen.repo
[oem]
name=oem
baseurl=file:///mnt/Server/
gpgcheck=0
enabled=1
安装需要的rpm包
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
[root@prod1 yum.repos.d]# yum install -y gcc gcc-c++ glibc glibc-devel libaio libaio-devel libgcc libstdc++ libstdc++-devel libXext libXtst libX11 libXau libXi make sysstat unixODBC-devel unixODBC ksh compat-libcap1 compat-libstdc++-33
/usr/sbin/sestatus
[root@prod1 network-scripts]# cat /etc/selinux/config |grep SELINUX=
# SELINUX= can take one of these three values:
SELINUX=disabled
/usr/sbin/sestatus
/usr/sbin/getenforce
临时关闭防火墙
setenforce 0
vi /etc/selinux/config
SELINUX=disabled
开启: service iptables start
关闭: service iptables stop
vi /etc/hosts
192.168.56.33 prod
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle
mkdir /soft
chown -R oracle:oinstall /soft
chmod -R 775 /soft
mkdir -p /u01/app/
chown -R oracle:oinstall /u01/app/
chmod -R 775 /u01/app/
[oracle@prod1 ~]$ vi .bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=ORA12CR1
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
[root@prod1 yum.repos.d]# vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 976678912
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
生效修改的内核参数
[root@prod1 yum.repos.d]# /sbin/sysctl -p
[root@prod1 yum.repos.d]# vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 10240
使用bashshell
vi /etc/profile
if [ $USER = "oracle" ]; then
ulimit -u 16384
ulimit -n 65536
fi
[oracle@prod1 database]$ ./runInstaller
[oracle@prod1 database]$ dbca
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31324783/viewspace-2138761/ ,如需转载,请注明出处,否则将追究法律责任。