Concurrent sessions accessing parsed sql from the library cache

Hi there,
I am having five concurrent session firing exactly same SQL statement inside a stored procedure.
Stored Procedure
PROC1(a int)
begin
select <C1>,<C2> into <V1>,<V2> from <T1>, <T2> where <JOIN between both table> and T1.<C3>=a;
end;
All those five sessions are calling the procedure PROC1 which subsequently executes the sql statement.
Execution time of sql statement is 2 seconds.
I ma wondering whether all other sessions will wait for the currently executing session to release the latch on parsed sql(getting stored in the library cache)? (In this case last session will wait for 8 seconds) Or would they execute in parallel with their own copy of parsed sql?
Please help!!!
TIA,
Nishant

Would it be like that the first session will hard parse the SQL statement and all other concurrent sessions will have a "softer" soft parse and take a copy of query plan and execute the statement without waiting for each otherYes, I think this is the way it works according to official Oracle documentation
(and why there is a shared pool).:
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14220/sqlplsql.htm#i2196
But I don't know if you can find detailed documentation about all latching steps for hard parse and soft part steps.

Similar Messages

  • Concurrent sessions accessing parsed sql from teh library cache

    Hi there,
    I am having five concurrent session firing exactly same SQL statement inside a stored procedure.
    Stored Procedure
    PROC1(a int)
    begin
    select <C1>,<C2> into <V1>,<V2> from <T1>, <T2> where <JOIN between both table> and T1.<C3>=a;
    end;
    All those five sessions are calling the procedure PROC1 which subsequently executes the sql statement.
    Execution time of sql statement is 2 seconds.
    I ma wondering whether all other sessions will wait for the currently executing session to release the latch on parsed sql(getting stored in the library cache)? (In this case last session will wait for 8 seconds) Or would they execute in parallel with their own copy of parsed sql?
    Please help!!!
    TIA,
    Nishant

    Can you please elaborate a little further.
    AFAIK the query plans are stored in the library cache and there will be latches on data structures. Won't it mandate serial execution? Please correct me if I am wrong.
    Thanks...
    Nishant

  • To know if parsed SQL is in library cache and parse count

    hello,
    i want to know if a sql that was fired has its parsed code still in library cache. How do i know? One more question. I would also like to know how many times a sql is parsed and loaded onto library cache (assuming that I have its hash value)
    thank you in advance.

    V$DB_OBJECT_CACHE: To view displays database objects that are cached in the library cache.
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_1083.htm
    V$SQLAREA lists statistics on shared SQL area and contains one row per SQL string. It provides statistics on SQL statements that are in memory, parsed, and ready for execution.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2129.htm
    select sql_text from v$sqlarea where users_executing > 0;

  • I have transferred my itunes library to an external drive. I then attached the external disk to a new computer. I can now access all songs from the new computer. But I can't access playlists. I can still  access all songs and playlists on the old computer

    I have transferred my itunes library to an external drive. I then attached the external disk to a new computer. I can now access all songs from the new computer. But I can't access playlists. I can still  access all songs and playlists on the old computer

    If you right mouse and select Get info it will show you the Apple ID used to purchase these songs.
    Usually the name of an apple id is based on the email. So knowing that you may have forgotten the Apple ID password.
    You can request a new password here http://www.apple.com/support/appleid/

  • How can I read books from the library on my iPad?

    I've downloaded Over Drive and Bluefire in an attempt to read books downloaded from the library.  Although both libraries say it's easy to transfer from my home computer to the iPad, nothing has worked so far.  Has anyone had success?

    Remove, but not uninstall from the device?  Where would they go if you did that?
    Once you delete an App it gets removed form the homescreen, and deleted from the iPad.
    There is no "Less used Apps" area or anything like that.
    Everything you have, and you can access, is on the home screen. There is no other place to access Apps. 

  • I upddated my I Pad and installed I Cloud now I connect find the I Pod feature, I download books from the library when I connect it to the computer it shows the book in the I Pad but I cannot find where to open it

      I updated my I Pad now I cannot see the I Pod Icon that is where the books I download from the library where before.  I also noticed that I Pod Icon disappeared from my I Phone.  When I connect my I Pad to the computer it shows the book there, but I cannot figure out how to access it.

    There is a OneClickdigital ereader available in the App Store. Download that to your iPod to read pdfs and books from the library. And you might need to download the OneClickdigital eaudio player to listen to audiobooks from the library. Once both are downloaded sync you iPod again to transfer them.

  • Sorting Audio when inserting from the library

    Using Captivate 5, I am adding audio to slides from the library. The library is sorted by name ascending. When it is accessed in the dialog box shown below, the sort order is unknown. I have to examine the entire list to find the item I need. Is this a bug or is there a remedy?

    Can you please make sure, whether the book you are trying to copy has the Copy Permission allowed?
    Also please have a look at the solution provided in thread having similar problem, error message "no permission to copy document here"

  • How to remove dead files from the library?

    Hello.
    I'm using iTunes (7.6.1.9) on Vista (32 bit) mainly for synching my iPod (nano 3G). I organize my files with other tools like mp3tag. Sometimes I rename the folders where tracks are stored (e.g. I add the release year to the folder name). All this is done outside of iTunes.
    Now, when I want to access tracks in iTunes, it happens that iTunes doesn't find the files (because the folder or files were renamed). I can re-add the folder to the library, that's no problem.
    But how can I remove all dead files at once from the library? I don't feel like searching the complete library myself (for this is what a PC is made for, isn't it?).
    Is there any tool that can help me with this?
    Thanks in advance
    Martin

    You can use one of Roberst Jacobson's scripts - iTunesRemovenotfound:
    http://home.comcast.net/~teridon73/itunesscripts/
    Or if you prefere to do it in iTunes:
    Using a playlist to collect dead tracks for deletion.
    Create new regular playlist – Playlist1
    Select whole library and drag to Playlist1
    Create new Smart Playlist with the rule: Playlist is not Playlist1
    This playlist should contain all the dead tracks
    http://discussions.apple.com/message.jspa?messageID=5696793#5696793

  • HT204406 I am having a very difficult time with accessing my music from the cloud.  I need to have itunes open on my laptop in order for it to work.  And as soon as I close out itunes on my laptop, it gives me a warning that all users will be logged out. 

    I am having a very difficult time with accessing my music from the cloud.  I need to have itunes open on my laptop in order for it to work.  And as soon as I close out itunes on my laptop, it gives me a warning that all users will be logged out.  Help!!!

    Where are iTunes files located?
    No, I do not mean just the music.  Copying just the media/music files or the media folder creates problems.

  • I already have adobe digital editions on my mac pc and download books from the library to my android e-reader. Can I use the same digital editions on my ipad air, or do I need to load a different one onto my ipad?

    I already have adobe digital editions on my mac pc and download books from the library to my android e-reader. Can I use the same digital editions on my ipad air, or do I need to load a different one onto my ipad?

    Try following forum:
    Adobe Digital Editions

  • Hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    Hey there Logic Pro21,
    It sounds like you are seeing some odd performance issues with Logic Pro X. I recommend these troubleshooting steps specifically from the following article to help troubleshoot what is happening:
    Logic Pro X: Troubleshooting basics
    http://support.apple.com/kb/HT5859
    Verify that your computer meets the system requirements for Logic Pro X
    See Logic Pro X Technical Specifications.
    Test using the computer's built-in audio hardware
    If you use external audio hardware, try setting Logic Pro X to use the built-in audio hardware on your computer. Choose Logic Pro X > Preferences > Audio from the main menu and click the Devices tab. Choose the built in audio hardware from the Input Device and Output Device pop-up menus. If the issue is resolved using built-in audio, refer to the manufacturer of your audio interface.
    Start Logic with a different project template
    Sometimes project files can become damaged, causing unexpected behavior in Logic. If you use a template, damage to the template can cause unexpected results with any project subsequently created from it. To create a completely fresh project choose File > New from Template and select Empty Project in the template selector window. Test to see if the issue is resolved in the new project.
    Sometimes, issues with the data in a project can be repaired. Open an affected project and open the Project Information window with the Project Information key command. Click Reorganize Memory to attempt to repair the project. When you reorganize memory, the current project is checked for any signs of damage, structural problems, and unused blocks. If any unused blocks are found, you will be able to remove these, and repair the project. Project memory is also reorganized automatically after saving or opening a project.
    Delete the user preferences
    You can resolve many issues by restoring Logic Pro X back to its original settings. This will not impact your media files. To reset your Logic Pro X user preference settings to their original state, do the following:
    In the Finder, choose Go to Folder from the Go menu.
    Type ~/Library/Preferences in the "Go to the folder" field.
    Press the Go button.
    Remove the com.apple.logic10.plist file from the Preferences folder. Note that if you have programmed any custom key commands, this will reset them to the defaults. You may wish to export your custom key command as a preset before performing this step. See the Logic Pro X User Manual for details on how to do this. If you are having trouble with a control surface in Logic Pro X, then you may also wish to delete the com.apple.logic.pro.cs file from the preferences folder.
    If you have upgraded from an earlier version of Logic Pro, you should also remove~/Library/Preferences/Logic/com.apple.logic.pro.
    Restart the computer.
    Isolate an issue by using another user account
    For more information see Isolating an issue by using another user account.
    Reinstall Logic Pro X
    Another approach you might consider is reinstalling Logic Pro X. To do this effectively, you need to remove the application, then reinstall Logic Pro X. You don't have to remove everything that was installed with Logic Pro X. Follow the steps below to completely reinstall a fresh copy of Logic Pro X.
    In the Finder, choose Applications from the Go menu.
    Locate the Logic Pro X application and drag it to the trash.
    Open the Mac App Store
    Click the Purchases button in the Mac App Store toolbar.
    Sign in to the Mac App Store using the Apple ID you first used to purchase Logic Pro X.
    Look for Logic Pro X in the list of purchased applications in the App Store. If you don't see Logic Pro X in the list, make sure it's not hidden. See Mac App Store: Hiding and unhiding purchases for more information.
    Click Install to download and install Logic Pro X.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • The circuit of my macbook is dead yet the hard drive is fine.  I need to access a file from the hard drive, how can i do this? is there a cable i can connect to another mac that will let me transfer the file?

    The circuit of my macbook is dead yet the hard drive is fine.  I need to access a file from the hard drive, how can i do this? The mac turns on the screen freezes as bright blue.  Is there a cable i can connect to another mac that will let me transfer the file?

    There is another option if the Macbook will start up in Target Disk Mode.
    Restart the computer while holding down the T key. If you see the firewire symbol moving around on the screen you can connect this one to another one in TDM. You will need a suitable cable to connect the two Macs.
    http://support.apple.com/kb/ht1661
    Firewire symbol:

  • I just purchased a classic and some how deleated the audio book file from the library and the device section of iTunes, how to restore

    I accidently deleted the file folder audio books from the library and from teh device section in iTunes how to replace

    Edit > Preferences > General tab, tick Books. Audiobooks are synced from the Books tab of the device.
    tt2

  • How do I delete a movie (not bought from iTunes) and have it actually deleted from the library as well?

    How do I delete a movie (not bought from iTunes) and have it actually deleted from the library as well, I keep deleting stuff from iTunes to try and free up some space only to find the file still in the library?

    It depends upon what preferences settings you use.  Most people use default settings so when you delete an item it asks you if you want to get rid of the file too.
    If iTunes absolutely refuses to get rid of the file (I have never heard of this by the way) you can always go to the media folder or wherever the file is located and drag it to the trash yourself.

  • I am trying to download an epub book from the library, which I have been doing for almost a year. Now I am being asked for my adobe id, which I enter and I get an error message stating Adobe Activation Request Error:2004.. What's this ?

    I am trying to download an epub book from the library, which I have been doing for almost a year. Now I am being asked for my adobe id, which I enter and I get an error message stating Adobe Activation Request Error:2004.. What's this ?

    I downloaded Blue Fire Reader and it requested an adobe id. I clicked on the link that was in the error message stated http//adeactivateadobe.com. Found out that if the date and time on my Ipad is wrong that it won't let me download a book. I was off 5 hours. I reset my clock settings and adobe id let me download a book from the library. I am back to using Overdrive and adobe again on my ipad.
    Thank you.

Maybe you are looking for

  • Error BRAIN 276 when you execute a Web template in BI Admin Cockpit in  EP

    Hi Experts, I have Installed BI Administration Business Packages in Portal and configured necessary steps in BI System.I have assigned the role in Portal and BI System. I tried executing one iview...and was getting the following error: Error loading

  • Searching for duplicates in PSE catalog?

    I am experiencing numerous duplicate photo images in my PSE catalog. I woud like to do a search of the catalog and bulk remove the duplicates. Is there a way to do this?

  • Basic dates and production dates in planned order

    Dear all, I have a planned order (for material A) which has "order finish date" same as "End of production date". I have another planned order (for material B) where "End of production date" is eariler than "order finish date". Scheduling margin key

  • Cfprocparam and ORACLE

    I need help with an error I am getting; I am calling an Oracle DB procedure in a package(people) PROCEDURE version_info (version OUT VARCHAR2) IS BEGIN version := people.ask_version; END version_info; *****The procedure calls a function which also re

  • Adobe Flash Plugin

    About maybe 4-11 times a day my Adobe Flash Plugin keeps crashing. For some reason is causes my cursor to get stuck or freeze, making me unable to do/click anything. I have to keep shutting down my computer and turning it back on, and 15 mins later i