Links
Home
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
-none-

-none-

2005-02-02       - By -not available-
Reply:     <<     261     262     263     264     265     266     267     268     269     270     >>  

Example:

select p.col_a, p.col_b, c.col_c, c.col_d
from (select x.col_a, x.col_b
from parent_table x
where complicated_filter_test = 'Y '
) p
,child_table c
where p.col_a = c.col_a
and p.col_b = c.col_b

Tuned properly, the time-consuming filter logic on the parent table only gets executed once per parent row instead of once per child row. I 've had success trying this approach before.

And, of course, you could always put the parent_table query in a view for re-use purposes.


-- --Original Message-- --
From: "Duret, Kathy " <kduret@(protected) >
Sent: Feb 2, 2005 10:55 AM
To: "Oracle L (E-mail) " <oracle-l@(protected) >
Subject: is there a way to return multiple cursors from a query

what I need to do is return a cursor from one query in a procedure.... no
problemo


What I need to do is :

for every ID returned in the first query returned ....use this in the where
condition of the child query.

Yes they want two separate cursors returned. so a function is out.

The first query is intensive so I don 't want to execute it twice.

This will be executed quite a bit and returns a fair amount of data.

Thanks,

Kathy







This transmission contains information solely for intended recipient and may
be privileged, confidential and/or otherwise protect from disclosure. If
you are not the intended recipient, please contact the sender and delete all
copies of this transmission. This message and/or the materials contained
herein are not an offer to sell, or a solicitation of an offer to buy, any
securities or other instruments. The information has been obtained or
derived from sources believed by us to be reliable, but we do not represent
that it is accurate or complete. Any opinions or estimates contained in
this information constitute our judgment as of this date and are subject to
change without notice. Any information you share with us will be used in
the operation of our business, and we do not request and do not want any
material, nonpublic information. Absent an express prior written agreement,
we are not agreeing to treat any information confidentially and will use any
and all information and reserve the right to publish or disclose any
information you share with us.
--
http://www.freelists.org/webpage/oracle-l

--
http://www.freelists.org/webpage/oracle-l