oracle 常用語句

2021-06-09 03:57:24 字數 515 閱讀 1628

oracle 產看表空間

select total.name "tablespace name",

free_space, (total_space-free_space) used_space, total_space

from

(select tablespace_name, sum(bytes/1024/1024) free_space

from sys.dba_free_space

group by tablespace_name

) free,

(select b.name, sum(bytes/1024/1024) total_space

from sys.v_$datafile a, sys.v_$tablespace b

where a.ts# = b.ts#

group by b.name

) total

where free.tablespace_name = total.name

oracle常用語句

drop tablespace crm online space including contents and datafiles 刪除表空間 drop user wuliu01 cascade 刪除使用者 exp orcl file d dmp 匯出資料庫 imp orcl file e alen...

oracle 常用語句

oracle 常用語句 查詢表的大小 select t.owner,t.segment name,sum t.blocks 8 1024 m as s,t.segment type from dba segments t where t.owner user name group by t.owne...

oracle常用語句

查詢鎖定表 select l.session id sid,s.serial l.locked mode,l.oracle username,l.os user name,s.machine,s.terminal,o.object name,s.logon time from v locked ob...