CentOS6.5 system installation Oracle11gR2 database detailed process

Source: Internet
Author: User
1. prepare the [1] installation package [root @ localhostvar] # yum-starter-libstdc ++-elfutils-libelfelfutils-libelf-develglibcglibc-commonglibc-develgccgcc-c ++ libaiolibaio-d

1. preparations before installation

[1] install software packages


[Root @ localhost var] # yum-y install binutils compat-libstdc ++-elfutils-libelf-devel glibc-common glibc-devel


Gcc-c ++ libaio-devel libgcc libstdc ++-devel make sysstat unixODBC-devel

Install the software package pdksh-5.2.14-36.el5.i386.rpm (this package is not available in the yum source, so you need to install it manually, there will be a warning when installing oracle, but does not affect the final use)

Download the package and upload it to CentOS. run the following command to install the package. (See attachment for the software package)


[Root @ localhost public_root] # rpm-ivh pdksh-5.2.-. el5.i386. rpm

[2] changing kernel parameters


[Root @ localhost var] # vi/etc/sysctl. conf # Disable netfilter on bridges. # net. bridge. bridge-nf-call-ip6tables =# net. bridge. bridge-nf-call- Iptables= # Net. bridge. bridge-nf-call-arptables = # Controls the default maxmimum size of a mesage queuekernel. msgmnb = # Controls the maximum size of a message, in byteskernel. msgmax = # Controls the maximum shared segment size, in byteskernel. shmmax = # Controls the maximum number of shared memory segments, in pageskernel. shmall = # add net. ipv4.ip _ local_port_range = fs. file-max = kernel. shmall = kernel. shmmax = kernel. shmmni = kernel. sem = net. core. rmem_default = net. core. wmem_default = net. core. rmem_max = net. core. wmem_max = fs. aio-max-nr =

Run the following command to make the change take effect


[Root @ localhost var] # sysctl-p

[3] creating users and user groups required for oracle installation


[Root @ localhost var] # groupadd-g oinstall [root @ localhost var] # groupadd-g dba [root @ localhost var] # useradd-u-g oinstall-G dba-d /usr/oracle [root @ localhost var] # passwd oracle


[Root @ localhost var] # vi/etc/pam. d/login # % PAM-1.0auth [user_unknown = ignore success = OK ignore = ignore default = bad] must include system-authaccount required keys include system-authpassword include system-auth # pam_selinux.so close shocould be the first session rulesession required implements closesession required implements optional restart # Revoke open shocould only be followed by sessions to be executed in the user contextsession required implements opensession required implements optional implements force revokesession include system -auth-session optional pam_ck_connector.so


[Root @ localhost var] # vi/etc/security/limits. conf # Add oracle soft nproc oracle hard nproc oracle soft nofile oracle hard nofile at the end of the file


[Root @ localhost var] # vi/etc/profile # Add if [$ USER = "oracle"] at the end of the file; then if [$ SHELL = "/bin/ksh"]; then ulimit-p ulimit-n else ulimit-u-n fifi

[4] switch to an oracle User and configure


[Root @ localhost ~] # Su-oracle [oracle @ localhost ~] $ Chmod/usr/oracle [oracle @ localhost ~] $ Mkdir/usr/oracle/app [oracle @ localhost ~] $ Chmod/usr/oracle/app/[oracle @ localhost ~] $ Mkdir/usr/oracle/oradata [oracle @ localhost ~] $ Chmod/usr/oracle/oradata/[oracle @ localhost ~] $ Vi./. bash_profile # Add umask export ORACLE_BASE =/usr/oracle/app to the end of the file

 

2. install oracle database

[1] Download the oracle installation file (for linux x86) and upload it to CentOS

Http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html

[2] decompress the installation file


[Root @ localhost public_root] # unzip linux_11gR2_database_1of2.zip [root @ localhost public_root] # unzip linux_11gr2_databasetimely f2.zip

[3] log on as an oracle User. run the startx command to start the graphical interface, open a terminal window, go to the folder where the database is just extracted, and run the following command


[Oracle @ localhost database] $./runInstaller

[4] as shown in the oracle installation interface, enter the email address and password (oracle user) to receive security updates and other information from oralce.

[5] Only install database software

[6] selecting to install a single instance database in this instance

[7] select a language

[8] select the version to be installed. select "Enterprise Edition" here"

[9] specify the Oracle Base and Software Location. we have set this environmental variable in the profile file of the oracle user, and keep the default value here.

[10] specifies the Inventory Directory. In this example, the default Directory is used.

[11] specify the oralce privileged user group. In this example, retain the default value.

[12] Next, the oralce Installer checks the installation environment. In this example, no problems are detected. the installation information is as follows. Directly Finish and start installation.

[13] waiting for oracle installation

[14] When the following window appears, open another terminal, log on as the root user, and execute the following command. After the execution is complete, click OK


[Root @ localhost ~] #/Usr/oracle/oraInventory/orainstRoot. shChanging permissions of/usr/oracle/oraInventory. adding read, write permissions for group. removing read, write, execute permissions for world. changing groupname of/usr/oracle/oraInventory to oinstall. the execution of the script is complete. [root @ localhost ~] #/Usr/oracle/app/product/11.2. /dbhome_1/root. shRunning Oracle 11g root. sh script... the following environment variables are set as: ORACLE_OWNER = oracle ORACLE_HOME =/usr/oracle/app/product/11.2. /dbhome_1

[15] Now the oracle 11g R2 database has been installed.

 

[16] Other considerations

Disable SeLinux

Configure the FTP and above Upload installer (you can also use other methods)

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.