Title: RE: How to select data from a LONG datatype

Ketan,

CONTAINS() is an Intermedia operator and will blow an error if no Intermedia index exists on the column that is indexed. 

Rodd, unfortunately I think you'll have to resort to PL/SQL.  You'd have to split the LONG field into the 32K varchar2 chunk and substr() it. We are making the (possibly wrong) assumption that any view definition is less than 32K long.  Metalink goes on to say that you can manipulate the full length of a long via JDBC (note 123009.1) and Pro*C (1007848.6).  I claim ignorance on both

I know this isn't good news and it's possible that others on the list have a better idea.

Lisa Koivu
Lawn Maintenance Technician (and DBA)
Ft. Lauderdale, FL, USA



    -----Original Message-----
    From:   Ketan Patel [SMTP:[EMAIL PROTECTED]]
    Sent:   Friday, July 20, 2001 2:01 AM
    To:     Multiple recipients of list ORACLE-L
    Subject:        Re: How to select data from a LONG datatype

    Hi,
    For long data type in selection use "contains" instead
    of like. Before this set environment for sql*plus like
    "  set long 5000 ".

    --- Rodd Holman <[EMAIL PROTECTED]> wrote:
    > How do I get past the inconsistent datatypes error
    > on the following?
    >
    > select *
    > from   dba_views
    > where  owner = 'SA'
    > and    text like '%/*%';
    >
    > We have some views that were migrated from 7.3.4 to
    > 8.0.5 and we suspect
    > that we
    > lost our hints in the migration and upgrade.  I want
    > to find which views
    > had hints in the old system so that I can bring them
    > forward.
    >
    > Rodd Holman
    > --
    > Please see the official ORACLE-L FAQ:
    > http://www.orafaq.com
    > --
    > Author: Rodd Holman
    >   INET: [EMAIL PROTECTED]
    >
    > 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: [EMAIL PROTECTED] (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).


    __________________________________________________
    Do You Yahoo!?
    Get personalized email addresses from Yahoo! Mail
    http://personal.mail.yahoo.com/
    --
    Please see the official ORACLE-L FAQ: http://www.orafaq.com
    --
    Author: Ketan Patel
      INET: [EMAIL PROTECTED]

    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: [EMAIL PROTECTED] (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).

Reply via email to