ORACLE Install (10g R2) for Red Hat Enterprise Linux Server release 5.5 (+ bit)

Source: Internet
Author: User
Tags create directory

OS Info
----------
# Cat/etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
# cat/etc/issue.net
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Kernel R on a m
# UNAME-RM
2.6.18-194.el5 x86_64
# echo $MACHTYPE
X86_64-redhat-linux-gnu

# cat/proc/cpuinfo|grep "model name"
Model Name:intel (R) Core (TM) i7 CPU 950 @ 3.07GHz
Model Name:intel (R) Core (TM) i7 CPU 950 @ 3.07GHz
Model Name:intel (R) Core (TM) i7 CPU 950 @ 3.07GHz
Model Name:intel (R) Core (TM) i7 CPU 950 @ 3.07GHz
Model Name:intel (R) Core (TM) i7 CPU 950 @ 3.07GHz
Model Name:intel (R) Core (TM) i7 CPU 950 @ 3.07GHz
Model Name:intel (R) Core (TM) i7 CPU 950 @ 3.07GHz
Model Name:intel (R) Core (TM) i7 CPU 950 @ 3.07GHz

# free-m
Total used free shared buffers Cached
mem:3940 3816 124 0 72 3428
-/+ buffers/cache:315 3625
swap:8001 0 8001

# df-h
Filesystem Size used Avail use% mounted on
/dev/sda3 67G 6.9G 56G 11%/
/dev/sda6 1.6T 3.7G 1.6T 1%/oradata
/dev/sda2 95G 188M 90G 1%/archive
/DEV/SDA1 99M 20M 74M 22%/boot
Tmpfs 2.0G 0 2.0G 0%/dev/shm

1.check Packages
# rpm-q make gcc glibc compat-db-4.2.52-5.1 compat-gcc-34-3.4.6-4 compat-gcc-34-c++-3.4.6-4 compat-libstdc++- 33-3.2.3-61 Compat-libstdc++-devel LIBXP

Openmotif22 Setarch
Make-3.81-3.el5
Gcc-4.1.2-48.el5
glibc-2.5-49
glibc-2.5-49
compat-db-4.2.52-5.1
compat-db-4.2.52-5.1
Compat-gcc-34-3.4.6-4
Compat-gcc-34-c++-3.4.6-4
compat-libstdc++-33-3.2.3-61
compat-libstdc++-33-3.2.3-61
Package Compat-libstdc++-devel isn't installed--not found, no installation required
Libxp-1.0.0-8.1.el5
Libxp-1.0.0-8.1.el5
Openmotif22-2.2.3-18
setarch-2.0-1.1

[@[email protected]]

2.create Oracle User&group
# GROUPADD-G 501 DBA
# useradd-u 501-g dba-g dba-m-s/bin/bash-d/home/oracle Oracle
# passwd Oracle

3. Check memory
# grep Memtotal/proc/meminfo
memtotal:4035400 KB
# grep Swaptotal/proc/meminfo
swaptotal:8193108 KB

4.check disk
# df-h
Filesystem Size used Avail use% mounted on
/dev/sda3 67G 4.9G 58G 8%/
/dev/sda6 1.6T 197M 1.6T 1%/oradata
/dev/sda2 95G 188M 90G 1%/archive
/DEV/SDA1 99M 20M 74M 22%/boot
Tmpfs 2.0G 0 2.0G 0%/dev/shm

5.create Directory for Oracle
# Mkdir/orahome
# Chown-r Oracle:dba/orahome/home/oracle/oradata/archive
# Chmod-r 775/orahome/home/oracle/oradata/archive

6.Redhat Version Change
# Mv/etc/redhat-release/etc/redhat-release.orig
# echo "Red Hat Enterprise Linux Server Release 4 (Nahant Update 4)" >/etc/redhat-release

7.setting system Parameters
# Cat >>/etc/sysctl.conf << EOF
Kernel.core_uses_pid = 1
Kernel.shmall = 2097152
Kernel.shmmax = 2147483648
Kernel.shmmni = 4096
Kernel.sem = [32000] Fs.fil E-max = 65536
Net.ipv4.ip_local_port_range = 1024x768 65000
Net.core.rmem_default = 262144
Net.core.wmem_default = 262144
Net.core.rmem_max = 262144
Net.core.wmem_max = 262144
EOF
#/sbin/sysctl-p
-------
Cat >>/etc/security/limits.conf << EOF
Oracle Soft nproc 2047
Oracle hard nproc 16384
Oracle Soft Nofil E 1024x768
Oracle hard nofile 65536
EOF
-------
# echo "Session required/lib/security/pam_limits.so" >>/ Etc/pam.d/login
---
# vi/etc/profile
Add:
If [$USER = "Oracle"], then
if [$SHELL = '/bin/ksh ']; then
ulimit-p 16384
ulimit-n 65536
Else
ulimit-u 16384-n 65536
Fi
umask 022
Fi

8.setting Oracle Profile
# su-oracle
$ VI. bash_profile
Export Oracle_base=/orahome
Export oracle_home=/orahome/10.2
Export Ld_library_path= $ORACLE _home/lib
Export path= $ORACLE _home/bin: $ORACLE _home/opatch/opatch: $PATH
Export classpath= $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms/jlib: $ORACLE _home/network/jlib
Export Oracle_sid=xxx
Umask 022
$ source. bash_profile

9.oracle Install for VNC

$ gunzip 10201_database_linux_x86_64.cpio.gz
$ CPIO-IDMV < 10201_database_linux_x86_64.cpio
$ CD Database
$./runinstaller

10.patch Update for VNC
$ unzip P6810189_10204_linux-x86-64.zip
$ CD DISK1
$./runinstaller

10.Recovery Redhat Version
# Cat/etc/redhat-release
Red Hat Enterprise Linux Server Release 4 (Nahant Update 4)
# Rm/etc/redhat-release
# Mv/etc/redhat-release.orig/etc/redhat-release
# Cat/etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)

http://blog.itpub.net/789833/viewspace-1042835/

ORACLE Install (10g R2) for Red Hat Enterprise Linux Server release 5.5 (RPM)

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.