12
返回列表 发新帖
楼主: lozity

在数据库无法nomount的时候什么日志可以查询到DBID?

[复制链接]
论坛徽章:
190
生肖徽章:狗
日期:2006-11-23 04:26:03生肖徽章:羊
日期:2007-09-26 17:08:21生肖徽章:马
日期:2007-09-26 17:08:49授权会员
日期:2007-12-31 19:14:41生肖徽章2007版:牛
日期:2008-03-28 10:02:30奥运会纪念徽章:柔道
日期:2008-04-30 16:28:44奥运会纪念徽章:垒球
日期:2008-05-12 21:28:28奥运会纪念徽章:体操
日期:2008-06-26 10:00:41奥运会纪念徽章:沙滩排球
日期:2008-07-27 12:41:59奥运会纪念徽章:艺术体操
日期:2008-07-30 11:09:47
11#
发表于 2008-4-19 23:49 | 只看该作者

使用道具 举报

回复
论坛徽章:
7
12#
发表于 2008-4-20 06:39 | 只看该作者
。。。。
学习

使用道具 举报

回复
论坛徽章:
5
生肖徽章2007版:猴
日期:2008-01-02 17:35:53生肖徽章2007版:鼠
日期:2008-01-02 17:35:532009新春纪念徽章
日期:2009-01-04 14:52:282009日食纪念
日期:2009-07-22 09:30:00ITPUB9周年纪念徽章
日期:2010-10-08 09:28:51
13#
 楼主| 发表于 2008-4-20 11:28 | 只看该作者
原帖由 kdkd 于 2008-4-19 23:23 发表
o1_mf_s_652448295_40lt98wr_.bkp中的652448295可能就是dbid了,lz确认一下此文件名的格式


652448295不是DBID,我的DBID是:

[oracle@pejoy ~]$ rman target/

Recovery Manager: Release 10.2.0.1.0 - Production on Sun Apr 20 00:08:36 2008

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

connected to target database: FOX (DBID=833886678, not open)

RMAN>

使用道具 举报

回复
论坛徽章:
10
授权会员
日期:2008-03-13 10:32:44生肖徽章2007版:鸡
日期:2008-04-03 18:55:51数据库板块每日发贴之星
日期:2008-04-21 01:01:58奥运会纪念徽章:拳击
日期:2008-06-14 10:29:372014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11
14#
发表于 2008-4-20 12:00 | 只看该作者
哈哈,sorry,我错了,差点害了lz。

[ 本帖最后由 kdkd 于 2008-4-20 12:01 编辑 ]

使用道具 举报

回复
论坛徽章:
10
授权会员
日期:2008-03-13 10:32:44生肖徽章2007版:鸡
日期:2008-04-03 18:55:51数据库板块每日发贴之星
日期:2008-04-21 01:01:58奥运会纪念徽章:拳击
日期:2008-06-14 10:29:372014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11
15#
发表于 2008-4-20 12:22 | 只看该作者
lz,我的版本是9204,结果与你有点差别,必须在mount状态下才显示DBID,看来方法与版本有点关系:)请大家指教

---启动例程之前
[oracle@hh ~]$ rman target/

Recovery Manager: Release 9.2.0.4.0 - Production

Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.

connected to target database (not started)

RMAN> exit

Recovery Manager complete.

-----启动例程,即nomount状态,rman target/并没有列出dbid
[oracle@hh ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 9.2.0.4.0 - Production on Sun Apr 20 02:22:30 2008

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

Connected to an idle instance.

SQL> startup nomount
ORACLE instance started.

Total System Global Area  126948772 bytes
Fixed Size                   452004 bytes
Variable Size              58720256 bytes
Database Buffers           67108864 bytes
Redo Buffers                 667648 bytes
SQL> select status from v$instance;

STATUS
------------
STARTED

SQL> host
[oracle@hh ~]$ rman target /

Recovery Manager: Release 9.2.0.4.0 - Production

Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.

connected to target database: orcl (not mounted)

RMAN> exit  

Recovery Manager complete.

[oracle@hh ~]$ exit
exit

----DB启动至mount状态,rman target/就显示dbid了。
SQL> alter database mount
  2  ;

Database altered.

SQL> host
[oracle@hh ~]$ rman target /

Recovery Manager: Release 9.2.0.4.0 - Production

Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.

connected to target database: ORCL (DBID=1153803032)

RMAN> exit


Recovery Manager complete.
[oracle@hh ~]$ exit
exit

SQL> alter database open;

Database altered.

SQL> host
[oracle@sgk ~]$ rman target /

Recovery Manager: Release 9.2.0.4.0 - Production

Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.

connected to target database: ORCL (DBID=1153803032)

RMAN> exit


Recovery Manager complete.

[ 本帖最后由 kdkd 于 2008-4-20 12:28 编辑 ]

使用道具 举报

回复
论坛徽章:
5
生肖徽章2007版:猴
日期:2008-01-02 17:35:53生肖徽章2007版:鼠
日期:2008-01-02 17:35:532009新春纪念徽章
日期:2009-01-04 14:52:282009日食纪念
日期:2009-07-22 09:30:00ITPUB9周年纪念徽章
日期:2010-10-08 09:28:51
16#
 楼主| 发表于 2008-4-21 09:23 | 只看该作者
原帖由 lozity 于 2008-4-19 22:22 发表
eygle的文章中说到:“如果数据库配置了自动控制文件备份(Oracle9i),并且名称是缺省的,那么我们可以从自动备份文件获得DBID. ”

为什么我开启了自动备份控制文件的功能,在$ORACLE_HOME/dbs下还是没有看到 c 打头的文件?郁闷……



为什么我看不到C打头的文件呢???我是10g的库

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表