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: fetching long variable in PL/SQL

RE: fetching long variable in PL/SQL

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Sun, 25 Jan 2004 08:19:24 -0800
Message-ID: <F001.005DE1BC.20040125081924@fatcity.com>


You have to use dbms_sql ...

Raj



Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. QOTD: Any clod can have facts, having an opinion is an art !

-----Original Message-----
Sent: Sunday, January 25, 2004 10:44 AM
To: Multiple recipients of list ORACLE-L

convert to a lob and use a substr. That might fix the problem. ----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com> Sent: Sunday, January 25, 2004 10:24 AM

>
>
>
>
> Hi all ,
> I have a problem about fetching long variable in PL/SQL.
> I encountered with problem in following PL/SQL block.
> When I try to fetch long variable , I receive " PL/SQL: numeric or
value error ORA-06512".
> As I searched in metalink, it is releated to size of long variable.
Probably it is greather than
> 32KB.
> I could not find a solution.
> Do you have any info or and advice that how I can fetch long variables
greather than 32KB.
> May it can be divided into more than one variable but how.
> Thanks
> Arslan.
>
>
> DECLARE
>
> USER_TRIGGERS_COUNT NUMBER := 0;
> USER_TRIGGERS_COUNTER NUMBER := 0;
>
> CURSOR USER_TRIGGERS_CUR IS
> SELECT TRIGGER_NAME ,DESCRIPTION , trigger_BODY FROM USER_TRIGGERS
> where trigger_name = 'TRG_APPL_CONTRACTS_BIUD_R' ;
> USER_TRIGGERS_R USER_TRIGGERS_CUR%ROWTYPE;
>
> BEGIN
> select COUNT(*) INTO USER_TRIGGERS_COUNT from USER_OBJECTS WHERE
OBJECT_TYPE = 'TRIGGER';
> OPEN USER_TRIGGERS_CUR;
> LOOP
> FETCH USER_TRIGGERS_CUR INTO l_TRIGGER_NAME ,l_DESCRIPTION ,l_BODY ;
> EXIT WHEN(USER_TRIGGERS_CUR%NOTFOUND );
> NULL;
> END LOOP;
> CLOSE USER_TRIGGERS_CUR;
> END;
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: <A.Bahar_at_billing-components.com
> INET: A.Bahar_at_billing-components.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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Ryan
  INET: ryan.gaffuri_at_cox.net

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).

**************************************************************************************
This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.
**************************************************************************************4
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni_at_espn.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 Sun Jan 25 2004 - 10:19:24 CST

Original text of this message

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