CentOS 6.4 Install Oracle 11GR2 detailed steps (multiple drawings) _oracle

Source: Internet
Author: User
Tags chmod dba mkdir
Pre-Installation Instructions:

The minimum memory (RAM) requirement is 1GB, recommended 2GB and above. Virtual memory swap recommends that the swap size be 1.5 times times the size of memory when memory is 1GB~2GB, and that swap size is the size of memory when memory is 2GB~16GB, and swap remains 16GB when memory exceeds 16GB. Requires a temporary file directory, such as/tmp, at least 1GB of disk space. Disk space requirements: The Enterprise version of the 4.35GB installation space and 1.7GB of data file space, the standard version of the 4.22GB installation space and 1.5GB data file space. The X window graphical interface is required. Need

Root permissions This article installs the environment:

Operating system CentOS 6.4 2.6.32-358.el6.x86_64 (Desktop), 2GB RAM,80GB hard disk space (4GB swap, 100mb/boot, 40GB/) host name Mophee, IP 192.168.80.19 (Static) Environment: VMware Workstation 9.0 Install required packages (operate under root account):

binutils-2.17.50.0.6

compat-libstdc++-33-3.2.3

compat-libstdc++-33-3.2.3 (32 bit)

elfutils-libelf-0.125

elfutils-libelf-devel-0.125

gcc-4.1.2

gcc-c++-4.1.2

glibc-2.5-24

glibc-2.5-24 (32 bit)

glibc-common-2.5

glibc-devel-2.5

glibc-devel-2.5 (32 bit)

glibc-headers-2.5

ksh-20060214

libaio-0.3.106

libaio-0.3.106 (32 bit)

libaio-devel-0.3.106

libaio-devel-0.3.106 (32 bit)

libgcc-4.1.2

libgcc-4.1.2 (32 bit)

libstdc++-4.1.2

libstdc++-4.1.2 (32 bit)

libstdc++-devel 4.1.2

make-3.81

sysstat-7.0.2

unixODBC-2.2.14-11.el6 (x86_64) or later

unixODBC-2.2.14-11.el6.i686 or later

unixODBC-devel-2.2.14-11.el6 (x86_64) or later

unixODBC-devel-2.2.14-11.el6.i686 or later

libXp


Use command Yum list | grep ' package name ' or Rpm-q ' package name ' or Rpm-qa | grep ' package name ' to see if a package has been installed.



Use the command Yum install-y ' package name ' to install the missing package except the Pdksh package. Note: To install the bit package with Yum, you can modify the vi/etc/yum.conf first and add a row: Multilib_policy=all. Oracle in the inspection environment will require the installation of I386, but CentOS 6.4 CD-bit package is i686, in fact, the same, ignore this difference should not be small (see the installation section below).



yum install
-y binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel libaio libaio-devel libgcc libstdc++ libstdc++-devel make
numactl sysstat libXp unixODBC unixODBC-devel


Install the Pdksh package (the package is not included in the CentOS installation disk):



Using the command: wget ftp://rpmfind.net/linux/centos/5.9/os/x86_64/CentOS/pdksh-5.2.14-37.el5_8.1.x86_64.rpm to download the Pdksh package to the local



Install using the command RPM-IVH pdksh-5.2.14-37.el5_8.1.x86_64.rpm (Note: This package is in conflict with Ksh and it is recommended that you use the command rpm-e ksh-* Uninstall if you have already installed Ksh)


Create the desired group of users (operate under root account):
		
		
   
groupadd oinstall;
groupadd dba;
groupadd oper;
Create the required account number (operate under root account):


Use command ID Oracle; To see if an Oracle account already exists, and if not, create using the following command


useradd
-g oinstall -G dba, oper oracle; #The initial group is oinstall, and the effective group is dba, oper

passwd
oracle; #Set a password for the oracle account (login required during installation)


If an Oracle account already exists, use the command usermod-a-G Dba,oper Oracle to join the group DBA and Oper


To modify kernel parameters (operate under root account):


Edit the kernel parameter profile vi/etc/sysctl.conf, and modify or add the following line under the file:



fs.file-max = 6815744

fs.aio-max-nr=1048576

kernel.shmall = 2097152

kernel.shmmax = 2147483648

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


Perform the following command to make the above configuration effective immediately:


Sysctl-p;
Modify system resource limits (operate under root account):


Edit the System resource restriction profile vi/etc/security/limits.conf, and add the following lines under the file:



oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

oracle soft stack 10240


Edit the file Vi/etc/pam.d/login and add the following line (11GR1 required, R2 not required):


Session Required Pam_limits.so


Edit the Vi/etc/profile file and add the following line (11GR1 required, R2 not required):



if
[ $USER = "oracle"
]; then

        if
[ $SHELL = "/bin/ksh"
]; then

              ulimit
-p 16384

              ulimit
-n 65536

        else

              ulimit
-u 16384 -n 65536

        fi

fi


This configuration takes effect immediately when a user Oracle logs on, and is logged in if the current Oracle user is logged on to exit.


Close SELinux (operate under root account):


Edit the SELinux configuration file Vi/etc/selinux/config and set the SELinux value to Disabled as follows:


selinux=disabled;


Modifying this file causes the SELinux to not start after rebooting the system. Close the currently opened SELinux use the following command:


Setenforce 0


Modify the/etc/hosts file (operate under root account):



Edit file vi/etc/hosts and add a row:


192.168.80.19 Mophee


This modification is recommended if you do not do this to eject the warning at installation and may affect the normal operation of the listener.


Create the desired directory (operate under root account):


Install Oracle in the/opt/oracle directory, so create the directory:



mkdir
/opt/oracle;

chown
oracle:oinstall /opt/oracle;

chmod
755 /opt/oracle;


You also need to set up the Inventory directory at installation, so create the directory:



mkdir
/opt/oraInventory;

chown
oracle:oinstall /opt/oraInventory;

chmod


installation package Related:



The Oracle 11g R2 installation package is compressed into two files: Linux.x64_11gR2_database_1of2.zip, linux.x64_11gR2_database_2of2.zip, upload them to the installation machine, and use Unzip Linux.x64_11gR2_database_1of2.zip; Unzip Linux.x64_11gR2_database_2of2.zip; For decompression, you will get a directory called database. I put it in the/home/oracle/database.



Because the installation process is performed as an oracle, you need to ensure that the Oracle account has execute permissions on the/home/oracle/database, and you can use the following command to assign the directory to the Oracle account and have Execute permissions:


Chmod-r 700/home/oracle/database;chown-r oracle:oinstall/home/oracle/database;


------------------------exit root and log on as an Oracle-----------------------------

Set up an Oracle account logon environment (log in as Oracle):



Edit the file Vi/home/oracle/.bash_profile and add the following line:



ORACLE_BASE = / opt / oracle; #Installation directory

ORACLE_HOME = $ ORACLE_BASE / 11g; #oracleHome Directory

ORACLE_SID = orcl; #Instance name

LD_LIBRARY_PATH = $ ORACLE_HOME / lib;

PATH = $ PATH: $ ORACLE_HOME / bin: $ HOME / bin;

export
ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH;


After you save the exit, execute the following command to make the above settings take effect immediately:


Source/home/oracle/.bash_profile
To begin the installation (log on as Oracle):
/ home / oracle / database / runinstaller; # #Execute the program to start the installation


The following will enter the graphical installation interface




Input email, click Next




 because my installation machine is not connected to the extranet, I am prompted to set up the agent. Select the check box and click Continue



 Select the first item, create and simply configure the database when the installation is complete, click Next



Select Server Class, click Next




 in single-mode installation (if you install RAC, select the next item), click Next




 Select Advanced Install, click Next



 The language on the installer interface, only 中文版, click Next




Select Install Enterprise Edition, click Next




 Installation base directory and home directory, since we have set up environment variables oracle_base and oracle_home, there is no need to choose, click Next



 Installing as a Oinstall group, click Next




 Installing the database for the transaction (data Warehouse with the next item selected), click Next




 because we have set the environment variable ORACLE_SID, this step does not need to be modified, click Next




 Maximum memory available, Oracle recommends using automatic memory management, click Tab character sets select Character Set




 Select UTF-8 as the database character set, click on sample schemas to create Oracle-provided cases



Select the check box and click Next




Nothing good to set (according to your own needs), click Next




 This step allows you to choose how the data file is stored, I chose a simple file system, click Next



 Whether automatic backup is enabled, or enabled in a production environment, click Next




Set the password for the System Admin account and click Next when you have finished typing




Select the group that the DBA account belongs to (you can use the Conn/as SYSDBA login database) and the Oper account group, click Next




 Setup checks the environment, because the CentOS 32bit package is i686 and Oracle requires i386, so this will fail here and ignore it. Click Next




 Click Finish, start installation




 Install ing ...




 Install ing ...




 Click Password Management can set the password of the relevant management account number, because in figure-17 has been set so no need to set, click OK




 retention, first proceed to the next step: Log in as Root to execute the two SH files




 Log in as root to execute the two SH files, as shown in the lower-left corner of the image above. When the execution is complete, click OK and you are done.



Open the browser, enter Https://localhost:1158/em, and open the Database control management interface, and Oracle has already started running.



This article refers to Oracle official documentation: Oracle®database Quick installation Guide 11g Release 2 (11.2) for Linux x86-64


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.