Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: DB Parameters
Walid,
It's unlikely that a database parameter will provide the solution to your problem.
Trace the DELETE if you can (DBMS_SUPPORT.START_TRACE_IN_SESSION), to see what's taking so long. Odds are that your DELETE is poorly optimized SQL that's simply doing more work than it needs to be doing. BUT FIND OUT BEFORE YOU ASSUME THAT'S WHAT IT IS. If you find that your DELETE is consuming massive amounts of CPU service or OS read time, then take the query part of your DELETE out of your DELETE statement, and work with it until you get a decent execution plan. For example, if your statement were:
DELETE FROM table WHERE predicate-list
...then focus on optimizing the query
SELECT rowid FROM table WHERE predicate-list
At this point, it's a standard SQL optimization exercise. The tools at your disposal include, but are not restricted to:
As a last resort, you might consider using hints upon the SQL to coax the optimizer into using the plan you want, but I would advise doing this only in unusual circumstances. If all your other work is done properly, then I would submit that it's usually a good idea to eliminate hints from your SQL.
Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com
Upcoming events:
- Performance Diagnosis 101: 10/28 Phoenix, 11/19 Sydney
-----Original Message-----
Walid Alkaakati
Sent: Thursday, October 09, 2003 3:29 AM
To: Multiple recipients of list ORACLE-L
Hi List ,
Can you help me please ,
What are the database parameters that i have to increase or modify in
order to increase the speed of my ddl
statments ,i have a statment that delete a table with 40000 record but
it
takes about nine hours to accomplish !!!
Is their any parameters on the server that i have to check
??,Increase
rollback segment is not helpfull at all .
Iam running oracle 9.2.0.1.0 production .
Thanks for your help.
Bye.
+----------------------------------------------------------------+ Thismessage and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
+----------------------------------------------------------------+
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Walid Alkaakati INET: Walid.Alkaakati_at_astrolabeit.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Cary Millsap INET: cary.millsap_at_hotsos.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Thu Oct 09 2003 - 09:49:36 CDT
![]() |
![]() |