Detailed steps for installing Oracle 11.2.0.4.0 in a Linux environment

Source: Internet
Author: User
Tags iptables

Objective:

recently in the study of Oracle, here I put the installation and configuration process to record, follow my method of this step by point basically no problem, If you have any questions, you can talk about learning from each other.


Installation environment and version:

System version: Redhat 6.5

Oracle version: 11.2.0.4.0

Virtual machine version: Vbox 5.0.2

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/86/86/wKioL1fCizSjFygcAABlbKmbqfQ116.jpg-wh_500x0-wm_3 -wmp_4-s_3137698090.jpg "title=" 22341.jpg "alt=" Wkiol1fcizsjfygcaablbkmbqfq116.jpg-wh_50 "/>



Configuration requirements:

Memory 1.5g+,swap suitable size is 2G

When selecting a service, it is recommended to select all, turn off the firewall, turn off SELinux


First, pre-installation environment preparation

1, install the Oracle Server software, you need to install the following package (as far as possible to configure Yum installation, so save the matter)

Yum-y Install Binutils
Yum-y Install compat-libstdc++
Yum-y Install glibc
Yum-y Install Elfutils-libelf
Yum-y Install Elfutils-libelf-devel
Yum-y Install Libaio
Yum-y Install LIBGCC
Yum-y Install libstdc++
Yum-y Install make
Yum-y Install Compat-libcap1
Yum-y Install GCC
Yum-y Install gcc-c++
Yum-y Install Glibc-devel
Yum-y Install Libaio-devel
Yum-y Install Libstdc++-devel
Yum-y Install Sysstat


2, configuration/etc/hosts will host and IP (this is not configured after the installation will error)

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/86/85/wKioL1fCg-ihyvGLAABCyZ4MZHs701.jpg-wh_500x0-wm_3 -wmp_4-s_2457048268.jpg "title=" 1.jpg "alt=" Wkiol1fcg-ihyvglaabcyz4mzhs701.jpg-wh_50 "/>


3. Create and view Oracle required users and groups

GROUPADD-G 310 dba #创建dba组
Groupadd-g 311 Oinstall #创建oinstall Group

Mkdir/home/db/oracle #创建oracle用户家目录

Useradd-u 500-g oinstall-g dba-d/home/db/oracle Oracle #创建oracle user and specify home directory

cp/etc/skel/.* /home/db/oracle #拷贝环境变量配置文件

Chmod-r 755 oracle:oinstall/home/db/oracle #赋值用户权限


4, the detection of nobody user existence, the default is the existence of

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/86/85/wKioL1fChcmypscFAAAgb1uYZl4205.jpg-wh_500x0-wm_3 -wmp_4-s_2470480619.jpg "title=" 22.jpg "alt=" Wkiol1fchcmypscfaaagb1uyzl4205.jpg-wh_50 "/>


5. Configure User Password

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/86/85/wKioL1fChhvRBXTJAAAd25jK22U219.jpg-wh_500x0-wm_3 -wmp_4-s_741527489.jpg "title=" 33.jpg "alt=" Wkiol1fchhvrbxtjaaad25jk22u219.jpg-wh_50 "/>


6. Use Chkconfig to close some unnecessary services, such as:

NetworkManager

Cups

Ip6tables
Postfix

Wait a minute

In principle, if you don't use it, you can close it.


7. Close SELinux and Iptables

Iptables-f

Iptables-x

Edit/etc/selinux/config, state becomes disabled

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/86/86/wKiom1fCirLSHNZ9AACSlFKXFQ4246.jpg-wh_500x0-wm_3 -wmp_4-s_309186390.jpg "title=" 223.jpg "alt=" Wkiom1fcirlshnz9aacslfkxfq4246.jpg-wh_50 "/>


8, modify the/etc/sysctl.conf file, add the following content:

#Oracle SETTING
FS.AIO-MAX-NR = 4194304
Fs.file-max = 6815744
Kernel.shmall = 16777216
Kernel.shmmax = 68719476736
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
Vm.swappiness =100


Enter the following command to take effect

# sysctl-p


9, edit/etc/pam.d/login Add the following content

#ORACLE SETTING

Session Required Pam_limits.so


10, edit/etc/security/limits.conf, add the following content

Oracle Soft Nproc 16384
Oracle Hard Nproc 16384
Oracle Soft Nofile 65536
Oracle Hard Nofile 65536
Oracle Soft Stack 10240


11, edit the Oracle user environment variables, you need to be aware of different host language character set different settings are slightly different

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/86/86/wKiom1fCmWXDB6wqAAByTjUYYOY196.jpg-wh_500x0-wm_3 -wmp_4-s_2423668967.jpg "title=" 22.jpg "alt=" Wkiom1fcmwxdb6wqaabytjuyyoy196.jpg-wh_50 "/>

Where 1 represents the location of the Oracle software installation, 2 represents the SID, and this is usually the same name when the repository is built.


Note:

This I installed the software in the Oracle user's home directory, followed by the prompt to determine directly


12, upload Oracle software to/tmp directory, and give Oracle permissions, and finally become like this

Chown Oracle:oinstall-r/tmp/database

chmod +x-r/tmp/database

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/86/86/wKiom1fCj1_RdBCIAAAm_FD0ANk251.jpg-wh_500x0-wm_3 -wmp_4-s_543304965.jpg "title=" 34.jpg "alt=" Wkiom1fcj1_rdbciaaam_fd0ank251.jpg-wh_50 "/>


Second, the beginning of the installation of Oracle software, through the preparation of many steps ahead, finally can start, is not very happy Ah,

I install the use of the Xmanager software, if there is too troublesome system has installed the desktop, can be executed in the desktop terminal


1. Execute in database directory./runinstaller, click to remove the tick, then click Next

This step is to configure the Security Center, can be updated online, requires the database server to link the extranet

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/86/86/wKioL1fClUTTc79qAADT5F21bCo136.jpg-wh_500x0-wm_3 -wmp_4-s_1008713391.jpg "title=" 2.jpg "alt=" Wkiol1fcluttc79qaadt5f21bco136.jpg-wh_50 "/>


2, the next page is the software patch related settings, select skip software updates to the next step


650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/86/86/wKioL1fClWrjgJNRAADFQC0nKlU867.jpg-wh_500x0-wm_3 -wmp_4-s_3223678802.jpg "title=" 2.jpg "alt=" Wkiol1fclwrjgjnraadfqc0nklu867.jpg-wh_50 "/>

3, installation options, it is strongly recommended to choose Install database softwareonly, the software installation and database creation separate:


650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/86/86/wKiom1fClZDiQLG6AACUmTaf-6o314.jpg-wh_500x0-wm_3 -wmp_4-s_3778077268.jpg "title=" 3.jpg "alt=" Wkiom1fclzdiqlg6aacumtaf-6o314.jpg-wh_50 "/>

4, This document is a single-instance database creation, so choose to install only the database software


650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/86/86/wKiom1fCla-jD_IVAACNsJqB3sY178.jpg-wh_500x0-wm_3 -wmp_4-s_2422982480.jpg "title=" 4.jpg "alt=" Wkiom1fcla-jd_ivaacnsjqb3sy178.jpg-wh_50 "/>

5, the next page is the choice of product language, this is not a database character set, choose Chinese enough, of course, you want to choose Simplified Chinese also does not matter:


650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/86/86/wKiom1fCleCShDxnAACzhH-KIKQ570.jpg-wh_500x0-wm_3 -wmp_4-s_367184947.jpg "title=" 5.jpg "alt=" Wkiom1fclecshdxnaaczhh-kikq570.jpg-wh_50 "/>


6, Next is the database software version selection. Choose the Enterprise Edition according to our needs


650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/86/86/wKioL1fClgCTXmqtAADe7d3Ps3I715.jpg-wh_500x0-wm_3 -wmp_4-s_153133472.jpg "title=" 6.jpg "alt=" Wkiol1fclgctxmqtaade7d3ps3i715.jpg-wh_50 "/>


7, Install the Directory Configuration page, if you have set the environment variable $ORACLE _base, then the directory here will be automatically generated


650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/86/86/wKioL1fClhvSYdiyAADDQ3UpXFM353.jpg-wh_500x0-wm_3 -wmp_4-s_1899638796.jpg "title=" 8.jpg "alt=" Wkiol1fclhvsydiyaaddq3upxfm353.jpg-wh_50 "/>


8. Create a product inventory Catalog to record which Oracle products have been installed

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/86/86/wKiom1fCljfCssRkAAC5ncPNkBo596.jpg-wh_500x0-wm_3 -wmp_4-s_836280404.jpg "title=" 9.jpg "alt=" Wkiom1fcljfcssrkaac5ncpnkbo596.jpg-wh_50 "/>



9, Sysdbaand theSysoper permissions will be given to two members of the operating system user group that are logged into the database through the operating system authentication, where Sysoperpermissions are actuallySYSDBA subset of the. If we created the previous DBAand theOper user groups, the default values here are DBAand theOper , butSysoperpermissions usually do not require additional settings, so we did not create the user group earlier, so the Database Operator GroupIt 's empty, and you can choose DBAand other groups:users of the Oinstall group have permission to execute sqlplus to access the database

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/86/86/wKioL1fClmuz57wfAAC9PST4yL4949.jpg-wh_500x0-wm_3 -wmp_4-s_3141171763.jpg "title=" 10.jpg "alt=" Wkiol1fclmuz57wfaac9pst4yl4949.jpg-wh_50 "/>


10, enter the installation detection, here prompt swap and ip_local_port_rane alarm, can be repaired in the reconstruction detection installation,

of course, this warning can also Ignore Ignore it, you can also manually modify the kernel parameters

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/86/86/wKiom1fClpCjJkk-AADUxO1GRj4910.jpg-wh_500x0-wm_3 -wmp_4-s_1052613088.jpg "title=" 10.jpg "alt=" Wkiom1fclpcjjkk-aaduxo1grj4910.jpg-wh_50 "/>


11. Click Start Installation

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/86/86/wKiom1fClsWj_F4pAADM6TKj9Ws133.jpg-wh_500x0-wm_3 -wmp_4-s_2263756070.jpg "title=" 11.jpg "alt=" Wkiom1fclswj_f4paadm6tkj9ws133.jpg-wh_50 "/>


12, If the previous installation premise to meet the requirements, or did not check out too big problems, then the actual installation process will be very smooth.

at the end, the following window pops up, prompting you to use Root user to complete the execution of the following two scripts:

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/86/86/wKioL1fCluviiIXsAADnZOP_aIM280.jpg-wh_500x0-wm_3 -wmp_4-s_660970587.jpg "title=" 12.jpg "alt=" Wkiol1fcluviiixsaadnzop_aim280.jpg-wh_50 "/>


13, use the root user to execute the above two scripts can

sh/home/db/orainventory/orainstroot.sh

sh/home/db/oracle/product/11.2.0/dbhome_1/root.sh


14, finally installed successfully completed interface, click Close to complete the installation :

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/86/86/wKiom1fCl0SgmLr9AABg4MHj8o0490.jpg-wh_500x0-wm_3 -wmp_4-s_1807019129.jpg "title=" 123.jpg "alt=" Wkiom1fcl0sgmlr9aabg4mhj8o0490.jpg-wh_50 "/>


Now that the Oracle 11g software is installed, you can then create the database.

This article is from the "record a bit of learning life" blog, please make sure to keep this source http://ureysky.blog.51cto.com/2893832/1843543

Detailed steps for installing Oracle 11.2.0.4.0 in a Linux environment

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.