Red Hat linux5 install Oracle 9i enterprise (1)

Source: Internet
Author: User

If you encounter a problem when installing Oracle 9i enterprise on Redhat Linux5, please read the following article to help you solve the problems related to the actual application of Oracle 9i enterprise. The installation steps are as follows:
Environment: Red Hat Enterprise Linux 5 (RHEL5), Oracle9i (9.2.0.4.0)
For RHEL5 installation instructions, see [url = http://ox0spy.googlepages.com/rhel5install.txt?red Hat Enterprise Linux 5 (RHEL5 ).
The commands starting with $ are executed by oracle.
# Commands starting with "root" are executed

[Color = DarkGreen] [size = 4] The package mentioned in the article provides a way to obtain the package. Please read the article carefully [/size] [/color]
1. Create users and groups
------------------------- Add users and groups used during installation
$ Su-
# Groupadd oinstall
# Groupadd dba
# Useradd-g oinstall-G dba oracle
# Passwd oracle

2. Create a directory
--------------------------
We will install everything in the/opt/oracle directory:
# Mkdir-p/opt/app/oracle/9.2.0
# Chown-R oracle. oinstall/opt/app/oracle

3. System Configuration
--------------------------
A) Set Kernel Parameters
Edit/etc/sysctl. conf
Kernel. shmmax = 536870912 if it is set to half of the physical memory 1 GB memory, the value is 512x1024x1024.
Kernel. shmmni = 4096 2 GB memory: 1024x1024x1024
Kernel. shmall = 2097152
Kernel. sem = 250 32000 100 128 none of other values need to be moved
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000

The four parameters of sem are SEMMSL (each user has the maximum number of semaphores );
SEMMNS (maximum number of system semaphores );
SEMOPM (number of calls to the semopm system each time );
SEMMNI (the maximum number of hard data sets in the system ).
Shmmax maximum shared memory 2 GB physical memory can be set to 536870912 if it is small.
Shmmni minimum shared memory: 4096KB.
All Shmall memory sizes.

Run sysctl to reflect the modification so that the kernel parameters take effect immediately. You can also restart it.
# Sysctl-p

You can also run the following command to change the kernel parameters:
# Echo 250 32000 100 128>/proc/sys/kernel/sem
# Echo 268435456>/proc/sys/kernel/shmmax #1/2 * mem_size (M) * 1024*1024
# Echo 4096>/proc/sys/kernel/shmmni
# Echo 524288>/proc/sys/kernel/shmall # mem_size (M) * 1024
# Echo 65536>/proc/sys/fs/file-max
# Echo 1024 65000>/proc/sys/net/ipv4/ip_local_port_range

B) Set oracle file requirements
Modify the file:/etc/security/limits. conf
# Echo oracle soft nofile 65536>/etc/security/limits. conf
# Echo oracle hard nofile 65536>/etc/security/limits. conf
# Echo oracle soft nproc 16384>/etc/security/limits. conf
# Echo oracle hard nproc 16384>/etc/security/limits. conf

C) Set Environment Variables
Add the following lines to/home/oracle/. bash_profile:
Export ORACLE_SID = zhang
Export ORACLE_BASE =/opt/app/oracle
Export ORACLE_HOME =/opt/app/oracle/9.2.0
Export LD_LIBRARY_PATH =/opt/app/oracle/9.2.0/lib:/usr
/Lib:/usr/local/lib:/usr/X11R6/lib
Export TNS_ADMIN =/opt/app/oracle/9.2.0/network/admin
Export ORA_NLS33 =/opt/app/oracle/9.2.0/ocommon/nls/admin/data
Export ORACLE_OWNER = oracle
Export ORACLE_TERM = xterm
Export PATH =/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local
/Sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin :/
Opt/app/oracle/9.2.0/bin

4. Patch and install the required packages. For the reason for doing this, there will be a Tips later, which will show the installation errors and their Solution.
Bytes --------------------------------------------------------------------------------------------------
A) patch description:
P3006854_9204_LINUX.zip patch to be installed
After p2617419_210_GENERIC.zip is installed, it is only an accompanying patch.
Environment variable)
P3238244_9204_LINUX.zip: Install the 9204 patch to fix the agent error.
Http://www.opennet.ru/soft/ora_inst/

Compat-libcwait-2.0-2.i386.rpm linux as 4 patch is required before installation
Patches for compat-oracle-rhel4-1.0-5.i386.rpm linux as 4 are required before installation, but I didn't install it
Http://oss.oracle.com/projects/compat-oracle/files/RedHat/

B) p3006854_9204_linux.zip.
# Unzip p3006854_9204_LINUX.zip
# Chmod + x 3006854/rhel3_pre_install.sh
#3006854/rhel3_pre_install.sh

C) install compat-libcwait-2.1-1.i386.rpm
# Rpm-ivh compat-libcwait-2.1-1.i386.rpm

D) Some required packages, which can be found on the System Disk
# Rpm-ivh compat-db-4.2.52-5.1.i386.rpm
# Rpm-ivh libXp-1.0.0-8.i386.rpm
# Rpm-ivh libXp-devel-1.0.0-8.i386.rpm
# Rpm-ivh openmotif-2.3.0-0.3.el5.i386.rpm
# Rpm-ivh openmotif-devel-2.3.0-0.3.el5.i386.rpm

D) gnome-libs-1.4.2-7.rhel5.i386.rpm and some dependent packages
These packages can be found online or downloaded from http://ox0spy.googlepages.com/download.zip
# Rpm-ivh giflib-4.1.3-8.i386.rpm
# Rpm-ivh glib-1.2.10-26.fc7.i386.rpm
# Rpm-ivh libpng10-1.0.18-2.i386.rpm
# Rpm-ivh ORBit-0.5.17-22.rhel5.i386.rpm
# Rpm-ivh gtk +-1.2.10-57. fc7.i386. rpm
# Rpm-ivh imlib-1.9.15-2.fc7.i386.rpm
# Rpm-ivh gnome-libs-1.4.2-7.rhel5.i386.rpm

E) create a link
# Ln-s/usr/lib/libstdc ++-libc6.2-2. so.3/usr/lib/libstdc ++-libc6.1-1. so.2

Now you can say that the previous two patches have not been installed. Please don't worry. They will be used later.
Okay, let's continue...

5. Start oracle Installation
----------------------------------------------------------------------------------
1) Preparations
Download oracle 9i
Http://www.oracle.com/technology/software/products/oracle9i/htdocs/linuxsoft.html

Extract
$ Zcat ship_9204_linux_disk1.cpio.gz | cpio-idmv
$ Zcat ship_9204_linux_disk2.cpio.gz | cpio-idmv
$ Zcat ship_9204_linux_disk3.cpio.gz | cpio-idmv

2) Restart X and use oracle to log on to the system. Otherwise, some column errors may occur, such as xhost +, environment variables, etc.
$ Disk1/runInstaller
If no special instructions are provided, follow the default settings. Click Next or OK as prompted on the page.
Oracle install group: oinstall
Global Database Name: ox0spy.org (you can enter it based on your situation)
During this process, two prompts will appear, asking you to run the script in the specified directory and follow the prompts.


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.