使用root用户登陆
安装JDK
现在最新的版本是j2sdk-1_4_2_07-linux-i586.bin
运行后会生成j2sdk1-4-2的目录
mv j2sdk1-4-2 /usr/local/
mv /usr/local/j2sdk1-4-2 /usr/local/jdk
echo "CLASSPATH=/usr/local/jdk/lib:/usr/local/jdk/src.zip">>/etc/profile
echo "PATH=$PATH:/usr/local/jdk/bin">>/etc/profile
echo "JAVA_HOME=/usr/local/jdk">>/etc/profile
echo "export CLASSPATH PATH JAVA_HOME">>/etc/profile
打补丁
make-3.79
binutils-2.11
openmotif-2.2.2-16
setarch-1.3-1
compat-db-4.0.14.5
compat-gcc-7.3-2.96.122
compat-gcc-c++-7.3-2.96.122
compat-libstdc++-7.3-2.96.122
compat-libstdc++-devel-7.3-2.96.122
下载文件libcwait.c
wget
用gcc -shared -o libcwait.so -fpic -O2 libcwait.c进行编译
mv libcwait.so /lib/
echo "export LD_PRELOAD=/path/libcwait.so">>/etc/profile
建立组DBA
建立用户oracle,属于组DBA
useradd –g dba –p 123456 –d /oracle –s /bin/bash oracle
退出root
使用oracle用户登陆
设置oracle用户环境变量
export DISPLAY="localhost:0.0"
export BASH_ENV=$HOME/.bashrc
Oracle_HOME=/oracle/product/9.0.1; export Oracle_HOME
Oracle_SID=Oracle; export Oracle_SID
Oracle_TERM=xterm; export Oracle_TERM
TNS_ADMIN=/oracle/config/9.0.1; export TNS_ADMIN
NLS_LANG=american_america.ZHS16GBK; export NLS_LANG
ORA_NLS33=$Oracle_HOME/ocommon/nls/admin/data; export ORA_NLS33
LD_LIBRARY_PATH=$Oracle_HOME/lib;export LD_LIBRARY_PATH
PATH=$PATH:/bin:/usr/bin:/usr/sbin:/etc:/opt/bin:/usr/ccs/bin:/usr/openwin
PATH=$PATH:/opt/local/bin:/opt/NSCPnav/bin:$Oracle_HOME/bin
PATH=$PATH:/usr/local/samba/bin:/usr/ucb:
export PATH
CLASSPATH=$Oracle_HOME/JRE:$Oracle_HOME/jlib:
$Oracle_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$Oracle_HOME/network/jlib
开始安装
startx
打开一个终端
进入oracle盘目录
./runinstall
在安装的时候在/tmp/下会生成个文件
orainstRoot.sh
使用root登陆后运行这个文件后才可以开始安装上oracle
阅读(1243) | 评论(0) | 转发(0) |