oracle实例是否有dbid,Oracle如何获得数据库的DBID
Oracle如何獲得數據庫的DBID
在進行數據庫恢復的過程中,很多時候我們需要知道Oracle數據庫的DBID,通常有以下幾種方法可以獲得數據庫的DBID.
法1:
在命令行下
C:\Documents and Settings\zhhs>rman target /
恢復管理器: 版本9.2.0.7.0 - Production
Copyright (c) 1995, 2002, Oracle Corporation.? All rights reserved.
連接到目標數據庫: ORCL (DBID=1150171135)
RMAN> show all;
正在使用目標數據庫控制文件替代恢復目錄
RMAN 配置參數為:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'E:\ORACLE\ORA92\DATABASE\SNCFORCL.ORA';
# default
RMAN>
RMAN> list incarnation;
數據庫 Incarnations 列表
DB 關鍵字? Inc 關鍵字 DB 名? DB ID??????????? CUR 重置 SCN?? 重置時間
------- ------- -------- ---------------- --- ---------- ----------
1?????? 1?????? ORCL???? 1150171135?????? YES 1????????? 12-5月 -07
RMAN>
法2:
C:\Documents and Settings\zhhs>sqlplus "/ as sysdba"
SQL*Plus: Release 9.2.0.7.0 - Production on 星期二 10月 28 22:19:24 2008
Copyright (c) 1982, 2002, Oracle Corporation.? All rights reserved.
連接到:
Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
SQL> select dbid from v$database;
DBID
----------
1150171135
SQL>
總結
以上是生活随笔為你收集整理的oracle实例是否有dbid,Oracle如何获得数据库的DBID的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java编写静态工具类_Java编程中静
- 下一篇: java https soap,Java