前言
一、修改表空间的存储参数
二、脚本实验
1.修改该表空间分配的最小EXTENT尺寸
alter tablespace manage minimum extent 2m;
SQL> alter tablespace manage minimum extent 2m;
alter tablespace manage minimum extent 2m
*
ERROR at line 1:
ORA-25143: default storage clause is not compatible with allocation policy
ORA-25143: 默认存储子句与分配策略不兼容
2.修改表空间的默认存储语句
alter tablespace manage default storage(initial 2m next 2m maxextents 2147483645);
不使用数据字典管理的表空间提高了系统效率,解决了数据字典的瓶颈问题,
但是本地管理的表空间不能随意更改默认的存储参数,如初始区段的大小,最大区段数等。(Oracle极力推荐本地管理的表空间)
3.查询修改后的存储参数
select tablespace_name,
block_size,
initial_extent,
next_extent,
max_extents,
pct_increase
from dba_tablespaces
where tablespace_name = 'MANAGE';
4.删除表空间
drop tablespace manage including contents and datafiles;