您当前的位置:首页 > oracle

Oracle之DBCA中看不到已启动instance与处理方法

一、问题描述:单位一套测试数据库,本想用DBCA看看数据库配置信息,当然也是手闲得慌,谁想到竟然出现下面的画面。创建新的数据,配置数据库操作按键是灰色,不让点击。这是什么情况,实例没有启动,不可能啊 ,刚刚还登录过呢。好吧,开始处理过程之旅。EdRlinux系统宝典

EdRlinux系统宝典

二、处理方法:EdRlinux系统宝典

1. 检查/etc/oratab文件 ,发现关于路径的信息都是之前安装的ORACLE软件目录(/u01/.....)与现在的软件目录(/home/oracle/app/.....)不一致。EdRlinux系统宝典

修改前:EdRlinux系统宝典

[oracle@tora01 etc]$ cat oratab EdRlinux系统宝典
#EdRlinux系统宝典

# This file is used by ORACLE utilities.  It is created by root.shEdRlinux系统宝典

# and updated by either Database Configuration Assistant while creatingEdRlinux系统宝典

# a database or ASM Configuration Assistant while creating ASM instance.EdRlinux系统宝典

# A colon, ':', is used as the field terminator.  A new line terminatesEdRlinux系统宝典

# the entry.  Lines beginning with a pound sign, '#', are comments.EdRlinux系统宝典

#EdRlinux系统宝典

# Entries are of the form:EdRlinux系统宝典

#  $ORACLE_SID:$ORACLE_HOME::EdRlinux系统宝典

#EdRlinux系统宝典

# The first and second fields are the system identifier and homeEdRlinux系统宝典

# directory of the database respectively.  The third filed indicatesEdRlinux系统宝典

# to the dbstart utility that the database should , "Y", or should not,EdRlinux系统宝典

# "N", be brought up at system boot time.EdRlinux系统宝典

#EdRlinux系统宝典

# Multiple entries with the same $ORACLE_SID are not allowed.EdRlinux系统宝典

#EdRlinux系统宝典

#EdRlinux系统宝典

holytest:/u01/app/oracle/product/11.2.0/db_1:NEdRlinux系统宝典

修改后:EdRlinux系统宝典

[oracle@tora01 etc]$ cat oratabEdRlinux系统宝典

#EdRlinux系统宝典

# This file is used by ORACLE utilities.  It is created by root.shEdRlinux系统宝典

# and updated by either Database Configuration Assistant while creatingEdRlinux系统宝典

# a database or ASM Configuration Assistant while creating ASM instance.EdRlinux系统宝典

# A colon, ':', is used as the field terminator.  A new line terminatesEdRlinux系统宝典

# the entry.  Lines beginning with a pound sign, '#', are comments.EdRlinux系统宝典

#EdRlinux系统宝典

# Entries are of the form:EdRlinux系统宝典

#  $ORACLE_SID:$ORACLE_HOME::EdRlinux系统宝典

#EdRlinux系统宝典

# The first and second fields are the system identifier and homeEdRlinux系统宝典

# directory of the database respectively.  The third filed indicatesEdRlinux系统宝典

# to the dbstart utility that the database should , "Y", or should not,EdRlinux系统宝典

# "N", be brought up at system boot time.EdRlinux系统宝典

#EdRlinux系统宝典

# Multiple entries with the same $ORACLE_SID are not allowed.EdRlinux系统宝典

#EdRlinux系统宝典

#EdRlinux系统宝典

holytest:/home/oracle/app/oracle/product/11.2.0/dbhome_1:NEdRlinux系统宝典

2. 再次启动DBCA进行验证,发现恢复正常EdRlinux系统宝典

EdRlinux系统宝典

EdRlinux系统宝典

三、总结:一次小小的发现,对oratab文件的了解又深入了一点点。该文件最后那个N,如果你需要数据自动启动的话,要改为Y,这些都是经验啊,还要继续努力学习。EdRlinux系统宝典

更多Oracle相关信息见 专题页面 EdRlinux系统宝典



沪ICP备10206494号-4