Using DBMS_XPLAN in version 2.1

Hello,
I'm using SQL Developer for a long time now. Especially with the 1.5 versions, the following script worked like a charm.
set timing on;
set serveroutput off;
set termout off;
select /*+ gather_plan_statistics */ * from emp;
set termout on;
select * from table(dbms_xplan.display_cursor(null,null,'COST IOSTATS LAST'));
Quick explanation:
Running a SELECT with suppressed output, and giving back its execution plan (from the "current cursor") in a nice ASCII art table.
My problem now: Running with version 2.1 of SQL Developer, the current cursor is something entirely different, the dbms_xplan package complains:
cannot fetch plan for SQL_ID: 8kfd4vsgdvxuh, CHILD_NUMBER:1 Please verify value of SQL_ID and CHILD_NUMBER;
It could also be that the plan is no longer in cursor cache (check v$sql_plan)
SQL ID 8kfd4vsgdvxuh is this:
declare
l_line varchar2(32767);
l_done number;
l_buffer varchar2(32767) := '';
l_lengthbuffer number := 0;
l_lengthline number := 0;
begin
loop
dbms_output.get_line(
l_line,l_done);
if (l_buffer is null) then
l_lengthbuffer := 0;
else
l_lengthbuffer := length(l_buffer);
end if;
if (l_line is null)
then l_lengthline := 0;
else l_lengthline := length(l_line);
end if;
exit when l_lengthbuffer + l_lengthline > :maxbytes
OR l_lengthbuffer + l_lengthline > 32767
OR l_done = 1;
l_buffer := l_buffer || l_line || chr(10);
end loop;
:done := l_done;
:buffer := l_buffer;
:line := l_line;
end;
I think this is something caused by the table() keyword, but I'm not sure.
Where comes the difference from? 1.5 has had similar problems, but there "set serveroutput off;" helped to avoid it.
What can I do in 2.1 to make this approach work?
Thanks a lot
Martin Klier

You should be able to get an execution plan using EXPLAIN PLAN - that's what its for. the old way to get execution plans manually
The idea is to try it manaully: do EXPLAIN PLAN in your work window, then execute dbms_xplan manually Something like
in command pane
explain plan for select * from dual;
select * from table(dbms_xplan.display)in output pane
Plan hash value: 272002086
| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT  |      |     1 |     2 |     2   (0)| 00:00:01 |
|   1 |  TABLE ACCESS FULL| DUAL |     1 |     2 |     2   (0)| 00:00:01 |
--------------------------------------------------------------------------

Similar Messages

  • Error while saving a workflow via sharepoint designer: Server-side activities have been updated. You need to restart SharePoint Designer to use the updated version of activities.

    While saving a workflow using SharePoint designer on a SharePoint site, I get the following error: 
    Server-side activities have been updated. You need to restart SharePoint Designer to use the updated version of activities.
    Steps to recreate error:
    Login to the WFE server hosting IIS and workflow manager, open SharePoint Designer 2013 and login to a SharePoint site.
    Access the list using SharePoint Designer 2013, in the workflow section, click new workflow. 
    In the new workflow dialog, enter workflow details, click save (see screenshot below).
    Error message is displayed as below:
    After restarting SharePoint Designer, the saved workflow is not seen in the site/workflows or list/workflow section.
    Workaround
    When the above steps are repeated while accessing the site via SPD from any other box besides the WFE/Workflow manager host server, the error is not encountered and its possible to save/publish workflows.
    Notes
    Workflow Manager 1.0 is installed.
    The site has been registered with Workflow manager using Register-SPWorkflowService
    cmdlet.
    Any clue on why is this happening?

    Hi Vivek,
    Please close your SharePoint Designer application, clear/delete the cached files and folders under the following directories from your server installed SharePoint Designer, then check results again.
    <user profile>\appdata\roaming\microsoft\SharePoint Designer\ProxyAssemblyCache
    <user profile>\appdata\local\microsoft\websitecache\<sitename>
    http://www.andreasthumfart.com/2013/08/sharepoint-designer-2013-server-side-activities-have-been-updated/
    Thanks
    We are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • I can no longer import pictures to my ibook (OSX version 10.6.8) using iphoto 09 version 8.1.2 and now get message that file is in an unrecognizable format.  What is wrong?  Same camera as before.

    I can no longer import pictures to my ibook (OSX version 10.6.8) using iphoto 09 version 8.1.2 and now get message that file is in an unrecognizable format.  What is wrong?  Same camera as before.

    Julesvernet
    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • I have switched from PC to Mac how do i use my windows version  of adobe photoshop CS3 on my MAC?

    i have switched from PC to Mac how do i use my windows version  of adobe photoshop CS3 on my MAC?

    rebel1568,
    All Photoshop versions through CS6 came with platform-specific licenses, either Windows or PC.  You could get a cross-grade of platform swap at a nominal cost but not for older versions, only for whatever Photoshop versions was current at the time.
    CS3 is totally out of the upgrade or cross-grade loop.  You'd have to buy a new license for CS6 Mac or subscribe to Photoshop CC, as Trevor points out.
    Curt Y is correct in that CS2 will not run on current Mac-Intel machines.  You would need a used Mac G5 or G4 with a PowerPC (IBM) CPU, which have been obsolete since mid 2006.
    Of course, you could run your Windows  on your Mac if you installed and ran BootCamp or Parallells.

  • I am using the latest version of Mozilla Firefox for 64 bit Windows 7 in Verizon Yahoo Mail. My problem is that when I click on an email and scroll through it to read it the whole screen below the tool bars scrolls together. This is wrong.

    I am using a Beta version of Firefox.

    You can modify the pref <b>keyword.URL</b> on the <b>about:config</b> page to use Google's "I'm Feeling Lucky" or Google's "Browse By Name".
    * Google "I'm Feeling Lucky": http://www.google.com/search?btnI=I%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=
    * Google "Browse by Name": http://www.google.com/search?ie=UTF-8&sourceid=navclient&gfns=1&q=
    * http://kb.mozillazine.org/keyword.URL
    * http://kb.mozillazine.org/Location_Bar_search

  • My aperture library lives on an external hard drive that is corrupt and I can not locate the library. I do have it backed up with TM. How do I safely restore the library from TM to my laptop? I am using the newest version of aperture on my macbook pr

    My aperture library lives on an external hard drive that is corrupt and I can not locate the library. I do have it backed up with TM. How do I safely restore the library from TM to my laptop? I am using the newest version of aperture on my macbook pro.

    Hello Sandra,
    The article linked below details how to go about restoring items from Time Machine in Snow Leopard.
    Mac OS X 10.6: Recovering items using Time Machine and Spotlight
    http://support.apple.com/kb/PH6379
    Sincerely,
    Allen

  • Aperture 2.0 Activation Key does not work after using older trial version

    I was using the installed trial version of Aperture 1.5+ in my recently purchased MacBook Pro Duo (December 2007). After using the trial version for 30 days I debated whether to take the plunge ...and then within a few days recieved word that v2.0 was out at 199$. That motivated me ...however, here I am nearly one week later without ability to activate a full blown version of 2.0.
    I recieved the activation key, but it doesn't accept it in the dialog to upgrade in the trial version. Hint seems to be that it is not a serial number I am entering but an activation key.
    I did not order a boxed version, so what do I do now? Support is not too helpful as I have searched Apple's website and have no clue as to where to go.
    Last resort ... I want my $199 back!

    did you download the trial for Aperture 2

  • I try to open iphoto and it comes up with You have made changes to your photo library using a newer version of iPhoto. Please quit and use the latest version of iPhoto. I have downloaded photo manager and it's telling me to update but it wont update...

    I try to open iphoto and it comes up with You have made changes to your photo library using a newer version of iPhoto. Please quit and use the latest version of iPhoto. I have downloaded photo manager and it's telling me to update but it wont update...

    iPhoto is Apple's included program to manage your photo's and pictures.
    It receives updates over time with Software updates and new machine or iLife purchases.
    When iPhoto gets updated or a newer version is used, it may alter iPhoto support files, but newer iPhoto versions usually always compatible with older files which it then updates.
    If you used a newer iPhoto on your iPhoto support files, then they got altered to the newer format, older iPhoto versions can't read the older format.
    Somewhere along the line you somehow got a older version of iPhoto on your computer, you need to fine the newer version of iPhoto (not this photo manager, sounds like another program)
    Or somewhere along the line you used a newer iPhoto version (like on another Mac) and it altered the iPhoto support files on your older version of iPhoto.
    So the key here is to find the newest version of iPhoto and use that to access your iPhoto support files.
    If you didn't access your iPhoto support files from another Mac, then you should have the newer iPhoto version on your computer.
    Once you find it, and get it in the Dock, you should remove the older iPhoto version from your computer to prevent this from happening again.
    Lastly, if the newer version of iPhoto is somehow gone off your computer, you should be able to get a copy off the latest OS X install disk or iLife using a free program called Pacifist.
    http://www.charlessoft.com/
    Then you need to check for updates for iPhoto in the program itself, the current version is 9.1.2

  • I keep receiving this message "You can't open your current photo library using this version of iPhoto" You have made changes to your photo library using a newer version of iPhoto. Please quit and use the latest version of iPhoto."

    I keep getting this message. What do I do? You have made changes to your photo library using a newer version of iPhoto. Please quit and use the latest version of iPhoto.

    https://itunes.apple.com/ca/app/iphoto/id408981381?l=en&mt=12

  • Although I have the latest version of Firefox installed, I'm constantly getting the warning message that I AM USING THE OLD VERSION; what could be the issue here?

    I usually upgrade Firefox within a couple of days when the new version is issued. Nevertheless, I can't seem to get it right. Although when I check "About Firefox" tab in the Help menu it says that my version is 9.0.1 (i.e. the latest version available) - still on the Firefox Update page I always get this annoying msg:
    "''Hey there! Looks like you’re using an old version of Firefox.
    Don’t miss out on the latest technology & security features.
    Get the free upgrade in less than a minute.''" And, I see that your "educated guess" about my browser recognises it as a 3.5.5 version (far being it from the truth!).
    I don't believe that the fact that I'm still using Windows XP should have anything to do with this problem, but fyi - my OS is Win XP SP3, regularly updated and upgraded.
    Also, even though I live in Croatia, I prefer my Firefox (and other programs) in English, so I use UK version of Firefox.
    I do have some problems updating MS .Net Framework - could this be the issue with Firefox too?
    Anyway, I've already tried uninstalling and reinstalling Firefox, even tried installing Croatian version - nothing helped.
    As a result of this, I also have a problem with Gmail - I can only use standard, basic HTML view. Also annoying as hell.
    Btw, as for "Installed plugins" - I'm not sure which of those are right, but I do not have Netscape installed, and never had one on this computer. I even ran the search for term "Netscape" and it came out empty.
    There, I think I've provided as much information as I could think of - so, please help me to sort this out - if you can.
    Thanks

    see also these pages and threads about Fast Browser Search (FBSMTWB in the user agent).
    http://help.fastbrowsersearch.com/
    http://www.pccybertek.com/2009/05/remove-fast-browser-search
    thank you

  • I can't open my iPhoto - tells me to use the new version

    i can't open my iPhoto!
    this the message that i get
    "You have made changes to your photo library using a newer version of iPhoto. Please quit and use the latest version of iPhoto."
    I have iPhoto 4 on my G4 at home. I tried transferring some burned photos from my G4 labtop (running on iPhoto 5) and this was the message i got. I tried everything from the update downloads to deleting the pics from iPhoto 5. I still can't open my iPhoto.
    Just had a baby girl and it's driving me nuts because I can't access my photo library.
    Please Help ... desperate new dad!

    Hi, Gary. If the CD you burned in iPhoto 5 is still in your computer, eject it and see whether that makes any difference.
    If you copied the contents of that CD to your hard drive in such a way that there is now an iPhoto Library folder anywhere on your hard drive which was created by iPhoto 5 rather than iPhoto 4, trash that folder and empty the trash. Then try opening iPhoto 4 again.
    When you burn a CD from within iPhoto, it creates an iPhoto Library folder on the CD. That library folder is specific to the version of iPhoto that created it. If an older version of iPhoto finds such a folder anywhere within its reach, it tries — and fails — to open that folder instead of its own library folder, and then puts up the error message you've seen.
    In the future, if you transfer photos from a computer that contains a newer version of iPhoto than your own, it will be safer to export the photos from the newer version of iPhoto to a folder on that other computer's hard drive, then burn a cd containing the photos from the Finder, rather than from within iPhoto. That way the disc won't contain anything your own version of iPhoto can mistake for its iPhoto Library.

  • How do I use the french version of pages?

    I bought pages from the app store.  I was downloaded in english.  how do i use the french version?

    Apologizes to English users but it seems that the question was posted from France.
    Bonjour
    Pages s'adapte automatiquement à la langue qui se trouve en première position dans la liste disponible dans la Préférence Système "Langue et texte"
    Avec la configuration ci-dessus, Pages fonctionne en Français.
    Je vous remercie car votre question m'a permis de remarquer que j'ai oublié de supprimer quelques langues installées dans le seul but de répondre à une question posée récemment dans un forum.
    Yvan KOENIG (VALLAURIS, France) samedi 5 novembre 2011 17:39:15
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • How to use two different versions of Firefox at the same time on Snow Leopard?

    I recently upgraded to Firefox 4.0 on my 27" iMac running Snow Leopard 10.6.7.
    Previously, I was using Google's "Page Speed" along with Firebug in Firefox 3.6.15 to optimize images in my web pages, and to find other areas to optimize.
    Page Speed is not yet compatible with Firefox 4.0. I wrote to Google about this some time ago -- no answer yet.
    If I run Firefox 3.6.15 in order to use Page Speed, I run into a few problems afterward when I start using Firefox 4.0 again, since they both use the same "Firefox" folder in my "Application Support" folder.
    How can I set it up so that I can have two separate "Firefox" folders in my "Application Support" folder?
    Or is there an easier way to use two different versions of Firefox simultaneously, even if one has extensions and/or plug-ins installed which are not compatible with the other version?
    Thanks for a great browser!

    Please disregard my question. I just conducted more web search and learned how to use Firefox's profile manager in order to make a separate profile for Firefox 3.6.15.
    You can find instructions on this page:
    http://support.mozilla.com/en-US/kb/Managing%20profiles#os=mac&browser=fx35
    '''A small tip:'''
    If your Firefox app is named anything other than "Firefox" -- say for example "Firefox 3.6.15" -- when you follow the instructions at the above link, make sure you escape the blank space that is before the version number by adding a backward slash before it, when you type the command string in the Terminal. In other words, in that string, you should use this:
    Firefox\ 3.6.15
    I hope that helps someone.
    WW

  • How can I find my serial number for Adobe Acrobat 11. I got a new iMac and I don't want to use the new version at £18.00 per month. I don't need it. Thank you

    I used to use CS5 and I want to use the Acrobat version on my new iMac.
    How can I find my serial number for Adobe Acrobat 11.  I don't want to use the new version at £18.00 per month. I don't need it. Thank you

    Hi Anthony Aduhene
    Please refer : Find your serial number quickly

  • I am using iphoto '09 version 8.1.2. (424) today a few photos will not open.  I can see them as thumbnails but they try to open and then a big ! mark appears

    I am using iphoto '09 version 8.1.2. (424).   Today a few photos will not open.  I can see them as thumbnails but when I  try to open them they start to open and then a big ! mark appears.  I have not had this problem before.  Can you help

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

Maybe you are looking for

  • Extended Notifications Configuration

    Hi Experts, We have implemented SRM 7.0 ECS and are in the process of trying to set up extended notifications with out much luck, does anyone have any config tips??? Thanks in Advance

  • How to download adobe acrobat pro

    I have a new computer, how can I download Acrobat Pro and use my subscription to log in?

  • Bogus "deprecated" warnings

    Hi, I wrote a class that extends HttpServerResponseWrapper and now I am getting these bogus deprecation warnings: warning: [deprecation] setStatus(int,java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated class CacheResponse

  • 50L7300 upgrade doesn't work

    WOW! I went through 24 pages here and couldn't believe how many different problems were described and hardly any resolution was offered by Toshiba.  I bought this brand and model because others didn't have wired network connection and VGA input that

  • Google search results won't open in a new window

    I like to have Google search results open in a new tab and, until recently, using Google's settings allowed me to do that. But now if I click a lik in search results, it opens the page in the same window. In other words, FF "refuses" to obey Google's