alter database mount2 ; 數(shù)據(jù)庫已更改。只有mount后才能獲取SQL> select dbid from v$database; DBID 1779551310SQL> col name format a20SQL> select..."/>
溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

如何獲得數(shù)據(jù)庫的DBID

發(fā)布時間:2020-07-12 06:53:51 來源:網(wǎng)絡(luò) 閱讀:1186 作者:whshurk 欄目:關(guān)系型數(shù)據(jù)庫

SQL> alter database mount
2 ;

數(shù)據(jù)庫已更改。
只有mount后才能獲取
SQL> select dbid from v$database;

  DBID

1779551310
SQL> col name format a20
SQL> select name,dbid from v$containers;

NAME DBID


CDB$ROOT 1779551310
PDB$SEED 603865257
PDBTEST 3394996704
CLONEPDB_PLUG 50957894
SQL> select name,dbid from v$pdbs;

NAME DBID


PDB$SEED 603865257
PDBTEST 3394996704
CLONEPDB_PLUG 50957894

C:\app\Administrator\virtual\product\12.2.0\dbhome_2\bin>rman target / nocatalog

恢復(fù)管理器: Release 12.2.0.1.0 - Production on 星期五 1月 5 09:20:17 2018

Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.

已連接到目標數(shù)據(jù)庫: NEWTEST (DBID=1779551310, 未打開)
使用目標數(shù)據(jù)庫控制文件替代恢復(fù)目錄
nomount狀態(tài)
SQL> startup nomount;
ORACLE 例程已經(jīng)啟動。

Total System Global Area 2768240640 bytes
Fixed Size 8922760 bytes
Variable Size 704645496 bytes
Database Buffers 2046820352 bytes
Redo Buffers 7852032 bytes
SQL> alter system dump datafile 'C:\app\Administrator\virtual\oradata\newtest\sy
saux01.dbf' block 1;

系統(tǒng)已更改。

SQL> oradebug setmypid;
已處理的語句
SQL> oradebug tracefile_name;
C:\APP\ADMINISTRATOR\VIRTUAL\diag\rdbms\newtest\newtest\trace\newtest_ora_26588.trc
如何獲得數(shù)據(jù)庫的DBID

向AI問一下細節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI