티스토리 뷰
SELECT b.file_name "FILE_NAME", -- DataFile Name
b.tablespace_name "TABLESPACE_NAME", -- TableSpace Name
b.bytes / 1024 / 1024 "TOTAL SIZE(MB)", -- 총 Bytes
((b.bytes - sum(nvl(a.bytes,0)))) / 1024 / 1024 "USED(MB)", -- 사용한 용량
(sum(nvl(a.bytes,0))) / 1024 "FREE SIZE(KB)", -- 남은 용량
(sum(nvl(a.bytes,0)) / (b.bytes)) * 100 "FREE %" -- 남은 %
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
A data dictionary view that displays information about free extents in all tablespaces
Column | Datatype | NULL | Description |
---|---|---|---|
TABLESPACE_NAME |
VARCHAR2(30) |
Name of the tablespace containing the extent | |
FILE_ID |
NUMBER |
File identifier number of the file containing the extent | |
BLOCK_ID |
NUMBER |
Starting block number of the extent | |
BYTES |
NUMBER |
Size of the extent (in bytes) | |
BLOCKS |
NUMBER |
Size of the extent (in Oracle blocks) | |
RELATIVE_FNO |
NUMBER |
Relative file number of the file containing the extent |
반응형
'DataBase > Oracle' 카테고리의 다른 글
싱글 인덱스와 결합 인덱스 쿼리 속도차이 (0) | 2010.05.27 |
---|---|
Temp tablespace 사용법 (0) | 2010.05.18 |
DataBase 메모리 보기 (0) | 2010.05.18 |
CUBE 사용예 (0) | 2010.05.18 |
sqlplus 셋팅 영구저장 방법 (0) | 2010.05.18 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- index
- postgresql.conf
- Managing Schema Objects
- 독도
- iOS5
- recovery
- linux
- 리눅스
- 윈도우
- iPhone
- 출시일
- mysql
- 테이블정보
- Backup
- oracle
- 오라클
- MS-SQL
- 아이폰4
- 투싼
- 아이폰
- 갤럭시S
- Flashback
- tablespace
- SQLPlus
- parameter
- 컬럼정보
- PostgreSQL
- PL/SQL
- 인덱스
- 한글
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함