oracle表空间处理操作
生活随笔
收集整理的這篇文章主要介紹了
oracle表空间处理操作
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
查看表空間使用率:
SELECT SUM(bytes) / (1024 * 1024) AS free_space, tablespace_name FROM dba_free_space GROUP BY tablespace_name; SELECT a.tablespace_name, a.bytes total, b.bytes used, c.bytes free, (b.bytes * 100) / a.bytes "% USED ", (c.bytes * 100) / a.bytes "% FREE " FROM sys.sm$ts_avail a, sys.sm$ts_used b, sys.sm$ts_free c WHERE a.tablespace_name = b.tablespace_name AND a.tablespace_name = c.tablespace_name;查看數(shù)據(jù)文件位置
Select * FROM DBA_DATA_FILES;擴容表空間:
ALTER TABLESPACE "USERS" ADD DATAFILE '/u02/app/ora11g/users03.dbf' SIZE 8G;# oracle
總結(jié)
以上是生活随笔為你收集整理的oracle表空间处理操作的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Windows 下用VS2012(Vis
- 下一篇: 忘记Oracle的sys,system的