CURSOR: Need a workaround

Tried to work with cursors in XSQL:
1. with a stored procedure: got stuck here: http://technet.oracle.com:89/ubb/Forum11/HTML/004390.html
2. Tried with ORACLE XML SQL utility with weblogic POOL drivers: got stuck here: http://technet.oracle.com:89/ubb/Forum11/HTML/004391.html
3. Finally made a connection using the oracle driver: Voila Exhausted ResultSet. I remember reading this CURSOR within CURSOR problem will be fixed in Oracle 8i Release 2 but I can still read it as a known bug with XSQL 1.0.4.1 (Production)
Please, its a desparete call...
null

I posted a reply to your other two messages.
For exhausted cursor workaround, see:
http://technet.oracle.com:89/ubb/Forum11/HTML/003800.html

Similar Messages

  • Determining number of cursors needed !!!

    Hi all,
    We are developing a web-based app with lot of pl/sql procedures & functions (more than 150).
    But we have to suggest the number of cursors to be set in the INIT.ORA to the client.
    My question is "How to determine the number of cursors needed for my application to run smoothly for 100 users?".
    Appreciate your views.
    Thanks.

    The open cursors initialization parameter controls the number of cursors that can be open per session, so the number of simultaneous users is irrelevent. If you're watching the number of open cursors your sessions have open, you can set parameters based on the high-water mark you've seen in testing.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • Two class needs to be extends, So I need some  WorkAround ...

    I have a Simple Question
    for accessing SAP PI MAPPING API in ECLIPSE .
    I need to extend one class AbstractTransformation ....
    similary for getting SAX Parser functionalty in ECLIPSE , I need to extend class DefaultHandler..
    So How to Handle this Case : Two class needs to be extends and I know only one class can be extend .
    So JAVA GURUS , I need some workaround .
    Regards
    PS

    Hi,
    First of all Java does not allow multiple inheritance ie u can extend from only one base class.
    work around :
    write two seperate java class say
    1. myJavaMapping.java which extends AbstractTransformation.
    2. mySaxParser.java which extends DefaultHandler
    And now create an object of mySaxParser in ur myJavaMapping class(see below code).
                    mySaxParser parser = new mySaxParser(out);                             //Out is the outputstream
              SAXParserFactory factory = SAXParserFactory.newInstance(); //standard class
              try
                   SAXParser saxParser = factory.newSAXParser();              //standard class
                   this.out = out;
                   saxParser.parse(in, parser);                                                 //begin parsing                                                                               
    // in is inputstream object & has input XML
              catch(Exception e)
                   e.printStackTrace();
    Hope it is clear,
    Anand

  • PPR does not work - I need a workaround

    I have 2 boolean checkboxes nested in tabs; PPR does not seem to work, so I am using a method that does the rerendering for me if I pass in the component. However, in the case of checkboxes which are nested in a panel box, the rerendering fails with the method call. I reset the values of the associated with the checkboxes(value attribute on the component) from the backing bean before I call the method to rerender the page, Is there a workaround. I do not know why the PPR fails to begin with, it might be a bug. There are other components within the tabs that should use PPR but PPR fails on. I have autosubmit and immediate set to true.
    Thanks,
    Veena

    Hi Veena,
    the most common mistake with PPR is setting the listener on the actual component itself rather than the surrounding component. If you a rendering or hiding components you need to set the listener on a surrounding component that will always be present on the page (a component can't listen if it is not on the page).
    Brenden

  • Need Solution/Workaround for Note 947081: SG dates in MMDDYYYY

    We are implementing ESS for Singapore. Dates are being shown in MMDDYYYY format - we need DD.MM.YYYY, which is the Singapore standard.
    Our large user base all have language EN, country SG.
    With reference to Note 947081, dated 07.09.2006, I'd like to enquire if there is a solution or workaround to the limitation given in the Note:
    "Known Limitations
    10. Calendar date formatting for Singapore
    The calendar date formatting for the locale "en_SG" Singapore is MM/DD/YYYY similar to the US American date format.
    This is a feature of the SUN Java JVM. It is not possible, by means of
    SAP NetWeaver, to change this behaviour."
    SAP informs us there is no update from them overcoming this problem.
    Changing the user master for the entire user base is not feasible.
    System details: We are running on Unix Server, Java from IBM.
    Inconsistencies: Any MESSAGES containing dates from R/3 come in DD.MM.YYYY
    From the ESS portal some links point to ITS sub-screens - which are in DD.MM.YYYY

    Hi Chopper,
    How to change the standard behavior internally...?
    Thanks in advance.

  • Scrolling a TextArea just after updating htmlText property in AIR - need a workaround

    Hi,
    There's an annoying bug in AIR (or in the TextArea component itself but showing up only in AIR) because of which, if you do:
    my_textarea.htmlText=someLongText;
    my_textarea.textField.scrollV=someValue;
    the second instruction just does not work, and the textarea scrolls to the beginning (as a consequence of the first assignment).
    Has anyone else run into this and have you come up with any workaround?
    This only happens in AIR, not FP, and only with TextArea, not with a plain input text.

    Thank you for the suggestion.
    A delay (or waiting for the next frame) will certainly ensure that the scroll bar is updated, but unfortunately it's not an acceptable solution in my case because you'll see the scroll bar jump for an instant, no matter how short it will bee too much.
    (FYI, the fact that the text takes a bit to populate the text field is  not relevant since no matter how long it takes it is synchronous)
    I have a script that changes the htmlText while you type, in a way that is not visible at all because it just adds link tags around some words in the text (note that links are not underlined nor highlighted in any way by default). This implies reassigning the whole htmlText, which in turn means the scrollV property is reset. So, before i change the text, I store the current value of scrollV into a variable, and after changing the text, I reassign the original scrollV value. All this is done within a function, it is synchronous, so even if it happens while you type you don't notice it (if this was inefficient and slow, which it may be if the text is very long, you would notice that it hangs for an instant, but you'll never notice any movement in the scroll bar or the text as there is no way a frame can be redrawn during the operation).
    This trick works perfectly with a textfield without scrollbar. It also works with a TextArea in Flash Player, but it does not work in AIR with TextArea because the text automatically scrolls back to the beginning.
    With the delay trick, it would every once in a while jump to the beginning and back where it was which even though very quick would be very annoying since it would be happening all the time.
    I think I narrowed this down to a bug in the UIScrollBar component, which I guess is used inside TextArea. If you do the following with a UIScrollBar:
    - assign a text field as the scrollbar's target
    - empty the textfield (or make the text short enough so that its maxScrollV is 1
    Then the scrollbar automatically becomes disabled
    - now populate the text field with enough text to exceed its height
    - change its scrollV property to anything >1
    If you do all this in one method, the scroll bar automatically gets enabled again, but it forces the textfield to scroll back to the beginning while it shouldn't at all.
    At the end I solved this by giving up TextArea and using a TextField and a ScrollBar - NOT a UIScrollBar (which doesn't help since it suffers from basically the same problem) but a ScrollBar. ScrollBar doesn't have a target property and doesn't disable/reenable itself automatically, so I just never disable it (I simply make it invisible when i don't need it) and everything works fine.

  • Need a workaround

    The document I want to convert is 106 MB and Adobe's maximum size is 100 MB. Are there any workarounds for this situation?

    You cannot use ExportPDF. If this is the sort of job you need to do, Adobe Acrobat is what you need.

  • Do the cursor need to be closed?

    for rec in mycursor loop
              dbms_output.put_line(i);
         end loop;
    do 'mycursor' need to be closed?

    SQL> set serveroutput on size 1000000
    SQL> declare
      2     cursor mycursor is
      3        select object_name i
      4          from all_objects
      5         where rownum < 3;
      6  begin
      7    for rec in mycursor
      8    loop
      9       dbms_output.put_line(rec.i);
    10    end loop;
    11    dbms_output.put_line('now we will try and close the closed cursor');
    12    close mycursor;
    13  end;
    14  /
    /1005bd30_LnkdConstant
    /10076b23_OraCustomDatumClosur
    now we will try and close the closed cursor
    declare
    ERROR at line 1:
    ORA-01001: invalid cursor
    ORA-06512: at line 12
    SQL>

  • ORA-01000: Too many open cursors -- Need Help

    Hi All,
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    I am getting error ora-01000 for  the following procedures gather stats
    Could you please guide how to get-rid-off this error.
    thanks in advance;
    CREATE OR REPLACE PROCEDURE SHEMA_NAME ANALYZE_TABLES IS
       rec_table_name   VARCHAR2 (30);
       CURSOR c1
       IS
          SELECT table_name
            FROM USER_tables;  ------ 18000 table for this cursor
    BEGIN
       OPEN c1;
       LOOP
          FETCH c1 INTO rec_table_name;
          EXIT WHEN c1%NOTFOUND;
          -- block was hereÿÿÿ
          BEGIN
             DBMS_STATS.
             GATHER_TABLE_STATS (
                OWNNAME            => 'SHEMA_NAME',
                TABNAME            => rec_table_name,
                PARTNAME           => NULL,
                ESTIMATE_PERCENT   => 30,
                METHOD_OPT         => 'FOR ALL COLUMNS SIZE AUTO',
                DEGREE             => 5,
                CASCADE            => TRUE);
          END;
       END LOOP;
       CLOSE c1;
    EXCEPTION
       WHEN OTHERS
       THEN
          raise_application_error (
             -20001,
             'An error was encountered - ' || SQLCODE || ' -ERROR- ' || SQLERRM);
    END;

    Look at the following:
    SQL> begin
      2          raise no_data_found;
      3  end;
      4  /
    begin
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at line 2
    The error code the caller executing this code receive is -01403. A unique error number that has a known and specific meaning.
    In addition, the error stack tells the caller that this unique error occurred on line 2 in the source code.
    The caller knows EXACTLY what the error is and where it occurred.
    SQL> begin
      2          raise no_data_found;
      3  exception when OTHERS then
      4          raise_application_error(
      5                  -20000,
      6                  'oh damn some error happened. the error is '||SQLERRM
      7          );
      8  end;
      9  /
    begin
    ERROR at line 1:
    ORA-20000: oh damn some error happened. the error is ORA-01403: no data found
    ORA-06512: at line 4
    In this case the caller gets the error code -20000. It is meaningless as the same error code will be use for ALL errors (when OTHERS). So the caller will never know what the actual real error is.
    For the caller to try and figure that out, it will need to parse and process the error message text to look for the real error code. A very silly thing to do.
    In addition, the error stack says that the error was caused by line 4 in the code called.. except that this is the line that raised the meaningless generic error and not the actual line causing the error.
    There are 3 basic reasons for writing an exception handler:
    - the exception is not an error
    - the exception is a system exception (e.g. no data found) and needs to be turned into meaningful application exceptions (e.g. invoice not found, customer not found, zip code not found, etc)
    - the exception handler is used as a try..finally resource protection block (which means it re-raises the exception)
    If your exception handler cannot tick one of these three reasons for existing, you need to ask yourself why you are writing that handler.

  • [SOLVED]Wow in bin32-wine-wow-hardware-cursor need help with patching

    Hi all.
    I have installed bin32-wine-wow-hardware-cursor from AUR and it's working pretty fine I must say. I still have one important issue. That is, that the cursor acts strange when holding the button pressed down, as you do when turning etc. The cursor then moves to the middle of the screen and shakes, until you release the button.
    There is a fix for this posted on the Ubuntuforums, but I don't know how to implement this in Arch. Trust me, I have tried in so many ways possible, but I don't have the knowledge to do this. Please help me, or point me in the right direction.
    http://ubuntuforums.org/showpost.php?p= … tcount=172
    I have managed to fix this problem myself. If any of you are wanting the same functionality as what i mentioned above, navigate to your mouse.c find the function update_mouse_state, and then make the changes below...
    static void update_mouse_state( HWND hwnd, Window window, int x, int y, unsigned int state, POINT *pt )
    struct x11drv_thread_data *data = x11drv_thread_data();
    char *hwgl;
    get_coords( hwnd, window, x, y, pt );
    hwgl = getenv("WINE_CURSOR");
    /* update the cursor */
    if (hwgl == NULL){
    if (data->cursor_window != window)
    data->cursor_window = window;
    wine_tsx11_lock();
    if (data->cursor) XDefineCursor( data->display, window, data->cursor );
    wine_tsx11_unlock();
    Thank you in advance.
    EDIT: To clear things out a bit. I am using 64-bit Arch.
    Last edited by n4h0j (2010-05-03 20:55:26)

    n4h0j wrote:
    itsbrad212 wrote:
    n4h0j wrote:
    Thx for the reply.
    However, I don't think that one includes the right patch either. That just looks like the 32-bit version of the bin32-wine-wow-hardware-cursor. And I cannot install that on my system.
    When talking about cursor issues there are 2.
    1. Getting hardware cursor in OpenGL.
    2. Irritating cursor-behavior when pressing down the buttons to turn etc.
    The package you refer to solves problem #1, so does the bin32-wine-wow-hardware-cursor. It's problem #2 that need fixing. I would assume, since it is just a cosmetic defect, no one else has bothered before me.
    But still, it's solvable in Ubuntu, and I am kind of a perfectionist.
    EDIT: Yes, I can see now that the mouse.c is in the archive. I would be able to edit myself. But (silly question) I won't be able to run the PKGBUILD with that source, right?
    Well, you could always edit the file then re-tar/bzip it.
    The PKGBUILD wiki article states:
    Note: If you need to supply files which are not downloadable on the fly, e.g. self-made patches, you simply put those into the same directory where your PKGBUILD file is in and add the filename to this array. Any paths you add here are resolved relative to the directory where the PKGBUILD lies. Before the actual build process is started, all of the files referenced in this array will be downloaded or checked for existence, and makepkg will not proceed if any are missing.
    So basically, edit the PKGBUILD and set the source to the location of the newly bziped file you have after applying the patch. Then it should use that one instead
    But, that won't be possible on a 64-bit system, right? I can't use the 32-bit source.
    Or am I missing some piece of the puzzle here?
    I think I'm missing part of the puzzle....
    Ok, title of thread: "bin32-wine-wow-hardware-cursor"
    That makes me assume 32-bit
    Next, source file you downloaded:
    wine-wow-hardware-cursor-1.1.43-1-i686.pkg.tar.gz
    Again, 32-bit...
    I'm confused with what you want now
    Last edited by itsbrad212 (2010-05-03 07:17:47)

  • On a Screen 2 Table Cursor need to be Synchroize

    Hi All.
    I have a problem. In my Screen I have two table Control.
    both the Table have different data but the no of Column and column are same.
    My Requirement is that : My user want to synchronize the Cursor movement of table Control. Its only Horizontal.
    Means when User Move the Cursor of one Table control the Cursor of second control also move in sequence with first table control..
    please provide input,
    Regards
    Swati..

    Hi Swati,
    Horizontal scrolling in table controls doesn't trigger PAI, so I don't think it's possible. But if any other event is triggering PAI, you can get attribute LEFT_COL of the first table and set it for the second table in PBO.
    Cheers, gabriel

  • Bug In Builder LV2012 - VI reported BAD when building - Need a workaround ASAP

    Hello,
    I currently have a problem with building and application. The Builder report a VI to be in BAD state when saving the VI near the end of the building process. I got this problem a couple of time, and to resolve it I need to clear the Compiled Object Cash and recompile all the VI by clicking CTRL-SHIFT RUN. Save the VI's and rebuild.
    But now I'm getting this error all the time:
    I post this problem here because I didn't get success with the normal support and I need to escalate this problem as quick as possible to get proper support.
    Someone get similar problem with LabVIEW 2012?
    Dany Allard

    I will do some digging to see what I can come up with, but I'm pretty sure it won't be anymore than what you've already tried. I will say I have had some issues with builds in 2012, moreso than usual.
    Have you tried to enable debugging? I've seen that sometimes helps, although it bloats your exe. Are you using LVOOP?
    CLA, LabVIEW Versions 2010-2013

  • Cannot use back button, Document expired. Need a workaround on 1 website. Also mozilla says it crashes every time I close it.

    I use one website extensively day to day in researching for my business. Move forward and bacj to original search in order to tweak the search criteria and Im constantly getting:
    Document Expired
    This document is no longer available.
    The requested document is not available in Firefox's cache.
    As a security precaution, Firefox does not automatically re-request sensitive documents.
    Click Try Again to re-request the document from the website.
    This has become a real pain in the neck and I need to find a work around. Ive researched to find check the box stating
    "override automatic cache" which is checked already and still have the issue.
    ALSO everytime I shut down firefox I get a message stating it has crashed??

    You can clear your cache without clearing anything else.
    If you are using the Clear Recent History dialog, make sure to expand the lower section ("Details") and uncheck the other categories of personal data.
    Or you can use the method described below.
    I haven't researched the status of this issue since the Firefox 32-33 days, so here's an old thread and some old advice:
    [https://support.mozilla.org/questions/1025750 Why do I get document expired every time I go back in search results?]
    '''Steps to clear Firefox's cache or manually set a different size'''
    Start by calling up the Options/Preferences dialiog:
    ''For Windows:''
    "3-bar" menu button (or Tools menu) &gt; Options &gt; Advanced &gt; Network mini-tab
    ''For Mac:''
    "3-bar" menu button (or Firefox menu) &gt; Preferences &gt; Advanced &gt; Network mini-tab
    On that tab, in the second section, which should be labeled Cached Web Content, you can try either:
    * Clear Now (if you have a large hard drive, this may lock up Firefox for a couple minutes)
    * Check the box for "Override automatic cache management" and, if desired, increase the cache size from the default of 350 megabytes

  • Need a workaround to access the portal

    Anyone know the workaround to access the portal in the event that the administration section of the portal is no longer available due to change in the UI?

    its a good reminder that you should always leave the default UI in place somwhere. I think I have the rule in place if you access the portal using localhost, then you're getting the default UI.

  • Photoshop brush strokes are smaller than the cursor, need to make them the same.

    My photoshop brush, pencil and Clone strokes are smaller than the cursor, which makes it very difficult for accuracy. Don't know what made them change, but want the cursor and stroke to be the same.
    I've tried different settings in the brush dialog box, with differenc tip settings, etc, with no results. Also, tried different settings in Preferences/Cursor setting. No luck.
    Help!

    <<<<
    Under Preferences (cmd k) > Cursors > Painting Cursors, the setting should be Normal.
    Usually "Reset Tools" as described in post 1 helps. Have you tried it yet?
    Gene<<<<<<
    Gene,
    Yes, I've tried that, and all the variations on that page, without success.
    Larry

Maybe you are looking for