Install Oracle 9.2 on REDHAT9

Source: Internet
Author: User
Tags ibm db2

Redhat9.0 is a very good Linux distribution, with good Chinese support and rich application software, so that the author, including a lot of Linux with the home fondle admiringly. However, due to the high Redhat9.0 version of GCC, some compatibility problems are caused. So large database software including Oracle9.2 and IBM DB2 can not be installed smoothly on Redhat9.0.

After a period of exploration and repeated search of information. I finally summed up in addition to Oracle9.2 in the Redhat9.0 installation method, here for you to reference.

First you need to install Redhat9.0, if you are not a very experienced user, please choose a full installation.

Pre-Installation Preparation

To build a user and group, Oracle often requires two groups, one to install and the other to manage, but many veteran DBAs think it's enough to build a group. Run the following command as the root user:

Groupadd Oracle

Useradd Oracle-g dba

passwd Oracle

The Oracle installation location should comply with the OFA (Optimal flexible architecture) specification, but on my machine, because of limited space, Oracle_home is set to/soft/oracle, And make sure that the Oracle user can write to this directory.

Installing and running Oracle needs to configure kernel parameters, and my computer has 512M of RAM. Add the following in the/etc/sysctl.conf file:

Kernel.shmmax = 536870912

Kernel.shmmni = 4096

Kernel.shmall = 2097152

Kernel.sem = 250 32000 100 128

Fs.file-max = 65536

Net.ipv4.ip_local_port_range = 1024 65000

After the modification, run the sysctl-p command so that the kernel changes take effect immediately.

You also need to add the following in the/etc/security/limits.conf file:

  oracle soft nofile 65536
    oracle hard nofile 65536
    oracle soft nproc 16384
    oracle hard nproc 16384

Configure Oracle's environment variables as follows:

  export ORACLE_HOME=/soft/oracle
    export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/Apache/Apache/bin:$PATH
    export ORACLE_SID=or9i
    export THREADS_FLAG=native
    export LD_LIBRARY_PATH=/soft/oracle/lib:$LD_LIBRARY_PATH
    export PATH=/$ORACLE_HOME/bin:$PATH

It is best to write the environment variables above to the/home/oracle/.bash_profile so that Oracle will have these environment variables each time they log on.

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.