Installing Oracle 11g R2 ON Rad Hat Enterprise Linux 5.5

Source: Internet
Author: User
Tags oracle documentation ssh secure shell

The learning progress is a little slow. I finally succeeded in installing the Oracle 11g R2 database on the Red Hat Enterprise Linux 5.5 system on the Virtual Machine. Here I will share my installation experience with you! Of course, the level is limited. Please forgive me for your suggestions !!

The software version I used is linux_11gR2_database_32bit. You can download it from the oracle official website.

Previously, I checked the official oracle Installation documentation, which describes the requirements for some hardware environments and software packages. The following is a list of the information I used this time. Hope to help you.

Oracle 11g R2 database installation hardware configuration requirements:

Minimum Memory 1 GB of RAM
Virtual Memory Capacity
Available RAM Swap SpaceRequired
Between 1 GB and 2 GB 1.5 times the size of RAM
Between 2 GB and 16 GB Equal to the size of RAM
More than 16 GB 16 GB


Hard Disk Space Requirements
Installation Type Requirement for Software Files (GB)
Enterprise Edition 3.95
Standard Edition 3.88


Operating systems supported by Oracle 11g R2
Oracle Database 11g Release 2 (11.2) forLinux x86:
Asianux 2.0
Asianux 3.0
Oracle Enterprise Linux 4.0 Update 7 orlater
Oracle Enterprise Linux 5.0
Red Hat Enterprise Linux 4.0 Update 7 orlater
Red Hat Enterprise Linux 5.0
SUSE Linux Enterprise Server 10.0
SUSELinux Enterprise Server 11.0


Required software packages:
Here we only list the software packages required by systems such as Asianux 3, Oracle Enterprise Linux 5.0, and Red Hat Enterprise Linux5.0. Have these packages been installed.
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 bits)
Glibc-common-2.5
Glibc-devel-2.5
Glibc-devel-2.5 (32 bits)
Glibc-headers-2.5
Ksh-20060214
Libaio-0.3.106
Libaio-0.3.106 (32 bits)
Libaio-devel-0.3.106
Libaio-devel-0.3.106 (32 bits)
Libgcc-4.1.2
Libgcc-4.1.2 (32 bits)
Libstdc ++ 4.1.2
Libstdc ++-4.1.2 (32 bit)
Libstdc ++-devel 4.1.2
Make-3.81
Numactl-devel-0.9.8.x86_64
Sysstat-7.0.2
UnixODBC-2.2.11 (32-bit) or later
UnixODBC-devel-2.2.11 (64-bit) or later
UnixODBC-2.2.11 (64-bit) or later


The installation process is as follows:
1. preparations, software package check, and environment variable configuration before installation
Upload the oralce installation package to the host. We recommend that you use the SSH Secure Shell Client tool. Upload the file to the root user's desktop and decompress it as follows:
[Root @ oraclehost ~] # Ls
Linux_11gR2_database_1of2.zip linux_11gr2_databasesilicate f2.zip
[Root @ oraclehost ~] # Unzip linux_11gR2_database_1of2.zip
[Root @ oraclehost ~] # Unzip linux_11gr2_databasesilicate f2.zip
[Root @ oraclehost ~] # Ls
Database linux_11gR2_database_1of2.zip linux_11gr2_databasesilicate f2.zip
1.1 check whether the required software package is installed
According to the software packages required to install oracle under rhel5 listed above, check whether the software packages have been installed one by one. The command is:
Rpm-qa | grep package_name
If the package has been installed, the command output prints the name of the installed package. If there is no output, the package is not installed and can be obtained from the RedHat installation disk or image, run the following command to install the SDK:
Rpm-ivh package_name
1.2 create an oracle user
According to the official oracle documentation, you need to create oinstall, dba, external (optional) user groups and oralce users. The following is my creation process, but I have not created an external group:
[Root @ oraclehost ~] #/Usr/sbin/groupadd oinstall
[Root @ oraclehost ~] #/Usr/sbin/groupadd dba
[Root @ oraclehost ~] #/Usr/sbin/useradd-g oinstall-G dbaoracle
[Root @ oraclehost ~] # Passwd oracle
Changing password for user oracle.
New UNIX password:

Bad password: it is too simplistic/systematic
Retype new UNIX password:
Passwd: all authentication tokens updated successfully.
[Root @ oraclehost ~] #
1.3 modify system parameters
1.3.1 modify Kernel Parameters
Modify the/etc/sysctl. conf file and add the following parameters:
Fs. aio-max-nr = 1048576
Fs. file-max = 6815744
Kernel. shmall = 2097152
Kernel. shmmax = 536870912
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 = 1048586
After configuration, run the following command to write the parameters to the kernel application.
[Root @ oraclehost ~] #/Sbin/sysctl-p
1.3.2 modify user restrictions and authentication configuration files

Modify the/etc/security/limits. conf file and add the following parameters.
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
Oracle soft stack 10240


Modify user verification options
Modify the/etc/pam. d/login file and add the following parameters:
Session required pam_limits.so


Add the following parameters to the/etc/profile file:
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi


1.3.3 configure the installation path for oracle
[Root @ oraclehost ~] # Mkdir-p/u01/
[Root @ oraclehost ~] # Mv/root/Desktop/database/u01/
[Root @ oraclehost ~] # Chown-R oracle: oinstall/u01/
[Root @ oraclehost ~] # Chmod-R 775/u01


1.3.4 modify Environment Variables
Switch to oracle user and modify user bash shell
[Root @ oraclehost ~] # Su-oracle
[Oracle @ oraclehost ~] $ Vi. bash_profile
Add the following content:
Export ORACLE_BASE =/u01/app
Export ORACLE_HOME = $ ORACLE_BASE/oracle
Export ORACLE_SID = dmb2 // * database SID, which is named according to your needs and habits *
ExportPATH = $ ORACLE_HOME/bin: $ PATH: $ HOME/bib
Now the system environment configuration and preparation have been completed. If necessary, restart the system because many system configurations have been changed.
2. Execute graphical interface installation (for oracle Users)
[Root @ oraclehost ~] # Su-oracle
[Oracle @ oraclehost ~] $ Cd/u01/database/
[Oracle @ oraclehost ~] $./RunInstaller
Starting Oracle Universal Installer...
Checking Temp space: must be greater than80 MB. Actual 27515 MB Passed
Checking swap space: must be greater than150 MB. Actual 4094 MB Passed
Checking monitor: must be configured todisplay at least 256 colors. Actual16777216 Passed
Preparingto launch Oracle Universal Installer from/tmp/OraInstall2013-07-17_07-18-53PM.Please wait...

You can leave it blank. In the pop-up box, click yes.

Select install datebase software only and install the software directly. Next step

Select the server type and select single. If the cluster is required, install another type.

Select a language,

Select the version of the software to be installed. Here I select Enterprise Edition. Next Step

Select the software installation path, which has already been set in the environment variable. The software is automatically detected here. By default, you can click Next.

Select the user group required by oracle, which is automatically detected and can be used by default.

Then the software installer starts to check whether the hardware environment and required software packages are correctly configured, such:

The test result is as follows: the physical memory and swap partition size cannot meet the requirements. I installed them in the Virtual Machine. Although the memory size is set to 1 GB, it is actually a little bad, so the detection fails, however, this does not affect installation. Check ignore all and click Next.

The following is the configuration overview. If there is no error, click finish to start installation.

After the installation is completed, two scripts, orainstRoot. sh and root. sh, will be executed as the root user. The specific path depends on the path you set. The installer will prompt you. The following is the script execution process during my installation:
[Root @ oraclehost database] #/u01/oraInventory/orainstRoot. sh
Changing permissions of/u01/oraInventory.
Adding read, write permissions for group.
Removing read, write, execute permissions forworld.


Changing groupname of/u01/oraInventory tooinstall.
The execution of the script is complete.
[Root @ oraclehost database] #/u01/app/oracle/root. sh
Running Oracle 11g root. sh script...
The following environment variables are setas:
ORACLE_OWNER = oracle
ORACLE_HOME =/u01/app/oracle
Enter the full pathname of the local bindirectory: [/usr/local/bin]:
Copying dbhome to/usr/local/bin...
Copying oraenv to/usr/local/bin...
Copying coraenv to/usr/local/bin...
Creating/etc/oratab file...
Entries will be added to the/etc/oratabfile as needed
Database Configuration Assistant when adatabase is created
Finished running generic part of root. sh script.
Now product-specific root actions will beperformed.
Finished product-specific root actions.

So far, oracle 11g has been installed.

Next, it is very important to create databases and listeners, and to set up oracle and listener for self-startup. These content will be shared with you in the next article. If you are interested, please stay tuned! See

  • 1
  • 2
  • 3
  • Next Page

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.