ASSM 引入了手工缩减HWM的命令,以前估计都是用CTAS ,或者只能truncate.
命令倒是很简单:
点击(此处)折叠或打开
-
alter table t enable row movement;
- alter table t shrink space
但是这两条命令只适用于ASSM的表空间,并且需要重建index.
点击(此处)折叠或打开
-
SELECT tablespace_name,block_size,extent_management,allocation_type,segment_space_management from dba_tablespaces;
-
-
-
TABLESPACE_NAME BLOCK_SIZE EXTENT_MAN ALLOCATIO SEGMEN
-
------------------------------ ---------- ---------- --------- ------
-
SYSTEM 8192 LOCAL SYSTEM MANUAL
-
SYSAUX 8192 LOCAL SYSTEM AUTO
-
UNDOTBS1 8192 LOCAL SYSTEM MANUAL
-
TEMP 8192 LOCAL UNIFORM MANUAL
-
USERS 8192 LOCAL SYSTEM AUTO
-
EXAMPLE 8192 LOCAL SYSTEM AUTO
-
-
-
-
select * from v$version;
-
-
-
BANNER
-
--------------------------------------------------------------------------------
-
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
-
PL/SQL Release 11.2.0.1.0 - Production
-
CORE 11.2.0.1.0 Production
-
TNS for Linux: Version 11.2.0.1.0 - Production
- NLSRTL Version 11.2.0.1.0 - Production
我的oracle 是11g2的,而SYSTEM,TEMP,UNDOTBS1 仍然是manual管理,而不是Auto.
TEMP不能使用ASSM管理。</span>
NEXTAix上db2建instance