CentOS7.2 using the shell to install oracle12c

Source: Internet
Author: User
Tags chmod dba

1. Install the necessary packages

 forPkginch 'binutils' 'Compat-libcap1' 'compat-libstdc++-33' 'GCC' 'gcc-c++' 'glibc' 'Glibc-devel' 'Ksh' 'Libaio' 'Libaio-devel' 'LIBGCC' 'libstdc++' 'Libstdc++-devel' 'Libxi' 'libxtst' ' Make' 'Sysstat' Dorpm-qa |grep$pkgif[$?-ne0] ; Then  sudo Yum Install$pkg-yElse  Echo$PKG \ t >>"has been installed" fi Done

2. Close Memory Transparent Large page

echo "Transparent_hugepage=never" >> sudo/etc/grub2.cfg

3. Create user groups and users

Groupadd-g54321Oinstall;groupadd-G54322Dba;groupadd-G54323Oper;groupadd-G54324Backupdba;groupadd-G54325Dgdba;groupadd-G54326Kmdba;groupadd-G54327Asmdba;groupadd-G54328Asmoper;groupadd-G54329Asmadmin;useradd-U54321-G oinstall-g dba,asmdba,backupdba,dgdba,kmdba-s/bin/bash-d/home/Oracle OracleEcho "1"|sudo passwd--stdin Oracle

4.

Chown-r Oracle:oinstall/oracle/oradata
chmod 755/oracle/oradata

5. Configure environment Variables Oracle_base oracle_home oracle_sid ld_library_path
Echo-e "Oracle_base=/oracle\noracle_home=\ $ORACLE _base/product/12.1.0/db_1\n\
Oracle_sid=zheng\npath=\ $PATH: \ $ORACLE _home/bin\n\
Ld_library_path= $ORACLE _home/lib:/usr/lib\n
Export oracle_base oracle_home oracle_sid PATH ld_library_path ">>.bash_profile

6.

Unzip oracle12c.zip-d/tmp
chmod +x/tmp/database

/tmp/database/runinstaller

CentOS7.2 using the shell to install oracle12c

Related Article

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.