Oracle9iR2 installation on RedHatLinux9

Source: Internet
Author: User
Welcome to the Oracle community forum and interact with 2 million technical staff to access the installation of DatabaseVersion: Oracle9iR2 (9.2.0.4.0) OS: RedHatLinux9OracleDB on Linux DatabaseVersion: Oracle9iR2 (9.2.0.4.0) on OracleDB Linux) OS: RedHatLinux9OS preparation: OS

Welcome to the Oracle community forum and interact with 2 million technical staff> go to Oracle DB's Linux installation Database Version: Oracle9iR2 (9.2.0.4.0) OS: red Hat Linux 9 Oracle DB installation on Linux Database Version: Oracle9iR2 (9.2.0.4.0) OS: Red Hat Linux 9 OS preparation: OS

Welcome to the Oracle community forum and interact with 2 million technical staff> enter


Installation of Oracle DB on Linux
Database Version: Oracle9iR2 (9.2.0.4.0)
OS: Red Hat Linux 9

Installation of Oracle DB on Linux
Database Version: Oracle9iR2 (9.2.0.4.0)
OS: Red Hat Linux 9

OS preparation:
The installation of OS is not illustrated here. My directory structure and size are as follows:
Filesystem 1M-blocks Used Available Use % Mounted on
/Dev/sda2 9845 3726 5619 20%/
/Dev/sda1 99 10 85 10%/boot
/Dev/sda8 1012 37 924 4%/home
None 125 0 125 0%/dev/shm
/Dev/sda6 1012 97 864 11%/tmp
/Dev/sda3 7876 3753 3723 30%/usr
/Dev/sda5 2950 33 2768 2%/usr/local
/Dev/sda9 1390 81 1239 7%/var

1. Set the swap space. Of course, this is set during OS installation. Generally, it is twice the memory. You can also set it.
More space for it, I set 1G when installing the OS
You can use cat/proc/swaps to check the swap space.
2. Check the space size of/tmp. It takes at least MB to install Oracle.
You can use the command dt/tmp to check.
3. Divide Oracle space:
1) Installing Oralce requires 2g space
2) typical installation requires at least GB of space (a DB will be created)
3) space allocation:
In the actual application environment, the tablespace should be distributed on different disks. Pay attention to the following points:
(1) The system tablespace and other tablespaces should be opened separately.
(2) oracle software should not be installed on disks running OS
(3) do not put the tablespace together with the Oracle software.
(4) create a separate tablespace for the index


Preparation of software and installation environment:
1. You can download Oracle9i for Linux from the following places
Linuxsoft.html "> http://otn.oracle.com/software/products/oracle9i/htdocs/linuxsoft.html
2. There are three files after the download:
Ship_9204_linux_disk1.cpio.gz
Ship_9204_linux_disk2.cpio.gz
Ship_9204_linux_disk3.cpio.gz
3. Release these files one by one
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
Three folders including the Oracle Installation File are displayed: Disk1, Disk2, and Disk3.
Note that if the Owner of these three files is oracle, it will have the permission only after the installation.
4. JDK: The runtime environment Oracle9iR2 does not need to install Java runtime
5. Create a user group and an account:
Groupadd dba
Groupadd oinstall
Useradd-c "Oracle software owner"-g oinstall-G dba oracle
Passwd oracle
6. Create related directories:
[Root @ Harrison root] # mkdir/u01
[Root @ Harrison root] # mkdir/u01/orale
[Root @ Harrison root] # mkdir/u01/orale/product
[Root @ Harrison root] # mkdir/u01/orale/product/9.2.0
[Root @ harliroot] # chown-R oracle. oinstall/u01/oracle
[Root @ Harrison root] # chmod 775/u01
[Root @ Harrison root] # chown oracle. dba/u01
7. Set environment variables: edit the. bash_profile file.
# Because Red Hat Linux 9 is not certified by Oracle, it is recommended to downgrade its kernel to version 2.4.1.
# This is very important
Export LD_ASSUME_KERNEL = 2.4.1
# Oracle environment variables
Export ORACLE_BASE =/u01/oracle
Export ORACLE_HOME =/u01/oracle/product/9.2.0
Export ORACLE_SID = test
Export ORACLE_TERM = xterm
Export ORA_NLS33 = $ ORACLE_HOME/ocommon/nls/admin/data
Export TNS_ADMIN = $ ORACLE_HOME/network/admin
Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib
CLASS_PATH = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib: $ ORACLE_HOME/network/jlib
Export PATH = $ PATH: $ ORACLE_HOME/bin

8. Set Shared Memery
---------------------------
/Proc/sys/kernel/sem
/Proc/sys/kernel/shmmax
/Proc/sys/kernel/shmmni
/Proc/sys/kernel/shmall
---------------------------

Echo 100 256 100 100>/proc/sys/kernel/sem
Echo 2147483648>/proc/sys/kernel/shmmax
Echo 4096>/proc/sys/kernel/shmmni
Echo 2097152>/proc/sys/kernel/shmall

It is best to set these parameters in the/etc/rc. local file so that the Linux system can set these parameters during initialization.
We recommend that you restart the OS after modifying the/etc/rc. local file.

9. Run runInstaller
$ Echo $ LD_ASSUME_KERNEL # setting this environment variable is very important, only for Red Hat Linux 9
2.4.1
$./RunIstaller

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.