<Required RPM package>
*This is a bit disgusting, but I didn't take this step well. The problems that come up later are several times more disgusting.
*I am not sure if all of the following RPM packages are required, but it is better to install a few more than one
Compat-db-4.2.52-5.1.i386.rpm compat-db-4.2.52-5.1.x86_64.rpmcompat-gcc-34-3.4.6-4.x86_64.rpm compat-gcc-34-c + +-3.4.6-4. x86_64.rpmglibc-devel-2.5-24.i386.rpm glibc-devel-2.5-24.x86_64.rpmglibc-headers-2.5-24.x86_64.rpm kernel-headers-2.6.18-92.el5.x86_64.rpmgcc-4.1.2-42.el5.x86_64.rpm libgomp-4.1.2-42.el5.i386.rpm libgomp-4.1.2-42.el5.x86_64.rpmgcc-c + +-4.1.2-42. el5.x86 _ 64.rpm libstdc + +-devel-4.1.2-42.el5.x86_64.rpmfontconfig-devel-2.4.1-7.el5.i386.rpmfontconfig-devel-2.4.1-7.el5.x86_64.rpmfreetype-devel-2.2.1-19.el5.i386.rpmfreetype-devel-2.2.1-19.el5.x86_64.rpmzlib-devel-1.2.3-3.x86_64.rpmlibaio-devel-0.3.106-3.2.i386.rpmlibaio-devel-0.3.106-3.2.x86_64.rpmlibXmu-1.0.2-5.i386.rpmlibXp-1.0.0-8.1.el5.i386.rpmlibXp-1.0.0-8.1.el5.x86_64.rpmopenmotif-2.3.0-0.5.el5.i386.rpmopenmotif-2.3.0-0.5.el5.x86_64.rpmsysstat-7.0.2-1.el5.x86_64.rpmxorg-x11-deprecated-libs-6.8.2-1.EL.13.20.i386.rpm
<Configure system parameters>
Find the/etc/sysctl. conf file and add the following content at the end of the file:
Kernel. Shmall = 2097152 # total available shared memory. Kernel. shmmax = 2147483648 # maximum size of shared memory segments. Kernel. shmmni = 4096 # maximum number of shared memory segments of the entire system. Kernel. SEM = 250 32000 100 128 # maximum number of signal objects in each signal object set; Maximum number of signal objects in the system range. FS. File-max = 65536 # maximum number of file handles allowed in the system. Net. ipv4.ip _ local_port_range = 1024 65000 # ApplicationProgramThe range of available IPv4 ports. Net. core. rmem_default = 1048576 # default net. core. rmem_max = 1048576 # maximum size of the socket receiving buffer. net. core. wmem_default = 262144 # default net. core. wmem_max = 262144 # maximum size of the socket sending Buffer
Run the following command to make the kernel parameters take effect:
#/Sbin/sysctl-P
<Modify limits. conf file parameters>(/Etc/security/limits. conf)
Add the following content at the end of the file:
* Soft nproc 2047 * hard nproc 16384 * Soft nofile 1024 * hard nofile 65536
<Modify a login file>(/Etc/PAM. d/login)
Add the following content at the end of the file:
Session required/lib/security/pam_limits.so
<Disable SELinux>(/Etc/SELinux/config)
Set Secure Linux to invalid:
SELinux = disabled
<Modify the hosts file>(/Etc/hosts)
127.0.0.1 localhost. localdomain localhost your IP address Host Name
* If the network configuration is detected during Oracle Installation, manually shield #127.0.0.1 localhost. localdomain localhost
* After shielding, a problem occurs, that is, xstart cannot be connected. If xstart is required, xstart must be started before shielding.
<Modify system version>(/Etc/RedHat-release)
Change 5.2 in Redhat Enterprise Linux Server Release 5.2 (tikanga) to 4 (5.2 after successful installation)
<Add group and user>
Groupadd oinstallgroupadd dbauseradd-G oinstall-g dba oraclepasswd Oracle
<Create an installation directory and authorize it to oracle users>
Mkdir-P/u01/APP/Oracle/product/10.2.0/db_1chown-r oracle. oinstall/u01
Mkdir/discardchown oracle. oinstall/discard
(* The discard directory solves the error during installation. If this directory does not exist, it will prompt that this directory does not exist. If yes, it will skip this step. Whether or not this directory is created has a major impact .)
<Modify the. bash_profile File>(This file is under the root directory of the Oracle user you created)
Add the following content to the end of the file:
Su-Oracle
Vi. bash_profile
# Register # Set for Oracle10g install | # trap "" 0 1 2 3 5 9 15 trap clear 0 export TMP =/tmpexport tmpdir = $ tmpexport oracle_sid = orasidexport oracle_term = xtermexport Path = /usr/sbin: $ pathexport Path = $ ORACLE_HOME/bin: $ path # export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH: $ ORACLE_HOME/lib:/usr/lib: /usr/local/libexport LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/lib64:/usr/lib64:/usr/local/lib64: /usr/x11r6/lib64/export classpath = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlibexport export = 2.6.9export nls_lang = "simplified chinese_china ". utf8lc_ctype = zh_cn.utf8lc_all = zh_cn.utf8lang = zh_cn.utf8umask 022 # If [$ user = "oracle"]; thenif [$ shell = "/bin/KSh"]; thenulimit-P 16384 ulimit-N 65536 elseulimit-u 16384-N 65536 Fifi # ----------------- set over
Run the following command as an oracle user to make it take effect:
$ Source/home/Oracle/. bash_profile
*After the command is run, the system prompts that the ulimit is invalid and the permission is insufficient. You can use the root permission to modify the/etc/profile file for running.
Add at the end of/etc/profile
If [$ user = "oracle"]; thenif [$ shell = "/bin/KSh"]; thenulimit-P 16384 ulimit-N 65536 elseulimit-u 16384-N 65536 Fifi
Execute the following command to make it take effect
# Source/etc/profile
By the way, run the command (just in case)
# Source/home/Oracle/. bash_profile
<Decompress the Oracle installation media>
# Gzip-DC 10201_database_linux_x86_64.cpio.gz | cpio-Div
<Authorization for installation files>
Decompress the installation file to the/tmp directory and grant the permission
# Chmod-r 775/tmp/Database
<Start to install Oracle 10g>
Open xstart and connect to the server where oracle is to be installed
*Note that xstart cannot be connected if the modified hosts file blocks or deletes 127.0.0.1 hostname localhost.
Open xshell and Log On As an oracle user
$ Export display = 127.0.0.1: 0.0 $ export lang = en_us $ CD/tmp/database $./runinstaller
Installation Process... (omitted)
*When the configuration assistant is installed to the end, if an error is reported when the Oracle Net configuration assistant is run, it may be that 127.0.0.1 hostname localhost In the hosts file is blocked. Open it and try again.
*SomeArticleWhen the installation process is interrupted, a section in the gennttab file in the Oracle Installation PackageCodeFailed. I tried to change this file before installation, but an error occurred.
*The installation process (especially Remote Installation of slow network speed) usually goes to 64% where there will be a false dead state, it is best to open a root shell to monitor the Installation Log, as long as no error is reported, wait.