免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5246 | 回复: 7
打印 上一主题 下一主题

linux as 4 安装oracle10g 找不到文件/etc/oratab [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-04-23 09:06 |只看该作者 |倒序浏览
本帖最后由 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

论坛徽章:
59
2015七夕节徽章
日期:2015-08-24 11:17:25ChinaUnix专家徽章
日期:2015-07-20 09:19:30每周论坛发贴之星
日期:2015-07-20 09:19:42ChinaUnix元老
日期:2015-07-20 11:04:38荣誉版主
日期:2015-07-20 11:05:19巳蛇
日期:2015-07-20 11:05:26CU十二周年纪念徽章
日期:2015-07-20 11:05:27IT运维版块每日发帖之星
日期:2015-07-20 11:05:34操作系统版块每日发帖之星
日期:2015-07-20 11:05:36程序设计版块每日发帖之星
日期:2015-07-20 11:05:40数据库技术版块每日发帖之星
日期:2015-07-20 11:05:432015年辞旧岁徽章
日期:2015-07-20 11:05:44
2 [报告]
发表于 2010-04-23 12:19 |只看该作者
安装过程有没有出现其它错误。安装时会生成这个文件,你可以去目录/etc下查看一下有没有oratab文件,如果没有,那你只有重新安装ORACLE了。

论坛徽章:
0
3 [报告]
发表于 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]: 这里应该输入什么?

论坛徽章:
0
4 [报告]
发表于 2010-04-24 09:36 |只看该作者
touch 一个,改下权限就行了

论坛徽章:
17
CU大牛徽章
日期:2013-03-13 15:32:352017金鸡报晓
日期:2017-02-08 10:33:21fulanqi
日期:2016-06-17 17:54:25lufei
日期:2016-06-17 17:38:40平安夜徽章
日期:2015-12-26 00:06:30冥斗士
日期:2015-11-25 14:38:112015年辞旧岁徽章
日期:2015-03-03 16:54:15亥猪
日期:2015-01-26 17:23:43CU大牛徽章
日期:2013-04-17 11:02:58CU大牛徽章
日期:2013-04-17 11:02:36CU大牛徽章
日期:2013-04-17 11:02:15CU大牛徽章
日期:2013-04-17 11:01:45
5 [报告]
发表于 2010-04-27 22:53 |只看该作者
touch建立一个,然后权限给oracle即可

论坛徽章:
0
6 [报告]
发表于 2010-04-28 09:51 |只看该作者
回复 3# mfktsall


    输入回车即可。

论坛徽章:
0
7 [报告]
发表于 2010-04-28 11:19 |只看该作者
手工编辑一个,格式如下:
$ORACLE_SID:$ORACLE_HOME:<N|Y>

论坛徽章:
0
8 [报告]
发表于 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP