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

猜你喜欢

转载自blog.csdn.net/zhaoyangjian724/article/details/81904794
今日推荐