Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Maximum Open Cursors on Insert Trigger

Re: Maximum Open Cursors on Insert Trigger

From: Jay Hostetter <jhostetter_at_decommunications.com>
Date: Tue, 29 Jul 2003 11:59:23 -0800
Message-ID: <F001.005C7AFB.20030729115923@fatcity.com>


Thank you for the replies. It turn out to be a code issue. The developer added olecmd.dispose(), which fixed the problem.

>>> jkstill_at_cybcon.com 07/28/03 11:54AM >>>

There are some relevant notes on MetaLink that may be of help.

Search on 'visual basic ora-1000'

Jared

On Monday 28 July 2003 07:54, Jay Hostetter wrote:
> We have a developer that is inserting a large number of records using a VB
> program. An insert trigger exists on the table. This trigger checks a
> parent table for records. I know this trigger really is not needed, since
> a Foreign Key exists to enforce referential integrity, so I plan to disable
> it (furthermore, it does a SELECT FOR UPDATE, which doesn't make sense).
> However, I'm trying to understand why the developer keeps getting
> "ORA-01000: maximum open cursors exceeded" during the inserts. I've bumped
> OPEN_CURSORS up to 1000. Is there something unique to VB that could be
> causing this problem? I've done mass inserts before on tables that have
> triggers without running into this type of problem. I can't see any
> problem in the trigger logic, since the cursor is always closed. This is a
> 9.2.0.3 database on Tru64.
>
> Thanks,
> Jay
>
> The source for the trigger is:

..

**DISCLAIMER
This e-mail message and any files transmitted with it are intended for the use of the individual or entity to which they are addressed and may contain information that is privileged, proprietary and confidential. If you are not the intended recipient, you may not use, copy or disclose to anyone the message or any information contained in the message. If you have received this communication in error, please notify the sender and delete this e-mail message. The contents do not represent the opinion of D&E except to the extent that it relates to their official business.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jay Hostetter
  INET: jhostetter_at_decommunications.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Jul 29 2003 - 14:59:23 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US