CentOS7.3 on Deployment Installation oracle12c

Source: Internet
Author: User
Tags dba sqlplus

Preparatory work:
    1. A set of CentOS7.3
    2. ORACLE12C installation Package
    3. Preferably set to dual core, 4G memory, 8G virtual memory
    4. Nat Mode installation process: 1. Turn off firewall self-booting and related features and enhanced security features
systemctl disable firewalld.servicesystemctl stop firewalld.servicesetenforce 0
2. Create an XFS file system and mount it no less than 15G, mount the directory as/orc

Create a new 20G disk SDB

fdisk /dev/sdb              //新建分区,生成sdb1,默认空间大小即可mkfs -t xfs /dev/sdb1           //格式化磁盘,格式为xfsmount /dev/sdb1 /orc        //挂载至/orc目录下
vim /etc/hostname   //更改主机名Oracle   添加    HOSTNAME=oraclevim /etc/hosts    192.168.100.151 Oracle      //创建快捷域名解析
3.yum Install the required packages
yum -y install binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libXi libXtst make sysstat unixODBC unixODBC-devel
4. Adjust kernel parameters
vim /etc/sysctl.conf        //添加以下内容    fs.aio-max-nr = 1048576   //异步IO请求数目 推荐值是:1048576 其实它等于 1024*1024 也就是 1024K 个    fs.file-max = 6815744  //打开的文件句柄的最大数量,防止文件描述符耗尽的问题    kernel.shmall = 2097152 //共享内存总量 页为单位,内存除以4K所得    kernel.shmmax = 4294967295      kernel.shmmni = 4096    kernel.sem = 250 32000 100 128  //SEMMSL: 每个信号集的最大信号数量 SEMMNS:用于控制整个 Linux 系统中信号的最大数 SEMOPM: 内核参数用于控制每个 semop 系统调用可以执行的信号操作的数量 SEMMNI :内核参数用于控制整个 Linux 系统中信号集的最大数量    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   //套接字发送缓冲区大小的最大值sysctl -p       //重新加载配置文件
5. User Environment Configuration
groupadd oinstall       //添加用户组groupadd dba            //添加用户组useradd -g oinstall -G dba oracle       //添加用户oracle,所属用户组为oinstall,所属附属用户组为dbapasswd oracle   //密码123123mkdir -p /orc/app/oracle        //创建工作目录chown -R oracle:oinstall /orc/app/      //改变目录属主属组chmod -R 755 /orc/app/oracle/       //改变权限
vim /home/oracle/.bash_profile   //oracle用户环境配置,添加以下内容    umask 022    ORACLE_BASE=/orc/app/oracle    ORACLE_HOME=/orc/app/oracle/product/12.2.0/dbhome_1/    ORACLE_SID=orcl    NLS_LANG="SIMPLIFIED CHINESE_CHINA".UTF8    PATH=$PATH:$HOME/.local/bin:$HOME/bin:$ORACLE_HOME/bin    LANG=zh_CN.UTF-8    export PATH LANG NLS_LANG ORACLE_BASE ORACLE_HOME ORACLE_SID
6.oracle user resource limit, using Pam_limits authentication module
vim /etc/pam.d/login        //末尾添加    session    required     /lib/security/pam_limits.so    session    required     pam_limits.so
vim /etc/security/limits.conf       //末尾添加    oracle        soft    nproc           2047       //单用户可使用的进程数量    oracle        hard    nproc           16384    oracle        soft    nofile          1024       //用户可打开的文件数量    oracle        hard    nofile          65536    oracle        soft    stack           10240      //堆栈设置
vim /etc/profile        //末尾添加if [ $USER = "oracle" ] then   if [ $SHELL = "/bin/ksh" ]     then       ulimit -p 16384       //缓冲区大小       ulimit -p 65536   else     ulimit -u 16384 -n 65536    //进程数  文件数   fifi
7. Install Oracle

Mount the prepared Oracle installation package folder in/ABC for use

在图形化界面中以root身份进行如下操作xhost +             //所有用户都能访问X serversu - oracle   //切换到oracle用户cd /abc         //安装包挂载目录        export DISPLAY=:0.0./runInstaller      //运行安装程序








8. Install the pop-up window handling
su - root       //切换到root用户/orc/app/oraInventory/orainstRoot.sh/orc/app/oracle/product/12.2.0/dbhome_1/root.sh
9.web Interface Management
rpm -ivh flash-player-npapi-26.0.0.131-release.x86_64.rpm        //手动安装flash插件

Open the Firefox browser in the graphical interface to access https://Oracle:5500/em, login: sys password: abc123 check: As Sysdba


10. Log in using the command line interface
sqlplus / as sysdba  //sys用户是oracle的最高管理员所以要加上as如果是普通用户登录   sqlplus 用户名/密码SQL> help index     //查看命令列表,sql中不区分大写小写SQL> show user       //查看当前用户



CentOS7.3 on Deployment Installation oracle12c

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.