How to install Oracle 10g on RedHat 9, Redhat Elas 32.1, Redat FC1

xiaoxiao2021-03-06  62

This article will guide everyone to install the following: - 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)

Upload Oracle10g for Linux version from OTN http://otn.oracle.com/software/products/Database/oracle10g/index.html

Download file ship.db.cpio.gz processes:

If you are a file downloaded in the Windows OS, you can copy ship.db.cpio.gz directly to your Linux directory via Linux's Samba feature.

Do a Cyclic Redundancy Check check:

$ CKSUM ship.db.cpio.gz

Put Ship.db.cpio.gz under / TMP, extract Ship.db.cpio.gz

$ gunzip ship.db.cpio.gz

Get the DISK1 catalog, this is the installation file of Oracle10g for Linux

===========

Do the following checks:

$ GREP MEMTOTAL / PROC / MEMINFO

Check the size of the SWAP space,

$ grep swaptotal / proc / meminfo

Make sure your SWAP size is 2 times more memory, so for Oracle installation and use, it will be problematic when establishing a database, my memory is 1.5G, my SWAP is set to 2.9G

If you don't set SWAP to set the SWAP, please be executed as follows

$ su - root

#dd if = / dev / zero of = tmpswap bs = 1k count = 900000

#CHMOD 600 TMPSWAP

#mkswap tmpswap

#SWapon Tmpswap

=======

Installing Oracle Universal Installer requires at least 400 MB of free space under / TMP. Check / TMP:

$ DF / TMP

If you don't have enough space under / TMP, you can build a TMP directory in another partition, please see the following:

$ su - root

#mkdir / / tmp

#Chown root.root / / tmp

#CHMOD 1777 / / TMP

#export temp = / # is used by Oracle

#export tmpdir = / # for Linux applications

When you have installed Oracle10g, turn off Oracle and remove the temporary TMP directory, as follows:

$ su - root

#rmdir / / tmp

#unset temp

#unset tmpdir

===== Check the installation package (RPMS) on Linux, mainly check compatibility with compat-gcc, compat-libstdc , etc., because Oracle10g installed under X-Windows needs to be used to use the window API function interface.

Check Linux core RPMS

$ uname -a

The result should be version 2.4.9 or more. Check GLIBC RPMS

For RedHat Elas 2.1 needs to change as follows

$ su - root

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

Check GCC, Make, And Binutils RPMS

# rpm -q gcc make binutils

The following RPMS is installed: - For rhelas3 and rhelas2.1: make-3.79 or above - for rhelas3 and rhelas2.1: binutils-2.11.90.8-12 or above - 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 RPMs in the RheLAS3 installation disc, of course, you can also 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 don't choose "Software Development", you will not install binutils and GCC RPMs, in order to meet the Oracle installation for X-windows, you need Perform the following instructions

$ su - root

# rpm -ivh gcc-2.96-108.1.i386.rpm /

Binutils-2.11.90.0.8-12.i386.0.8-12.i386.0.8-12.i386.0.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 has been installed. There is also the following packages need to be installed. Please note that Oracle does not support installation on RH9, you should work hard to find some suitable RPM, here you need to install the package, please first in your RH9 Find in the CD, if you don't search in 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-keernheaders-2.4-8.10.i386.rpm /

Binutils-2.13.90.0.18-9.i386.rpm

In the FC1 system, Make RPM has been installed. There is also the following packages need to be loaded. Note that the situation of FC1 is not supported by Oracle, you should work hard to find some suitable RPM, you need to install the package first in you Looking for the RH9 CD, if you don't search 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-keernheaders-2.4-8.36.i386.rpm /

Binutils-2.14.90.0.6-3.i386.0.6-3.i386.0.6-3.i386.0.6-3.i386.0.6-3.i386.RPM

Check OpenMotiF RPM

$ RPM -Q OpenMotif (Open Software Foundation Graphics Interface, DirectX under Linux)

(Please find it in the installation CD installation CD in RH, or go to Google.com, I have tried basicly found it)

Rhelas3, if you don't have OpenMotif installed, please do

$ su - root # rpm -ivh openmotif-2.2.2-16.i386.rpm (or updated version)

Rhelas2.1, if you do not install OpenMotif, please

$ 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 if setarch rpmrhelas3, execute the following instructions, check whether the check is setArch-1.3-1 rpm or updated version:

# rpm -q setarch

Setarch is a new feature of RHEL3. Used to simulate a 3GB virtual address space to allow such applications to be functioning properly, if no installation is installed:

$ su - root

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

Rhelas2.1 and rh9 do not need setarch rpm. For FC1, although it does not use it, please also execute:

$ su - root

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

Check if redhat-release rpm detects whether RedHat-release rpm is installed:

$ rpm -q redhat-transase

This rpm is important for the RHEL series Linux, because it will be used for Oracle installation authentication. No this package, oracle10g will determine that the OS is not supported. - For rhelas3, please find this RPM ):

$ su - root

# rpm -ivh redhat-release-3AS-1.I386.rpm

- For rhelas2.1, execute (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 only need to edit / etc / redhat-release this 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 Oracle10g to restore this file content:

$ su - root

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

Ok, do the above ready to work, we should start exciting ORACEL10G installation! We need to set up the kernel parameters related to Oracle before installation.

Let's take a look at all kernel parameters:

$ su - root

#nsysctl -a

Installing execution instructions Under / TMP / Disk1, we do not recommend direct running RunInstaller -ignoreSysPreReqs

For Oracle10g, you need to set the following parameter values, you can set a bigger value:

Check the results can be implemented in the right parentheses

SHMMAX = 2147483648 (CAT / Proc / Sys / Kernel / SHMMAX)

This means that the system's shared memory reaches 4G, which is not suitable. In general, the setting of SHMMAX is slightly greater than the native memory configuration. In fact, the default installation RedHat 6.0 core runs Oracle 8.0.5 is no problem, in general, no adjustments to these parameters. If you need to adjust, after completing the modified, you must rebuild the core according to the document, and use the lilo command to specify the new core to boot.

SHMMNI = 4096 (CAT / Proc / Sys / kernel / shmmni)

SHMALL = 2097152 (CAT / Proc / Sys / Kernel / Shmall) shmmin = 1 (IPCS -LM | GREP "MIN Seg Size")

SHMSEG = 10 (hardcoded in Kernel, the default is higher)

SEMMSL = 250 (CAT / Proc / Sys / Kernel / SEM | awk '{print $ 1}')

SEMMNS = 32000 (CAT / Proc / Sys / Kernel / SEM | awk '{print $ 2}')

Semopm = 100 (CAT / Proc / Sys / Kernel / SEM | awk '{print $ 3}')

Semmni = 128 (CAT / Proc / Sys / Kernel / SEM | awk '{print $ 4}')

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 any kernel parameter on a system where it is already higher than listed as minimum requirement On RHELAS3, RHELAS2.1, RH9, and on FC1 I had to increase the kernel parameters shmmax, semopm, and filemax to meet the minimum requirement. Oracle also recommends to set the local port range ip_local_port_range for outgoing messages to "1024 65000" which is needed for high-usage systems. This kernel parameter defines the local port range for TCP and UDP traffic to choose from. I added the folly lines to the /etc/sysctl.conf file Which is buy 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 will cause the system to change these kernel parameters after each boot using the /etc/rc.d/rc.sysinit script which is invoked by / etc / inittab. But in order that Thase New Added Lines Or Settings in /etc/sysctl.conf Become Effective Immediele, Execute The Following Command:

Su - root

Sysctl -p

For more information on shmmax, shmmni, shmmin, shmseg, and shmall, see Setting Shared Memory. For more information on semmsl, semmni, semmns, and semopm, see Setting Semaphores. For more information on filemax, see Setting File Handles.

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

## Automatically turn off listner

IF [-f $ oracle_home / bin / lsnrctl]; then

$ Oracle_home / bin / lsnrctl stop

Fi

## Automatically turn off Oracle Apache Jserve

IF [-f $ oracle_home / apache / apache / bin / httpdsctl]; then

$ Oracle_home / apache / apache / bin / httpdsctl stop

Fi

36. Please test after completing

$ / oracle / 10.1.0 / bin / dbstart

$ / Oracle / 10.1.0 / bin / dbshut

37. Boot automatically launched Oracle

Please add Oracle10G Script CP to /etc/rc.d/init.d

$ cp oracle10g /etc/rc.d/init.d

Join the boot service program

#CHKCONFIG --ADD ORACLE10G

#linuxconf

Use LinuxConf to control the hierarchy of startup.

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

*** Oracle10g execution file

#! / 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 "$ 1" 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:"

$ 0 STOP

$ 0 Start

echo

;

*)

echo "Usage: Oracle10G {Start | STOP | Restart}"

EXIT 1

ESAC

EXIT 0 ******************** Oracle10g ***********

转载请注明原文地址:https://www.9cbs.com/read-84275.html

New Post(0)