Oracle 11gr2 is also installed in centos 6.4.

Source: Internet
Author: User
Before installation:
    1. The minimum requirement for memory (RAM) is 1 GB. 2 GB or above is recommended.
    2. Recommended virtual memory swap: memory is 1 GB ~ We recommend that you set the swap size to 1.5 times of the memory size for 2 GB. The memory size is 2 GB ~ We recommend that you set the swap size to the memory size when the 16 GB memory is exceeded 16 GB.
    3. A temporary file directory, such as/tmp, must have at least 1 GB of disk space.
    4. Disk Space Requirements: The Enterprise Edition is 4.35gb of installation space and 1.7gb of data file space; the Standard Edition is 4.22gb of installation space and GB of data file space.
    5. The X Window graphic interface is required.
    6. Root User permission required
Installation environment:
    1. Centos 6.4 2.6.32-358. el6.x86 _ 64 (desktop), 2 gb ram, 80 GB hard disk space (4 GB swap, 100 mb/boot, 40 Gb /)
    2. Host Name mophee, IP 192.168.80.19 (static)
    3. Environment: VMware Workstation 9.0
Required for Installation Program Package (operate under the 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 laterunixodbc - 2.2 . 14 - 11  . El6.i686 or laterunixodbc -Devel- 2.2 . 14 - 11  . El6 (x86_64) or laterunixodbc -Devel- 2.2 . 14 - 11  . El6.i686 or laterlibxp 

Run the command Yum list | grep 'package name', rpm-Q 'package name', or rpm-Qa | grep 'package name' to check whether the package has been installed.

Run the command Yum install-y 'package name' to install the missing package, except for the pdksh package.Note: To use Yum to install a 32-bit package, you can first modify VI/etc/yum. conf and add a line: multilib_policy = All. I386 is required for Oracle to check the environment, but the 32-bit packages on the centos 6.4 cd are i686. In fact, they are all the same. Ignore this difference. (See the installation section below).

Yum Install-Y binutils compat-libstdc ++-33Elfutils-libelf-develGcc Gcc-C ++ glibc-common glibc-devel libaio-devel libgcc libstdc ++-develMakeNumactl sysstat libxp unixodbc-devel

Install the pdksh package (this package is not included in the centos installation disk ):

Use 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 a local

Install with the command rpm-IVH pdksh-5.2.14-37.el5_8.1.x86_64.rpm (Note: This package conflicts with ksh, if you have installed ksh, it is recommended to uninstall with command rpm-e KSh)

Create a user group (under the root account ):
 
Groupadd oinstall; groupadd DBA; groupadd secret;
Create a required account (under the root account ):

Use the command ID Oracle to check whether the Oracle account already exists. If not, use the following command to create

 
Useradd-G oinstall-G dBA, role ORACLE; # The initial group is oinstall, and the valid group is dBA, rolePasswdOracle; # set a password for the Oracle account (login required during installation)

If an oracle account already exists, run the usermod-a-g DBA command to add Oracle to group dBA and role.

Modify kernel parameters (under the root account ):

Edit the kernel parameter configuration file VI/etc/sysctl. conf and modify or add the following lines 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 

Run the following command to make the preceding configuration take effect immediately:

 
Sysctl-P;
Modify system resource limits (under the root account ):

Edit the system resource limit configuration file VI/etc/security/limits. conf and add the following lines under the file:

 
Oracle soft nproc2047Oracle hard nproc16384Oracle soft nofile1024Oracle hard nofile65536Oracle soft Stack10240

Edit the VI/etc/PAM. d/login file and add the following lines (11gr1 is required, R2 is not required ):

 
Session required pam_limits.so

Edit the VI/etc/profile file and add the following lines (11gr1 is required, R2 is 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 you log on to Oracle. If you have logged on to Oracle, you can log out and log on again.

Disable SELinux (under the root account ):

Edit the SELinux configuration file VI/etc/SELinux/config and set the SELinux value to disabled, as shown below:

 
SELinux = disabled;

Modify the file so that SELinux is not started after the system is restarted. To disable SELinux, run the following command:

 
Setenforce0

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

Edit the VI/etc/hosts file and add a line:

 
192.168.80.19Mophee

 If you do not perform this operation, a warning will pop up during installation, which may affect the normal operation of the listener. Therefore, we recommend that you make this modification.

Create the required directory (under the root account ):

To install oracle in the/opt/Oracle directory, create the directory:

Mkdir/Opt/Oracle;ChownORACLE: oinstall/opt/Oracle;Chmod 755/Opt/Oracle;

You also need to set the inventory directory during installation, so you need to create this directory:

 
Mkdir/Opt/Orainventory;ChownORACLE: oinstall/opt/Orainventory;Chmod 755/Opt/orainventory;

 Installation packages:

The installation package of Oracle 11g R2 is compressed into two files: unzip, upload them to the installation machine, and use unzip linux.x64_11gr2_database_1of2.zip; unzip linux.x64_11gr2_database5of2.zip; to decompress, A directory named database is obtained. I put it in/home/Oracle/database.

Since the installation process is performed as Oracle, make sure that the Oracle account has the execution permission on/home/Oracle/database. You can use the following command to grant the directory to all the Oracle accounts, and have the execution permission:

 
Chmod-R700/Home/Oracle/Database;Chown-R oracle: oinstall/home/Oracle/database;

 ---------------------- Log out of the root account and Log On As an oracle user ----------------------------------

Set the environment for logging on to an oracle account (Log On As an oracle account ):

Edit the VI/home/Oracle/. bash_profile file and add the following lines:

Oracle_base =/opt/Oracle; # installation directory ORACLE_HOME= $ Oracle_base/11g; # Oracle Home 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 saving and exiting, run the following command to make the preceding settings take effect immediately:

 
Source/home/Oracle/. bash_profile
Start installation (Log On As an oracle user ):
 
/Home/Oracle/Database/Runinstaller;## Run this program to start Installation

The following figure shows the installation page.


Figure-1 enter an email and click Next


Figure 2 my installer is not connected to the Internet, so I am prompted to set up a proxy. Select the check box and click "continue ".


Figure-3 select the first item, create and configure the database after installation, and click Next


Figure-4 Select Server class and click Next


Figure-5 install in singleton mode (if RAC is installed, select the next option) and click Next


Figure-6 select Advanced install and click Next


Figure-7 language on the installer interface: English only. click Next.


Figure-8 select "Install Enterprise Edition" and click "Next"


Figure-9 install the base directory and home directory. Because we have set the environment variables oracle_base and ORACLE_HOME, you do not need to select them here. Click Next


Figure-10 install as an oinstall group and click Next


Figure-11 install the database for transaction processing (select the next item in the data warehouse) and click Next


Figure-12 because we have set the environment variable oracle_sid, you do not need to modify this step. Click Next


Figure-13.1 maximum memory available, Oracle recommends automatic memory management, click the character sets tab to select the character set


Figure-13.2 select UTF-8 as the database character set and click sample Schemas to create the case provided by Oracle


Figure-13.3 select the check box and click Next


Figure-14 there is nothing to set up (based on your needs), click Next


Figure-15 select the data file storage method in this step. I chose a simple file system and click Next.


Figure-16 whether to enable automatic backup in the production environment


Figure-17 set a password for the system management account. after entering the password, click Next.


Figure-18 select the group to which the DBA account belongs (you can use Conn/As sysdba to log on to the database) and the region account's group, and click Next


Figure-19 the installer checks the environment. Because the 32bit packages of centos are i686, and Oracle requires i386, the installation fails. ignore this. Click Next


Figure-20 Click Finish to start Installation


Figure-21 install ing...


Figure-22 install ing...


Figure-23 click password management to set the password of the relevant management account. As the password has been set in figure-17, you do not need to set it again. Click OK.


Figure-24 retain, first execute the next step: Log On As root and execute the two sh files


Figure-25 Log On As root to execute the two sh files, as shown in the lower left corner. After the execution is complete, click OK.

Open the browser and enter https: // localhost: 1158/em to open the Database Control management interface. Then Oracle has started running.

Oracle Database quick installation guide 11g Release 2 (11.2) for Linux x86-64

Disclaimer: This article is original in the specific environment of the blogger. To avoid misleading and communicate with the blogger, please indicate the source during reprinting.

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.