Is there a way to stop a query just after the cursor/plan is produced by CBO?

Following suggestions of Kerry Osborne’s Oracle Blog » Blog Archive » Explain Plan Lies – Kerry Osborn…
on the lies of "Explain plan" (and of "set autotrace on"  too) I'd like to try to stop a query/DML before actually it starts, just after the plan was produced and sql_id assigned.
Is there any CLEAN way (other than trying CTRL-C) to do that?
Thanks
Paolo

Hi
PaolFili wrote:
Thanks rp.
I think my question is a little dofferent, but your reply give me an idea.(which has clear disadvantages , but can do the work).
The problem is obtain in Lybrary Cache a plan,a SLQ_ID,PLAN_HASH for a query ( i.e. a 10days running query) that I cannot start-up.
So my (suggested from your reply) idea is:
1) to LOCK EXCLUSIVE (a table level) , **if it's possible** every table accessed in the query ( Yes, it can be really expansive in some production environment, but sometimes can be necessary ..)
  using :  LOCK TABLE table IN EXCLUSIVE MODE
for each table accessed from query
2) Startup the query that will be suspended form the lock on tables accessed + kill the sid,serial#,@Inst_id for the query.
3) UNLOCK tables from EXCLUSIVE using "ROLLBACK"  in the session where LOCK TABLE.... was send.(to remake  tables to work for other queries)
Any other ideas?
Thanks
Paolo
you're planning on using locks to stop a query and you think in order to do so you need exclusive locks  on every table accessed in the query? And you are prepared to do that on a production system?
And all of this is needed to troubleshoot a query that was running for 10 days -- i.e. a query that was available for all kinds of diagnostics during 10 days?
Sorry, I think it wasn't a good idea for you to read that Osborne's blog post -- you should've started with more basic things. Way more basic.
Best regards,
  Nikolay

Similar Messages

  • Is there any way of stopping ios7 from downloading after it starts? If not, is there a way to go back to the previous system?

    Is there any way of stopping ios7 from downloading once it has started? If not, is there any way to go back to the previous program instead of ios7?

    turn off wifi

  • Is there any way to retrieve a previous backup after the reset version has backed up?

    My phone recently freaked out and went into safe mode and when i went to back it up to the most recent back up, i accidentally set it up as a new iphone.. then it backed up to my computer which erased the most recent back up i wanted... Is there any way to get that back now? I lost over a year of pictures of my daughter and i'm pretty upset about it.

    I'm in the same situation as a lot of people. Whenever my iPhone 4 updates, it locks into sync mode and then I continuously lose my important data (contacts & photos etc) and recent backups replace more important backups, without asking for permission to do so.
    As this has happened before, I make regular backups. Yesterday it showed one of these recent backups, but this has been replaced with todays, which is a new installation.
    Is this the same with the new iPhones? Are Apple trying to encourage people to over to new iPhone, with more compatible software?
    I really need help with this, as it keeps happening and I spend a lot of valuable time trying to rectify it.

  • Is there a way to stop apps from running in the background on my 3gs?

    I was told that apps could be "turned off" in the iphone, which saves on battery life and removes the apps from the main screen, placing them in a scrollable line at the bottom. I even saw the guy do it! Now, I can't figure out how he did it!

    Hold till it wiggles is for the apps that will show up in the multi-tasking bar. This is the group to the bottom of the phone, just above the home button. I don't mean trying to delete apps off the home screen.
    Check page 19 in the User Guide http://manuals.info.apple.com/en_US/iphone_user_guide.pdf. That should explain it.

  • Why does switching VoiceOver on jump to the top of a web page? Is there a way to stop that and just stay where you were?

    Please someone tell me why this happens and what I can do to prevent it because it is so annoying to scroll down every time. Thanks!

    You can try it with CTRL+Home to see if that improves matters.
    List of KB shortcuts here: http://www.mozilla.org/docs/end-user/moz_shortcuts.html#help

  • Is there a way of stopping the battery from charging?

    Dear Apple Community,
    Recently I installed iStat Menus and found that, over the course of this year, my Macbook's charging capacity has dropped 5%. I know this isn't a massive number, but battery performance has become a concern for me. I use my Macbook as a desktop replacement, on the main. It's sitting on a mStand, connected to a large monitor on my desk. I use my Macbook to play games, surf the internet, do work and all that good stuff - basically, I use it for everything. I rarely use the Macbook without it being plugged in. I read on the Apple website that they do not recommend leaving the Macbook on charge permanently and that I should use it on battery at least one a month. As I use my Macbook as a desktop replacement, I don't actually have a lot of opportunity to do this.
    My question to you, the community, is: is there a way of stopping the battery from charging, either with the use of an app or a physical device? Ideally, I would love to have my power plugged in BUT only used when the battery drops below 10%. Is this possible with an app?
    On the other hand, am I just worrying about nothing? Will my battery be damaged further if I leave the Macbook charging permanently?
    Thanks for your help!
    Jeremy Reid

    Ideally, I would love to have my power plugged in BUT only used when the battery drops below 10%. Is this possible with an app?
    The charging characteristics are handled in firmware.  There is no app that would be able to do this.  You actually would not want to do this anyway.  Regularly discharging your battery to 10% will greatly decrease the life of your battery.  While it is true that you should not use your system exclusively plugged in, allowing it to run on battery a few hours a week should be fine.  Letting the battery regularly run down to (or below) 10% will cause you to use up cycles more quickly than is necessary (thereby reducing the life of your battery).  It's really a only a matter of disconnecting your Magsafe connector once in a while.
    Leaving it plugged in does not result in it being charged "permanently".  It will charge until it is full and then charging will stop.  It will only begin recharging when it reaches about 95%.

  • After I watch a podcast I delete it. When I go back in the next day it shows 500-600 episodes I have to delete manually. So 2 questions....  Is there a way to stop this from happening and is there a way to delete all. This is getting frustrating.

    After I watch a podcast I delete it. When I go back in there are 500-600 episodes and I have to delete each one manually. Is there a way to stop this from happening or is there a way to delete all at once. It's getting very frustrating.

    Had all these issues.  Bit the bullet and downloaded the Downcast App ($1.99).  Much better expereince and a lot more features.  Sad.

  • When I try to print a drawing imported from my ipad iphoto crops it. Is there any way to stop this?

    When I try to print a drawing imported from my ipad iphoto crops it. Is there any way to stop this?

    Usual cause: printing at the wrong aspect ratio for the image - trying to print 5 x 3 in the shape of a 6 x 4 for instance.
    Regards
    TD

  • Is there a way to stop .oam files from previewing as previously placed files in Muse CC?

    I'm placing a new .oam file in a new website I'm creating in Muse but it previews as a previous .oam file that I used in a previous website. When preview the page on a browser it's fine but it's making it hard to place the .oam file in the correct position. Is there a way to stop this from happening so it previews correctly in Muse?

    If you're using Safari as your web browser go to "Safari -> Preferences...", select "General" from the toolbar and uncheck the "Open safe files after downloading" box.
    Other browsers should have a similar setting in their prefs.
    Steve

  • Is there a way to stop and then resume an ipod video conversion process?

    I am trying to convert videos to play on my new iPod Classic. The conversion process is painfully slow. I need to move the computer. Is there a way to stop the conversion process and then resume it later where you left off? The only way I have been able to figure it out is to put the laptop to sleep and then open it up later to resume. This is a problem too as I have an external USB drive hanging off the side. Any ideas?
    Thanks all in advance for your help.

    AFAIk you can just uninstall Thunderbird and reinstall. The profile will not be deleted. If you want to make sure, however, make a backup of your profile folder first.
    Read up on "backup", e.g. here : http://email.about.com/od/mozillathunderbirdtips/qt/et_backup_prof.htm
    (google is your friend :9 )
    P.S. _ Matter of fact you should regularly backup your data (e.g. your thunderbirdprofile) to some place different so as not to loose it all, if a thunderbird-bug/virus/windows-failure/Layer8-Problem corrupts your data.

  • I keep getting a pop up asking for my voicemail password.  I can simply press cancel and it goes away, but it happens frequently and often during a text or email.  Is there a way to stop this?  I don't even have a voicemail password.

    I keep getting a pop up message asking for a voicemail password.  I can simply touch cancel and it goes away.  Put it pops up quite frequently during texting, chatting or email.  Is there a way to stop this?  I don't even have a voicemail password.

    Contact your carrier; they are the only ones who can resolve this for you. Use the Carrier Luke,
    "Fun with the Sun, MEta"

  • HT1689 i have my daughters iphone 3, i want to use it as an i-pod, but it keeps receiving messages from some her friends is there a way to stop this from happening, please help, my phone is maxed out and would really like the storage for music, thanks

    i have my daughters iphone 3, i want to use it as an i-pod, but it keeps receiving messages from some her friends is there a way to stop this from happening, please help, my phone is maxed out and would really like the storage for music, thanks

    It sounds like it still has her information on it, so it might be efficient to navigate to Settings, then General, then Reset, then Erase All Content and Settings. You can then set up the phone again, using your information. This way the phone will be yours, officially, and her data and information will be removed.

  • Hi every time I go to write a tx on my iPhone it asks for my apple I'd sign in like when I buy an app or something and you have to enter your password is there a way to stop it doing this or is there some kind of problem with the phone

    Hi every time I go to write a tx my phone asked for my sign in details like I have just bought something like an app of song ect I just press cancel and it goes away but still pretty annoying is there a way to stop this or is there a problem with the phone  ? Thanks

    If the login box keeps popping up either your acct is disabled or you are mistyping your pw.  
    Go here and try out your pw and reset if necessary:
    http://appleid.apple.com/
    Click on Manage ID and go from there.

  • Is there a way to stop being bombarded with IAds when playing games on the iPad? This is a very annoying new way to advertise Apps.

    Is there a way to stop being bombarded with IAds when using games on my IPad? Is this a new way to advertise Apps?

    If these are the free versions of the games, buy the full version and the iAds should go away. The developer can offer the app for free by selling advertising. If the developer is going to give the app away, he has to be paid for his work somehow.
    There may be some paid apps that might include iAds as well. In those instances, the developer includes the ads in order to subsidize the cost of the app to the end user in order to reduce the cost of the app. You should always read the app description when you download any app to make sure that you know what you are getting into - with regard to ads and in-app purchases.
    Games are the worst offenders - IMO. Many "free" games become totally useless after you reach a certain level or if you reach your limit in lives or potions or things like that. If you want to continue in the game, you than have to make in-app purchases for levels, lives, potions, beads, whatever. You can rack ip quite a bill playing those "free" games if you are not aware of what you are getting into.

  • Is there a way to stop Icon View from putting everything in rows?

    I have a couple computers now with Lion, but I miss part of my old Finder view. Is there a way to stop Icon View from putting everything in rows when I do a "sort by" arrange by? I just want sorted icons, not a row of types.
    For instance - I set to arrange by date created and I have a ROW of "Today" A ROW of "Yesterday" another row of "Previouse 7 days" and another row of "Previous 30 Days." I just want a sorted folder of files in icon view listed by created date. These "Rows" are annoying and a pain in the butt to use!

    that´s the point. you are using the wrong sort option. if you want rows you arrange by the button depicted above. in addition you can select how to sort your files (gear wheel button / secondary click context menu)

Maybe you are looking for

  • Is it possible to use a part of the screen area

    Maby a silly question, but has anyone an idea how to play a game for example on a partial area of the hugh 27inch screen? Is there a utility that places full screen applications like games within a window (games that don't have a window mode on its o

  • Debugging in XI

    Hi gurus,     I have a scenario having file on the sender side and ABAP Proxy on the receiver side.The mapping used is XSLT mapping.To determine the receiver,Receiver determination is being used.There are 2 XSLT mappings under the Interface mapping.

  • At Line-selection in ALV for more than one field.

    How to use At Line-selection in ALV Basic Report where there are more than one field for displaying Secondary Lists. Ex: In Basic List there are 3 fields Volume_m Volume_y and Volume_i.When i click on any of the field i need to display the secondary

  • Safari and video clips

    Safari is not playing video clips, ie the information tours, is there anything I can do? Help would be appreciated.

  • Creating Validation Pattern Message (like Designer) in Prof 8

    We aere using Prof 8, and would like to create a Validation Pattern message (with error box checked) similar to a val pattern message created in LC Designer. Is there any way to do it? KPanthen, Albany, NY