表上有事务,创建索引:
[oracle@yyjk ~]$ sqlplus tlcbuser/tlcbuser
SQL*Plus: Release 11.2.0.4.0 Production on 星期三 8月 22 08:27:41 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
---------- ---------- ----------
143 0 0
SQL> create table test_index as select owner,object_id,object_name,created from dba_objects;
Table created.
SQL>
SQL> insert into test_index values ('aa','11','aa',sysdate);
1 row created.
SQL>
SQL> create index test_index_idx1 on test_index(object_id) online;
SQL> select * from v$mystat where rownum<2;
SID STATISTIC# VALUE
---------- ----------
表上有事务,online 创建索引会等待?
最新推荐文章于 2021-03-19 21:08:03 发布