[20210315]ORA-04000 the sum of PCTUSED and PCTFREE cannot exceed 100.txt SYS@book> @ ver1 PORT_STRING VERSION BANNER ------------------------------ -------------- -------------------------------------------------------------------------------- x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production SYS@book> create table t pctfree 99 as select level id, rpad('abc', 3500, 'x') vc from dual connect by level <= 500 order by dbms_random.random; create table t pctfree 99 as select level id, rpad('abc', 3500, 'x') vc from dual connect by level <= 500 order by dbms_random.random * ERROR at line 1: ORA-04000: the sum of PCTUSED and PCTFREE cannot exceed 100 $ oerr ora 4000 04000, 00000, "the sum of PCTUSED and PCTFREE cannot exceed 100" // *Cause: the sum of PCTUSED and PCTFREE for a cluster or table exceeds 100 // *Action: create the table/cluster specifying values whose sum is <= 100 --//因为sys用户缺省表建立在system表空间,system表空间是mssm属性是PCTUSED and PCTFREE都有效。 SYS@book> @ ddl dual C100 ------------------------------------------------------------------------ CREATE TABLE "SYS"."DUAL" ( "DUMMY" VARCHAR2(1) ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 16384 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; --//你可以看出缺省pctfree=10,PCTUSED=40. --//我建立的表pctfree=99,两者相加大于100. SYS@book> create table t pctfree 60 as select level id, rpad('abc', 3500, 'x') vc from dual connect by level <= 500 order by dbms_random.random; Table created. --//这样就可以建立。也可以修改如下: SYS@book> drop table t purge ; Table dropped. SYS@book> create table t pctfree 99 pctused 1 as select level id, rpad('abc', 3500, 'x') vc from dual connect by level <= 500 order by dbms_random.random; Table created. --//当然你可以建立在非assm表空间上就不会出现上面的错误。 SYS@book> create table t tablespace users pctfree 99 as select level id, rpad('abc', 3500, 'x') vc from dual connect by level <= 500 order by dbms_random.random; Table created. SYS@book> @ ddl t C100 ---------------------------------------------------------------------------------------------------- CREATE TABLE "SYS"."T" ( "ID" NUMBER, "VC" VARCHAR2(3500) ) PCTFREE 99 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ; --//虽然看到的PCTUSED 40,但是对于assm的表空间无效。
[20210315]ORA-04000 the sum of PCTUSED and PCTFREE cannot exceed 100.txt
来源:这里教程网
时间:2026-03-03 16:31:30
作者:
编辑推荐:
- [20210315]ORA-04000 the sum of PCTUSED and PCTFREE cannot exceed 100.txt03-03
- read by other session 等待事件分析03-03
- [20210315]理解db file parallel read等待事件3.txt03-03
- 关于SCN需要知道的事03-03
- [20210315]acknowledge over PGA limit.txt03-03
- [20210315]理解db file parallel read等待事件4.txt03-03
- AWR报告基础操作03-03
- 【TUNE_ORACLE】Oracle索引设计思想(四)三星级索引03-03
下一篇:
相关推荐
-
雷神推出 MIX PRO II 迷你主机:基于 Ultra 200H,玻璃上盖 + ARGB 灯效
2 月 9 日消息,雷神 (THUNDEROBOT) 现已宣布推出基于英
-
制造商 Musnap 推出彩色墨水屏电纸书 Ocean C:支持手写笔、第三方安卓应用
2 月 10 日消息,制造商 Musnap 现已在海外推出一款 Oce
热文推荐
- read by other session 等待事件分析
read by other session 等待事件分析
26-03-03 - Oracle sqlldr工具功能测试
Oracle sqlldr工具功能测试
26-03-03 - SQLServer 2012复制订阅数据订阅过程
SQLServer 2012复制订阅数据订阅过程
26-03-03 - [oracle] 索引低效,导致read by other session等待事件
- 【SQL】SQL表连接方法方式介绍(Oracle/Postgresql)
【SQL】SQL表连接方法方式介绍(Oracle/Postgresql)
26-03-03 - Oracle 19c数据库体系结构-2
Oracle 19c数据库体系结构-2
26-03-03 - 数据库无法注册至监听服务解决办法
数据库无法注册至监听服务解决办法
26-03-03 - Oracle数据库启动过程及状态详解
Oracle数据库启动过程及状态详解
26-03-03 - 数据库常用的事务隔离级别都有哪些?都是什么原理?
数据库常用的事务隔离级别都有哪些?都是什么原理?
26-03-03 - 检查联机后的43 号文件信息:alter database datafile 43 online;
