Deploy Oracle on Red Hat Enterprise Linux 6.4, deploy10.2.0.5

Source: Internet
Author: User

Deploy Oracle on Red Hat Enterprise Linux 6.4, deploy10.2.0.5

I. installation and configuration of Linux

1. Select Desktop when installing the system.

2. Set the eth0 Nic to a static IP address, add the subnet mask, gateway, and DNS, and configure automatic start.

3. Modify/etc/hosts and add the Host Name and corresponding IP address.

4. Disable firewall and selinux
Chkconfig iptables off
SELINUX = disabled

[Root @ 10dg1 selinux] # setenforce 0
[Root @ 10dg1 selinux] # getenforce

5. Configure the local yum Source
Mount-t iso9660/dev/cdrom/media/disk
Mount: block device/dev/sr0 is write-protected, mounting read-only
Touch/etc/yum. repos. d/public-yum-rhel6.repo
Vi/etc/yum. repos. d/public-yum-rhel6.repo

Name = Red Hat Enterprise Linux 6.4 DVD
Baseurl = file: // media/disk/Server/
Gpgcheck = 0
Enabled = 1

6. Install the packages required by Oracle
Yum install oracle-rdbms-server-11gR2-preinstall
Yum install gcc
Yum install glibc
Yum install glibc-devel
Yum install libXp
Yum install libXt
Yum install libXtst
Yum install libstdc ++
Yum install libstdc ++-devel
Yum install compat-libstdc ++-296
Yum install compat-libstdc ++-33
Yum install compat-gcc-34
Check after installation
Rpm-qa gcc glibc libXp libXt libstdc ++-devel compat-libstdc ++-296 compat-libstdc ++-33 compat-gcc-34

7. Add users and groups
Groupadd oinstall 501
Groupadd DBAs 502
Useradd-g oinstall-G dba oracle
Password oracle

8. Create a directory and grant permissions
Chown-R oracle: oinstall/u01
Chmod-R 755/u01/app/oracle or chmod-R ug = rx, o = rwx

9. Configure Kernel Parameters
Vi/etc/sysctl. conf
# For oracle install
Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Net. ipv4.ip _ local_port_range = 1024 65500
Net. core. rmem_default = 262144
Net. core. rmem_max = 262144
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
Make the change take effect

Note: Generally it is 0.7 times of the Memory. The OLTP system SGA + PGA <(Total Memory) * 0.8, SGA <(Total Memory) * 0.8*0.8

10. Set the number of shell Chinese files and the number of processes
Vi/etc/security/limits. conf
# For oracle install
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536

11. Add Login User restrictions on resources
Vi/etc/pam. d/login
# For oracle install
Session required/lib/security/

12. Add oracle environment variables
Vi ~ /Home/oracle/. bash_profile
PATH = $ PATH: $ HOME/bin

Export PATH

Export ORACLE_BASE =/u01/app/oracle
Export ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1
Export ORACLE_SID = zlm
Export PATH = $ PATH: $ ORACLE_HOME/bin

# Umask 022
# Alias sqlplus = 'rlwrap sqlplus'
# Alias rman = 'rlwrap rman'
Stty erase ^

Source ~ /. Bash_profile or .~ /. Bash_profile

Ii. Database Installation

1. Install the database software
Use the Xmanage shell component to connect to the server
Cpio-idvm <10201_database_linux_x86_64.cpio
Cd database/
./RunInstaller-ignoreSysPrereqs # RHEL6.4 ignore this parameter and you can also enter the graphical interface without modifying/etc/redhat-release to a lower version. Instead, you cannot enter the installation interface.

Because does not authenticate Linux 6, files such as,,, and cannot be linked during the compilation process. Click "continue" to continue, when upgrading, ensure that all links of the upgrade are successfully passed. Then, execute two scripts in sequence to complete the installation.

2. Upgrade the database software to the version
An error occurred while installing the package.
OUI-11108: Packages information not specified.
Red Hat Enterprise Linux Server release 6.4 (Santiago)-> Red Hat Enterprise Linux Server release4 (Santiago)
Change 6.4 to 4, OUI-11108 error disappears

Official RHEL5 installation package

Rpm-q -- qf' % {NAME}-% {VERSION}-% {RELEASE} (% {ARCH }) \ n' binutils compat-libstdc ++-33 elfutils-libelf-devel gcc-c ++ glibc-common glibc-devel glibc-headers libaio-devel gligcc libstdc ++-devel make sysstat unixODBC-devel

Reinstall all required packages

Yum-y install binutils compat-libstdc ++-33 compat-libstdc ++-33. i686 elfutils-libelf-devel gcc-c ++ glibc. i686 glibc-common glibc-develglibc-devel.i686 glibc-headers ksh libaio. i686 libaio-devellibaio-devel.i686 libgcclibgcc. i686 libstdc ++. i686 libstdc ++-devel make sysstat

When installing, The link error will still be reported, because the previous use of yum install glibc installation, the system by default to the installed glibc-devel.X86_64, and 64 bit oracle needs a glibc-devel.i686, no wonder the link error is always reported. After the package is installed, the previous link error will not be reproduced.

3. dbca creates a listener and creates a database


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