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.

Similar Messages

  • How to close Open Outbound Deliveries

    Hi All,
    please could u tell me how to close Open Outbound Deliveries?
    Regards,
    Ramesh

    Ramesh,
    The delivery will be open until the PGI is completed and fully invoiced. If you don't want to inoice, then PGI needs to be reversed and delete the delivery.
    If all the subsequent documents are created for full qunaity and still the delivery is open, then you will need to set the status as completed in the debug level. Consult your ABAP expert.
    Prase

  • How to use open cursor and iner join in one statement

    Hello All,
    Could any one post the code for the below question?
    How to use open cursor and iner join in one statement
    Regards,
    Lisa

    OPEN CURSOR c FOR SELECT     carrid connid fldate bookid smoker
                        FROM     sbook innerjoin shook
                        ORDER BY carrid connid fldate smoker bookid.
    Pls reward if helpful.

  • How to close opened URL

    Hello, I have a question on how to close opened browser window/tab.
    I having the following rightnow
    NSURL* url = [ [NSURL alloc] initWithString: urlBase ];
    [[NSWorkspace sharedWorkspace] openURL: url];
    I looked around and openURL returns a bool. How can I do something like [browserWindow close]?
    I thought about using js in the opened URL page to close the window/tab, but closing from where I launched the URL would work better for me.
    thanks

    837703 wrote:
    Hi I'm a little green with the URL // Runtime class and I don't know how to sure up this method.
    Essentially I want to make close an opened url page with a timer actionlistener.
    You should check out:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    But anyhow, your statement
    Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url);Actually returns a Process Object.
    So you should change it to something like:
    Process  myProcess = Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url);Then if you want to kill the process you can just do:
    myProcess.destroy();hope that helps.
    take a look at:
    http://download.oracle.com/javase/1.4.2/docs/api/java/lang/Process.html
    for more Info on processes

  • How to close open windows with ios7, How to close open windows with ios7

    How to close open windows with ios7, How to close open windows with ios7?

    Guess they thought we needed more exercise so now we have to swip them to close.....miss iOS6. My eyes are blurry now after looking at my phone, and my arms are tired from swipping lol

  • How to close OPEN RELAY on Exchange 2010 EDGE server

    How to close open relay on it?
    Server passed OPEN relay test and we would like to avoid spammers attackin us.with best regards
    bostjanc

    Get-ReceiveConnector | Get-ADPermission | where {($_.ExtendedRights -like "*SMTP-Accept-Any-Recipient*")} | where {$_.User -like '*anonymous*'} | ft identity,user,extendedrights
    Identity                                User                                   
    ExtendedRights
    EXCHANGE-EDGE\Default internal receive co... NT AUTHORITY\ANONYMOUS LOGON            {ms-Exch-SMTP-Accept-Any-Recipient}
    Recreated RECIEVE CONNECTOR on EDGE solved it.
    bostjanc

  • Using Office 365 - how to close sub folders in iPhone-mail app.

    using Office 365 - how to close sub folders in iPhone-mail app.

    Isn't HotMail still POP3 mail only (i.e. no IMAP support)?  If that is still the case, then your device is working correctly.  The folders you made are a feature of the web tool for hotmail, and are not part of the POP3 supported email protocol.  Only IMAP mail supports on-server mail subfolders, and those can be accessed from the iPhone mail client.  But POP3 is limited to the inbox solely, as that is literally the only folder that sits on the mail server (your others are on Microsofts web server and supported via the web mail tool).

  • How can others open more than one form? [Was: Sandra]

    How do you use Forms Central? I am the only account that can open more than one form. I have added all the people in contacts. When they login, they have the upgrade option for more than one form. We have an order number and end user id. Thanks for the help.

    Hi,
    It sounds like you have a paid account and the other users have free accounts.
    You will have to share the form with the other users, please see this link for more detailed on how to share a form with others:
    http://forums.adobe.com/docs/DOC-3351
    All the free account users should be able to open all the forms that you have shared with them. Free users can only create one form on their own.
    Hope this helps,
    Thanks
    Lucia

  • How to close open subvi's in the beginning of running the main vi.

    Hello,
    I've got a pretty large application that is dependant on several subvi's.
    I'm searching for a way to close the subvi's when I start running my main application.
    All these subvi's need to be closed during the initialisation phase of my main application. (before it is doing its main task.)
    I know it is possible to ask for the VI's in memory for my LabVIEW application, but I don't know how to close a subvi programmatically. (unload it from memory)
    What I want to do is check for a list of open subvi's in the beginning of my main application. (only a limited set of subvi's)
    If one of the subvi's is indeed open I want to close it (unload it) and then start doing my thing from within the main application.
    Note: The subvi's need to be closed so that I can load them dynamically later in the program. If one of the subvi's is open and I start running my main application I get an incorrect behaviour.
    Thx for the help!
    Message Edited by noxus on 11-14-2006 08:07 AM

    Noxus,
    I programmed a small example.
    If you have further questions do not hesitate to come back...
    BR,
    ThSa
    (Additonally I added the screenshot in term of that you do not have LV 8.20)
    http://www.newgistics.com
    Attachments:
    VI_Server_LV820.zip ‏12 KB

  • How to close open programs

    When you double click the home button, how do close the open application?

    Double tap the Home button, then swipe upwards on the App Preview (not the App Icon)

  • How to close inactive cursors

    We have a new application on the database and its using lots of cursor. Is there a way to find and close inactive cursors?
    version 10.2.0.4
    windows server 2003 sr2
    thanks

    To get the inactive sessions with more than 10 open cursors you'd issue
    select sid, serial#
      from v$session
    where sid in (select sid
                     from v$open_cursor
                   group by sid
                   having count (*) > 10)
    and status = 'INACTIVE';

  • How to add "open" file button in form 4.5

    Hi all,
    I want to add a button "open file" on the form (like any
    application's "OPEN FILE" button, user can select the driver, dir
    of the file located). Then the path of the file will stored in a
    text box and then a procedure will open that file and read all
    data of that file and it will insert the data into table.
    I know it can be done easily by asking the user to type in the
    path in the text box directly, but i want to add a "OPEN FILE"
    button to do this.
    Should U have any comment, pls tell me and help me!!
    Thank for your help!!
    Regards,
    A beginer of Oralce developer/2000
    null

    HK, Cheung (guest) wrote:
    : Hi all,
    : I want to add a button "open file" on the form (like any
    : application's "OPEN FILE" button, user can select the driver,
    dir
    : of the file located). Then the path of the file will stored in
    a
    : text box and then a procedure will open that file and read all
    : data of that file and it will insert the data into table.
    : I know it can be done easily by asking the user to type in
    the
    : path in the text box directly, but i want to add a "OPEN FILE"
    : button to do this.
    : Should U have any comment, pls tell me and help me!!
    : Thank for your help!!
    : Regards,
    : A beginer of Oralce developer/2000
    Hi,
    I have done similar things with cmdlg.vbx (Common Dialog 16 bit
    version) in Windows 3.11 as follows:
    1. Create a VBX item
    2. Open up Properties and set location of your cmdlg.vbx
    3. Write a simple pl/sql such as FileOpen with a series of
    Set_Property such as follows (example only):
    VBX.Set_Property('<name of VBXItem>','<vbxproperty>','c:\temp');
    where <vbxproperty> could be DialogTitle, InitDir, Filter etc.
    (these can all be seen in Properties) depending on your
    requirements.
    Also, use
    VBX.Set_Property('<name of VBXItem>','Flags','&H1800') to force
    File Must Exist and Path Must Exist conditions when OPEN
    and
    VBX.Set_Property('<name of VBXItem>','CancelError','1') to trap
    click on Cancel in the File Open dialog box.
    4. To activate the File Open dialog box, use
    VBX.Set_Property('<name of VBXItem>','Action','1');
    5. To capture the selected filename, use
    retFilename := VBX.Get_Property('<name of VBXItem>','Filename');
    NB.
    a) Instead of using '<name of VBXItem>', you could use Find_Item
    and refer to its Handle. See VBX package spec.
    b) All VBX properties are case-sensitive.
    Will extract complete code and post it to you later.
    Regards,
    TP
    null

  • How we can Open dialog box in form 6i

    Hi
    How we can use file Dialog Box (Open Dialg,Save Dialog Etc) in forms 6i.
    Thanks & Regards

    Use GET_FILE_NAME built in
    ** Built-in: GET_FILE_NAME
    ** Example: Can get an image of type TIFF.
    DECLARE
    filename VARCHAR2(256)
    BEGIN
    filename := GET_FILE_NAME(File_Filter=> 'TIFF Files (*.tif)|*.tif|');
    READ_IMAGE_FILE(filename, 'TIFF', 'block5.imagefld);
    END;
    Rajesh Alex

  • HT2506 How can I open uscis.gov/files/form/n-400.pdf with Preview?

    Problem (A)
    When I try to open some PDFs, such as uscis.gov/files/form/n-400.pdf with OS X Preview, I get the error message:
    "Please wait...
    If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document.
    You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by visiting http://www.adobe.com/go/reader_download.
    For more assistance with Adobe Reader visit http://www.adobe.com/go/acrreader.
    Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries."
    Apple presents Preview as being a better substitute for Adobe Reader, but in this case it does not work at all. (I think this may relate to PDFs with entry fields in them.)
    Problem (B)
    If I set the documents having this problem to be opened with Adobe Reader instead of Preview, the next time I save them from Adobe Reader, they are reset to open with Preview again.
    I thus have to always do Open with… for them, or else set all my PDF documents to be opened with Adobe Reader.
    Can anyone offer any workarounds for problem (A) or (B)?
    Does anyone know Apple's position on problem (A)? Will they eventually fix Preview so that it opens PDF documents such as the one above, or will Preview only ever work on a sub-set of PDF documents?
    If Adobe is refusing to provide Apple the information needed to open certain types of PDF documents, does anyone know Adobe's position on this?
    Thank you

    What version O/S do you have?  10.7.4 is latest.
    I have something for you to try.  I'm reading that Lion supports two different types of file-type association.  That is, in addition to a global ".PDF opens with Preview" you can also have a file-by-file setting to over-ride the global one and have it open is something else - like Adobe Reader.
    So, how about you test this out to see if its true?
    First chainge your global .PDF back to Preview:
    http://osxdaily.com/2009/10/25/change-file-associations-in-mac-os-x/
    Or reset everything  back to defaults:
    http://forums.macrumors.com/showthread.php?t=1282118
    Then when you come accross something that won't open in Preview, use this to set just that file to open in Adobe Reader:
    http://osxdaily.com/2011/08/15/easily-set-file-association-in-mac-os-x-lion-usin g-always-open-with-app/
    There is also a utility for controlling the file-type settings - but - I don't know if it supports this new feature:
    http://www.macupdate.com/app/mac/14618/rcdefaultapp
    (if this a new feature and hasn't been around all along and I just didn't know about it)

  • How to close open hi-hat with closed hat (Ultrabeat)

    I loaded the 2 samples but can figure out how to mute one sound with the other.....help
    thanks in advance

    hi peter
    the group setting is small and hard to see, and easy to miss. looking at ultrabeat, go all the way to the right of center, you'll see ther name Ultrabeat, below is a round dial and below that is the settings for trigger and group. Put all your hats in the same group and next note cuts off the first, closed hat closes the open hi hat

Maybe you are looking for