Oracle Linux 6.5 installs Oracle 11.2.0.4 x64

Source: Internet
Author: User

1. ORACLE11G Installation Environment Preparation

With OEL6.5 x64 installation, the installation process is consistent with Redhat, the installation process selected desktop, development package, development library, other default options.
Desktops > X Window System
Development > Additional Development
Development > Development Tools

After installation:
(1) Turn off SELinux
(2) Close iptables
(3) Restart

2. Start the installation of the base package (insert the CD, or mount the ISO file)
mount /dev/cdrom /mnt   cd /mnt/cdrom/server/packages    rpm  -Uvh binutils-2*x86_64*    rpm -Uvh glibc-2*x86_64*  Nss-softokn-freebl-3*x86_64*    rpm -uvh glibc-2*i686* nss-softokn-freebl-3 *i686*    rpm -uvh compat-libstdc++-33*x86_64*    rpm - uvh glibc-common-2*x86_64*    rpm -uvh glibc-devel-2*x86_64*     rpm -uvh glibc-devel-2*i686*    rpm -uvh glibc-headers-2* x86_64*    rpm -uvh elfutils-libelf-0*x86_64*    rpm - uvh elfutils-libelf-devel-0*x86_64*    rpm -uvh gcc-4*x86_64*     rpm -Uvh gcc-c++-4*x86_64*    rpm -Uvh ksh-*x86_64*     rpm -uvh libaio-0*x86_64*    rpm -uvh libaio-devel-0*x86_64*     rpm -Uvh libaio-0*i686*    rpm -Uvh libaio-devel-0*i686*     rpm -uvh libgcc-4*x86_64*    rpm -uvh libgcc-4*i686*     rpm -Uvh libstdc++-4*x86_64*    rpm -Uvh  libstdc++-4*i686*    rpm -uvh libstdc++-devel-4*x86_64*     rpm -uvh make-3.81*x86_64*    rpm -uvh numactl-devel-2*x86_64*     rpm -Uvh sysstat-9*x86_64*    rpm -Uvh  compat-libstdc++-33*i686*    rpm -uvh compat-libcap*
(1) Confirm that the following packages are installed
# rpm-q binutils compat-libstdc++-33 compat-gcc-34-c++ elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-com  Mon glibc-devel glibc-headers kernel-headers ksh libaio libaio-devel libgcc libgomp libstdc++ libstdc++-devel make Sysstat Numactl-devel UnixODBC unixodbc-devel openmotif22 openmotif compat-db libxp

Binutils-2.20.51.0.2-5.36.el6.x86_64
Compat-libstdc++-33-3.2.3-69.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
Package compat-gcc-34-c++ are not installed
Elfutils-libelf-0.152-1.el6.x86_64
Elfutils-libelf-devel-0.152-1.el6.x86_64
Gcc-4.4.7-4.el6.x86_64
Gcc-c++-4.4.7-4.el6.x86_64
Glibc-2.12-1.132.el6.x86_64
glibc-2.12-1.132.el6.i686
Glibc-common-2.12-1.132.el6.x86_64
Glibc-devel-2.12-1.132.el6.x86_64
glibc-devel-2.12-1.132.el6.i686
Glibc-headers-2.12-1.132.el6.x86_64
Kernel-headers-2.6.32-431.el6.x86_64
Ksh-20120801-10.el6.x86_64
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
Libgcc-4.4.7-4.el6.x86_64
libgcc-4.4.7-4.el6.i686
Libgomp-4.4.7-4.el6.x86_64
Libstdc++-4.4.7-4.el6.x86_64
libstdc++-4.4.7-4.el6.i686
Libstdc++-devel-4.4.7-4.el6.x86_64
Make-3.81-20.el6.x86_64
Sysstat-9.0.4-22.el6.x86_64
Numactl-devel-2.0.7-8.el6.x86_64
Package UnixODBC are not installed
Package unixodbc-devel are not installed
Package openmotif22 are not installed
Package openmotif are not installed
Package compat-db are not installed
Package LIBXP are not installed

(2) Install the relevant package
# RPM-IVH compat-db-4.6.21-15.el6.x86_64.rpm compat-db42-4.2.52-15.el6.x86_64.rpm compat-db43-4.3.29-15.el6.x86_ 64.RPM # RPM-IVH compat-gcc-34-c++-3.4.6-19.el6.x86_64.rpm compat-gcc-34-3.4.6-19.el6.x86_64.rpm # RPM-IVH UnixOD bc-2.2.14-12.el6_3.x86_64.rpm unixodbc-devel-2.2.14-12.el6_3.x86_64.rpm # RPM-IVH openmotif-2.3.3-6.1.el6_4.x86_ 64.rpm openmotif22-2.2.3-19.el6.x86_64.rpm libxp-1.0.0-15.1.el6.x86_64.rpm
(3) Replace Sqlplus tool

# wget http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.37.tar.gz
# tar ZXVF rlwrap-0.37.tar.gz
# CD rlwrap-0.36
#./configure
# make
# Make Check
# make Install

3. Create an Oracle installation-related user group and user account 1) Create OINSTALL,DBA Group and Oracle User (root)

Groupadd Oinstall
Groupadd dba
USERADD-G oinstall-g dba Oracle
passwd Oracle

2) Create Oralce home directory

Mkdir-p/u01/app/oracle/product/11.2.0/db_1
Chmod-r 775/u01/app
Chown-r oracle:oinstall/u01

4. Modify Kernel Support

# vi/etc/sysctl.conf

FS.AIO-MAX-NR = 1048576
Fs.file-max = 6815744
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 = 4194304
Net.core.rmem_max = 4194304
Net.core.wmem_default = 262144
Net.core.wmem_max = 1048586

# sysctl-p

Kernel parameter Configuration Description:
Kernel.shmall = 2097152 # The total number of shared memory pages that the system can use, the default is 2097152.
Kernel.shmmax = 2147483648 # The maximum value of a single shared memory segment, in bytes, this example is 2GB.
Kernel.shmmni = 4096 # maximum default number of shared memory segments

5. modifying file descriptors

Cat >>/etc/security/limits.conf << EOF
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
Oracle Soft Stack 10240
Eof

6. Modify Login Authentication Module

Cat >>/etc/pam.d/login << EOF
Session required/lib64/security/pam_limits.so
Eof

7. Modify the local Hosts file

# vi/etc/hosts
192.168.233.100 vm100

8. Modify the Oracle User environment variable (1) To configure the system environment variable to add to the last.

Cat >>/etc/profile << EOF
if [\ $USER = "Oracle"]; Then
if [\ $SHELL = "/bin/ksh"]; Then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
Eof

(2) Configuring Oracle Environment variables

# su-oracle

Cat >>/home/oracle/.bash_profile << EOF
Export Editor=vi
Export Oracle_base=/u01/app/oracle
Export oracle_home=\ $ORACLE _base/product/11.2.0/db_1
Export ORACLE_SID=ORCL
Export path=\ $ORACLE _home/bin:\ $PATH
Export nls_lang= "American_america. ZHS16GBK "
Export Lang=en_us
Export Lc_all=en_us
Export Ld_library_path=/lib:/usr/lib:\ $ORACLE _home/lib
Export classpath=\ $ORACLE _home/jre:\ $ORACLE _home/jlib: $ORACLE _home/rdbms/jlib
Alias sqlplus= "Rlwrap Sqlplus"
Alias rman= "Rlwrap Rman"
Umask 022
Eof
source. bash_profile

9. Copy the Oracle installation package to the Linux system

# MV p13390677_112040_linux-x86-64_1of7.zip/u01/app/
# MV p13390677_112040_linux-x86-64_2of7.zip/u01/app/
# Unzip P13390677_112040_linux-x86-64_1of7.zip
# Unzip P13390677_112040_linux-x86-64_2of7.zip

# Unzip under the/u01/app/database
# Chown-r oracle:oinstall/u01/app/database/

10. Installing the ORACLE11G Software

Note: This article uses the native installation method, the remote installation recommends uses the VNC or the Xmanager.

# Xhost + access control disabled, clients can connect from any host$ su-oracle $ cd/u01/oracle/database $./run Installer finally executes the following two scripts in root #/u01/app/orainventory/orainstroot.sh #/u01/app/oracle/product/11.2.0/db_1/root.sh

11. Create a monitoring service

$ netca
# parameters are all by default
$ ps-ef |grep Ora_

12. Create a Database

$ dbca
# Select Gernel purpose, in SID and global name, select the SID you created in. Bash_profile.
# in the database Character set option, select ZHS16GBK, other default OK, complete.

Oracle's start-up service configuration

#开机自启动采用rc. Local startup, not configured as a service, shutting down the database or doing it manually.

$ vi/etc/oratab
#把最后的N改成Y (default is N)
Orcl:/u01/app/oracle/product/11.2.0/db_1:y

Cat >>/etc/rc.local << EOF
# Oracle Service Start
Su-oracle-c "Lsnrctl Start"
Su-oracle-c "Dbstart"
Eof

This article is from the "Koumm Linux Technology blog" blog, be sure to keep this source http://koumm.blog.51cto.com/703525/1582595

Oracle Linux 6.5 installs Oracle 11.2.0.4 x64

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.