The most complete Centos6.10 detailed installation of Oracle 11G R2 Graphics Tutorial

Source: Internet
Author: User
Tags dba

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

Then log in to the graphical interface to test the Oracle user
Test Normal

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

进入安装目录,开始安装
[[email protected] ~]$ cd database/[[email protected] database]$ ./runInstaller

Then eject the installer, remove the tick below and click Next

And next.

Select Server, then click Next

And next.

Select Advanced installation, then click Next

And next.

Next

Next

Next

Next

Next

Click on the character set, then tick UTF8, then next

Next

Next

Next

Tick all accounts below to use the same password, next

Next

Start checking the dependency package, actually these packages are loaded, but the version is high, tick ignore all, and then next

Click Save response file to save the selection configuration, click Finish to start the installation

In the installation

After installation is prompted, the blue is the EM console access address, click OK

Then prompt to execute two scripts, using ROOT to execute

[[email protected] ~]# sh/u01/app/orainventory/orainstroot.sh changing permissions of/u01/app/ Orainventory.adding read,write permissions for group. Removing Read,write,execute permissions for the world. Changing groupname of/u01/app/orainventory to Oracle. The execution of the script is complete. [[email protected] ~]# [[email protected] ~]# sh/u01/app/oracle/product/11.2.0/dbhome_1/root.sh Running Oracle 11g root.sh Script ... The following environment variables is set as:oracle_owner= ORACLE oracle_home=/u01/app/oracle/product/11.2.0/db   Home_1enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to/usr/local/bin ...   Copying oraenv To/usr/local/bin ... Copying coraenv To/usr/local/bin ... Creating/etc/oratab file ... Entries'll be added to The/etc/oratab file as needed bydatabase Configuration Assistant when a database is Createdfinis Hed running generic part of root.sh script. Now product-specific root actions would be performed.finished product-specific root actions. 

Execution complete, click OK, install successful

Open port 1158 on the machine and log in to the console

Running state

The most complete Centos6.10 detailed installation of Oracle 11G R2 Graphics Tutorial

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.