How to install Oracle 10g on Redhat 9,redhat ELAS 3/2.1,redat FC1

Source: Internet
Author: User
Tags exit chmod interface join min range
Oracle


This article will show you how to install the following contents:
-Oracle 10g (10.1.0) on Red Hat Enterprise Linux Advanced Server 3 (RHELAS3)
-Oracle 10g (10.1.0) on Red Hat Enterprise Linux Advanced Server 2.1 (RHELAS2.1)
-Oracle 10g (10.1.0) on Red Hat 9 (RH9)
-Oracle 10g (10.1.0) on Red Hat Fedora Core 1 (FC1)



Download oracle10g for Linux version from Otn
Http://otn.oracle.com/software/products/database/oracle10g/index.html



The downloaded files are ship.db.cpio.gz as follows:

If you are downloading files from Windows OS, you can download the Samba feature via Linux directly to your Linux ship.db.cpio.gz.

Do the CRC (cyclic redundancy check) Check:

$cksum ship.db.cpio.gz

Put the ship.db.cpio.gz in/TMP and decompress the ship.db.cpio.gz

$gunzip ship.db.cpio.gz

Get a Disk1 like this, this is oracle10g for Linux installation files

===========

Do the following check again:

$grep Memtotal/proc/meminfo

Check the size of swap space,

$grep Swaptotal/proc/meminfo

Make sure your swap is about twice times the size of the store, which is good for Oracle's installation and use, or it's going to be a problem when building a library, I'm 1.5g, and my swap is 2.9G.

If you install Linux without setting the swap to sufficient size, please follow the following setting.

$su-root

#dd If=/dev/zero Of=tmpswap bs=1k count=900000

#chmod Tmpswap

#mkswap Tmpswap

#swapon Tmpswap

=======

Installation of Oracle Universal Installer requires at least MB of free space at/tmp.
Check/tmp:

$DF/tmp

If you don't have enough space in/TMP, you can create a TMP record in another subregion by looking at the following:

$su-root

#mkdir/<anotherfilesystem>/tmp

#chown Root.root/<anotherfilesystem>/tmp

#chmod 1777/<anotherfilesystem>/tmp

#export temp=/<anotherfilesystem> # is used by Oracle

#export tmpdir=/<anotherfilesystem> # used in Linux applications

When you have finished installing oracle10g, turn off Oracle and remove the temporary TMP records, as follows:

$su-root

#rmdir/<anotherfilesystem>/tmp

#unset TEMP

#unset Tmpdir

=====
Check the Linux installation package (RPMS), mainly check with COMPAT-GCC, compat-libstdc++ and so on compatibility, because in X-windows install oracle10g need to use the Window API function interface.

Check Linux core RPMs

$uname –a

The results should be 2.4.9 or more.

Check glibc RPMs

For Redhat ELAS 2.1 needs to be changed as follows

$su –root

#rpm-UVH glibc-2.2.4-32.11.i686.rpm glibc-common-2.2.4-32.11.i386.rpm



Check gcc, make, and Binutils RPMs

#rpm-Q gcc make binutils

Find out whether the following RPMs are installed:
-For RHELAS3 and rhelas2.1:make-3.79 or above
-For RHELAS3 and rhelas2.1:binutils-2.11.90.0.8-12 or above versions
-For rhelas3:gcc-3.2.3-2 or above
-For rhelas2.1:gcc-2.96-108.1 or above



In the RHELAS3 system, make and Binutils RPMs have been installed. However, there are some RPMs that need to be installed, you can find these RHELAS3 in the 3rd of the RPMs installation, and of course you can download the new version.

$su-root

#rpm-UVH gcc-3.2.3-20.i386.rpm \

GLIBC-DEVEL-2.3.2-95.3.I386.RPM \

GLIBC-HEADERS-2.3.2-95.3.I386.RPM \

glibc-kernheaders-2.4-8.34.i386.rpm

In the RHELAS2.1 system, in the "RedHat 2.1 Advanced Server" installation, if you do not choose "Software Development", you will not install binutils and GCC RPMs, In order to satisfy the need dependencies of Oracle installation for X-windows, the following instructions need to be executed

$su-root

#rpm-IVH gcc-2.96-108.1.i386.rpm \

BINUTILS-2.11.90.0.8-12.I386.RPM \

CPP-2.96-108.1.I386.RPM \

GLIBC-DEVEL-2.2.4-32.11.I386.RPM \

kernel-headers-2.4.9-e.3.i386.rpm



In the RH9 system, make RPM is already installed. The following packages need to be installed, please note that Oracle does not support installation on the RH9, you should try to find some suitable rpm, the following need to install the package please find in your RH9 CD, if you can not search in the google.com.

$su-root

#rpm-UVH gcc-3.2.2-5.i386.rpm \

GLIBC-DEVEL-2.3.2-5.I386.RPM \

CPP-3.2.2-5.I386.RPM \

GLIBC-KERNHEADERS-2.4-8.10.I386.RPM \

binutils-2.13.90.0.18-9.i386.rpm





In the FC1 system, make RPM is already installed. The following packages need to be installed. Note that FC1 's situation and RH9 are not supported by Oracle, you should try to find some suitable rpm, the following need to install the package please check your RH9 CD, if no can be found in google.com.

$su-root

#rpm-UVH gcc-3.3.2-1.i386.rpm \

GLIBC-DEVEL-2.3.2-101.I386.RPM \

CPP-3.3.2-1.I386.RPM \

GLIBC-HEADERS-2.3.2-101.I386.RPM \

GLIBC-KERNHEADERS-2.4-8.36.I386.RPM \

binutils-2.14.90.0.6-3.i386.rpm



Check Openmotif RPM

$RPM-Q openmotif (open the graphic interface of the software fund, relative to DirectX under Linux)

(Please find the following files on the RH installation CD, or go to google.com search, I have tried the basics to find it)



RHELAS3, if you don't have an installed openmotif, please do it.

$su-root

#rpm-IVH openmotif-2.2.2-16.i386.rpm (or later)

RHELAS2.1, if you don't have an installed openmotif, please do it.

$su-root

#rpm-IVH openmotif-2.1.30-11.i386.rpm



RH9, please execute.

$su-root

#rpm-UVH openmotif-2.2.2-14.i386.rpm



FC1, please execute.

$su-root

#rpm-UVH openmotif-2.2.2-16.1.i386.rpm



Check Setarch RPM

RHELAS3, perform the following instructions to check whether it is Setarch-1.3-1 RPM or an updated version:

#rpm-Q Setarch

Setarch is a new feature of RHEL3. Used to simulate a 3GB virtual address space to allow such an application to function correctly if no installation is performed:

$su-root

#rpm-UVH setarch-1.3-1.i386.rpm



RHELAS2.1 and RH9, do not need Setarch RPM.

For FC1, although it is not used, please also perform:

$su-root

#rpm-UVH setarch-1.0-1.i386.rpm


Check Redhat-release RPM

Find out if Redhat-release RPM is installed:

$RPM-Q Redhat-release

This RPM is important for Linux in the Rhel series because it will be used for Oracle installation verification. Without this package, oracle10g will recognize that the OS is not supported.
-For RHELAS3, please perform (this rpm can be found in RHELAS3 Disk 1):

$su-root

#rpm-IVH redhat-release-3as-1.i386.rpm

-For RHELAS2.1, please perform (this rpm can be found in RHELAS3 Disk 1):

$su-root

#rpm-IVH redhat-release-as-2.1as-4.noarch.rpm


But for RH9 and FC1, you just edit the/etc/redhat-release file,

$su-root

#cp/etc/redhat-release/etc/redhat-release.backup

#cat >/etc/redhat-release << EOF

#Red Hat Enterprise Linux as Release 3 (Taroon)

#EOF

Remember to install the oracle10g to the original file content:

$su-root

#cp/etc/redhat-release.backup/etc/redhat-release

Well, when we're done with the preparation, we should start with the exciting oracel10g installation! Before we install, we need to set the kernel parameters associated with Oracle.

First look at all the kernel parameters:

$su-root

#sysctl-A

Installation instructions under/tmp/disk1, we do not recommend the direct execute
Runinstaller-ignoresysprereqs


For oracle10g, you need to set the following parameters to more the value of a freshman:

Check the results to perform the contents of the right parentheses

Shmmax = 2147483648 (Cat/proc/sys/kernel/shmmax)

This means that the system's shared memory reaches 4G, which is not appropriate. Generally, the Shmmax settings can be slightly larger than the native memory configuration.
In fact, the default installation of the Redhat 6.0 core running Oracle 8.0.5 is not a problem, and you may not normally be able to make adjustments to these parameters.
If you need to adjust, after the modification, you need to rebuild the core as required by the document and use the LILO command to specify the new core for booting.

Shmmni = 4096 (Cat/proc/sys/kernel/shmmni)

Shmall = 2097152 (Cat/proc/sys/kernel/shmall)

Shmmin = 1 (ipcs-lm |grep "min seg size")

Shmseg = 10 (hard-coded in kernel, high by default)

SEMMSL = (Cat/proc/sys/kernel/sem | awk ' {print $} ')

Semmns = 32000 (Cat/proc/sys/kernel/sem | awk ' {print $} ')

SEMOPM = + (Cat/proc/sys/kernel/sem | awk ' {print $} ')

Semmni = 128 (Cat/proc/sys/kernel/sem | awk ' {print $} ')

File-max = 65536 (Cat/proc/sys/fs/file-max)

Ip_local_port_range = 1024 65000

(Cat/proc/sys/net/ipv4/ip_local_port_range)



Note:do not change the "value of" kernel parameter on a system where it is already higher than listed as minimum Requir Ement.

On RHELAS3, RHELAS2.1, RH9, and in FC1 I had to increase the kernel parameters, Shmmax, and semopm to Filemax the min Imum requirement.

Oracle also recommends to set the local port range ip_local_port_range for outgoing messages to ' 1024 65000 ' which is need Ed for High-usage systems. This kernel parameter defines is the local port range for TCP and UDP traffic to choose from.

I added the following lines to the/etc/sysctl.conf file which is used during the boot process:

kernel.shmmax=2147483648

KERNEL.SEM=250 32000 100 128

fs.file-max=65536

net.ipv4.ip_local_port_range=1024 65000

Adding these lines to the/etc/sysctl.conf file would cause the system to change this kernel parameters after each boot us ing The/etc/rc.d/rc.sysinit script which is invoked by/etc/inittab. But in order so these new added lines or settings in/etc/sysctl.conf become effective immediately, execute the Followin G Command:

Su-root

Sysctl-p


For more information on Shmmax, Shmmni, Shmmin, shmseg, and Shmall, and you'll be Setting Shared Memory.
For more information on SEMMSL, Semmni, Semmns, and semopm, and so on Setting semaphores.
For more information on Filemax, and the Setting File Handles.

-------------------

< join > in/oracle/10.1.0/bin/dbshut



# #自動關閉Listner

If [f $ORACLE _home/bin/lsnrctl]; Then

$ORACLE _home/bin/lsnrctl Stop

Fi

# #自動關閉Oracle Apache Jserv

If [f $ORACLE _home/apache/apache/bin/httpdsctl]; Then

$ORACLE _home/apache/apache/bin/httpdsctl Stop

Fi



36. Please test after completion

$/oracle/10.1.0/bin/dbstart

$/oracle/10.1.0/bin/dbshut

37. Open Self activation Oracle

Please oracle10g this script CP to/ETC/RC.D/INIT.D

$CP ORACLE10G/ETC/RC.D/INIT.D

and join the Open service program

#chkconfig--add oracle10g

#linuxconf

The linuxconf can be used to control the level of the activation.

************

oracle10g.

#!/bin/sh

#

# chkconfig:345 51 49

# description:starts The Oracle Dabase de

#

echo "Oracle 10g auto Start/stop"



Ora_owner=oracle

ora_home=/oracle/10.1.0/db



Case "$" in

' Start ')



Echo-n "Starting oracle10g:"

su-$ORA _owner-c $ORA _home/bin/dbstart

touch/var/lock/subsys/oracle10g

Echo

;;



' Stop ')

Echo-n "Shutting oracle10g:"

su-$ORA _owner-c $ORA _home/bin/dbshut

Rm-f/var/lock/subsys/oracle10g

Echo

;;





' Restart ')



Echo-n "Restarting oracle10g:"

$ stop

$ start

Echo

;;



*)

echo "usage:oracle10g {start | Stop | Restart} "

Exit 1



Esac

Exit 0
oracle10g************


Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.