To install centos 5.5, you need to find the additional software.
Or use the following to upgrade
Yum install binutils compat - DB compat - Libstdc ++- 296 Control - Center \
GCC gcc - C ++ Glibc - Common gnome - Libs libstdc ++ Libstdc ++- Devel \
Make pdksh sysstat xscreensaver setarch
Some may not be installed, but it does not matter.
You need to install libxp. Otherwise, garbled characters may occur during Oracle installation.
Yum install libxp
1. Log On As A root user and add users and groups.
/ USR / Sbin / Groupadd oinstall
/ USR / Sbin / Groupadd DBA
/ USR / Sbin / Groupadd rule
Add users
/ USR / Sbin / Useradd - G oinstall - G DBA [, role] Oracle
Set Password
Passwd Oracle
2. Update/etc/sysctl. conf.
# Add By gaohu for Oracle 10gr2
# Kernel. Shmall = 2097152
# Kernel. shmmax = 2147483648
# Kernel. shmmni = 4096
Kernel. SEM = 250 32000 100 128
# FS. File-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Net. Core. rmem_default = 1048576
Net. Core. rmem_max = 1048576
Net. Core. wmem_default = 262144
Net. Core. wmem_max = 262144
Use/sbin/syctl-P to check if the update is complete.
3. Update Shell and edit/etc/security/limits. conf.
Oracle soft nproc 2047
Oracle hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
4. Update/etc/PAM. d/login.
Session required / Lib / Security / Pam_limits.so
Session required pam_limits.so
5. Update/etc/profile
If [ $ User = " Oracle " ]; Then
If [ $ Shell = " /Bin/KSh " ]; Then
Ulimit - P 16384
Ulimit - N 65536
Else
Ulimit - U 16384 - N 65536
Fi
Fi
6. Create an installation path
# Mkdir-P/u01/APP/Oracle
# Chown-r ORACLE: oinstall/u01/APP/Oracle
# Chmod-r 775/u01/APP/Oracle
7. Create a data path and a flash path
# Mkdir/u01/oradata
# Chown ORACLE: oinstall/u01/oradata
# Chmod 775/u01/oradata
Flashback path, optional:
# Mkdir/u01/flash_recovery_area
# Chown ORACLE: oinstall/u01/flash_recovery_area
# Chmod 775/u01/flash_recovery_area
8. Switch to the Oracle user, set the user environment variable to edit/home/Oracle/. bash_profile, and add
# Add By gaohu
TMP =/ TMP
Tmpdir =/ TMP
Export TMP tmpdir
oracle_base =/ u01 / app / Oracle
oracle_sid = orcl
export oracle_base oracle_sid
# unset ORACLE_HOME
# unset tns_admin
oracle_owner = Oracle
ORACLE_HOME = $ oracle_base / product / 10.2 . 0 / db_1
export oracle_owner ORACLE_HOME
path =/ USR / sbin: $ ORACLE_HOME / bin: $ PATH ;< br> export path
export LD_LIBRARY_PATH = $ ORACLE_HOME / Lib: / Lib: / USR / LIB;
export classpath = $ ORACLE_HOME / JRE: $ ORACLE_HOME / jlib: $ ORACLE_HOME / RDBMS / jlib;
nls_lang = american_america.zhs16gbk;
export nls_lang
# umask 022
# If [$ user =" oracle "]; then
# If [$ shell ="/bin/KSh "]; then
# ulimit-P 16384
# ulimit-N 65536
# else
# ulimit-u 16384-N 65536
# fi
# fi
9. Refresh the environment variable (exit or source ). Run the installation. Because Oracle10g does not support centos 5, this parameter is added to ignore the prerequisite.
. / Runinstaller - Ignoresysprereqs
Or modify/etc/RedHat-release to a supported operating system, such as redhat-3, redhat-4
Redhat-4 (Verne)
As you can see above, I am actually a fedora 16. You just need to change the previous recognition string. Hey hey...
9. DHCP Problems
1. during preinstallation requirements checking, the same network configuration problem occurs in Windows:
check complete. the overall result of this check is: not executed
recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses. however, the primary network interface on the system shocould be configured with a static IP address in order for the Oracle software to function properly. see the Installation Guide for more details on installing the software on systems configured with DHCP.
Solution to the Problem: see the 2.4 checking the network setup section in the installation guide.
[1] how to open the hosts file in the ETC folder in a text editor, for example:
[Oracle @ admin ~] $ gedit ETC/hosts
[2, host name [it can be obtained by the hostname command query] and domain name (just a nice one) before the content of the original file, you can
for example:
192.168.100.16 myhost.us.mycompany.com myhost
127.0.0.1 localhost. localdomain localhost
Or set a static IP address for yourself.