does delete statement lock the table

Posted on 2009-02-23
Medium Priority
Last Modified: 2012-05-06
does delete statement lock the table and is there any way to speed up the delete process for large tables , other than creating indexes on the condition fields.
Question by:rohit_kapil
1 Comment
LVL 23

Accepted Solution

David earned 200 total points
ID: 23726544
I believe (from memory) they create row locks but not table-level by default.  Is there referencial integrity with other tables?  Are you doing multiple or single commits?
The general advice these days (10g and higher) is to rename the source table, then create a (new) original table by copying in the records you wish to keep.  The technique is commonly referred to as CREATE TABLE AS SELECT... (CTAS).  Other options are to disable unnecessary indexes and constraints.  Check also if you're firing triggers.
Depending upon your ease of restarting, some suggest altering the table and indexes to nologging.
Hope this helps!

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Oracle Apps Profiles option: A user profile is a set of shifting options that alter the way one runs an application. A value is set for each option under the user's profile when the Oracle application user logs on to any responsibility or changes…
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses
Course of the Month16 days, 1 hour left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question