• 读undo问题


    SQL> drop table test1 purge;
    
    Table dropped.
    
    SQL> create table test1 as select * from dba_objects where 1=2;
    
    Table created.
    
    SQL> insert into test1  select * from dba_objects;
    
    74506 rows created.
    
    SQL> insert into test1  select * from  test1;
    
    74506 rows created.
    
    SQL> /
    
    149012 rows created.
    
    SQL> /
    
    298024 rows created.
    
    SQL> /
    
    596048 rows created.
    
    SQL> /
    
    1192096 rows created.
    
    
    
    SQL> select segment_name,bytes/1024/1024 from dba_segments where owner='TEST' and segment_name='TEST1';
    
    SEGMENT_NAME
    --------------------------------------------------------------------------------
    BYTES/1024/1024
    ---------------
    TEST1
    	      9
    
    
    SQL> set linesize 200
    SQL> /
    
    SEGMENT_NAME									  BYTES/1024/1024
    --------------------------------------------------------------------------------- ---------------
    TEST1												9
    
    SQL> /
    
    SEGMENT_NAME									  BYTES/1024/1024
    --------------------------------------------------------------------------------- ---------------
    TEST1											       34
    
    SQL> /
    
    SEGMENT_NAME									  BYTES/1024/1024
    --------------------------------------------------------------------------------- ---------------
    TEST1											       88
    
    SQL> /
    
    SEGMENT_NAME									  BYTES/1024/1024
    --------------------------------------------------------------------------------- ---------------
    TEST1											      128
    
    SQL> /
    
    SEGMENT_NAME									  BYTES/1024/1024
    --------------------------------------------------------------------------------- ---------------
    TEST1											      152
    
    SQL> /
    
    SEGMENT_NAME									  BYTES/1024/1024
    --------------------------------------------------------------------------------- ---------------
    TEST1											      270
    
    
    随着数据的插入,虽然没有提交,但是表的大小不断增大
    
    
    SQL> /
    
           SID EVENT
    ---------- ----------------------------------------------------------------
    	38 db file sequential read
    看到了大量的db file sequential read,可以判定是读的undo块

  • 相关阅读:
    python+selenium之中类/函数/模块的简单介绍和方法调用
    python之类
    Python+Selenium之断言对应的元素是否获取以及基础知识回顾
    Python+Selenium之摘取网页上全部邮箱
    C# 事件
    IConfigurationSectionHandler 接口
    ReaderWriterLockSlim 类
    log4net 按照日期备份日志
    Redis .net 客户端 分布式锁
    SQL Server Compact/SQLite Toolbox
  • 原文地址:https://www.cnblogs.com/zhaoyangjian724/p/3798033.html
Copyright © 2020-2023  润新知