jdk已安装成功,安装文件也解压了
最重要是设置环境变量 。网上资料有,但要写很多。不是是否全都要设置??
export DISPLAY="192.9.200.24:0.0"
export BASH_ENV=$HOME/.bashrc
ORACLE_HOME=/oracle/product/9.2.0; export ORACLE_HOME
ORACLE_SID=oracle; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
TNS_ADMIN=/oracle/config/9.2.0; 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
TMPDIR=/tmp;export TMPDIR
umask 022
最重要是设置环境变量 。网上资料有,但要写很多。不是是否全都要设置??
export DISPLAY="192.9.200.24:0.0"
export BASH_ENV=$HOME/.bashrc
ORACLE_HOME=/oracle/product/9.2.0; export ORACLE_HOME
ORACLE_SID=oracle; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
TNS_ADMIN=/oracle/config/9.2.0; 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
TMPDIR=/tmp;export TMPDIR
umask 022
export ORACLE_HOME=/opt/ora9/product/9.2
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/Apache/Apache/bin:$PATH
export ORACLE_OWNER=oracle
export ORACLE_SID= ora9
export ORACLE_TERM=vt100
export LD_ASSUME_KERNEL=2.4.1
export THREADS_FLAG=native
export LD_LIBRARY_PATH=/opt/ora9/product/9.2/lib:$LD_LIBRARY_PATH
export PATH=/opt/ora9/product/9.2/bin:$PATH
export NLS_LANG='SIMPLIFIED CHINESE.ZHS16CGB231280' 基本上没问题,本人安装过
http://www.oracle.com.cn/cgi-bin/topic_show.cgi?id=8922&h=1&bpg=1&age=-1 Installing Oracle 9iR2 on Red Hat 9
http://www.oracle.com.cn/cgi-bin/topic_show.cgi?id=7348&h=1&bpg=1&age=-1 RedHat Advance Server 3上安装oracle 9.2.0, 并升级到9.2.0.4
http://www.oracle.com.cn/cgi-bin/topic_show.cgi?id=7974&h=1&bpg=1&age=-1 Installing Oracle 9iR2 on RHEL AS 3 Step-by-Step
http://www.oracle.com.cn/cgi-bin/topic_show.cgi?id=6478&h=1&bpg=1&age=-1 oracle9i在Red Hat Linux7.3上的安
http://www.oracle.com.cn/cgi-bin/topic_show.cgi?id=4752&h=1&bpg=1&age=-1 Oracle 8i 在Redhat 7.2下安装手册
http://www.oracle.com.cn/cgi-bin/topic_show.cgi?id=57&h=1&bpg=1&age=-1 rh7.2oracle9i安装手记
http://www.oracle.com.cn/cgi-bin/topic_show.cgi?id=5744&h=1&bpg=1&age=-1 如何在Suse Linux下安装Oracle
http://www.oracle.com.cn/cgi-bin/topic_show.cgi?id=9875
另开一帖,请各位关注一下
设置相应数据库实例允许用系统服务自动启动:修改oratab文件
root# vi /etc/oratab
将最后的:
orcl:/home/oracle/product/8.1.7:N
改为:
orcl:/home/oracle/product/8.1.7:Y
简单的服务自动启动脚本
root# vi /etc/rc.local
#start oracle8i listener first
su - oracle -c 'lsnrctl start'
#start oracle8i
su - oracle -c 'dbstart'
我按以上做法也不行
Database entries in the oratab file appear in the following format:
ORACLE_SID:ORACLE_HOME:{Y|N}
In the preceding command, Y or N specifies whether you want the dbstart and dbshut scripts to start up and shut down the database. For each database that you want to start up, find the ORACLE_SID entry identified by the sid in the first field. Change the last field for each to Y.
2. In the /etc/init.d directory, create a dbora script similar to the following, if it does not already exist. Be sure to give the full path of the dbstart utility.
3. #!/bin/sh
4. # Set ORA_HOME to be equivalent to the $ORACLE_HOME
5. # from which you wish to execute dbstart and dbshut;
6. #
7. # Set ORA_OWNER to the user id of the owner of the
8. # Oracle database in ORA_HOME.
9.
10. ORA_HOME=/u01/app/oracle/product/9.0.1
11. ORA_OWNER=oracle
12.
13. if [! -f $ORA_HOME/bin/dbstart]
14. then
15. echo "Oracle startup: cannot start"
16. exit
17. fi
18.
19. case "$1" in
20. 'start')
21.
22. # Start the Oracle databases:
23. # The following command assumes that the oracle login
24. # will not prompt the user for any values
25.
26. su - $ORA_OWNER -c $ORA_HOME/bin/dbstart &
27. ;;
28.
29. 'stop')
30.
31. # Stop the Oracle databases:
32. # The following command assumes that the oracle login
33. # will not prompt the user for any values
34.
35. su - $ORA_OWNER -c $ORA_HOME/bin/dbshut &
36. ;;
37. esac
38.
3. Create symbolic links to the dbora script in the appropriate run-level script directories, as follows:
4. # ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
5. # ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora
机在重装,要准备如何设置自启动。
startoracle内容如下su - oracle /oracle/rundb.sh
rundb.sh
脚本如下:
lsnrctl start
sqlplus /nolog <<EOF
connect /as sysdba
startup