Welcome to the SQL Optimizer for Oracle Community
Advanced Search - Help - Search Toad World
Welcome, Guest
Login Login / Register
Help
NEW? Get Plugged In

Forums » Join Discussions About... » General Discussion

Thread: cancel excution while its running and move to next alt

This question is answered. Helpful answers available: 2. Answered answers available: 1.


Permlink Replies: 3 - Pages: 1 - Last Post: Sep 25, 2009 6:33 AM by: crazy
crazy

Posts: 34
Registered: 1/27/09
cancel excution while its running and move to next alt
Posted: Sep 22, 2009 11:22 AM
 
  Click to reply to this thread Reply

hello all,  Is there a way in QSO to skip the current alt its running.  let say i have a sql which i optimized it at level 5 and it produced about 200 alt....and now when i excute all or selected....i know this one sql is going to take more than 1000+ sec...looking into v$session_longops ...and its says it going to take a lot of time...is there a way i can skip that sql (which is already being executed by qso) and move over to next alt ?? or no ?? besides setting a time limt to cancel executino by user defined time...??



TonyNg


Posts: 15
Registered: 11/15/06
Re: cancel excution while its running and move to next alt
Posted: Sep 23, 2009 7:49 PM   in response to: crazy
 
  Click to reply to this thread Reply

At this version we didn’t provide any option to skip alternatives execution, because it may confuse the optimization goal. The only ways to confirm the performance of SQL is execute it in database, and it has better to run as a batch as well.

 

However we still do a few ways to help cut down the testing time.

To select the execution order with options “Intelligence Order” which is using Gaussian function to group up SQL. It provides a kind sampling method, so, when applied with termination criteria in “Faster alternative”, the SQL will be stopped immediately when there is better performance alternative found.

Tony Ng




TonyNg


Posts: 15
Registered: 11/15/06
Re: cancel excution while its running and move to next alt
Posted: Sep 23, 2009 8:47 PM   in response to: crazy
 
  Click to reply to this thread Reply

The above method of test run termination is only available at version 7.5, if we are talking about the difference version, please ignore it. For version 7.4x there is not way to abort current executing SQL manually. So you may deselect the unwanted scenario before taking ‘Execute Selected’. Other than that, using termination criteria setting also work for it, the most simple way is setting a user defined time.

 

(By the way, at the version of 7.5 we do great chagne of UI and engine, and it also provides solution for aborting with each scenarios manually.)

 

Sorry for my misunderstanding

 

Tony Ng




crazy

Posts: 34
Registered: 1/27/09
Re: cancel excution while its running and move to next alt
Posted: Sep 25, 2009 6:33 AM   in response to: TonyNg
 
  Click to reply to this thread Reply

thank you...you guys do a great job with this.  Cant wait for 7.5 to come out which is couple of weeks away...



Legend
Guru: 2001 + pts
Expert: 751 - 2000 pts
Enthusiast: 31 - 750 pts
Novice: 0 - 30 pts
Moderators
Helpful answer (5 pts)
Answered (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums