我的理解即使是append+nolloging模式,那插入的数据也数属于某一张表的吧,既然属于某一张表,哪么他就应该属于这个段呀
create table scott.testsegment(id number,name varchar2(20)) nologging storage(INITIAL 1 NEXT 1 MINEXTENTS 1 MAXEXTENTS 65536 PCTINCREASE 0);
select owner,segment_name,segment_type,tablespace_name,header_block,bytes/1024/1024 "size(M)",blocks,extents from dba_segments where owner='SCOTT'and segment_name='TESTSEGMENT';
OWNER SEGMENT_NAME SEGMENT_TYPE TABLESPACE HEADER_BLOCK size(M) BLOCKS EXTENTS
---------- --------------- ------------------ ---------- ------------ ---------- ---------- ----------
SCOTT TESTSEGMENT TABLE USERS 1985 .0625 8 1
begin
for i in 1..10000 loop
insert /*+ append */ into scott.testsegment values(i,'abc'||i);
end loop;
commit;
end;
/
SQL> select owner,segment_name,segment_type,tablespace_name,header_block,bytes/1024/1024 "size(M)",blocks,extents from dba_segments where owner='SCOTT'and segment_name='TESTSEGMENT';
OWNER SEGMENT_NAME SEGMENT_TYPE TABLESPACE HEADER_BLOCK size(M) BLOCKS EXTENTS
---------- --------------- ------------------ ---------- ------------ ---------- ---------- ----------
SCOTT TESTSEGMENT TABLE USERS 1985 .25 32 4
新增加的24个block是属于testsegment表段的,append+nologging增加的数据如果数据增加完成后不备份,那么如果数据库cash则这部分数据是恢复不了的 |