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

php中文网
发布: 2016-06-07 15:53:46
原创
1143人浏览过

单位一套测试Oracle数据库,本想用DBCA看看数据库配置信息,当然也是手闲得慌,谁想到竟然出现下面的画面。创建新的数据,配置数

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

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

二、处理方法:

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

修改前:

[oracle@tora01 etc]$ cat oratab
#

# This file is used by ORACLE utilities.  It is created by root.sh

# and updated by either Database Configuration Assistant while creating

# a database or ASM Configuration Assistant while creating ASM instance.

# 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::

#

# 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.

#

#

holytest:/u01/app/oracle/product/11.2.0/db_1:N

修改后:

[oracle@tora01 etc]$ cat oratab

腾讯云AI代码助手
腾讯云AI代码助手

基于混元代码大模型的AI辅助编码工具

腾讯云AI代码助手 205
查看详情 腾讯云AI代码助手

#

# This file is used by ORACLE utilities.  It is created by root.sh

# and updated by either Database Configuration Assistant while creating

# a database or ASM Configuration Assistant while creating ASM instance.

# 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::

#

# 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.

#

#

holytest:/home/oracle/app/oracle/product/11.2.0/dbhome_1:N

2. 再次启动DBCA进行验证,发现恢复正常

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

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

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

本文永久更新链接地址

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号