When cursor is not closed what error will occur.

when many cursors are in open and no cursor is closed means what error will occur..

ORA-01000
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1041031921901
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:685336504294
etc...

Similar Messages

  • Cursors are not closed when using Ref Cursor Query in a report  ORA-01000

    Dear Experts
    Oracel database 11g,
    developer suite 10.1.2.0.2,
    application server 10.1.2.0.2,
    Windows xp platform
    For a long time, I'm hitting ORA-01000
    I have a 2 group report (master and detail) using Ref Cusor query, when this report is run, I found that it opens several cursors (should be only one cursor) for the detail query although it should not, I found that the number of these cursors is equal to the number of master records.
    Moreover, after the report is finished, these cursors are not closed, and they are increasing cumulatively each time I run the report, and finally the maximum number of open cursors is exceeded, and thus I get ORA-01000.
    I increased the open cursors parameter for the database to an unbeleivable value 30000, but of course it will be exceeded during the session because the cursors are increasing cumulatively.
    I Found that this problem is solved when using only one master Ref Cursor Query and create a breake group, the problem is solved also if we use SQL Query instead of Ref Query for the master and detail queries, but for some considerations, I should not use neither breake group nor SQL Query, I have to use REF Cursor queries.
    Is this an oracle bug , and how can I overcome ?
    Thanks
    Edited by: Mostafa Abolaynain on May 6, 2012 9:58 AM

    Thank you Inol for your answer, However
    Ref Cursor give me felxibility to control the query, for example see the following query :
    function QR_1RefCurDS return DEF_CURSORS.JOURHEAD_REFCUR is
    temp_JOURHEAD DEF_CURSORS.JOURHEAD_refcur;
              v_from_date DATE;
              v_to_date DATE;
              V_SERIAL_TYPE number;
    begin
    SELECT SERIAL_TYPE INTO V_SERIAL_TYPE
    FROM ACC_VOUCHER_TYPES
    where voucher_type='J'
    and IDENT_NO=:IDENT
    AND COMP_NO=TO_NUMBER(:COMPANY_NO);
         IF :no_date=1 then
                   IF V_SERIAL_TYPE =1 THEN     
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
                   AND IDENT=:IDENT
              AND ((TO_NUMBER(VOCH_NO)=:FROM_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NULL)
              OR (TO_NUMBER(VOCH_NO) BETWEEN :FROM_NO AND :TO_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NOT NULL )
              OR (TO_NUMBER(VOCH_NO)<=:TO_NO and :FROM_NO IS NULL AND :TO_NO IS NOT NULL )
              OR (:FROM_NO IS NULL AND :TO_NO IS NULL ))
                   ORDER BY TO_NUMBER(VOCH_NO);
                   ELSE
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
                   AND IDENT=:IDENT               
              AND ((VOCH_NO=:FROM_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NULL)
              OR (VOCH_NO BETWEEN :FROM_NO AND :TO_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NOT NULL )
              OR (VOCH_NO<=:TO_NO and :FROM_NO IS NULL AND :TO_NO IS NOT NULL )
              OR (:FROM_NO IS NULL AND :TO_NO IS NULL ))     
                   ORDER BY VOCH_NO;          
                   END IF;
         ELSE
                   v_from_date:=to_DATE(:from_date);
                   v_to_date:=to_DATE(:to_date);                         
              IF V_SERIAL_TYPE =1 THEN
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
              AND IDENT=:IDENT                         
                   AND ((voch_date between v_from_date and v_to_date and :from_date is not null and :to_date is not null)
                   OR (voch_date <= v_to_date and :from_date is null and :to_date is not null)
                   OR (voch_date = v_from_date and :from_date is not null and :to_date is null)
                   OR (:from_date is null and :to_date is null ))     
                   ORDER BY VOCH_DATE,TO_NUMBER(VOCH_NO);     
              ELSE
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
                   AND IDENT=:IDENT                         
              AND ((voch_date between v_from_date and v_to_date and :from_date is not null and :to_date is not null)
                   OR (voch_date <= v_to_date and :from_date is null and :to_date is not null)
                   OR (voch_date = v_from_date and :from_date is not null and :to_date is null)
                   OR (:from_date is null and :to_date is null ))     
                   ORDER BY VOCH_DATE,VOCH_NO;          
              END IF;
         END IF;               
         return temp_JOURHEAD;
    end;

  • When I am NOT private browsing Firefox will not allow me to delete or change the website address in the location bar. My only remedy is to open a new window and search in google then click the link to that site through google. How can I resolve this?

    Question
    When I am NOT private browsing Firefox will not allow me to delete or change the website address in the location bar. My only remedy is to open a new window and search in google then click the link to that site through google. When I swap to private browsing firefox allows me to anter the website address directly into the location bar - but this is a slow [prcess to swap back and forth - also by dint of using private browsing I loose my website information.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • "your system has not been modified error" will not let me install itunes on my computer an its for fraustrating need help!

    "your system has not been modified error" will not let me install itunes on my computer(windows 7 64 bit) and it is so faustrating i need help please and thanks!

    I had the same problem.I tried every solutions on the net but nothing worked.Luckily on that very day my free avast antivirus date expired(I dont currently have a paid antivirus) and I uninstalled it.Then I tried to install itunes and did it on the first go.But I am using a windows 7 32 bit so it might not work for you as you are on the 64 bit.Actually the antivrus was the culprit.Hope it helps.Thanks

  • Photoshop CS5 broke down twice. I deinstalled and than reinstalled. Now CS5 works but I can't install the updates. "An error occurred, try it again later." But it's not said what error occurred.

    Photoshop CS5 broke down twice. I deinstalled and than reinstalled. Now CS5 works but I can't install the updates. "An error occurred, try it again later." But it's not said what error occurred.
    Thank you for your help.
    Walter

    Thank you very much for your help. Now, I was able to install the update (Adobe Photoshop 12.0.4 update for Adobe Photoshop CS5, Mac). But I couldn’t mark the answer as correct. I didn’t find the „correct“ button.   
    Kind regards
    Walter
    Am 25.12.2014 um 16:06 schrieb station_two:
    Photoshop CS5 broke down twice. I deinstalled and than reinstalled. Now CS5 works but I can't install the updates. "An error occurred, try it again later." But it's not said what error occurred.
    created by station_two in Photoshop General Discussion - View the full discussion
    OK, here's the Windows version of the update:
    Adobe - Photoshop : For Windows : Adobe Photoshop 12.0.4 update for Adobe Photoshop CS5
    and for Mac:
    Adobe - Photoshop : For Macintosh : Adobe Photoshop 12.0.4 update for Adobe Photoshop CS5
    Of course, ignore the idiotic recommendation that appears there to try to use Help > Updates.  We already know that doesn't work.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7043416#7043416 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7043416#7043416
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Photoshop General Discussion by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • When pressing soft key continuously error will occured

    In midp1.0 when pressing soft key continuously during the time of program execution in doesn't
    affect thread value.But the same program in midp 2.0 thread value will affected and error will
    occured.is there any difference between midp 1.0 and midp 2.0 when pressing key press?

    Please use CLDC and MIDP forum for midp related issues.
    http://forum.java.sun.com/forum.jspa?forumID=76

  • TS3694 I forgot my passcode, then I decided to restore through Itune but it says iphone 3 could not be restored error 1015 occurred. what should I do?

    I forgot my passcode, then I decided to restore through Itune but it says iphone 3 could not be restored error 1015 occurred. what should I do?  

    Was the computer used to jailbreak a different iOS device? Are you trying to forcibly install a version of iOS other than the current version for your device? (4.2.1 for the 3G, 6.0.1 for the 4 and 4S, 6.0.2 for the 5).
    Those are the only other reasons you would get that error other than an extremely rare hardware failure.

  • Phone thinks it's "in dock" when it is not. What is the fix?

    Phone thinks it's "In Dock" when it is not.  What is the fix.

    I still think it's a connector problem but you can try the standard troubleshooting...
    1. Restart by pressing the sleep/lock button until you see the slider.  Slide to power off.  Restart by pressing the sleep/lock button until you see the Apple logo.
    2. Reset by pressing the home and sleep buttons until you see the Apple logo. Takes about 5-15 secs of button holding and you won't lose any data or settings.
    3. Remove apps from Recently Used (multi-tasking) list...
    - From any Home Screen, double tap the home button to bring up the Recents List
    - Swipe up on the app preview card to remove it from the list
    - Press the home button when done.
    4. Restore with your backup.
    5. Restore as new, i.e. without your backup. See how it runs with nothing synced to it.
    6. If still a problem, it's likely a hardware issue.

  • When ios 7 comes out what update will my ipod touch 4th gen get??

    when ios 7 comes out what update will my ipod touch 4th gen get??

    It appears that the iPod 4 gen is below the cutoff for iOS 7
    See http://ipod.about.com/od/iphonesoftwareterms/f/What-Devices-Are-Ios-7-Compatible .htm where it say support for iOS 7 only goes down to iPod 5 gen.
    Allan

  • If the LDAP "icsCalendar" value contains a space, an error will occur when creating events or tasks

    If a user's LDAP
    "icsCalendar" value
    contains a whitespace, the user will still be able to log in to the iPlanet
    Calendar Server(iCS). However, the user will receive a bad request
    error when creating events or tasks. The event or task is created,
    but the error will occur every time the user tries to save one.
    The "icsCalendar"
    preference cannot have a space in it. To avoid the above problem,
    the administrator must fix this value in LDAP.

    Hi Mahendra,
    check the following links:
    http://www.sapgenie.com/saptech/lsmw.htm
    http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
    May be u can find some help.
    Hope this helps you.
    Regards,
    Anuradha.B

  • When printing I get notation:"An error has occurred in the script on this page"

    when printing I get notation:"An error has occurred in the script on this page", error 1791-Char 1- error invalid argument-Code 01-Can print Word, but not Web pages. Have Windows 7, Home and Internet Explore 10. Please help

    Sorry that you are having a problem with the script error. 
    Try to clear your CACHE and COOKIES on your internet. 
    Are you able to print from another program, such as Firefox, Google chrome, etc?
    Let me know if it prints. 
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • HT201412 My iphone is requesting that i log into itunes. When I do, it says "an error has occurred".

    My iphone is requesting that I log into Itunes. When I do, it says, "an error has occurred". Am I doing something wrong or do I need to take it for service?

    Hi jan2710,
    If you are having an issue with completing a restore for your iPhone 5, I would suggest that you troubleshoot using the steps in this article - 
    Resolve iOS update and restore errors in iTunes - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Entering values in TableMaintenance,cursor does not stop at error record ?

    Hello,
    Very Good Morning!
    When creating new entries in Table Maintenance, Cursor does not stop at the error record. It display's an error where the error is. But, cursor will skip to the first field of the record.
    Ex : Sales Org, Mater, Sales Obj %, Frist arr date.
    Suppose these are the fields available and I want to create a new entry.
    When i enter incorrect value in Sales Obj %, it is displaying error message saying that i need to enter correct value. But the Cursor is skipping away to the first field Sales Org.
    PLease help what to do...I tried using set cursor. But, I am not sure how to excatly use it and it was not working. 
    Any help will be appreciated.....
    Thanks & Regards,
    Krishna Chaitanya

    Hello,
    This question is not answered.
    I want to close this question.

  • Open cursors are NOT closed only by closing the ResultSet or Statement

    I've realised that the open cursors are only closed by closing the connection.
    In my example code I have for-loop with a vector of table-names. For every table-name I start a query to retrieve metainformation (row-size, column-names). Although I close the ResultSet (which automatically closes the PreparedStatement/Statement) I reached after the 150th loop a max-cursor-exception (ora-01000) ?!
    It seems that there is only the workaround to close and re-open the connection at the end of the for-loop. Which is performance-side pretty bad :-(.
    Is there really no other solution?
    Besides: does anyone know WHY the statement.close() also closes the ResultSet?? I think this is a bad design (hence to tight dependency between both classes). What if the garbage collector closes the statement (and hence to the JDOC the statement.close()-method also closes the ResultSet)? For example if a method uses a local Statement and returns a ResultSet (and the Statement-garbage is collected), then the ResultSet would cause an exception?!
    Thanks for the help in advance
    Tai

    I've realised that the open cursors are only closed by
    closing the connection.Or by closing the Statement!
    In my example code I have for-loop with a vector of
    table-names. For every table-name I start a query to
    retrieve metainformation (row-size, column-names).
    Although I close the ResultSet (which automatically
    closes the PreparedStatement/Statement) I reached
    after the 150th loop a max-cursor-exception
    (ora-01000) ?!Closing the ResutSet does not automatically close the PreparedStatement/Statement.
    >
    It seems that there is only the workaround to close
    and re-open the connection at the end of the for-loop.
    Which is performance-side pretty bad :-(.
    Is there really no other solution?
    Just explicitly close the PreparedStatement/Statement!
    Besides: does anyone know WHY the statement.close()
    also closes the ResultSet?? You need to think of a resultset as a live connection to the database.
    Consider SELECT * FROM ABIGTABLE, it would be inefficient to populate the Resultset with all of the rows (could even eat up all memory) so the first n rows are returned ( n = Statement.getFetchSize() ) and the next n rows are returned as needed.
    I think this is a bad
    design (hence to tight dependency between both
    classes). What if the garbage collector closes the
    statement (and hence to the JDOC the
    statement.close()-method also closes the ResultSet)?
    For example if a method uses a local Statement and
    returns a ResultSet (and the Statement-garbage is
    collected), then the ResultSet would cause an
    exception?!You should use a statment and resultset, read all your data into a collection or a CachedRowSet (http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html) then close the statment as soon as possible. Never return a resultset form your data tier: that is tight coupling between the tiers of your application!

  • SAP Production order not closed, what are the negative effects

    Hi there,
    We are not closing the production orders. What would be the negative effects ? The orders are delivered, costed and Technically complete and all the teams are happy and no one is complaining. I also know we would need to close the production orders. But what is the effect of not closing the orders. Any thoughts ?
    thanks

    Hello
    Similar qustions have been already asked in the past. Please read the threads below to understand exactly what happens when closing a production order:
    closing production orders
    completion of a production order
    BR
    Caetano

Maybe you are looking for