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.