如何檢視oracle表空間資料檔案位置

時間 2021-08-11 18:15:23

1樓:育知同創教育

查詢oracle資料檔案、表空間的位置

1。執行:select name from v$datafile查詢表空間中資料檔案具體位置

結果集就一列:

name

f:\oracle\oradata\orcl\system01.dbf

2。執行:select * from dba_data_files;查詢表空間中資料檔案具體位置和檔名,表空間名等。比上一個全

結果集:

file_name (資料檔名) tablespace_name (表空間名) 其他表頭.............................

f:\oracle\oradata\orcl\system01.dbf system

2樓:千鋒教育

進行oracle控制檯。輸入命令: sqlplus  / as sysdba;

在oracle命令列中,輸入:

select t1.name,t2.namefrom v$tablespace t1,v$datafile t2where t1.ts# = t2.ts#;

這樣就可以檢視oracle資料庫的表空間資料檔案位置了。

3樓:匿名使用者

--檢視錶空間資料檔案

select * from dba_data_files;

--檢視臨時表空間資料檔案

select * from dba_temp_files;

--檢視錶空間

select * from dba_tablespaces;

如何檢視oracle表空間資料檔案位置

4樓:勇少

開啟oracle控制檯,在oracle命令列中,輸入命令。

一、首先,要連線linux系統。

二、連上後,進行oracle控制檯。輸入命令: sqlplus  / as sysdba;

三、在oracle命令列中,輸入: select t1.name,t2.

name  from v$tablespace t1,v$datafile t2 where t1.ts# = t2.ts#;

四、這樣就可以檢視oracle資料庫的表空間資料檔案位置了。

5樓:資料庫技術資深

select file_name , tablespace_name from dba_data_files;

6樓:全網天下霸屏

查詢oracle資料檔案、表空間的位置

1。執行:select name from v$datafile查詢表空間中資料檔案具體位置

結果集就一列:

name

f:\oracle\oradata\orcl\system01.dbf

2。執行:select * from dba_data_files;查詢表空間中資料檔案具體位置和檔名,表空間名等。比上一個全

結果集:

file_name (資料檔名) tablespace_name (表空間名) 其他表頭.............................

f:\oracle\oradata\orcl\system01.dbf system

7樓:匿名使用者

select

b.file_name 物理檔名,

b.tablespace_name 表空間,

b.bytes/1024/1024 大小m,

(b.bytes-sum(nvl(a.bytes,0)))/1024/1024 已使用m,

substr((b.bytes-sum(nvl(a.bytes,0)))/(b.bytes)*100,1,5) 利用率

from dba_free_space a,dba_data_files b

where a.file_id=b.file_id

group by b.tablespace_name,b.file_name,b.bytes

order by b.tablespace_name

該語句通過查詢dba_free_space,dba_data_files,dba_tablespaces這三個資料字典表,得到了表空間名稱,表空間型別,區管理型別,以」兆」為單位的表空間大小,已使用的表空間大小及表空間利用率。dba_free_space表描述了表空間的空閒大小,dba_data_files表描述了資料庫中的資料檔案,dba_tablespaces表描述了資料庫中的表空間。

上面語句中from子句後有三個select語句,每個select語句相當於一個檢視,檢視的名稱分別為a、b、c,通過它們之間的關聯關係,我們得到了表空間的相關資訊。

8樓:鉻酸洗液香波

以sys或system使用者登入 檢視錶空間物理檔案的名稱,路徑及大小    select tablespace_name, file_id,file_name, round(bytes/(1024*1024),0) total_space from dba_data_files order by tablespace_name;

9樓:壞掉的藍色眼睛

方法1、select name from v$datafile;

方法2、select file_name from dba_data_files;

以上兩個資料字典使用率較高,通常用來查詢資料檔案和表空間的使用情況等,可以記記

10樓:匿名使用者

--檢視錶空間資料檔案

select * from dba_data_files;

--檢視臨時表空間資料檔案

select * from dba_temp_files;

--檢視錶空間

select * from dba_tablespaces;

11樓:凱旋陽

select file_name from dba_data_files ;

oracle表空間的資料檔案放在**?

12樓:翻看書的寂寞

尋找oracle表空bai

間的資料du檔案方法:

使用sys或者其他

zhi有dba許可權的使用者登dao錄資料內

庫;執行語句select tablespace_name,file_name from dba_data_files where tablespace_name='你需要查詢的表容空間';

"file_name"欄位顯示的就是你想查詢表空間的資料檔案存放的位置。

如果file_name是類似'+data\.....'的,則資料庫使用的是asm磁碟管理方式。

13樓:匿名使用者

$oracle_home/(資料庫名)/oradata

你可以用sys使用者進sqlplus檢索一下v$datafile表

數值後的錯誤字尾,表空間資料檔案字尾錯誤有影響嗎

修改後的 include int main 表空間資料檔案字尾錯誤有影響嗎 沒什麼區別,主要是好分辨用途,oracle8i之前資料檔案的字尾名為.ora,之後為.dbf 無論.ora或.dbf,實際使用沒任何區別,也可以不用副檔名或指定任意副檔名.dbf 資料檔案.tmp 臨時檔案.log 重作日誌...

檢視資料庫建立了哪些表空間oracle

檢視oracle中表空間需要用具有dba許可權的使用者使用以下語句 select distinct tablespace name from dba data files 查詢結果 另外,可通過其他方法檢視一下oracle中表空間的使用率,語句如下 select total.tablespace n...

怎麼檢視oracle表空間,剩餘大小,表空間利用

1 因為oracle執行在linux系統下,首先,要連線linux系統。2 連上後,進行oracle控制檯。輸入命令 sqlplus as sysdba 3 在sql命令列,輸入 select upper f.tablespace name 表空間名 d.tot grootte mb 表空間大小 m...