Install Oracle 11gR2 (x64) 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
Install the required package (under the root account ):
123456789101112131415161718192021222324252627282930 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

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 in CentOS 6.4 are i686, ignore this difference (see the installation section below ).

1 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 (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 ):
123 groupadd oinstall; groupadd dba; groupadd oper;
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

12 useradd -g oinstall -G dba,oper oracle; # The initial group is oinstall, and the valid group is dba and role.passwd oracle; # 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:

1234567891011 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:

1 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:

12345 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 10240

Edit the vi/etc/pam. d/login file and add the following lines (11gR1 is required, R2 is not required ):

1 session required pam_limits.so

Edit the vi/etc/profile file and add the following lines (11gR1 is required, R2 is not required ):

12345678 if [ $USER = "oracle" ]; thenif [ $SHELL = "/bin/ksh" ]; thenulimit -p 16384 ulimit -n 65536 elseulimit -u 16384 -n 65536 fifi

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:

1 SELINUX=disabled;

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

1 setenforce 0

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

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

1 192.168.80.19 mophee

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:

123 mkdir /opt/oracle; chown oracle:oinstall /opt/oracle; chmod 755 /opt/oracle;

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

123 mkdir /opt/oraInventory; chown oracle: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:

12 chmod -R 700 /home/oracle/database; chown -R oracle:oinstall /home/oracle/database;

-------- Log out of root 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:

123456 ORACLE_BASE=/opt/oracle; # Installation directoryORACLE_HOME=$ORACLE_BASE/11g; # Oracle Home DirectoryORACLE_SID=orcl; # Instance nameLD_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:

1 source /home/oracle/.bash_profile
Start installation (Log On As an oracle user ):
12 export LANG=en_US; ## /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.

  • 1
  • 2
  • 3
  • 4
  • Next Page

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.