RHEL5 installation Oracle10

Source: Internet
Author: User

Readhat installing 11GR2 documentation

Note: 1, Firewall,2, SElinux must be turned off.

The root user runs the Setup command to turn off the firewall and SElinux

To modify the network configuration file, you must restart this file to take effect.

Linux installation Oracle 10g Third step appears SID cannot be used because this SID has been used before , workaround: delete/etc/oratab last record

1. Check memory, at least 1G
grep memtotal/proc/meminfo

2. Swap partitions
Available RAM Swap Space Required
Between 1 GB and 2 GB 1.5 times the sizeof RAM
Between 2 GB and GB Equal to the sizeof RAM
More than 16GB GB

grep "model name"/proc/cpuinfo
grep swaptotal/proc/meminfo

   [[email protected] ~]# free
             total      used        free    shared    buffers     Cached
    mem:      1035140     512924     522216         0      51236      335880
   -/+ buffers/cache:    125808      909332
    swap:     1052248          0    1052248

3. The shared memory segment must be at least greater than Memory_max_target and Memory_target
[Email protected] ~]# df-k/dev/shm/
Filesystem 1k-blocks used Available use% mounted on
Tmpfs 517568 0 517568 0%/dev/shm

4. At least 1G/ tmp
DF-H/tmp

5. Database software and data disk space requirements
Installation Type requirement for software Files (GB)
Enterprise Edition 3.95
Standard Edition 3.88

Installation Type requirement Fordata Files (GB)
Enterprise Edition 1.7
Standard Edition 1.5

6. Operating system version
Operating System Requirements
The following is the operating system requirements fororacle Database 11g Release 2 (11.2) for Linux x86:

Asianux 2.0
Asianux 3.0
Oracle Enterprise Linux 4.0 Update 7 or later
Oracle Enterprise Linux 5.0
Red Hat Enterprise Linux 4.0 Update 7 or later
Red Hat Enterprise Linux 5.0
SUSE Linux Enterprise Server 10.0
SUSE Linux Enterprise Server 11.0
For Asianux 3, Oracle Enterprise Linux 5.0, and Red hatenterprise Linux 5.0:2.6.18 or later


[Email protected] ~]# uname-r
2.6.18-164.el5
[Email protected] ~]# uname-a
Linux rhel5.oraclelinux.com 2.6.18-164.el5 #1 SMP Tue 1815:51:54 EDT i686 i686 i386 gnu/linux
[Email protected] ~]# uname-s
Linux

7. Install the required packages

Yum-y Install compat-db-4*
Yum-y Install libaio-0*
Yum-y Install compat-libstdc++-33-3*
Yum-y Install compat-gcc-34-3*
Yum-y Install compat-gcc-34-c++-3*
Yum-y Install libxp-1*
Yum-y Install openmotif-2*
Yum-y Install gcc-4*
Yum-y Install glibc*

8. Create groups and users
/usr/sbin/groupadd Oinstall
/usr/sbin/groupadd DBA
/USR/SBIN/USERADD-G oinstall-g dba Oracle

If the Oracle user already exists
/USR/SBIN/USERMOD-G oinstall-g dba Oracle

echooracle | passwd--stdin Oracle

9. Modifying kernel parameters

Shmmax-The maximum number of bytes in a shared memory segment, it is recommended to set a large point, even larger than the number of bytes in physical memory
Shmmin-The minimum size of the shared memory segment .
Shmmni-The maximum number of shared memory segments .
SHMSEG-The maximum number of shared memory segments that can be allocated per process .
Shmall-The maximum number of concurrent shared memory segments, larger than the SGA .
Semmns-The maximum number of semaphores associated with Oracle's process Count .
SEMMSL-The maximum number of semaphores in each semaphore set .

Vi/etc/sysctl.conf

Kernel.shmall= 2097152
Kernel.shmmax = 536870912
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Fs.file-max = 65536
Net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144

Execute this command after modifying: sysctl-p

10.vi/etc/security/limits.conf

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

11.vi/etc/pam.d/login
Session Required Pam_limits.so

12. Modify Profile
if [$USER = "Oracle"]; Then
if [$SHELL = "/bin/ksh"]; Then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi

13. Create a directory structure

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

14.

Vi/home/oracle/.bash_profile

Export Oracle_base=/u01/app/oracle
Export Oracle_home= $ORACLE _base/product/10.2/db_1
Export ORACLE_SID=ORCL
Export path= $ORACLE _home/bin: $PATH

15.

./runinstaller-ignoresysprereqs


Installation of rlwrap-0.30

TARZXVF Rlwrap-0.30.tar (file name )
cd/rlwrap-0.30
./configure--prefix=/usr/local/rlwrap
Make && make install

Vi/home/oracle/.bash_profile
Alias sqlplus= '/usr/local/rlwrap/bin/rlwrap sqlplus '
Alias rman= '/usr/local/rlwrap/bin/rlwrap Rman '

Su-oracle
Sqlplus

Install as an Oracle identity
./runinstaller-ignoresysprereqs

RHEL5 installation Oracle10

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.