Close all cursor

Hi,
please, does every body know if there is a command in form builder 6i PL/sql
to close all the open cursor.
In a procedure, if there was a oracle execption, I want to close all the opened cursor if I don't want to reach the maximum open cursor limit.
Thank you.
Jiador.

What about cache setting?

Similar Messages

  • How do I open with one click all the windows that I have been minimized? When I right click on the lower bar Firefox icon, I only see the option to close all windows.

    It is used to be that I could right click on the Firefox icon on the toolbar at the bottom of the screen and I would then be given the option to open all windows. Now I only see the option to close all windows. The ability to open all windows is very useful. Have you eliminated this capability? It was a very helpful feature because I often have more than 15 windows minimized at one time. On a regular basis I like to open them all and keep only the ones that I still need. I know that it is possible to see the name of each window that is minimized by moving my cursor over the Firefox icon, but this does not provide enough information. So I have to open each window one at a time to look at it and then decide to close it or keep it - this is a frustrating, time-consuming process. Is there another way to open all the minimized windows at the same time, instead of one at a time?

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    You can retrieve the certificate and check details like who issued certificates and expiration dates of certificates.
    * Click the link at the bottom of the error page: "I Understand the Risks"
    Let Firefox retrieve the certificate: "Add Exception" -> "Get Certificate".
    * Click the "View..." button and inspect the certificate and check who is the issuer.
    You can see more Details like intermediate certificates that are used in the Details pane.

  • Can we open and close the cursor again and again

    hi all,
    with the help of cursor select statement i am writing some columns into the text file. while writing into the file in between i want to write something which belongs to others cursor. shall i close the first cursor and reopen it again..
    is its works?

    If you are using for loop the you don't need to open and close the cursor like:
    SQL> set autot off
    SQL> begin
      2     for i in (select ename, deptno, sal from emp)
      3     loop
      4             for j in (select dname from dept where deptno = i.deptno)
      5             loop
      6             dbms_output.put_line ('Ename:' || i.Ename ||'  Dept Name:'|| j.dname);
      7             end loop;
      8     end loop;
      9  end;
    10  /
    PL/SQL procedure successfully completed.
    SQL> set serveroutput on
    SQL> /
    Ename:SCOTT  Dept Name:RESEARCH
    Ename:first_0  Dept Name:SALES
    Ename:first_1  Dept Name:SALES
    Ename:first_0  Dept Name:RESEARCH
    Ename:first_1  Dept Name:SALES
    Ename:first_0  Dept Name:SALES
    Ename:first_1  Dept Name:ACCOUNTING
    Ename:first_0  Dept Name:RESEARCH
    Ename:first_1  Dept Name:ACCOUNTING
    Ename:first_0  Dept Name:SALES
    Ename:first_1  Dept Name:RESEARCH
    Ename:first_0  Dept Name:SALES
    Ename:first_1  Dept Name:RESEARCH
    Ename:first_0  Dept Name:ACCOUNTING
    PL/SQL procedure successfully completed.
    SQL> Or let us know about your requirements i.e. why you need to open/close the cursor again and again.

  • How to close open cursors in a forms app

    All,
    I'm not a forms developer. I'm a database administrator so I'm asking this question from that perspective. I know nothing about forms development.
    We have several forms applications that appear to hold many SELECT cursors open when they run. I've asked my forms developers about this and they are giving me the idea that they don't have much control over this. I have no idea myself so I'm asking here.
    When one issues selects from a form, do those selects remain as open cursors while the form runs? Is it possible to close those select cursors from within the form so that the application does not keep so many cursors open simultaneously?
    I am typically seeing a forms application with 70-100 open cursors. And we have hundreds of end users each running the forms application which is causing a lot of problems with the sheer number of open cursors.
    I've already bumped the database OPEN_CURSORS parameter but it's my feeling that developers should be doing a better job of closing cursors from within the form.
    Can anyone give me some guidance here or point me to some documents that describe how to reduce the number of open cursors to the database from a forms app?
    Thanks,

    There are several ways Forms use cursors. In the standard default method, users enter a query where condition and then execute the query. This process opens a cursor on the server, and the form fetches a few (20 or so) rows and displays on the screen (in a base-table "block"). If the user scrolls down, more rows are fetched from the cursor. This can go on and on if the user keeps scrolling down through the data. I am not sure when the cursor gets closed -- there is no Forms command to close this one. Only closing the form, or else re-executing the query process would close such a cursor.
    In the PL/SQL code, where the developer has control, a cursor can be opened, rows fetched, and then closed. This can be done either with Open-Fetch-Close or in a For... Loop. The developer can explicitly close this cursor, or PL/SQL theoretically closes the cursor when the block of code is exited.
    There is of course the SQL Select into, but that only works in PL/SQL for single-row selects. I doubt this is a major problem.
    And finally, there are the record groups, where Forms runs the select to draw all the data into an array in the form. These should be closed automatically, I believe.
    Now... if you can determine which tables the cursors are remaining open, maybe your developers can zero in on the forms, and maybe clean up some things. However, I am doubtful much can be done. It seems to me that if the open cursors are causing some database sluggishness, then maybe adding more memory on the server is the best option.

  • Where should I close my cursor when an Exception arise ??

    Hi all,
    My program has many procedures and functions. Among them I have a main procedure where everything starts, and everything should ends.
    My main procedure has also an exepction part with a when others clause to log any unexpected exception.
    I have another procedure (let's call it P1), that is called from my main procedure, where i use an explicit cursor in a bulk collect. While i process all my cursor data, i call many others procedures and functions, and they might call many others also.
    In P1 i also have an Exception part, where i have a When others clause (in case an unexpected execption arise in any other procedure or function) where I close my cursor and raise the exception to my main procedure.
    My problem is that when an exception is raised to my main program (from P1), i lose the true error line number of the exception. I am using this function to get my error trace: dbms_utility.format_error_backtrace.
    I did a test, and I commented the exception part in P1, so that all exceptions goes straighly to my main procedure, and the result it was that I could see the true error line again.
    So my problem was the raise statement in the when others inside of P1.
    The thing is that I need to close my cursor in case of any exception, but if I do it in the when others, I will lose the true error line number of the expection.
    By the way I can’t declare my cursor variable as global, so that I can remove the exception part in P1, and close my cursor in my main procedure.
    I will really apreciate your help.
    (I am using Oracle Databas 11g).

    919448 wrote:
    The cursor i am using is a ref cursor, so i have to close it explicitly as per you said.
    The thing is that i don't want to lose my error line number when i raise the exception :(
    Too bad if i can't get both things to be done.
    I was thinking of creating my cursor variable in the main procedure, and send it as an input parameter to P1, so that i can close the cursor from the main, in case a exceptionExactly why does the error backtrace not work? Have you tried recording it earlier rather than later? E.g.
    SQL> create or replace type TStackStruct is object(
      2          time timestamp,                      
      3          sqlCode integer,                     
      4          stack   varchar2(32767)              
      5  );                                           
      6  /                                            
    Type created.
    SQL> create or replace type TStackArray is table of TStackStruct;
      2  /                                                          
    Type created.
    SQL> create or replace package SessionData is
      2          stackArray      TStackArray;   
      3          procedure AddException( errCode integer );
      4          function Stack return TStackArray;       
      5  end;                                             
      6  /                                                
    Package created.
    SQL> create or replace package body SessionData as
      2                                              
      3          procedure AddException( errCode integer )  is
      4          begin                                       
      5                  if stackArray is null then          
      6                          stackArray := new TStackArray();
      7                  end if;                                
      8                                                         
      9                  stackArray.Extend(1);                  
    10                  stackArray( stackArray.Count ) := new TStackStruct( SysTimestamp, errCode, dbms_utility.format_error_backtrace );
    11          end;                                                                                                                    
    12                                                                                                                                  
    13          function Stack return TStackArray is                                                                                    
    14          begin                                                                                                                   
    15                  return( stackArray );                                                                                           
    16          end;                                                                                                                    
    17                                                                                                                                  
    18  end;                                                                                                                            
    19  /                                                                                                                               
    Package body created.
    SQL> create or replace procedure ProcA is
      2  begin
      3          raise NO_DATA_FOUND;    --// ProcA line 3 : error source
      4  exception when OTHERS then
      5          SessionData.AddException( SQLCODE );
      6          raise;
      7  end;
      8  /
    Procedure created.
    SQL> create or replace procedure ProcB is
      2  begin
      3          ProcA;
      4  exception when OTHERS then
      5          SessionData.AddException( SQLCODE );
      6          raise;
      7  end;
      8  /
    Procedure created.
    SQL>
    SQL> begin
      2          ProcB;
      3  exception when OTHERS then
      4          SessionData.AddException( SQLCODE );
      5          raise;
      6  end;
      7  /
    begin
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at line 5
    SQL>
    SQL> select * from TABLE(SessionData.Stack);
    TIME                              SQLCODE STACK
    08/MAR/12 18:38:09.425072             100 ORA-06512: at "BILLY.PROCA", line 3
    08/MAR/12 18:38:09.425384             100 ORA-06512: at "BILLY.PROCA", line 6
                                              ORA-06512: at "BILLY.PROCB", line 3
    08/MAR/12 18:38:09.425463             100 ORA-06512: at "BILLY.PROCB", line 6
                                              ORA-06512: at line 2

  • Close all folders in Mail?  Color Label folders?  Find folder?  And More!

    Hi all.
    I have a LOT of mail. They're all very organized, though. Heaps of Mailboxes (Folders) and Sub-folders.
    I also have heaps of rules dutifully sending incoming mail to their appropriate mailboxes.
    However...
    It has reached a point where one of of the major bottlenecks in my daily workflow is sorting through all these mailboxes.
    There are 5 primary mailboxes with perhaps 100-ish subfolders or sub-subfolders. Maybe more.
    When they are all open, or a lot of them are open, it is difficult to find the a specific folder when I need it. It would help if I could close all open folder with a shortcut.
    Is this possible?
    It would also help if I could visually distinguish each level. Can I color label the mailboxes(not the messages themselves)?
    Another help would be if I could run a search for a folder Mailbox name. Is this possible?
    Lastly when I create a rule I would love it if there was an option to 'Create new Mailbox' in the rule dialog box rather than having to create the mailbox first. Am I just missing this? See link for illustration:
    http://img.skitch.com/20080820-eaqmy89emw6xm5pcj86iuqu992.jpg

    I just had a look and you need to create the mailbox PRIOR to asking the rules to move it into that.
    Now, automator lets you create a new workflow, but not sure as to how to set that one up (might be possible; however, my mathematical brain tells what you want to achieve is flawed:
    1) IF new mail equals "tangerine", create new mailbox tangerine, then move message to mailbox "tangerine. (FINE so far!)
    2) the second "tangerine" message arrives, and the workflow should FAIL (because it cannot create a "new" mailbox "tangerine", as there is ALREADY a mailbox named "tangerine")
    3) if automator cannot execute "If" and "and" and the "sort by" all together, then distinguish (a "tangerine" message might actually need to go to "pear" but refers to "pears and tangerines", so it ends up in the wrong mailbox), you may have to start and restart mail, until all stages of the script have been executed.
    You see the problems?
    Anyhow, here is a link to some automator info:
    http://automatorworld.com/archives/automator-for-os-x-105-leopard-revealed/
    Good luck

  • Close all the open Application in one-shot ?

    Is there are any way to close all the open application in one shot in ipad rather than double-click the home button and close the apps one by one.

    In principle, I agree with you...
    But it appears that reality is not perfect. I observed on iPhone 3 that memory could be pretty clogged from time to time and I needed to restart it to free up memory and get it back to original speed again. It all depends on which apps you are running. Some appears to eat more memory than others. On iPhone 4, it appears to be less of a problem and I have seen that later iOS releases also makes this less of a problem. I only have a first generation iPad, but I have seen that later iOS releases have improved memory handling significantly there as well. However, it appears to be a good idea to reboot the device after a week or two just to flush the memory. I can't prove this theory scientifically, but I do see a difference in memory usage when doing this.
    The reason I actually tried "Process Killer" was a tip that it addressed the problems many of us encountered with the first iOS 5 release: frequent crashes and slow performance. After the pretty quickly released iOS 5 update, that wes pretty much solved, but occasionally killing processes actually helped me at that point, It made both my devices more stable.
    The original question was about battery performance, there I don't think that the amount of processes running is the key. A much better way of getting more out of your battery is shutting off location services in apps where they are not really needed. I would guess that turning off push notofications for as many apps as possible helps as well.
    Also, turn off the Personal Hotspot on iPhone when it's not needed!

  • One link to open/close all _accordion_ panels

    I am aware that collapsible panels have group feature and you can open and close all panels by wrapping the individual panels within a group.
    Is there a way to open all panels in an accordion widget?

    Open all, no.
    Close all, yes (set panel to -1, with the useFixedHeights:false option)

  • Is it possible to close all apps in one one click?

    Is there a simpler way of closing all apps on your iphone than doube-clicking the home button and then closing each one individually? I don't see a "close all apps" option anywhere.  Sometimes I find myself with 20 apps open all at once and it's tedious to close them all one at a time.

    Another concern is power consumption; I have been told by friends with "modified" iPhones that they still use more power if not closed out. They claim that their battery lasts longer when their alotted memory scope is smaller. I just need some fuel for dispute since I feel that the memory has the same power consumption whether it is 'holding' useable data or not.
    Thanks

  • Apps open and close all of the sudden

    Ok, my iphone was working fine until 10 minutes ago. I had no issues with it and all of the sudden, I tried opening up an app and all it will do is just open and close all of the sudden. And it's with ALL apps! I tried doing everything there is to do to solve the issue and nothing. I even followed someone's post about downloading a free app and nothing. I have tried restoring it, doing the sleep/wake and home button till apple logo comes up, and turning it off normally, and even re-syncing to computer and NOTHING! What should I do?

    Download another free App - doesn't matter which one.
    Sync and then hold down the Home and top button until the phone switches of completely.
    Restart the phone and you should be fine - you did nothing wrong but its a sign of a bad sync.
    You're not the first so enjoy !

  • Globally open and close all accordion panels

    Is there a way to globally open and close all accordion
    panels? For example, it would be nice to have an "Expand all" and
    "Collapse all" link at the top of the page, before the accordion,
    that has this functionality.

    Hi FM_n_DC,
    Accordions can only ever have a single panel open. If you
    want individual control over which panels are open you probably
    want to use a CollapsiblePanelGroup. This sample shows how to open
    all and close all of the panels of the CollapsiblePanelGroup:
    http://labs.adobe.com/technologies/spry/samples/collapsiblepanel/CollapsiblePanelGroupSamp le.html
    --== Kin ==--

  • How can I close all open subVI front panels, without closing my top level VI front panel when all VIs are built into executables?

    I'm using the code shown in the sample VI discussed here: http://digital.ni.com/public.nsf/allkb/353A696A3F393D9B86256E8B007A2912
    to close all open VIs except my top level VI.  My top level VI is actually a separate executable and the sub-VIs are their own executables.  All reside under the same project.  It works very well if I'm running in LabView but will not work when I build them.  I added all the sub-VIs to the Always Include box in my top level VIs properties which did nothing.  I also tried adding them to the Startup VIs box.  This allowed me to close them all programmatically from the top level VI but it also open all the VIs at once (which was expected and not desired).  I think the problem is the executables are not able to see outside their own memory space so the top-level VI never finds any other open front panels to close.  Is this correct?  Is there another way to go about doing this? 
    Thanks!

    Where do I begin…..
    I’m using a “server” to control 4 “client” PCs.  My server opens references to 4 VIs on each client then executes them sequentially.  So on a normal day, the server will run everything itself and I will have no contact with the clients.  But on a several occasions, I’ve needed the ability to walk up to one of the clients and run just one of the 4 VIs. 
    We are updating from LabView 6.1 to 8.5 and we want to run executables rather than VIs for various reasons.  I have a new VI running on the client PCs who’s only function is to initialize the shared variables and open/close the VIs.  I initially thought of making the remaining 4 VIs sub-VIs but I will loose the ability to run them individually.  I think I would also have to rewrite the VI running on the server since the 4 references it originally opened do not exist.  I don’t think you can open a reference to a sub-VI on another PC.  Can you???
     As you can see, this is a huge mess.  I’m still pretty new with LabView so any help you can provide would be great. 

  • I mean that i phone take time to open apps ,contact ,etc why? i close all apps and the problem still?

    i mean that i phone take time to open apps ,contact ,etc why? i close all apps and the problem still?

    Try a reset by pressing and holding the home and power buttons for 15-20 seconds until the white Apple logo appears.

  • How do I stop the auto save feature in Lion? Any time I open any program old files automatically open up it is such a time waster having to close all those files

    It's driving me crazy I click on a jpg and preview open a bunch of old files first and Photoshop and quick times will do the same,
    what ever I opened the last time is automatically reopened, why? and how do I stop it?

    you can disable it in system prefs general nut it affcet all the apps with the feature,also you can close all the windows before quit.

  • Closing one of the opening windows tries to close all tabs on another window

    I opened two windows, one with multiple tabs and another is no tab, when closing a window with no tab, a prompt window appears and ask if I want to close all tabs on another window. Prompt window appeared twice. Is this a bug?

    I also had this issue and disabling the Awesome Screenshot add-on fixed it for me too. Its not doing it anymore after disabling that plugin. Thanks for the tip!!!

Maybe you are looking for

  • Anyone know how to determine Macbook Air screen tech? Causing migraines

    Hi There, Last year, I expereinced a lot of mild migraines which I've traced back to a new Macbook Air. At first I had no idea of the cause (diet, stress etc) but have noticed that my eyes feel uncomfortable looking at the screen of my Macbook Air (I

  • Problem submitting duplicate fileds via html

    I have 2 separate pdf files that have acrofields - some of the field names are the same, like Name and Address. Each form has a submit data as html button on it. I combine the two pdf files into one on a web server, then using IE the user enters data

  • What to fill in "temp table scope" for global temporary tables?

    Hi, I'm using Data Modeler 4.0.1.836 and whatever I put in the "temp table scope" box for a global temporary table doesn't seem to affect the DDL script regarding the ON COMMIT PRESERVE/DELETE ROWS option. The script always shows ON COMMIT PRESERVE R

  • Permissions denied (777) on locahost Webserver - unable to upload photos

    iBOOK - PHP - LOCALHOST WEBSERVER - MAC OSX 10.4 Hi there - I've searched through the forums and haven't found the answer and so would like any help possible. I'm writing a website and at the moment it is in test-mode. I've created a file-field to up

  • Attachment to a running virtual machine failed

    I get the error message "Attachment to a running virtual machine failed" when trying to instantiate my active x bundled java bean. The steps I took to create it are: javac Person.java jar -cvfm PersonBean.jar person_manifest Person.class set JRE=D:\A