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: New bee: How to convert 'LONG' data

RE: New bee: How to convert 'LONG' data

From: Grabowy, Chris <cgrabowy_at_fcg.com>
Date: Wed, 22 May 2002 15:18:32 -0800
Message-ID: <F001.004687E5.20020522151832@fatcity.com>


Whew...my old failing memory is not totally useless...

-----Original Message-----
Sent: Wednesday, May 22, 2002 7:04 PM
To: Multiple recipients of list ORACLE-L

Because of the LONG you need to instead use the SQL*Plus COPY command.

 COPY


 COPY copies data from a query to a table in a local or remote  database.

 COPY {FROM database | TO database | FROM database TO database}

            {APPEND|CREATE|INSERT|REPLACE} destination_table
            [(column, column, column, ...)] USING query

 where database has the following syntax:
     username[/password]@connect_identifier


Before running COPY, you might need to set/adjust a few SQL*Plus settings (ARRAYSIZE and MAXDATA), and also 'set long 999999'.

Suzy

Sridhar Moparthy wrote:
>
> Hi,
>
> I have a table 'x' with one of the column as 'LONG'
> I would like to copy the data from the above table 'x' into a different
> table 'Y' with the same structure.
>
> When I tried "insert into x select * from y" I am getting
> "Illegal use of LONG data type".
>
> Could any one please help me to move the data?
>
> Thanks
> Sridhar.
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Sridhar Moparthy
> INET: sridhar.moparthy_at_wcom.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: Suzy Vordos
  INET: lvordos_at_qwest.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: Grabowy, Chris
  INET: cgrabowy_at_fcg.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).
Received on Wed May 22 2002 - 18:18:32 CDT

Original text of this message

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