Centos6.10 Silent Installation Oracle 11G detailed tutorial

Source: Internet
Author: User

Platform: Centos 6.10 x64 with graphics
Configuring 4G 4 Core CPU 200G HDD

First step, installation dependent

yum install -y binutils compat-libcap1 compat-libstdc++-33  gcc gcc-c++ glibc glibc-devel ksh libgcc libstdc++ libstdc++-devel libaio libaio-devel  make sysstat unixODBC-devel pdksh

Download the JAVARPM package to install Oracle Java

[[email protected] ~]# rpm -ivh jdk-8u121-linux-x64.rpm     Preparing...                ########################################### [100%]   1:jdk1.8.0_121           ########################################### [100%]

Step two, create the required users and groups

Create an Oracle user and set a password

[[email protected] ~]# useradd oracle[[email protected] ~]# passwd oracle

Create a user group

[[email protected] ~]# groupadd oinstall[[email protected] ~]# groupadd dba

Modifying an Oracle User group

usermod -g oinstall -G dba oracle

Step three, modify kernel parameters

追加一段内核参数
[[email protected] ~]# vim /etc/sysctl.conf........fs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576执行生效[[email protected] ~]# sysctl -p

Modify file open limit, append a paragraph

[[email protected] ~]# vim /etc/security/limits.conf.......oracle             soft    nproc           4096oracle             hard    nproc           65536oracle             soft    nofile          4096oracle             hard    nofile          65536

Create an Oracle installation directory

[[email protected] ~]# mkdir -p /u01/app/[[email protected] ~]# chown -R oracle:oinstall /u01/app/[[email protected] ~]# chmod -R 775 /u01/app/

Restart the server for limit to take effect

Fourth step, add environment variables, ready to install

Using Oracle User Login

[[email protected] ~]# su - oracle[[email protected] ~]$ vim .bash_profile#追加下面这段ORACLE_BASE=/u01/app/oracleORACLE_SID=salesORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1export ORACLE_BASE ORACLE_SID ORACLE_HOMEPATH=$ORACLE_HOME/bin:$PATH

Check that the host name can be accessed without

[[email protected] ~]$ ping o1PING o1 (192.168.1.18) 56(84) bytes of data.64 bytes from o1 (192.168.1.18): icmp_seq=1 ttl=64 time=0.061 ms

Check Normal

Extracting an Oracle installation package

[[email protected] ~]$ unzip linux.x64_11gR2_database_1of2.zip[[email protected] ~]$ unzip linux.x64_11gR2_database_2of2.zip

Fifth step, start the installation

Go to the installation directory and start the installation
Silent installation command, the main configuration in DB.RSP, this file can be generated through the graphical installer, can be found from my other article http://blog.51cto.com/niubdada/2163938

Edit Db.rsp, find here to set the passwordoracle.install.db.config.starterdb.password.ALL=密码

[[email protected] ~]$ cd database/[[email protected] ~]$ ./runInstaller -ignorePrereq -silent -responseFile /usr/local/database/db.rsp

The installation process takes a few minutes.

Installation successful, prompt to execute two scripts, use ROOT to execute

Complete

Centos6.10 Silent Installation Oracle 11G detailed tutorial

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.