Home
All Oracle Error Codes
Oracle DBA Forum

Frequent Oracle Errors

TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated

RE: OPEN_CURSORS !

SRIDHARAN, SAN (SBCSI)

2004-07-14

Replies:
I can increase the OPEN_CURSOR parameter to 800 or 1000 but sometime
this query can return more than 2000-3000 rows.

I can return the result as an array but its going to be slower than
returning it as a cursor.

SELECT po.prod_offer_id, pot.dscr, po.qual_req, po.prod_id, pt.dscr
,
    CURSOR (SELECT pi.prod_iden_id, pi.parent_id, pit.dscr, pi.VALUE
          FROM PROD_IDEN pi, PROD_OFFER_IDEN poi, PROD_IDEN_TYPE
pit
          WHERE pit.prod_iden_type_id =3D pi.prod_iden_type_id
           AND pi.prod_iden_id =3D poi.prod_iden_id
           AND poi.prod_offer_id =3D po.prod_offer_id
        )
      ,
    CURSOR (SELECT bt.dscr
          FROM BILLING_TYPE bt, PROD_BILLING_TYPE pbt
          WHERE bt.billing_type_id =3D pbt.billing_type_id
           AND pbt.prod_offer_id =3D po.prod_offer_id
        )
FROM PROD_OFFER po,
    PROD_OFFER_TYPE pot,
    PROD p,
    PROD_TYPE pt,
    PROD_OFFER_AUDNC_PRFLE poap
WHERE po.prod_offer_type_id =3D pot.prod_offer_type_id
 AND po.prod_id =3D p.prod_id
 AND pt.prod_type_id =3D p.prod_type_id
 AND po.prod_offer_id =3D poap.prod_offer_id
 AND poap.audnc_prfl_id =3D 16
 AND pt.dscr IN ('LD')

-----Original Message-----
From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)
Pacheco
Sent: Wednesday, July 14, 2004 1:56 PM
To: oracle-l@(protected)
Subject: RE: OPEN_CURSORS !


There is no way, you have increase the open_cursor parameter, I have
set to
800.=20
=20
-------Original Message-------
=20
From: oracle-l@(protected)
Date: 07/14/04 16:56:06
To: oracle-l@(protected)
Subject: RE: OPEN_CURSORS !
=20
Why do you want to use word CURSOR here? Get rid off it and it should be
fine.
=20
HTH.
=20
Guang
=20
-----Original Message-----
From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)
(SBCSI)
Sent: Wednesday, July 14, 2004 4:50 PM
To: oracle-l@(protected)
Subject: OPEN_CURSORS !
=20
=20
When I execute the following query, the number cursors opened increase
with the number of rows returned by the query and I get the oracle error
"maximum cursor opened".=3D20
=20
Is there a way I can reuse the already opened cursor and not hit the
maximum OPEN_CURSOR value?
=20
=20
SELECT po.prod_offer_id, pot.dscr, po.qual_req, po.prod_id, pt.dscr
,
CURSOR (SELECT pi.prod_iden_id, pi.parent_id, pit.dscr, pi.VALUE
FROM PROD_IDEN pi, PROD_OFFER_IDEN poi, PROD_IDEN_TYPE
pit
WHERE pit.prod_iden_type_id =3D3D pi.prod_iden_type_id
AND pi.prod_iden_id =3D3D poi.prod_iden_id
AND poi.prod_offer_id =3D3D po.prod_offer_id
)
FROM PROD_OFFER po,
PROD_OFFER_TYPE pot,
PROD p,
PROD_TYPE pt,
PROD_OFFER_AUDNC_PRFLE poap
WHERE po.prod_offer_type_id =3D3D pot.prod_offer_type_id
AND po.prod_id =3D3D p.prod_id
AND pt.prod_type_id =3D3D p.prod_type_id
AND po.prod_offer_id =3D3D poap.prod_offer_id
AND poap.audnc_prfl_id =3D3D 16
AND pt.dscr IN ('LD');
=20
Thanks,
San
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to: oracle-l-request@(protected)
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
=20
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to: oracle-l-request@(protected)
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to: oracle-l-request@(protected)
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to: oracle-l-request@(protected)
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------