安装linux,配置网络,关闭防火墙和SELINUX,拷贝文件 ,不表

安装包

yum install compat-db* compat-gcc* compat-gcc-c++ compat-libstdc++* compat-libstdc++-devel unixODBC unixODBC-devel libaio-devel sysstat pdksh libstdc* elfutils-libelf* gcc-c++*

 

建用户

groupadd oinstall

groupadd dba

groupadd nobody

useradd -g oinstall -G dba -s /bin/bash -m -d /home/oracle oracle 

usermod -g nobody nobody 

 

建目录

mkdir -p -m 775 /opt/oracle

chown -R oracle.oinstall /opt/oracle

 

 

11g参数

cat >> /etc/sysctl.conf <

kernel.shmall = 2097152

kernel.shmmax = 2147483648

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

net.core.rmem_default=4194304

net.core.wmem_default=262144

net.core.rmem_max=4194304

fs.file-max = 6815744

net.ipv4.ip_local_port_range = 9000 65500

net.core.wmem_max = 1048576

fs.aio-max-nr = 1048576

EOF

 

/sbin/sysctl -p

 

 

cat >> /etc/security/limits.conf <

oracle               soft    nproc   2047

oracle               hard    nproc   16384

oracle               soft    nofile  1024

oracle               hard    nofile  65536

EOF

 

cat >> /etc/pam.d/login <

session    required     /lib/security/pam_limits.so

EOF

 

cat >> /etc/profile <

if [ \$USER = "oracle

" ]; then

if [ \$SHELL = "/bin/ksh" ]; then

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

umask 022

fi

EOF

 

 

vi /home/oracle/.bash_profile 

 

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/products/11.2.0.3/db_1

export ORACLE_SID=postmall

export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib

export LANG=C

export EDITOR=vi

export NLS_LANG=AMERICAN.utf8

export DISPLAY=:1.0

 

主要按顺序,而且只能开一个vnc窗口

可以更新下VNC

yum install vnc-server

export DISPLAY=:1.0

vncserver

输入密码

xhost + 

 

如果没装可以补一下

yum install unzip gzip tar lrzsz vnc-server twm xterm xhost