zoukankan      html  css  js  c++  java
  • Oracle 安装前准备

    [root@localhost Desktop]# groupadd -g 110 oinstall 用来安装oracle软件
    [root@localhost Desktop]# groupadd -g 111 dba 数据库维护管理
    [root@localhost Desktop]# groupadd -g 112 asmadmin
    [root@localhost Desktop]# groupadd -g 114 asmdba
    [root@localhost Desktop]# groupadd -g 115 asmoper
     
     
    useradd -g oinstall -G dba,asmdba oracle
    passwd oracle
     
    useradd -g oinstall -G dba,asmdba,asmadmin,asmoper grid
    passwd grid
     
     
    [root@localhost Desktop]# su - grid
    [grid@localhost ~]$ vi .bash_profile
     
     
    export ORACLE_BASE=/u01/oracle
    export GRID_HOME=/u01/grid/11g
    export ORACLE_HOME=$GRID_HOME
    export ORACLE_SID=+ASM
    PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
     
    [root@localhost Desktop]# su - oracle
    [oracle@localhost ~]$ vi .bash_profile
    export ORACLE_BASE=/u01/oracle
    export DB_HOME=/u01/oracle/11g
    export ORACLE_HOME=$DB_HOME
    export ORACLE_SID=updb
    PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
     
     
     
    [root@localhost Desktop]# mkdir /u01/oracle/11g -p
    [root@localhost Desktop]# mkdir /u01/grid/11g -p
    [root@localhost Desktop]# mkdir /u01/oraInventory -p
    [root@localhost Desktop]# chown grid.oinstall /u01/ -R
    [root@localhost Desktop]# chown oracle.oinstall /u01/oracle/ -R
     
     
    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 = 1048576
     
     
     
    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 32768
     
    grid soft nproc 2047
    grid hard nproc 16384
    grid soft nofile 1024
    grid hard nofile 65536
    grid soft stack 10240
    grid hard stack 32768
     
     
     
    [root@localhost Desktop]# vi /etc/sysconfig/ntpd
    # Drop root to id 'ntp:ntp' by default.
    OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid -g"
    OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"
    [root@localhost Desktop]# /etc/init.d/ntpd restart
    Shutting down ntpd: [FAILED]
    Starting ntpd: [ OK ]
    [root@localhost Desktop]# chkconfig ntpd on
     
     
     
     
     
     
     
  • 相关阅读:
    mysql 表分区
    mysql 存储过程和函数
    mysql 主从复制
    nginx 生产中配置记录
    harbor资源管理垃圾回收
    harbor部署
    docker使用nfs 做跨主机存储
    基于Gluster分布式实现docker存储卷
    docker 部署elasticsearch集群
    记一次iptables配置(REJECT --reject-with icmp-host-prohibited)
  • 原文地址:https://www.cnblogs.com/fantiantian/p/3528804.html
Copyright © 2011-2022 走看看