First, you need to understand the requirements for installing Oracle: RedHatEnterpriseLinuxAS/ES3.0 (Update4orlater) kernel requirements: Thesystem first, you need to understand the requirements for installing oracle: requirements for installing oracle: Red Hat Enterprise Linux AS/ES 3.0 (Update 4 or later) Red Hat Linux 4.0 SUSE Linux Enterprise Server 9.0 with SP 2 or laterAsianux 1.0 kernel requirements: the system must be running the following kernel version (or a later version): Red Hat Enterprise Linux 3.0 and Asianux 1.0: 2.4.21-27. ELNote: This is the default kernel version. red Hat Enterprise Linux 4.0 and Asianux 2.0: 2.6.9-5. ELSUSE Linux Enterprise Server 9.0: 2.6.5-7.201 memory requirements: 1 GB disk space requirements: swap space: the disk space in the 1.5 GB/tmp directory is 1.2 MB. For databases with 2.4 GB to GB pre-configured, GB (optional) quick recovery zone is required. For Oracle installation steps: # su-root (log on to the root user) # grep MemTotal/proc/meminfo (view memory, do not be less than 1G) # grep SwapTotal/proc/meminfo (view swap partitions, do not be less than 1.5 GB) # vmstat (Monitor virtual memory usage) if the swap partition is too small, expand the swap partition: # swapoff/dev/sda3 (disable swap partition) # fdisk/dev/sda first deletes the original swap partition, in a large swap partition # mkswap/dev/sda3 (the partition format is swap format) # vim/etc/fstab (set the boot mount) /dev/sda3 swap defaults 0 0 # swapon/dev/sda3 (enable swap partition) # cat/proc/swaps or # free (to view swap partition size) # df-kh/tmp (view the directory where the temporary file is stored, not smaller than 400 M) # grep "model name"/proc/cpuinfo (view CPU type) red Hat Enterprise linux 4.0 requires the following packages:
binutils-2.15.92.0.2-13.EL4
compat-db-4.1.25-9
Compat-libstdc ++-runtime ++-3.4.3-22.1.EL44glibc-2.3.4-2.9glibc-common-2.3.4-2.9gnome-libs-1.4.1.2.90-44.1libstdc ++-3.4.3-22.1 libstdc ++-devel-3.4.3-22.1make-3.80-5pdksh-5.2.14-30sysstat-5.0.5-1xscreensaver-4.18-5.rhel4.2setarch-1.6-1 (because I'm using Red Hat Enterprise linux 5.4, so modify the/etc/issue file to 4.4 to pass the pre-Installation check .) # Uname-n check our host name, make sure that our host name is oracle.example.com # vim/etc/sysconfig/network. modify our host name to oracle.example.com # vim/etc/hosts192.168.0.168 oracle168.example.com oracle168127.0.0.1 localhost. the above settings of localdomain can parse our host name # more/etc/oraInst. loc (check whether oracle has been installed before) # groupadd oinstall # groupadd dba # groupadd external (these three groups must be created) # useradd-g oinstall-G dba, oper oracle # passwd oracle # id oracle (check whether there is an error) # id Nobody (if this user does not exist, you need to create it) # vim/etc/sysctl. conf: # for oraclekernel. shmall = 2097152kernel. shmmax = 2147483648kernel. shmmni = 4096kernel. sem = 250 32000 100 FS. file-max = 65536net. ipv4.ip _ local_port_range = 1024 65000net. core. rmem_default = 1048576net. core. rmem_max = 1048576net. core. wmem_default = 262144net. core. wmem_max = 262144 # sysctl-p (for the configuration file to take effect) # vim/etc/security/limits. conf (disable oracle Oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 # vim/etc/pam. d/login (disable restrictions on oracle sessions) Add the following two lines: session required/lib/security/pam_limits.sosession required pam_limits.so # vim/etc/profile: if [$ USER = "oracle"]; then if [$ SHELL = "/bin/ksh"]; then ulimit-p 16384 ulimit-n 65536 else ulimit-u 16384-n 65536 fifi # vim/etc/csh. l Add the following content to ogin: if ($ USER = "oracle") then limit maxproc 16384 limit descriptors 65536 endif # mkdir/u01 (create a mount point) # dfisk/dev/sda (create a partition, this partition should not be too small, about 10 Gb) (new partition sda5) # partprobe (re-read the partition information) # mkfs. ext3/dev/sda5 # vim/etc/fstab/dev/sda5/u01 ext3 default 0 0 (Set automatic mounting upon startup) # mount-a # ls/u01 # mkdir-pv/u01/app/oracle # chown-R oracle: oinstall/u01/app # chmod-R 775/u01/app For storing control files, redo log files and other management files, the third group of directories is used to store oracle data files, and each group of directories is preferably located on a separate disk, I am doing an experiment here, so I put them on a disk. It is best not to do this in practical applications.) # xhost + indicates that anyone can enter the downloaded oracle' Software Package 10201_database_linux32.zip: # unzip 10201_database_linux32.zip # chown-R oracle: oinstall database/# mv database/home/oracle # yum install libXp-devel (these two may prompt you to install) # su-oracle # export DISPLAY =: 0.0 # vim. bash_profile (edit oracle user's environment variable) 500) this. width = 500; "border = 0> #.. Bash_profile (re-read environment variables) # echo $ ORACLE_BASE (check) # cd database /#. /runInstaller (execute this script and it will check whether you meet the conditions for installing oracle). Then the graphical installation interface is displayed. Just install it as prompted, I think it's easier for everyone! To help you manage oracle Enterperise Manager using three command line tools, use: # emctl start | status | set | stop (which does not support restart) to stop and start SQL * PLus, use: # isqlplusctl start | stop to manage the listener. Use: # isnrctl help | start | status | stop if you want your oracle to support Chinese characters: during installation, select Chinese 500) this. width = 500; "border = 0> of course, your Linux system must also support Chinese! Install the chinese package of the system as follows: # yum install fonts-chinese # system-config-language