cd /etc/sysconfig/network-scripts
vi ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:0C:29:B6:4E:48
ONBOOT=yes
IPADDR=192.168.0.99
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
ifdown eth0
ifup eth0
[root@localhost /]# cd /etc/
[root@localhost etc]# vi redhat-release
[root@mylinux /]# groupadd –g 300 dba
[root@mylinux /]# groupadd –g 301 oinstall
[root@mylinux /]# useradd –u 300 –g oinstall –G dba –d /oracle (–s /usr/bin/bash) oracle
[root@mylinux /]# chown -R oracle:oinstall /oracle
[root@mylinux /]# vi /etc/sysctl.conf
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
Restart it can to affect the change
# /sbin/chkconfig boot.sysctl on
[root@mylinux /]# vi /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
[root@mylinux /]# vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
[oracle@mylinux ~]$ vi .bash_profile
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASE=/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=ocpexam
export ORACLE_TERM=xterm
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export EDITOR=vi
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin/
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export PATH
export DISPLAY=10.147.83.150:0.0
###########以下也可供下参考#############################################################################################################
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.
export PATH
export TEMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASE=/oracle
export ORACLE_SID=ecis2
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export EDITOR=vi
export ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/db_1
export ORACLE_TERM=xterm
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib:/usr/ucb/lib:$LD_LIBRARY_PATH
export PATH=.:$ORACLE_HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/sbin:/usr/sbin/:/etc:/usr/ucb:$HOME/bin:/usr/bin/X11:$PATH
export CLASSPATH=$ORACLE_HOME/jre/1.4.2/lib:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib:$CLASSPATH
export DISPLAY=10.147.83.150:0.0
export JAVA_HOME=/jdk1.5.0_18
export PATH=$PATH:$JAVA_HOME/bin
########################################################################################################################################
[root@mylinux /]# gunzip 10201_database_linux_x86_64.cpio.gz
[root@mylinux /]# cpio -idcmv<10201_database_linux_x86_64.cpio
[root@mylinux /]# mv database/ /oracle
[root@mylinux /]# cd /oracle
[root@mylinux van]# chown -R oracle:oinstall database/
[root@localhost ~]# vi .bash_profile
export DISPLAY=:0.0
[root@localhost ~]# source .bash_profile
这是5.0的路径,与4.0的路径不同
/usr/share/gdm/defaults.conf
[root@localhost gdm]# chmod 777 defaults.conf
[root@localhost gdm]# vi defaults.conf
[xdmcp]
# Distributions: Ship with this off. It is never a safe thing to leave out on
# the net. Setting up /etc/hosts.allow and /etc/hosts.deny to only allow local
# access is another alternative but not the safest. Firewalling port 177 is
# the safest if you wish to have xdmcp on. Read the manual for more notes on
# the security of XDMCP.
Enable=1
[root@localhost ~]# xhost +
[root@ahkfdb ~]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.99 ahkfdb
设置好后要在oracle安装之前reboot才能生效
[root@localhost ~]# /oracle/oraInventory/orainstRoot.sh
[root@localhost ~]# /oracle/oracle/root.sh
装好后
netca/netmgr
配置监听器
rpm -ivh ***.rpm [--force --nodeps]