Installing Oracle 10g with RHEL 5.3 and centos 5.3 is actually the same. There is nothing different. To the first Oracle Installation brother, also give yourself a diary. Or forget it later. You can find a solution at any time. Haha.
First. Determine the patch to install. Libxp and other patches are required to install oracle. So I listed these patches. You can find it in the installation DVD. If you don't see it, you can directly install yum.
1. Patch.
Compat-db-4.2.52-5.1.i386.rpm;
Compat-gcc-34-3.4.6-4.i386.rpm;
Compat-gcc-34-c + +-3.4.6-4. i386.rpm;
Compat-libstdc ++-33-3.2.3-61.i386.rpm;
Gcc-4.1.2-44.el5.i386.rpm;
Glibc-2.5-34.i386.rpm;
Libaio-0.3.106-3.2.i386.rpm;
* LibXp-1.0.0-8.1.el5.i386.rpm;
* LibXp-devel-1.0.0-8.1.el5.i386.rpm;
* Openmotif-2.3.1-2.el5.i386.rpm
* Openmotif-devel-2.3.1-2.el5.i386.rpm
Make-3.81-3.el5.i386.rpm;
Openmotif-2.3.1-2.el5.i386.rpm;
Setarch-2.0-1.1.i386.rpm;
These patches are not completely required. When installing the system, some patches may have been installed because the components are different. However, the four patches with asterisks are required. Be sure.
2. Installation File.
Jdk-6u14-linux-i586-rpm.bin
Oracle.zip
These two installation files are downloaded from the official website. JDK is a Java component, and JRE and JDK are basically the same for me. However, installing Oracle seems to require JDK support. Then, I used JDK.
3. Add groups and users.
Here we need to add database groups and oracle users required for Oracle installation. The graphical interface is required for Oracle installation. Therefore, determine whether or not the GUI gnome or KDE is installed. If not, yum.
# Yum groupinstall "X Window System"
# Yum groupinstall "X Window System" "GNOME Desktop Environment"
You can also have a special liking for running KDE:
# Yum groupinstall "X Window System" "KDE Desktop Environment"
Restart.
1. Now add Oracle groups and users:
# Groupadd oinstall
# Groupadd DBA
# Groupadd rule
# Useradd-G oinstall-g dba Oracle
# Passwd Oracle
2. Create an Oracle installation directory and grant permissions to oracle users:
# Mkdir-P/u01/APP/Oracle
# Chown-r ORACLE: oinstall/u01/APP/Oracle
# Chmod-r 775/u01/APP/Oracle
4. Now that oracle users and groups have been added, set kernel parameters, system variables, and user variables.
Make a good habit. Make sure to make a backup before modifying any file! Especially when modifying Kernel Parameters!
If not, the system may fail to start! Remember!
1). Modify kernel parameters. Check whether all of them exist. If yes, add them as needed.
# Add the following lines to gedit/etc/sysctl. conf: (gedit is used in the graphic interface. If it is a text interface, use VI/etc/sysctl. conf)
Kernel. Shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
# Semaphors: semmsl, semmns, semopm, semmni
Kernel. SEM = 250 32000 100 128
FS. File-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Net. Core. rmem_default = 262144
Net. Core. rmem_max = 262144
Net. Core. wmem_default = 262144
Net. Core. wmem_max = 262144
Run the following command to make the kernel parameters take effect:
#/Sbin/sysctl-P
2 ). gedit/etc/security/limits. conf adds the following content at the bottom: (gedit is used in the graphic interface. For a text interface, use VI/etc/security/limits. conf)
# Use for Oracle
* Soft nproc 2047
* Hard nproc 16384
* Soft nofile 1024
* Hard nofile 65536
3 ). gedit/etc/PAM. d/login Add the following content at the bottom: (gedit is used in the graphic interface, if it is a text interface: VI/etc/PAM. d/login)
Session required pam_limits.so
4). Disable SELinux (gedit is used in the graphic interface. If it is a text interface, use VI/etc/SELinux/config)
# Gedit/etc/SELinux/config
Make sure SELinux = disabled
5). modify the current user variable (set the environment variable for Oracle Users)
Log on with an oracle user and first return to the oracle root directory.
$ Cd (CD/home/Oracle)
$ VI. bashrc or (gedit/. bashrc)
Then add the following.
Java_home =/usr/Java/jdk1.6.0 _ 14
Path = $ java_home/bin: $ path
Classpath =.: $ java_home/lib/dt. jar: $ java_home/lib/tools. Jar
Export java_home
Export path
Export classpath
(Jdk1.6.0 _ 14 is the directory generated after installation, that is, the version number. You can modify it according to the installed version. Of course, you must follow the name of this directory. If you use the same installation file as me, you do not need to modify it .)
6) edit the # gedit/etc/profile file, set the Oracle environment variables, and add the following parts:
To grant the installation permission for this directory orcale.
The method for setting permissions is described in the preceding method for creating the orcale directory.
Export oracle_base =/u01/APP/Oracle
Export ORACLE_HOME = $ oracle_base/10.2.0/db_1
Export oracle_sid = orcl
Export Path = $ path: $ ORACLE_HOME/bin
Export Path = $ path: $ home/bin: $ ORACLE_HOME/bin
Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib
Export lc_ctype = en_US.UTF-8
If [$ user = "oracle"]; then
If [$ shell = "/bin/KSh"]; then
Ulimit-P 16384
Ulimit-N 65536
Else
Ulimit-u 16384-N 65536
Fi
Fi
7). In addition, if you want to use Tomcat 5, add a section in/etc/profile:
# Gedit/etc/profile
Java_home =/usr/Java/jdk1.6.0 _ 14
Export java_home
Catalina_home =/etc/tomcat5/
Export catalina_home
Note: Java home must be set, just like setting environment variables on the win platform. If it is not set, it is possible that the startup of Tomcat 5 will be executed during installation. sh prompts that there is no JRE or JDK to support the running of this program. Catalina home is the installation directory of Tomcat. Although the system comes with it, it is better to use the next ZIP file, decompress it, and put it under etc. My directory is/etc/tomcat5.
After the system configuration is complete, restart and log on to the system using the Oracle user to start installation.