Install Oracle 9i in Red Hat Linux 7.3

Source: Internet
Author: User
This article will introduce the installation process of Oracle Database 9i in Linux. If you have experience installing Oracle8i, the following installation process is a breeze for you:

Hardware requirements:

Hard Disk Space: the Oracle9i database must have at least GB of space.

Temporary hard disk space: the Oracle installer requires more than MB of temporary hard disk space during installation;

Memory: the installation of the Oralce 9i software requires at least MB of memory (I personally used MB of memory during installation ).

Installation:

1. Red Hat Linux 7.3:

Download location: http://www.puschitz.com/RedhatDownload.html

2. Oracle9i:

Download location: http://otn.oracle.com/software/prod.../linuxsoft.html (Note: 1. Version 9.2.0.1)

Decompression method: Take linux9i_disk1.cpio.gz as an example.

  gunzipt Linux9i_Disk1.cpio.gz     cpio –idmv < Linux9i_Disk2.cpio

After unpacking, three directories are formed: installation files:

  ( Disk1 Disk2 Disk3 )

3. binutils:

7.3 self comes with nutils-2.11.90.0.8-9, but it is easy to problem when installing, it is recommended to download binutils-2.10.0.18-1.i386.rpm

: Ftp://ftp.redhat.com/pub/redhat/lin...i386.rpm to install binutils as a root user:

  rpm -Uvh --force --nodeps binutils-2.10.0.18-1.i386.rpm 

After oracle9i is installed, restore its version:

  rpm -Uvh --force --nodeps binutils-2.11.90.0.8-9.i386.rpm

4. JDK:

: Http://www.blackdown.org or http://java.sun.com

Installation:

  bunzip2 -dc jdk118_v3-glibc-2.1.3.tar.bz2   tar xvf jdk118_v3-glibc-2.1.3.tar    ln -s /usr/local/jdk118_v3 /usr/local/java

5. Configure Kernel Parameters

Oracle9i uses Linux shared memory, swap zone and other resources for work. If your kernel parameter settings cannot meet the requirements of oracle, problems may occur frequently during the installation or use of explorel9i, therefore, it is particularly important and critical to configure system kernel parameters.

The kernel parameters are generally configured in the/proc Folder:

1). the following commands are allowed as root users;

2) enter the directory/proc/sys/kernel. Run the cat command or the more command to view the current semaphore parameter value:

  cat sem 

After the command is run, the following results are displayed:

  250 32000 32 128 

250 is the SEMMSL value, 32000 is the SEMMNS value, 32 is the SEMOPM value, and 128 is the SEMMNI value.

4). Use the following command to modify the preceding parameters.

  echo SEMMSL_value SEMMNS_value SEMOPM_value SEMMNI_value > sem

Here, SEMMSL_value, SEMMNS_value, SEMOPM_value, and SEMMNI_value are replaced with the corresponding values, and the order of these values cannot be changed.

5 ). set the shared memory size. Generally, the shared memory size is set to half the physical memory size. Here we assume that the physical memory is 512 MB, and the shared memory value is 4294967295, and so on, if your physical memory is 1 GB, the value here is 8589934590:

  echo 4294967295 > shmmax 

6. Add users:

Specific users (non-root users) are required for Oracle Installation and Use. According to oracle standards, three special users and user groups need to be added, to facilitate the installation and use of oracle, you can install and use oracle to a specific user.

First, create an oracle Installation group and user group. We set up two user groups named oinstall and dba to log on to the system as the root user:

  1)groupadd oinstall   2) groupadd dba 

Add oracle users:

  1)useradd oracle –g oinstall –G dba     2) password oracle 

7. Create the installation directory as the root user:

  mkdir /opt/oracle    mkdir /opt/oracle/product    mkdir /opt/oracle/product/9.0.1    chown -R oracle.oinstall /opt/oracle    mkdir /var/opt/oracle    chown oracle.dba /var/opt/oracle    chmod 755 /var/opt/oracle

8. Set the Oracle environment:

For oracle users:

  vi /home/oracle/.bash_profile    export ORACLE_BASE=/opt/oracle    export ORACLE_HOME=/opt/oracle/product/9.0.1    export ORACLE_SID=sah    export ORACLE_TERM=xterm    export NLS_LANG=AMERICAN;    export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:    /usr/lib:/usr/local/lib    export PATH=$PATH:$ORACLE_HOME/bin;  CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib           CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib

9 start Installation

  1) cd /backup/Disk1     2) ./runInstaller

Solve the problem during installation: generally follow the error prompt. If the binutils problem occurs, the binutils version must be incorrect. We recommend that you install binutils before installing oracle9i.

During database installation, oracle9i requires the password of sys and system users. You can set your own password at will.

10. Start the database:

Note: svrmgrl is not supported in 9i.

  1) $dgmgrl     2)connect sys/xxxx as sysdba     3)startup

(Note: The 9i prompt is different from the 8i prompt. There are only two lines, which are not listed here) So far, oracle9i has been installed!

Contact me: sahxinyu@163.com

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.