1. 程式人生 > >Oracle中查詢當前資料庫中的所有表空間和對應的資料檔案語句命令

Oracle中查詢當前資料庫中的所有表空間和對應的資料檔案語句命令

--轉載路徑:http://www.cnblogs.com/wangsaiming/p/3573917.html

-----------------------------------------------------------------------------------------

1、在cmd中輸入sqlplus,彈出命令列窗體

2、輸入口令和密碼

3、SQL>col file_name for a60;

4、SQL>set linesize 160;

5、SQL>select file_name,tablespace_name,bytes from dba_data_files;

---------------------------------------------------------------------------------------------

同樣的可以從dba_temp_files資料字典中查詢臨時表空間的資訊

SQL>select tablespace_name,file_name from dba_temp_files;

----------------------------------------------------------------------------------------------