일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- ORA-00020
- oracleasm
- oracle tde
- partition_options=merge
- oracle dba_profile password_life_time
- oracle supplemental
- ora-39083 ora-00439
- MSSQL
- create role
- mssql database 삭제
- oracle 테스트 데이터
- oracle system lock
- oracle awr
- ora-28002: the password will expire within 7 days
- supplemental log 활성화
- oracle pdb
- oracle role 삭제
- oracle 파티션 datapump
- oracle account_status expired
- oracle SCN
- sql user 생성
- oracle install
- Oracle RAC
- ora-00439: feature not enabled: partitioning
- oracle
- 오라클
- Oracle Database
- SSMS
- SQL Server
- oracle datapump
Archives
- Today
- Total
신문지한장
[SQL] Tablespace 및 Datafile 조회 본문
현재 Tablespace 조회
select tablespace_name, status, contents, extent_management, segment_space_management from dba_tablespaces;
현재 Tablespace size 조회
SELECT ddf.tablespace_name "Tablespace Name",
ddf.bytes/1024/1024 "Bytes(MB)",
(ddf.bytes - dfs.bytes)/1024/1024 "Used(MB)",
ROUND(((ddf.bytes - dfs.bytes) / ddf.bytes) * 100, 2) "Percent(%)",
dfs.bytes/1024/1024 "Free(MB)",
ROUND((1 - ((ddf.bytes - dfs.bytes) / ddf.bytes)) * 100, 2) "Free(%)"
FROM (SELECT tablespace_name, SUM(bytes) bytes
FROM dba_data_files
GROUP BY tablespace_name) ddf,
(SELECT tablespace_name, SUM(bytes) bytes
FROM dba_free_space
GROUP BY tablespace_name) dfs
WHERE ddf.tablespace_name = dfs.tablespace_name
ORDER BY 4 DESC;
현재 datafile 조회
col TABLESPACE_NAME for 30
col file_name for a50
select tablespace_name,file_name,bytes/1024/1024, autoextensible from dba_data_files order by 1;
'Oracle > sql&script' 카테고리의 다른 글
oracle hotbackup check (0) | 2024.04.18 |
---|---|
[SQL] redo log 그룹, 멤버 조회 (1) | 2024.01.04 |
[SQL] oracle schema 및 tablespace 삭제 추출문 (0) | 2023.11.30 |
[SQL] datapump(exp/imp) 이관시 tablespace & temptablespace 생성 추출문 (0) | 2023.11.30 |
[SQL] oracle 이관 시 확인해야 할 정보 (as-is, to-be) (0) | 2023.11.25 |