zoukankan      html  css  js  c++  java
  • 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
    

      

  • 相关阅读:
    POJ 1811 Prime Test 素性测试 分解素因子
    sysbench的安装与使用
    电脑中已有VS2005和VS2010安装.NET3.5失败的解决方案
    I.MX6 show battery states in commandLine
    RPi 2B Raspbian system install
    I.MX6 bq27441 driver porting
    I.MX6 隐藏电池图标
    I.MX6 Power off register hacking
    I.MX6 Goodix GT9xx touchscreen driver porting
    busybox filesystem httpd php-5.5.31 sqlite3 webserver
  • 原文地址:https://www.cnblogs.com/mologa-jie/p/7503065.html
Copyright © 2011-2022 走看看