centos6 安装 oracle 11g
Posted 缪阿布
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos6 安装 oracle 11g相关的知识,希望对你有一定的参考价值。
系统准备
vi /etc/selinux/config iptables -F iptables -L /etc/init.d/iptables save
1.网络
2.内存 >3G
free -m
3.存储 >60G
df -lh
4.创建用户和用户组
groupadd oinstall groupadd dba useradd -g oinstall -G dba oracle passwd oracle mkdir -p /home/oracle/app mkdir /home/oracle/app/oraInventory mkdir /home/oracle/app/oracle mkdir /home/oracle/app/oracle/product chown -R oracle:oinstall /home/oracle/app chmod -R 775 /home/oracle/app/
5.yum源
yum install wget -y cd /etc/yum.repos.d/ wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS6-Base-163.repo yum makecache yum update yum upgrade yum install java-1.8.0-openjdk.x86_64 yum install ntpdate -y yum install unzip -y yum -y install binutils compat-libcap1 compat-libstdc++.i686 compat-libstdc++.x86_64 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc.i686 glibc.x86_64 glibc-devel.i686 glibc-devel.x86_64 ksh libgcc.i686 libgcc.x86_64 libstdc++.i686 libstdc++.x86_64 libstdc++-devel.i686 libstdc++-devel.x86_64 libaio.i686 libaio.x86_64 libaio-devel.i686 libaio-devel.x86_64 libXext libXtst libX11 libXau libxcb libXi make sysstat unixODBC-devel.i686 unixODBC-devel.x86_64 unixODBC.i686 unixODBC.x86_64 compat-libstdc++-33.i686 compat-libstdc++-33.x86_64 #---------- yum install pdksh yum install -y ksh*
6.修改系统配置参数
vi /etc/sysctl.conf ``` kernel.shmall = 4294967296 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 ``` vi /etc/security/limits.conf ``` oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle hard stack 10240 ``` cat /proc/slabinfo | grep kio vi /etc/profile ``` if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi ``` source /etc/profile
7.root用户解压安装后修改目录权限[或者到oracle用户下解压安装]
cd /home/oracle unzip linux.x64_11gR2_database_1of2.zip unzip linux.x64_11gR2_database_2of2.zip chown -R oracle:oinstall /home/oracle chmod -R 775 /home/oracle
8.安装图形用户界面
yum groupinstall "Desktop" yum groupinstall "X Window System" yum groupinstall "KDE Desktop"
----
#启用图形用户界面
init 5
9.安装 ./runinstall
1.取消勾选(更新密码支持)
2.选项"Create and configure a database"
3."Desktop Class"
4.输入管理员密码
5.直接next
6.勾选"Ignore All" -> next
7.点击"Password Management" ->设置sys/system两项密码
8.安装最后运行一下两个脚本
bash oraInventory/orainstRoot.sh
bash app/oracle/product/11.2.0/dbhome_1/root.sh
9.Finish
10.登录
#sqlplus /as sysdba
以上是关于centos6 安装 oracle 11g的主要内容,如果未能解决你的问题,请参考以下文章