아래 쿼리문은 dba 유저로 모든 테이블 스페이스의 사용량( 총용량, 사용량, 남은용량 )에 대한 정보를 얻어온다.
select a.TABLESPACE_NAME,
a.BYTES MB_total,
b.BYTES MB_free,
b.largest,
a.BYTES-b.BYTES MB_used,
round(((a.BYTES-b.BYTES)/a.BYTES)*100,2) percent_used
from
(
select TABLESPACE_NAME,
sum(BYTES)/1048576 BYTES
from dba_data_files
group by TABLESPACE_NAME
)
a,
(
select TABLESPACE_NAME,
sum(BYTES)/1048576 BYTES ,
max(BYTES)/1048576 largest
from dba_free_space
group by TABLESPACE_NAME
)
b
where a.TABLESPACE_NAME=b.TABLESPACE_NAME
order by ((a.BYTES-b.BYTES)/a.BYTES) desc;
[오라클/oracle] ORA-01745: 호스트/바인드 변수명이 부적합합니다 (0) | 2015.04.20 |
---|---|
[오라클/oracle] 특정 테이블의 속성 조회하기 (0) | 2015.04.20 |
[오라클/oracle] ORA-14086: a partitioned index may not be rebuilt as a whole (0) | 2015.04.20 |
[오라클/oracle] ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired (0) | 2015.04.20 |
[오라클/oracle] ORA-32773: operation not supported for smallfile tablespace (0) | 2015.04.20 |
테이블 스페이스를 튜닝하려고 아래 명령어를 입력하였다.
ALTER TABLESPACE 테이블스페이스명 AUTOEXTEND ON NEXT 1024K;
그랬더니 아래처럼 오류가 떨어졌다.
ORA-32773: operation not supported for smallfile tablespace 테이블스페이스명
구글링해서 얻어온 해결책 하나. 아래 경우를 살펴보기 바란다.
SQL> alter tablespace users resize 300m;
alter tablespace users resize 300m
*
ERROR at line 1:
ORA-32773: operation not supported for smallfile tablespace USERS
SQL> select file_id, tablespace_name from dba_data_files;
FILE_ID TABLESPACE_NAME
---------- ------------------------------
1 SYSTEM
2 UNDOTBS1
3 SYSAUX
4 USERS
SQL> alter database datafile 4 resize 300m;
Database altered.
//--------Description from online documents------------------------------------------------------------------
ORA-32773: operation not supported for smallfile tablespace string
Cause: An attempt was made to perform. an operation which is supported only for bigfile tablespaces, e.g. resize tablespace.
Action: Use the appropriate clause of the ALTER DATABASE DATAFILE command instead.
SQL> alter tablespace users autoextend off;
alter tablespace users autoextend off
*
ERROR at line 1:
ORA-32773: operation not supported for smallfile tablespace USERS
SQL> alter database datafile 4 autoextend off;
Database altered.
파티셔닝된 테이블의 테이블 스페이스를 옮기려고 할 때 발생했던 오류.
SQL> alter table 테이블명 move tablespace 테이블스페이스명
이런경우에는 아래와 같은 명령어를 사용하자.
SQL> alter table 테이블명 modify default attributes tablespace 테이블스페이스명;
그리고 부가적으로 처리해야 하는 일들이 좀 있다.
자세한 사항은 아래 영문을 확인해보길 바란다.
출처 : http://amit7oracledba.blogspot.kr/2013/03/move-partitioned-tables-to-different.html
[오라클/oracle] ORA-32773: operation not supported for smallfile tablespace (0) | 2015.04.20 |
---|---|
[오라클/oracle] ORA-00845: MEMORY_TARGET not supported on this system (0) | 2015.04.20 |
[오라클/oracle] 인덱스를 8192로 USERS 테이블스페이스에서 확장할 수 없습니다 (0) | 2015.04.20 |
[오라클/oracle] 파티션된 테이블과 인덱스 정보 조회 (0) | 2015.04.20 |
[오라클/oracle] jstat - Java Virtual Machine Statistics Monitoring Tool ( JVM 통계 모니터링 툴 ) (0) | 2015.04.20 |