su root
uname -r
# rpm -q binutils compat-db control-center gcc gcc-c++ glibc glibc-common /
gnome-libs libstdc++ libstdc++-
devel make pdksh sysstat xscreensaver libaio openmotif21
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# /usr/sbin/groupadd oper
# /usr/sbin/useradd -m -g oinstall -G dba oracle
# id oracle
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)
# passwd oracle
# gedit /home/oracle/.bash_profile (打开一文件,删除文件中最后两行字,将下面红色字体部分copy进去,然后保存)umask 022
PATH=/bin:/usr/bin:/usr/local
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
ORACLE_SID=orcl
$ORACLE_HOME/rdbms/lib:$ORACLE_HOME
PATH=$ORACLE_HOME/bin:$PATH
export PATH LD_LIBRARY_PATH
export ORACLE_BASE ORACLE_HOME ORACLE_SID
#mkdir -p /u01/app/oracle
#chown -R oracle:oinstall /u01/app
#chmod -R 775 /u01/app
# gedit /etc/sysctl.conf(打开一文件,然后将下面红色字体copy进去,并保存)
kernel.sem = 250 32000 100 128
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
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
# xhost +
以oracle账户进去,再将database文件copy到/home/oracle中,然后:
1、$cd /home/oracle/database
2、$ls
3、$./runInstaller(若此命令执行被拒绝,则进行以下操作)
$su root
$chmod –R 777 /home/oracle/database
然后执行操作1~3