1.oracel 的安装

先用root用户
1) install soft package
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
http://192.168.0.147:1158
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
libaio-0.3.103-3
libXp(as 5)
2)
vi /etc/sysctl.conf 修改kernel的参数(是一个允许您改变正在运行中的Linux系统的接口。它包含一些 TCP/IP 堆栈和虚拟内存系统的高级选项)
kernel.shmall = 2097152 
kernel.shmmax = 268435456 物理内存的一半
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=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
/sbin/sysctl -p 导入写入的参数
vi /etc/security/limits.conf
oracle           soft    nproc   2047
oracle           hard    nproc(进程的最大数)   16384
oracle           soft    nofile(打开文件的最大数)  1024
oracle           hard    nofile  65536
3)
mkdir /u01
mkdir /u01/app
mkdir /u01/app/oracle
4)
#groupadd oinstall
#groupadd dba
#useradd -g oinstall -G dba -d /u01/app/oracle oracle
#passwd oracle
#chown -R oracle.oinstall /u01
5)
授权所有用户图形界面
#xhost +
用oracle用户
oracle
1)
vi .bash_profile
TMP=/tmp;export TMP
TMPDIR=$TMP;export TMPDIR
ORACLE_BASE=/u01/app/oracle;export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;export ORACLE_HOME
ORACLE_SID=orcl;export ORACLE_SID
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
source /u01/app/oracle/.bash_profile
2)
tar -xvfz /tmp/database10GR2.tar.gz
3)
install software and create database
$./tmp/database/runInstaller
在linux5U5环境下,欺骗一下才能通过
Edit the /etc/redhat-release file replacing the current release information
(Red Hat Enterprise Linux Server release 5 (Tikanga)) with the following:redhat-4
vi /10201_database_linux32/database/install/oraparam.ini
Linux=redhat-3,SuSE-9,redhat-4,redhat-5,UnitedLinux-1.0,asianux-1,asianux