TROUBLE WITH OPEN CURSOR

Hi, we have an application running on 8.1.6 with 20 000 open cursors is this a really resources problem for database. Ive tried with this parameter CLOSECACHED_OPEN_CURSORS = TRUE in INIT.ORA but it doesnt work with PLSQL.
I found problem resolves if we close session 'cause it frees all resources but i'm seeking for another option.
Does anyone have an advice about it I appreciate it!!

I think it's a development problem. Nobody, beside the developer knows if they are still need their open cursors.
It's a bad habit to open cursors and don't close these cursors.
BTW do you use bind variable in your statement.
Regards
Marc

Similar Messages

  • TROUBLES WITH OPEN CURSORS

    Hi, we have an application running on 8.1.6 with 20 000 open cursors is this a really resources problem for database. Ive tried with this parameter CLOSECACHED_OPEN_CURSORS = TRUE in INIT.ORA but it doesnt work with PLSQL.
    I found problem resolves if we close session 'cause it frees all resources but i'm seeking for another option.
    Does anyone have an advice about it I appreciate it!!

    Its java application, Not surprising at all...
    cursors are close by java How sure are you? Does the Java side correctly and properly close the cursors on the Oracle side? 20,000 opened cursors should mean something along the lines of 20,000 Oracle sessions. Is this the case? The norm is a single open cursor at a time per session.
    Thus it very likely means you have cursor leakage. The cursors objects in Java are closed/freed, but this is not correctly calling Oracle and telling the Oracle session that it too can close the cursor.
    Increasing the number of opened cursors will only move the brick wall a few metres, allowing you to run faster into it.
    Remember that Oracle owns the cursor. It allocates resources for that cursor. It delivers a cursor pointer (aka ref cursor) to the client to use. The client cannot free that cursor - it must request the Oracle session to do so. All the client can do it release its resources for that cursor pointer it created client side.
    I have seen numerous times how Java code is written that leaks cursors badly. So this is not something unusual - unfortunately. Fortunately though, it is fixable. On the Java side as it is not an Oracle problem, but rather Oracle-being-abused problem.

  • I am also having trouble with my cursor freezing after installing Mavericks. Never did it before. I called tech support at Apple and they had me restart computer and mouse together from a complete shut down. So far has seemed to work.

    I am having trouble with my cursor freezing between applications after installing Mavericks. Called Apple on my 3 year warranty and opened a case. They suggested a complete shut down of computer and turning off mouse. Then a reboot and turn on mouse. So far iit has seemed to work. Hope this continues??
    Hope it helps others.

    I think you can solve your problems by removing your AppleID email address from BOTH the Messages setting on your iPhone and the iMessages settings on your Mac.
    On iPhone:
    Settings > Messages > iMessage > Dissabled
    Settings > Messages > Send & Receive > touch the "(i)" < touch "Remove This Email"
    On Mac:
    Open "Messages" application
    Click "Messages menu > Preferences
    Click "Accounts"
    Select your AppleID account
    Under the "You can be reached for messages at" settings, uncheck your AppleID email address and your phone number
    Then uncheck the "Enable this account" setting
    And lastly, ask all of your friends with iPhones to delete all iMessage conversations (blue bubbles) in their entirety.
    To test, send a friend a new text using their phone number (not their email address) and watch the color of the bubble.  If it's green then you are using SMS.

  • In mail, I am having trouble with my cursor.  It doesn't "land" where I think I'm putting it.  It usually "lands" somewhere below where I "click" it to be.

    In Mail, I am having trouble with my cursor.  When making revisions to what I have already typed, the cursor doesn't "land" where I "click" it to be.  It seems to land somewhere below the spot I click on. It seems to have a mind of its own. 

    Cool handyandy42!
    I'm happy I could be helpful, with solving your problem!
    Also, I notice that you have marked your question as answered, but have not utilized the Helpful or Solved options. That may be intentional, but, if you are not aware of the benefits, of using that function, here is some information.
    When you mark the appropriate posts as Helpful (5 pts) 2 available, or Solved (10 pts) 1 available, you are Thanking the contributors, by awarding them points.
    In threads with multiple replies, it also alerts other readers, to which answers may have been helpful, or solved the issue.
    This info, and more, can be viewed by clicking on
    ? Help & Terms of Use, located under your login name, on all "Discussions" pages.
    Specifically What are question answers?.
    ali b

  • I am having trouble with opening PDF files

    I am having trouble with opening PDF files. When I click on the file, I end up with 40 or more folders all over my desktop, which cannot be opened.  Any idea what I should do?

    try right click on the file, and select open with preview.. thats the mac os x pdf viewer

  • Trouble with opening images from dreamweaver cs6(64bit) to photoshop cs6(64bit).

    Hi guys i need help! I have trouble with opening images from dreamweaver cs6(64bit) to photoshop cs6(64bit). I uninstalled and went to preferences/file types editors to set up ps6 as primary but I still get some error.After i click image in dreamweaver,I get this message-Unable to launch...Please be sure that application exists and that there is enough memory to run it..

    Can you Launch Photoshop normally from your desktop shortcuts?
    I usually keep DW and PS open at all times so I can switch back & forth.
    Nancy O.

  • Is anyone having trouble with the cursor jumping around since Lion was installed on your computer? Never happened until Lion.

    Is anyone having trouble with the cursor jumping around while typing since you installed Lion? Never had any problems of that sort prior to Lion. I have an older machine. I believe it is a 2008 MacBook Pro. Especially happens with Yahoo. I am baffled.

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • SELECT DISTINCT With OPEN cursor FOR

    Hello.
    I have the following procedure. All it does is open a cursor for an SQL string passed into it, and return the open cursor.
    PROCEDURE sp_execute_dynamic (hold_input_string IN CLOB,
    hold_cursor OUT hold_cursor_type) IS
    BEGIN
    OPEN hold_cursor FOR TO_CHAR(hold_input_string);
    END sp_execute_dynamic;
    It works fine except when I perform SELECT DISTINCT. I get the following error.
    SQL> declare
    2 TYPE hold_cursor_type IS REF CURSOR;
    3 hold_cursor hold_cursor_type;
    4 hold_object_name VARCHAR2(1024);
    5 hold_object_type VARCHAR2(1024);
    6 begin
    7 dynamic_sql_pkg.sp_execute_dynamic('select distinct object_name from user_objects where object_
    name in (''PLAN_TABLE'',''DBA_OBJECTS'')',hold_cursor);
    8 loop
    9 fetch hold_cursor into hold_object_name, hold_object_type;
    10 exit when hold_cursor%NOTFOUND;
    11 dbms_output.put_line('Object Name = '||hold_object_name||' Object Type = '||hold_object_type);
    12 end loop;
    13 end;
    14 /
    declare
    ERROR at line 1:
    ORA-01007: variable not in select list
    ORA-06512: at line 9
    It does the same thing with SELECT UNIQUE or SELECT with a GROUP BY. Can anyone tell me why this happens and what I could to to work around it?
    Thanks
    Chris

    see at line 7 you are selecting only one column and at line 9you are fetching into two variables
    7 dynamic_sql_pkg.sp_execute_dynamic('select distinct object_name from user_objects where object_
    name in (''PLAN_TABLE'',''DBA_OBJECTS'')',hold_cursor);
    8 loop
    9 fetch hold_cursor into hold_object_name, hold_object_type;
    HTH

  • Trouble with opening/creating Server Model Diagrams

    I created server model diagrams by drag-and-dropping specific tables from the Server Model Navigator. Is it supposed to take a LONG time
    for this step (e.g., 3 whole minutes for one table) or should it be basically "immediate"? They eventually made it, but seemed unreasonably long!
    I saved the diagrams, quit, and come back to the repository, see the diagram names, click on a diagram, verify the elements inside, everything
    looks good -- until I try to open the diagram, it (Design Editor) locks up every time!!
    Does anybody know why I'm having either one of the above problems? Is there any setting I need to configure?
    (By the way, I'm using Designer 6i with an Oracle 8.1.7 database.)
    Thanks in advance.
    Brenda

    Could be your memory. Designer takes alot to run, as you may know. Minimum should be 256mb. Close all apps and try to open
    the diagram again. I have had lots of trouble with my designer locking up!

  • Having trouble with lingering cursors.

    RHEL 5.2 Server
    Java: Sun JDK 1.6.0_16 (64-bit)
    Tomcat 6.0.20
    Oracle 10g (10.2.0.3)
    JDBC: ojdbc14.jar
    I'm having a problem with running out of cursors. I've searched for them with these queries:
    {noformat} SELECT a.sid,       b.status,       b.osuser,       b.machine,       to_char(b.logon_time, 'dd-mon-yyyy hh24:mi:ss') logon_time,       a.user_name,       a.sql_id,       a.sql_text   FROM v$session b,       v$open_cursor a WHERE a.sid = b.sid   AND a.user_name = 'APPUSERNAME' ORDER BY upper(a.sql_text),         b.status; SELECT count(a.sql_text) count,       a.sql_text   FROM v$session b,       v$open_cursor a WHERE a.sid = b.sid   AND a.user_name = 'APPUSERNAME' GROUP BY a.sql_text ORDER BY count desc,         upper(a.sql_text);{noformat}
    The thing is, whenever I track down the SQL shown by these queries in my Java app (a webapp running under Tomcat), the Statement objects are always guaranteed to be closed by a finally block. Statement.close() closes the current ResultSet object and all of the Statement objects I've looked at have only one ResultSet. I am at a loss for how it's possible for these cursors to still be open. They seem to linger even though their ResultSet's must have been closed.
    One thought I had was that it might be possible (though unlikely) that there are some transactions that are not properly doing a commit/rollback before returning the connection to the pool, and the next threads that get the connection may have their queries be considered part of that unfinished transaction until one of them does a commit/rollback, and if so, possibly still be considered as open cursors in the system until the transaction is committed/rolled back? Does that make sense? Is it a possibility?
    Any other ideas as to why closed ResultSet's could be showing up in v$open_cursor?

    OK. I managed to find an operation that when repeated can consistently drive
    up the cursors and get the ORA-01000 again.
    Checking for the open cursor count:
    {noformat}
    SELECT a.sid,
           a.value,
           b.name
      FROM v$sesstat a,
           v$statname b
    WHERE a.statistic# = b.statistic#
       AND a.statistic# = 3
       AND a.value > 0
    ORDER BY a.value DESC;
    SID                    VALUE                  NAME                                                            
    1074                   299                    opened cursors current                                          
    1073                   42                     opened cursors current                                          
    1096                   28                     opened cursors current                                          
    1083                   7                      opened cursors current                                          
    1084                   7                      opened cursors current                                          
    1097                   4                      opened cursors current                                          
    1080                   2                      opened cursors current                                          
    1093                   1                      opened cursors current{noformat} This query:
    {noformat}SELECT count(a.sql_text) count,
           a.sql_text
      FROM v$session b,
           v$open_cursor a
    WHERE a.sid = b.sid
       AND a.sid = 1074
    GROUP BY a.sql_text
    ORDER BY count desc,
             upper(a.sql_text);{noformat}shows an update statement with 246 records in v$open_cursor. However, they all have different SQL ids. The SQL in question is dynamically generated in Java, but it is using a PreparedStatement. The parameters being plugged are different every time (it's changing data in a different row each time).
    The statement.close() on this UPDATE is guaranteed to run from the finally clause; the same as all of the others I've tracked down.
    I can't tell for sure that a commit is being done after the update, though it looks like it is. The code for transactions is not as nicely encapsulated and linear as it is for specific SQL calls.

  • Trouble With Opening InDesign and now Photoshop and Illustrator

    First off I apologize if this isn't in the correct section. I couldn't find a section specific to my problem since it involves multiple aspects of Adobe products. I was having trouble with InDesign, it kept crashing. So I followed all of the advice I could find on the forums about deleting the preferences and cache information in the Library folder, and that didn't seem to make a difference. So then I thought maybe it needed an update, so I logged into Adobe Application Manager and sure enough, it did. So I clicked on "download" and it stalled there too. Then the manager became unresponsive. I couldn't cancel the update or log out or anything. So then I saw in the forum someone suggested the Adobe Creative Cloud Cleaner Tool if your manager becomes unresponsive. I ran that and then shut my computer off. When I turned it back on, InDesign started working BUT my Photoshop is completely gone from my system (I never messed with it in the first place since I wasn't having any trouble with it.) And the when I tried to click on Illustrator it said "Do you want to begin your trial?" Huh?
    I have had a subscription since 2012, why on earth would it suddenly think that I no longer should have access to these programs? If I log on to my Adobe account it shows my subscription and that it's up to date (last payment was April 5, 2015). The versions I was using were the CS versions that I had downloaded directly from Adobe and when I used to have any trouble or when I got a different computer I could just log into my account and then redownload them. They are no longer showing under my products, so I can't figure out what on earth is going on. The website has changed since the last time I downloaded them, so that partly could be me, but I thought they would at least be showing up under products. I contacted Adobe support and the first person I talked to on chat said "this is clearly a technical issue I am transferring you to someone better suited for this," but that's all he said. And I haven't heard from anyone since so I thought I'd make a topic and see if anyone else out there has had a similar problem.

    The versions I am using are the CS6 versions.*

  • Troubles with opening Finder, System Preferences, and others from dock

    I am having problems with Finder, System Preferences, applications like Word, Excel, and Firefox. When I click on their icons in the dock, the menu bar appears with the name of the application and file, edit, etc. but the application does not open a window on the screen. I just see my background pic. Some of the items in the menu bar that pop down don't work. However, apps like my mail, Safari, Itunes and others work properly.
    If anyone can help me with some suggestions, that would be great!
    tannikca

    Hello t:
    Welcome to Apple discussions.
    Do those applications open from the application folder? If they do:
    Try trashing a preference file and restarting (com.apple.dock.plist).
    If that does not help, drag the icons that do not work off the dock (poof sound). Then go to the application folder and drag the appropriate icon to the dock.
    Barry

  • Trouble with opening of itune

    I'm definitely new to mac, but I have been using itunes without problems so far. Lately though whenever I try to open it I do not get the usual window with all my playlists and everything, I only get the itunes thing in the upper left corner. So I can't see any of my music, the only way I am able to find it is through finder, and then I only get the one track
    I am looking for. How do I get that window back?
    Thanks! Caro

    Try changing the resolution of your Mac's screen (Displays system preference) to a lower resolution, then back. That may get the iTunes window to reappear..
    If not, open the Script Editor application, copy and paste in the following text (up to and including the line that says "end tell") and click the "Run" button:
    tell application "Finder"
    set {d1, d2, d3, d4} to (get bounds of window of desktop)
    end tell
    tell application "iTunes"
    set margins to {d1 + 10, d2 + 54, d3 - 10, d4 - 148}
    set bounds of window 1 to margins
    end tell
    If the iTunes window is hiding off the screen, that should restore it.
    Hope this helps.
    (thanks to Chris CA for the AppleScript)

  • Trouble with opening url on button click

    I have a project that has a button that needs to go to a url
    when i click it and it doesnt. I read the topic posted in the forum
    with the same problem...and i had already tried that....it still
    doesnt work...it work well when i preview it but when i publish
    it...it doesnt work..the url takes to a page containing a pdf
    file...the project is about 10 min long and has a size of 97MB...i
    built on a mac with a windows virtual machine...i guess that should
    not be a problem.

    Hi ksugra and welcome to our community
    The fact you built the project on a Mac running a Windows
    Virtual Machine should not factor in. From Captivate's view, it was
    running in Windows.
    What happens when you click the link? Nothing, or does a
    browser window open and attempt to display the contents but it's
    blank?
    I know you said it doesn't work when published. But where are
    you running the published file from? Your local PC or from a web
    site or a network drive?
    And lastly, you said you “read the topic posted in the
    forum with the same problem...and i had already tried that....it
    still doesnt work...”. Without a link to see which of the
    many “other topics“ you may be referring to here, it's
    impossible to know what was attempted.
    Cheers... Rick

  • Trouble with opening Mac system operator.  Strange pulsing noise.

    When I open the laptop it takes a while to reboot and the circular rainbow disc shows up for a really long time so i can't even authenticate the system. I closed and reopened the laptop many times to no avail and it started to make this loud pulsing noise. So I took the battery out. and although without the battery it made the pulsing noise I managed to authenticate it with my password and open the system.
    What could be the problem? My mac is not even a year old. i use a regular adaptor since I am in Europe and it has an American plug. Could this be a factor? What should I do?

    First thing you should do, if you haven't... Get the 3 year extended AppleCare.
    Tough to say about the noise from here, but I'd try this first...
    Get Applejack...
    http://www.versiontracker.com/dyn/moreinfo/macosx/19596
    After installing, reboot holding down CMD+s, then when the prompt shows, type in...
    applejack AUTO
    Then let it do all 5 of it's things.
    At least it'll eliminate some questions if it doesn't fix it.
    The 5 things it does are...
    Correct any Disk problems.
    Repair Permissions.
    Clear out Cache Files.
    Repair/check several plist files.
    Dump the VM files for a fresh start.

Maybe you are looking for

  • Excise duty recover account- urgent issue

    < MODERATOR:  Message locked.  Please read the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting next time. > Dear All, After doing billing and it is released into accounting then in excise

  • Label colors more dim now in 7.2.2?

    I noticed when I lay a track in the timeline now with version 7.2.2 it is much darker and more dim than in 7.2.1. See picture attached. I thought this could have been a new feature but I went into the preference pane and the preference pane label sec

  • Ludicrously long filenames in iTunes Library

    I've recently been re-encoding some of my iTunes library (all classical) as ALE files with no apparent problems until a backup started complaining about over-length filenames.  What seems to have happened is that individual titles from Gracenote have

  • Add Frame Hold lost timecode source information

    I've got a huge problem with the Add Frame Hold dunction in Premiere Pro CC 2014.2 release (Also Mac or Windows) Here is my workflow All the footages are shot with an Arri Alexa and converted in Quicktime ProRes LT 1080p25 with timecode conservation

  • Roll up failed

    Hi guys          we got a process chain failed due to  rollup process where 10 cubes are rolled up and out of 10 for all the 9 cubes rollup is done for 1 cube it says thee is no initail fill i have gone to that failed cube and did selected that and d