I. System Requirements 1. At least 1 GB physical memory; check command: # grepMemTotal/proc/meminfo2, swap space settings; check command: # grepSwapTotal/proc/meminfo recommended swap space size ----------------------------------------------- up to 1 G2 times larger than 1G-2G1.5 times larger than 2G-8G and 8G0. 75 times higher
I. System Requirements
1. At least 1 GB physical memory; check command: # grep MemTotal/proc/meminfo
2. Set the swap space. Check the command: # grep SwapTotal/proc/meminfo
Swap space size recommended for actual memory
-------------------------------------------
No more than 1 GB, 2 times the memory
1G-2G 1.5 times memory
2G-8G is the same as the memory
More than 8 GB, 0.75 times the memory
3. The/tmp directory should have at least MB of free space. Check the command: # df-k/tmp
4. Oracle software requires at least 3 GB space. Check command: # df-k
5. About GB of database file space; check command: # df-k
6. Confirm the system architecture (whether to install the 32bit or 64bit version). Check the command: # grep "model name"/proc/cpuinfo.
7. Confirm the Linux version. Check the command: # more/etc/issue
8. Confirm the Linux kernel. Check the command: # uname-r
2. Preparations
Check whether the dependency package of oracle10g is installed. If not, install
# Rpm-q -- qf' % {NAME}-% {VERSION}-% {RELEASE} (% {ARCH }) n'binutils compat-db compat-libstdc ++-296 control-center gcc-c ++ glibc-common gnome-libs libstdc ++-devel make pdksh sysstat xscreensaver setarch
It should contain the following packages:
---------------------------------------------------------------------------
Binutils-2.15.92.0.2-13.EL4
Compat-db-4.1.25-9
Compat-libstdc ++-296-2.96-132.7.2
Control-center-2.8.0-12
Gcc-3.4.3-22.1.EL4
Gcc-c ++-3.4.3-22.1.EL44
Glibc-2.3.4-2.9
Glibc-common-2.3.4-2.9
Gnome-libs-1.4.1.2.90-44.1
Libstdc ++-3.4.3-22.1
Libstdc +-devel-3.4.3-22.1
Make-3.80-5
Pdksh-5.2.14-30
Sysstat-5.0.5-1
Xscreensaver-4.18-5.rhel4.2
Setarch-1.6-1
Note: RedHat AS4U2 x86 is installed with a binutils-2.15.92.0.2-15.x86_64.rpm by default, said this version will cause oracle Installation failure! Additional binutils-2.15.92.0.2-13.0.0.0.2.x86_64.rpm should be downloaded
Download To http://rpm.pbone.net/index.php3/stat/4/idpl/2060541/com/binutils-2.15.92.0.2-13.i386.rpm.html
After the download is complete, run the following command to install:
# Rpm-Uvh -- force binutils-2.15.92.0.2-13.i386.rpm
Compat-oracle-rhel4-1.0-5.i386.rpm online is also recommended to install, I want to have better than no good hand also installed. If you fail to install the package, you can download the package and try it. Installing the package may be associated with other software packages. Install the package as prompted.
3. Configure the installation environment
1. Configure core parameters.
1). # vi/etc/sysctl. conf, add the following content to the file.
Kernel. shmall = 2097152
Kernel. shmmax = 536870912
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
Note: Generally, we only need to modify the value of kernel. shmmax. This parameter should be half of the physical memory (in bytes)
After editing, save the disk and exit. Then run the following command to reload and verify that the parameters are correct:
# Sysctl-p
2). # vi/etc/security/limits. conf, add the following content to the file.
* Soft nproc 2047
* Hard nproc 16384
* Soft nofile 1024
* Hard nofile 65536
3). # vi/etc/pam. d/login, add the following content to the file
Session required/lib/security/pam_limits.so
Session required pam_limits.so
4). # vi/etc/selinux/config to ensure that the following content exists.
SELINUX = disabled
2. Create related directories, users, groups, etc.
# Groupadd dba
# Groupadd oinstall
# Useradd-g oinstall-G dba-m oracle
# Passwd oracle
# After creating users and groups, create a directory and set the directory location based on your needs. Pay attention to the free space on the disk. In this example, we create an opt directory.
# Mkdir/opt/ora10g
# Mkdir/opt/ora10g/product
# Mkdir/opt/ora10g/oradata
# Chown-R oracle. oinstall/opt/ora10g
3. Configure oracle user environment variables
# Su-oracle
$ Vi. bash_profile
##--------------------------------------
# Set for Oracle10g Install |
##--------------------------------------
Export TMP =/tmp
Export TMPDIR = $ TMP
Export ORACLE_BASE =/opt/ora10g
Export ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1
Export ORACLE_SID = jsstts
Export ORACLE_TERM = xterm
Export PATH =/usr/sbin: $ PATH
Export PATH = $ ORACLE_HOME/bin: $ PATH
Export 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/jlib
Export LD_ASSUME_KERNEL = 2.6.9
Export NLS_LANG = "SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
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
# ------------------- Set Over
4. Install ORACLE10GR2
Finally, you have to start the installation and start a terminal in the Windows state as an oracle user.
$ Cd/opt/orasetup/database
$./RunInstaller