Chinaunix

标题: linux as 4 安装oracle10g 找不到文件/etc/oratab [打印本页]

作者: mfktsall    时间: 2010-04-23 09:06
标题: linux as 4 安装oracle10g 找不到文件/etc/oratab
本帖最后由 mfktsall 于 2010-04-23 09:10 编辑

在linux AS4 安装oracle10g 时,我是dbca安装的,报错"无法找到文件/etc/oratab"  请问这是怎么回事啊?
那两个root.sh也执行了。
这是我的环境变量
# Get the aliases and functions
  
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
  
# User specific environment and startup programs
  
PATH=$PATH:$HOME/bin
  
export PATH
unset USERNAME
umask 022
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/opt/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/; export ORACLE_HOME
ORACLE_SID=urpdb; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
#LD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL

作者: renxiao2003    时间: 2010-04-23 12:19
安装过程有没有出现其它错误。安装时会生成这个文件,你可以去目录/etc下查看一下有没有oratab文件,如果没有,那你只有重新安装ORACLE了。
作者: mfktsall    时间: 2010-04-23 13:11
没有oratab这个文件,如果要重新安装的话,怎么才能有这个文件呢?
我在执行 /opt/oracle/product/10.2.0/root.sh时。要输入个什么东西:
[root@localhost ~]# /opt/oracle/product/10.2.0/root.sh
Running Oracle10 root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /opt/oracle/product/10.2.0

Enter the full pathname of the local bin directory: [/usr/local/bin]: 这里应该输入什么?
作者: aib    时间: 2010-04-24 09:36
touch 一个,改下权限就行了
作者: guyeh    时间: 2010-04-27 22:53
touch建立一个,然后权限给oracle即可
作者: shahand    时间: 2010-04-28 09:51
回复 3# mfktsall


    输入回车即可。
作者: doni    时间: 2010-04-28 11:19
手工编辑一个,格式如下:
$ORACLE_SID:$ORACLE_HOME:<N|Y>
作者: doni    时间: 2010-04-28 11:20
本帖最后由 doni 于 2010-04-28 11:22 编辑

安装时生成的文件,内容如下:
# This file is used by ORACLE utilities.  It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.

# A colon, ':', is used as the field terminator.  A new line terminates
# the entry.  Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
#   $ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
# The first and second fields are the system identifier and home
# directory of the database respectively.  The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
ORCL:/oracle_home:Y





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2