Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

unable to create small index with the table locked in exclusive mode

2718073Jun 15 2015 — edited Jun 15 2015

Hello,

I want to creat an index (estimated index size is 50Mb) on an SAP with Oracle 11.2.0.4


170 sessions running againts my table:

SQL> SELECT count(1) FROM V$ACCESS WHERE OBJECT = 'VBAK';

  COUNT(1)

----------

       170

Locked the table in exclusive mode:

SQL> LOCK TABLE SAPDAT.VBAK IN EXCLUSIVE MODE;

Table(s) Locked.

Run the index creation ddl:

SQL> CREATE INDEX SAPDAT."VBAK~ERD" ON SAPDAT.VBAK

(MANDT, ERDAT)

NOLOGGING

TABLESPACE PSAPDATI

PCTFREE    10

INITRANS   2

NOPARALLEL

NOCOMPRESS;

Error encounter:

ORA-04021: timeout occurred while waiting to lock object index creation.

Please advice how can I implement the index whithout killing the active sessions on the table or stopping the application.

Thank you,

Best Regards,

Joey

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 13 2015
Added on Jun 15 2015
9 comments
1,942 views