CLOB.trim() causing Max cursors on SUNONE

In a web application we are developing we call the trim( ) method on an oracle.sql.CLOB. When we deploy the application to Oc4J everything works just fine. If on the other hand we deploy the same application on A SUN ONE server, we run into a max cursor error. Analysis of v$open_cursor showed that for each time the clob.trim() method call is called there is an open cursor with the following SQL_TEXT
begin dbms_lob.trim (:1, :2); end;
In OC4J there is only one of these cursors per session
Both app servers use exactly the same JDBC drivers.
Both app servers connect to the same database.
Any ideas would be much appreciated

The trouble with that fix is that it only works if you want to immediately commit the transaction.
My approach to the problem was slightly different -- the bug seems to be in the Oracle drivers, so I simply don't call the Oracle trim method --
private void trimBLOB(Connection conn, Blob blob, int length) throws SQLException
CallableStatement stmt = null;
try
stmt = conn.prepareCall("{ call dbms_lob.trim (?, ?) }");
stmt.setBlob(1, blob);
stmt.setInt(2, length);
stmt.execute();
finally
stmt.close();

Similar Messages

  • Max Cursors Exceeded even with XSU 1.2

    In one of the messages on this forum I read Steven Muench's comments stating that the max cursors exceeded problem for big result sets in XSQL has been addressed in XSU1.2
    I have downloaded this software released in April 2000 but this version still gives me this error.
    Has someone been able to find a solution/workaround to this.
    Thanks

    It might also be an issue with the HS_OPEn_CURSORS. By default the gateway allows only 50 open cursors to be opened at the foreign database. What happens when you set in the gateway init file  HS_OPEN_CURSORS=200?
    If it still fails, could you upload to a public file share a gateway trace level DEBUG (HS_FDS_TRACE_LEVEL=DEBUG)?
    - Klaus

  • MAX Cursor issue

    We try to write a browser script which reads an excel sheet and sends information to a business service which in turn creates record in Siebel (Agreement Items, Price List Lines, etc).
    The program runs for about 200 records and gives us Max Cursor Exceeded issue. When we check v$open_cursors table we see it has reached the max limit.
    This is not happening in Dedicated and local client. Happens only in the thin client instance.
    SELECT SID, COUNT (*)
    FROM v$open_cursor
    WHERE SID IN (SELECT SID
    FROM v$session
    WHERE logon_time = (SELECT MAX (logon_time)
    FROM v$session
    WHERE username IS NOT NULL))
    GROUP BY SID;
    above query returns the count of open_cursors for the last logged in Id
    select user_name, status, osuser, machine, a.sql_text
    from v$session b,
    v$open_cursor a
    where a.sid = b.sid and a.sid = '233'
    above query lists all the open cursors for the given SID. using this query I was able to check that all the cursors are actually in "INACTIVE" state.
    Oracle is also working on this issue with us but we thought to share it with group too to see if anyone faced this issue and can help.
    Thanks for your time.
    Shivani

    The BS invoked by the browser script is a customized one? If so, are you instantiating some BC objects? If so, are you clearing the pointers so the garbage collector can destroy the instantiated objects? Each instantiated BC will have one open cursor to the DB.
    If you meet all these question the issue can be in the performance of the garbage collector, i.e. you are instantiating objects more quickly than the garbage collector is destroying them. You can state this by enabling the allocation logging and then analyze the creation and the destruction of the objects.

  • Max cursors exceeds problem(ORA-01000)

    Hi
    In my server open_cursors is set as 300 .We are developing a java application(using struts & Jboss web server) nearly 10 computers access the oracle 10g server through plsql procedures/functions ,frequently I am getting ORA-01000 -MAX CURSOR EXCEEDS errors,what should I do .please.....
    by
    s_bala

    That means there is two cursor related parameters
                                            |
                                            |
                                            |
                                            |
                        |                                        |     
    1)Cached cursors                              2)Currently open cursor
    1)Cached cursors     2)Currently open cursor
    SQL> select o.sid,osuser,machine,count(*) num_curs
    from v$open_cursor o,v$session s
    WHERE user_name = 'ERP' and
    o.sid = s.sid GROUP BY o.sid,osuser,machine
    ORDER BY num_curs DESC;     SQL>select max(a.value) as highest_open_cur,
         p.value as max_open_cur
         from v$sesstat a, v$statname b, v$parameter p
         where a.statistic# = b.statistic#
         and b.name = 'opened cursors current'
         and p.name= 'open_cursors'group by p.value;
    THIS IS THE RESULT I GOT
    SID OSUSER MACHINE NUM_CURS
    106 x 18
    93 x 14
    124 x 14
    152 x 13
    90 y y 11
    121 z 8
    132 a 8
    118 b b 6
    105 c 5
    131 b 5
    98 d d 4
    95 x 3
    147 y y 3
    89 e 2
    119 e 2     THIS IS THE RESULT I GOT
    HIGHEST_OPEN_CUR MAX_OPEN_CUR
    83 500
         -This is related to ORA-01000 -MAX CURSOR EXCEEDS
    From the above what I understood is correct ???
    F) How to clear 1)Cached cursors ? (or) how to reduce NUM_CURS (from the above left side table ).
    G) will the 1)Cached cursors give any problems to our database.

  • For Safari, on web pages, including this one, the use of ' (apostrophe) causes erratic behavior in text boxes. A contraction such as "I'v |e " has caused the cursor to backspace, displacing the e when the space bar is hit, or causes a juAsk your question.

    For Safari, on web pages, the use of ‘ (apostrophe) causes erratic behavior in text boxes. A contraction such as “I’v |e “ has caused the cursor to backspace, displacing the e when the space bar is hit, or causes a jump out of the text box and a return to the top a a page when used for the first time right at the beginning of text.
    Other browsers do not have this problem. When will Apple fix this problem?

    From the menu bar, select
    Edit ▹ Substitutions
    and uncheck Text Replacement.

  • Synchronizing iMac & MacBook Pro causes faulty cursor

    After cloning my iMac and MacBook Pro back and forth a few times using SuperDuper in order to keep them synchronized, the cursors on both machines were intermittently non-functional upon startup.Of course one has a trackpad and one doesn't. I reinstalled OS10.6.1 from the Snow Leopard Disc purchased at the Apple store onto the iMac and reinstalled OS10.6.1 from the disc that came with the laptop onto the laptop, but the problem has persisted on both machines. Usually if I wait ten minutes the cursor will start working on its own, but sometimes it doesn't function until I restart the computer several times and wait each time to see if the cursor comes back on its own. Apple tech support suggested getting rid of all third party software, reinstall the OS and then add third party apps to see if one of them is causing the problem. What a headache! Any suggestions as how to fix the problem or suggestions as the best way to sycnh the 2 machines?

    the first suggestion would be to NEVER use superduper to clone drives back and forth between different model computers. this will inevitably lead to problems due to differences in hardware. I'm very surprised you can even boot the computers after that.
    if reinstalling the OS did not work make a new user account and log into it. do you have the same problems there?

  • Typing invalid key in a masked filed causes the cursor to go in the end

    We have a masked text field on one of the screens. It defaults to a mask string mm/dd/yyyy and as the user types in data, if it's a legal value each of the mask characters is replaced position by position. When the user tabs into the filed the default mask string is selected. The problem is -
    If the user tries to type in an illegal character (say 9 for the first position where as it can accept either 0 or 1), the selection resets and the cursor is put at the end of the field after the last 'y'. And if the user tries to type in a legal character, the selection resets and the value is inserted into the first position.
    My question is why the cursor goes and sits at the end if it's an illegal character? It's really annoying for the user as s/he has to put the cursor back at the beginning of the field before s/he can start typing anything in that field.
    Has someone seen this or similar behavior with masked fields? I've tried it with JDK 1.3 as well as 1.4. Any help greatly appreciated.
    Thanks.

    Hi
    > I am disappointed to see the shift key (left) as well as the CTRL key causing the screen to go black intermittently when typing my blog...
    What does this means exactly? Pressing SHIFT and CTRL button disable the display and you are not able to see anything on the monitor?
    Is this right?
    Did you check if this happens using an external USB keyboard too?
    If not, I would assume that your keyboard malfunctions and needs to be replaced.
    A friend of mine has had a issue with my keyboard. The cursor jumped around and some characters were displayed twice this could be solved by BIOS updateIm not sure if your notebook uses the latest BIOS but you could check this too.

  • What would cause max 150kb/sec single thread downl...

    I have BT Infinity 2 and my connection for the last two years has been pretty solid until now. The past couple of years I've had around 74mbit/16mbit which is pretty good and delighted with. However for the past week I been encountering buffer times on videos such as BT iPlayer, Netflix, YouTube and even Sky Now! upon testing my connection I have revealed that something is seriously wrong!
    I operate several websites in clouds 'rackspace, amazon and aszure etc' testing downloads from these normally ultra fast download speeds I'm getting a maxiumn of around 150kb/sec, now hes the thing! If I get 50x of these downloads started all at once I automaticly max at 7,500kb/sec which is about right. Testing downloading a linux distro via a torrent client I also get around 150kb/sec a thread and max out around 74mbit... Which ya is good if your a heavy torrent downloader, but sucks if you want to watch seemless video online, because video is single treaded. So, to me the problem might be too many heavy users on the hub at the exchange, whats your thoughts?
    - Speedtest.net reveals 2.5mbit dl and 17.8mbit up
    - BT Wholesale Speed Test reveals 3.5mbit dl and 14.8mb up
    - Redstation 1000mb download reveals 2.4mbit dl
    I reported the problem 2 days ago and today I received a telephone call to say everything was fixed without actually telling me what the problem was. I was informed that the fix could take 2 hours to take effect, of which I found pretty strange because why would a fix take 2 hours after it was already fixed?...
    The connection is stable and my ping is pretty stable too, so at least I'm thankful for a stable kinda usable connection for simple tasks, but far from what I pay for.  I've tried doing a further diagnostic on BT Wholesale by changing the username and I get the test started but it complains it can't upload the data, tried chrome, ie and firefox... same deal, the error comes right at the end of the tests.
    So what now?.... Phoned up again and they said the fix may take longer to take effect???
    Please Note: I have done all the usuals, wireless tests, wired tests, new cables, modem resets, router resets, firewall disables etc etc!. Its not my PC!

    Wireless would cause it.
    The graphs displayed by this speedtest may show it: http://www.thinkbroadband.com/speedtest/speedtest2.html
    If you found this post helpful, please click on the star on the left
    If not, I'll try again

  • Animations Cause Mouse Cursor to Blink

    I just upgraded my video card and am now using the <code>nvidia</code> drivers (I also upgraded my monitor to a Dell Ultrasharp 2005FPW at the same time).  Ever since then, my mouse cursor blinks when either doing animations like the typical hourglass (wait cursor), or when I happen to be hovering the normal cursor over an animation (like the loading screen of Xfce, for example).
    The cursor blinking doesn't really cause any problems, but it is somewhat annoying.  Does anyone have any idea what could be causing this?

    Add "Option "HWCursor" "off"" in Device section (where your GPU is defined) of xorg.conf.

  • NI-DAQmx 7.5 upgrade failure causes MAX seizure?

    I have just attempted to upgrade my NI-DAQmx from 7.3 to 7.5 by
    downloading and running the driver per the install.txt.  After an
    apparently successful install, MAX locks up as it is trying to
    start.  All I get is the splash screen.  Any suggestions?

    You can actually simulate 1600.
    When you select to Simulate a device, expand the SCXI Chassis section
    and select the chassis you will be using. In the next dialog, you'll
    notice that it uses a 1600 by default for communications.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Max cursors in a plsql package

    Pls let me know are there any limitations to the maximum number of Cursors (normal) in a Pl/sQL package/procedure?
    Thanks in advance

    859486 wrote:
    Thanks.
    .I mean not the REF cursors. I meant the Static cursors..Actually my cursor looks as below
    cursor fds_cur is
    select
    I use Cursor For Loop as below
    for i in fds_Cur loop
    end loop
    I just wanted to know, is there any limitation in using the static cursors and cursor for loop?
    Many thanks in advanceRegardless of whether it's a statically defined cursor or a ref cursor or just a SELECT statement inline with the PL/SQL code, these are all cursors and are limited by the OPEN_CURSORS parameter on the database. Of course, that limit only takes account of cursors that are open, so as already mentioned, you can define as many as you like, but if you open too many at once without closing them (i.e. too many nested cursor for loops) you will get a Too Many Open Cursors exception.
    Of course, not many people get that exception unless they've got a bug in their code where they've opened cursors explicitly without closing them or they've written poorly designed code with nested cursor loops.

  • ORA-01000 Max Cursors even when closing

    When I execute the following code, the number of open cursors increases by 2, even though I am disposing of the reader, command and connection.
    long returnValue=0;               
    OracleConnection myOracleConnection = null;
    OracleCommand cmd = null;
    OracleDataReader reader = null;
    try
         myOracleConnection = new OracleConnection(strDBConn);
         myOracleConnection.Open();
         cmd = new OracleCommand(spGetNextSequenceNo, myOracleConnection) ;
         cmd.CommandType = CommandType.StoredProcedure;
         cmd.Parameters.Add(prmSystemType,intSystemType);
         cmd.Parameters.Add(prmSection,strSection);
         cmd.Parameters.Add(new OracleParameter("rc1", OracleType.Cursor)).Direction = ParameterDirection.Output;
         reader = cmd.ExecuteReader();
         if(reader.Read())
              int colCount = reader.GetOrdinal("NextSequence");
              returnValue = reader.GetInt64(colCount);
         return returnValue;
    catch(Exception myException)
         return 0;
    finally
         if( myOracleConnection != null )
              myOracleConnection.Close();
              myOracleConnection = null;
         if( cmd != null )
              cmd.Dispose();
              cmd = null;
         if( reader != null )
              reader.Close();
              reader.Dispose();
              reader = null;
    the stored procedure being called is given below
    CREATE OR REPLACE PROCEDURE SPCRISPGETTRANSFORMFIELDS(
         RC1     IN OUT crisp.globalPkg.RCT1) AS
    /* Force:DPP      Version: 1.0.5      DateModified: 2003:07:25 */
         CURSOR curExtractsTrnsfrmLook IS
              SELECT
                   name
              FROM
                   CRISP_SYS_EXTRCTS_TRNSFRM_LOOK;
         myRowVariable     curExtractsTrnsfrmLook%ROWTYPE;
    BEGIN
         OPEN RC1 FOR
              SELECT
              FROM
                   CRISP_SYS_EXTRCTS_TRNSFRM_LOOK;
         OPEN curExtractsTrnsfrmLook;
         FETCH curExtractsTrnsfrmLook INTO myRowVariable;
         IF curExtractsTrnsfrmLook%NOTFOUND THEN
              raise_application_error(-20999, 'ERROR encountered when retrieving rows from CRISP_SYS_EXTRCTS_TRNSFRM_LOOK (spCRISPGetTransformFields)');     
         END IF;
         CLOSE curExtractsTrnsfrmLook;
    EXCEPTION
         WHEN OTHERS THEN
              IF curExtractsTrnsfrmLook%ISOPEN THEN
                   CLOSE curExtractsTrnsfrmLook;
              END IF;
              RAISE;
    END SPCRISPGETTRANSFORMFIELDS;
    I am closing the cursor checking for the existence of any rows, but even this cursor appears in the v$open_cursor view.
    Can anyone explain why this is?

    I am having the exact same problem and am also closing and disposing the datareader and the connection. have you heard anything?

  • ORA-01000 max cursors exceeded

    After what I thought was fixing the problem, we are yet again hitting ORA-01000.
    We have an application which was left running over Christmas and New Year but with no one using it.
    We came back and the first time someone tried to do something we hit the ORA-01000 error.
    Has anyone seen anything like this before?
    I'm not ruling out a problem in our code somewhere but it seems odd that when the application is actually being used we have no problems but if we leave it to sit for a while it suddenly runs out of cursors!
    Cheers
    Alex

    what is the application doing? Is any other application accessing the database? Are you using statement caching?

  • Siri causes max volume?!

    Hi there,
    Got my lovely iPhone 4S today, nice and shiney. Yum.
    I've noticed a rather odd problem with the volume, which I'm wondering is only my device or if it's happening to anyone else?
    I've set my "ringer" volume using the hardware keys down to a low level. This also adjusts alert tones, and the lock/unlock tone.
    If you use Siri, then lock the phone, it seems to max out the volume on the lock noise and any subsequent noise thereafter?
    Here's some steps for you to try::
    Unlock phone.
    Set "ringer" volume to low, not silent, but low.
    Lock phone (should be quiet)
    Unlock phone (should be quiet)
    Hold down home button, ask Siri a question.
    Wait for reply
    Press home button
    Lock Phone  --- volume on the 'lock' click is really loud? It is for me at least...?
    Anyone else?
    Many thanks,
    Matt
    -----------It seems that plugging in headphones, then unplugging them has fixed this... Apologies!! -delete thread!
    Message was edited by: mattlivermore
    It seems that plugging in headphones, then unplugging them has fixed this... Apologies!! -delete thread! :)

    I went into the Apple Store in Birmingham, UK today to explain the problem to them.
    I spoke to two different people, neither of them had experienced this problem or had any reports of a problem like this yet. We then tried a few different 4S's in the shop to replicate the error. Sure enough, this bug occurs on every iPhone 4S. They seemed to think it was most definatly software related and that a future update will fix the issue in the coming weeks.
    There were also more than happy to swap my iPhone 4S with a brand new one, just to put my mind at rest! I declined, as the issue is with the software not the hardware, but a very generous offer by the store in any case. Top marks!!

  • Gmail causes busy cursor every 2 seconds

    When I have gmail open my mouse cursor shows the busy circle every two seconds. This is on Firefox4 win7 machine. Any help here?

    One additional piece of info. It appears to happen only when I have my google home page open. Doesn't have to be the current tab, just has to be one of the tabs. Navigating on that tab to another page (following a link, for example), stops the blinking.

Maybe you are looking for