Redhat 6.2 64-bit system installs Oracle 11g R2 database

Source: Internet
Author: User
Tags chmod dba zip oracle database


Operating system: Red Hat Enterprise Linux Server Release 6.2 x86_64
Oracle version: Oracle Database 11g Release 2

Oracle Official Download Address:
File1:http://download.oracle.com/otn/linux/oracle11g/r2/linux.x64_11gr2_database_1of2.zip
File2:http://download.oracle.com/otn/linux/oracle11g/r2/linux.x64_11gr2_database_2of2.zip

ORACLE11GR2 Official document Address: Http://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm#CEGHFFGG

Tools to use:
SecureCRT
Vnc-viewer-5.1.1-windows-64bit.exe (http://www.realvnc.com/download/viewer/)

Server ip:192.168.109.129


Hardware requirements: The official requirements of the memory at least 1GB, recommended 2GB or more.

Official physical memory and swap space table of relations:

Available RAM Swap Space Required
Between 1 GB and 2 GB 1.5 times the size of the RAM
Between 2 GB and GB Equal to the size of the RAM
More than GB

Check native Memory:


[Root@localhost ~]# grep memtotal/proc/meminfo
memtotal:1164632 KB
[Root@localhost ~]# grep swaptotal/proc/meminfo
swaptotal:2097144 KB
[Root@localhost ~]# Free-m
Total used free shared buffers Cached
MEM:1137 1026 111 0 18 430
-/+ buffers/cache:576 560
swap:2047 190 1857

To view the native system architecture:

[Root@localhost ~]# Uname-m
x86_64

Disk Space requirements:

Official request/TMP space must be at least 1GB


[Root@localhost ~]# df-h/tmp/
FileSystem Size Used Avail use% mounted on
/dev/sda3 38G 14G 22G 39%/

To check the SOFTWARE environment:
Supported Systems (select Redhat only):
Red Hat Enterprise Linux 6
Red Hat Enterprise Linux 6
Red Hat Enterprise Linux 6 (with the Oracle Unbreakable Enterprise Kernel for Linux)

Kernel Requirements:
· On Red Hat Enterprise Linux 6
2.6.32-71.el6.x86_64 or later
· On Red Hat Enterprise Linux 6with Unbreakable Enterprise Kernel
2.6.32-100.28.5.el6.x86_64 or later

To view the native kernel version:


[Root@localhost ~]# Uname-r
2.6.32-220.el6.x86_64

Official requirements for packages to be installed:

The following or later version of packages for Oracle Linux 6, and Red Hat Enterprise Linux 6 must is installed:


Binutils-2.20.51.0.2-5.11.el6 (x86_64)
Compat-libcap1-1.10-1 (x86_64)
Compat-libstdc++-33-3.2.3-69.el6 (x86_64)
compat-libstdc++-33-3.2.3-69.el6.i686
Gcc-4.4.4-13.el6 (x86_64)
Gcc-c++-4.4.4-13.el6 (x86_64)
Glibc-2.12-1.7.el6 (i686)
Glibc-2.12-1.7.el6 (x86_64)
Glibc-devel-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6.i686
Ksh
Libgcc-4.4.4-13.el6 (i686)
Libgcc-4.4.4-13.el6 (x86_64)
Libstdc++-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6.i686
Libstdc++-devel-4.4.4-13.el6 (x86_64)
libstdc++-devel-4.4.4-13.el6.i686
Libaio-0.3.107-10.el6 (x86_64)
libaio-0.3.107-10.el6.i686
Libaio-devel-0.3.107-10.el6 (x86_64)
libaio-devel-0.3.107-10.el6.i686
Make-3.81-19.el6
Sysstat-9.0.4-11.el6 (x86_64)

Oracle ODBC Driver:


On Oracle Linux 6 and Red Hat Enterprise Linux 6:
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

To check and install the required packages:
Because there are 32-bit and 64-bit packages that are required to be installed, check the installation one at a while.
Check the use of Rpm-q packgename (without looking at the version number)
Install using RPM-IVH packge_full_name
I have already used the system disk to do the local Yum source, because the use of RPM-IVH packge_full_name installation may have a dependency on the package, so directly using the Yum installation of the way to install, as follows:

The system hangs in the/iso directory:


[Root@localhost ~]# cd/iso/packages/
[root@localhost packages]# yum-y Install binutils-2.20.51.0.2-5.28.el6.x86_64.rpm
Such a dependency will automatically install the package, has installed the words, directly skip on OK, attention, must be installed one by one, to avoid lost packets, after the installation of the Times wrong.

To create the required users and groups:


[Root@localhost ~]# Groupadd Oinstall
[Root@localhost ~]# Groupadd dba
[Root@localhost ~]# useradd-g oinstall-gdba Oracle
[Root@localhost ~]# ID Oracle
uid=500 (Oracle) gid=500 (oinstall) groups=500 (Oinstall), 501 (DBA)
[Root@localhost ~]# passwd Oracle
Changing password for user Oracle.
New Password:
Bad Password:it is toosimplistic/systematic
Bad Password:is too simple
Retype new Password:
Passwd:all Authentication tokens updatedsuccessfully.

To configure kernel parameters:
The official request:
View Method:
Add the following in the/etc/sysctl.conf file:


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 = 1048576

Effect:


[Root@localhost ~]#/sbin/sysctl-p

The confirmation value is set correctly:
1
[Root@localhost ~]#/sbin/sysctl-a

Check settings under Oracle User Resource Limits
K3.png
To create the Oracle base directory:
Enter the following command to display information about all mounted file systems:
# df-k
This command displays information about all of the file systems mounted on the system, including:
The physical device name
The total amount, used amount, and available amount of disk spaces
The mount point directory for this file system
From the display, identify either one or two file systems that meet the disk spaces requirements mentioned earlier in this Section.
The name of the mount point directory, for each file system, you identified.
Enter commands similar to the following to create the recommended subdirectories in the mount point directory this you IDE Ntified and set the appropriate owner, group, and permissions on them:
# mkdir-p/mount_point/app/
# Chown-r oracle:oinstall/mount_point/app/
# Chmod-r 775/mount_point/app/
For example:
# mkdir-p/u01/app/
# Chown-r oracle:oinstall/u01/app/
# Chmod-r 775/u01/app/

[Root@localhost ~]# vim/etc/security/limits.conf

Add the following:


Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536

Create the desired directory:


[Root@localhost ~]# mkdir-p/oracle/app
[Root@localhost ~]# chown-roracle:oinstall/oracle/app/
[Root@localhost ~]# chmod-r 775/oracle/app/

To configure an Oracle user's environment variable:


[Root@localhost ~]# Su-oracle
[Oracle@localhost ~]$ vim. Bash_profile
Add the following: (Red section):
#. Bash_profile

# get the aliases and functions
If [f ~/.BASHRC]; Then
. ~/.bashrc
Fi

# User specific environment and Startupprograms

Path= $PATH: $HOME/bina
Oracle_base=/oracle/app/oracle
Oracle_sid=orcl

Export PATH Oracle_baseoracle_sid

To begin the installation:

Upload installation files Linux.x64_11gR2_database_1of2.zip and linux.x64_11gR2_database_2of2.zip to/directory
Extract using root User:

[root@localhost/]# Unzip Linux.x64_11gR2_database_1of2.zip
[root@localhost/]# Unzip Linux.x64_11gR2_database_2of2.zip
OK, before the installation work is done, to ensure that all settings are magical, it is best to restart the machine.
# reboot

After reboot, enter the graphical interface and execute under the terminal:

[root@test~]# Xhost +
[root@test~]# su-oracle
[Oracle@test~]$ cd/database/
[oracle@testdatabase]$./runinstaller

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.