zoukankan      html  css  js  c++  java
  • online创建索引 引发行锁等待

    [oracle@yyjk ~]$ sqlplus tlcbuser/tlcbuser
    
    SQL*Plus: Release 11.2.0.4.0 Production on 星期二 8月 21 11:11:33 2018
    
    Copyright (c) 1982, 2013, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> set linesize 200
    SQL> set pagesize 200
    SQL>  select * from v$mystat where rownum<2;
    
           SID STATISTIC#       VALUE
    ---------- ---------- ----------
        15        0           0
    
    SQL> select owner,segment_name,bytes/1024/1024/1024  from dba_segments a where a.segment_name='TEST100';
    
    OWNER                   SEGMENT_NAME                                     BYTES/1024/1024/1024
    ------------------------------ --------------------------------------------------------------------------------- --------------------
    SYS                   TEST100                                               .000061035
    TLCBUSER               TEST100                                                1.875
    
    SQL> insert into TEST100 select * from test100;
    
    16179420 rows created.
    
    [oracle@yyjk ~]$ sqlplus tlcbuser/tlcbuser
    
    SQL*Plus: Release 11.2.0.4.0 Production on 星期二 8月 21 11:12:24 2018
    
    Copyright (c) 1982, 2013, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL>  set linesize 200
    SQL> set pagesize 200
    SQL>  select * from v$mystat where rownum<2;
    
           SID STATISTIC#       VALUE
    ---------- ---------- ----------
           154        0           0
    
    SQL> create index TEST100_IDX1 on TEST100(object_name);
    create index TEST100_IDX1 on TEST100                                    
  • 相关阅读:
    团队介绍及项目介绍
    2017年秋季个人阅读计划
    软件需求分析阅读笔记
    Cookie学习总结
    暑期兴趣班第二天学习总结
    暑期兴趣班第一天学习总结
    个人总结
    第十六周工作总结
    第十五周工作总结
    第十四周工作总结
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13349112.html
Copyright © 2011-2022 走看看