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: longraw in a trigger HOWTO ?

Re: longraw in a trigger HOWTO ?

From: mike ding <mding1997_at_mail.net>
Date: Wed, 13 Dec 2000 11:21:48 -0500
Message-Id: <10709.124450@fatcity.com>


Since :NEW cannot be used with long(raw), you can use the same method of how to deal with mutating problem, that is using a package including global array, a after insert each row trigger to catch pk, and after insert table trigger to do population. But this method can only handle the data <32000, otherwise you have to use blob, which is recommended.

Regards

mike

>
>
> Hi Sonia,
>
> LONG, LONG RAW datatypes in triggers are subject to the following
> restrictions : (Oracle 8i )
>
> 1) A SQL statement within a trigger can insert data into a column of
> LONG or LONG RAW datatype.
> 2) If data from a LONG or LONG RAW column can be converted to a
> constrained datatype
> (such as CHAR and VARCHAR2), then a LONG or LONG RAW column can
> be referenced in a
> SQL statement within a trigger. The maximum length for these
> datatypes is 32000 bytes.
> 3) Variables cannot be declared using the LONG or LONG RAW datatypes.
> 4) :NEW and :PARENT cannot be used with LONG or LONG RAW columns.
>
> HTH
> Shreepad
>
>
>
>
> To: ORACLE-L_at_fatcity.com AT INTERNET_at_CCMAIL
> cc: (bcc: Shreepad Vaidya/EMEA/ALLTELCORP)
>
>
>
> Hello list,
> I have a table which is replicated through a trigger
> in a remote database using a db_link. Now we need to
> add a longraw column in the table. Is there a way to
> manipualte longraws through a trigger.
>
> thanks
> Sonia P.
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: sonia pajerowski
> INET: spajerowski_at_yahoo.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> 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.com
> --
> Author: Shreepad Vaidya
> INET: Shreepad.Vaidya_at_alltel.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> 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
Received on Wed Dec 13 2000 - 10:21:48 CST

Original text of this message

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