Search Results for 'tablespace'


1 POSTS

  1. 2008/02/19 tablespace 관리 by clubkona

tablespace 관리

<Oracle - tablespace 확인 / index full 났을때>
alter database
datafile 'e:\oracle\oradata\PDSS\DBF\GHR_INSA_IDX.DBF' resize 200M
;
 
 
select * from dba_data_files
where tablespace_name = 'GHR_INSA_DAT'
;
 
<tablespace 확인>
SELECT a.tablespace_name,
 a.total "Total(Mb)",
 a.total - b.free "Used(Mb)",
 nvl(b.free,0) "Free(Mb)",
 round((a.total - nvl(b.free,0))*100/total, 2) "Used(%)"
 from (select tablespace_name, round((sum(bytes)/1024/1024), 0) as total
 from dba_data_files
 group by tablespace_name) a,
 (select
 tablespace_name, round((sum(bytes)/1024/1024), 0) as free
 from dba_free_space
 group by tablespace_name) b
 where a.tablespace_name = b.tablespace_name(+)
 order by a.tablespace_name
 ;

Posted by clubkona

2008/02/19 11:12 2008/02/19 11:12
,
Response
No Trackback , No Comment
RSS :
http://clubkona.hosting.paran.com/rss/response/121


블로그 이미지

- clubkona

Notices

Archives

Authors

  1. clubkona

Calendar

«   2012/05   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Site Stats

Total hits:
474089
Today:
38
Yesterday:
1