Unix Technical Forum

Problem with LONG datatype column

This is a discussion on Problem with LONG datatype column within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hi, I need to move one table from one schema to another. Unfortunatelly one of the column is a ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 11:16 AM
sati_82
 
Posts: n/a
Default Problem with LONG datatype column

Hi,

I need to move one table from one schema to another. Unfortunatelly one
of the column is a LONG datatype. I tried to do it in that way:
CREATE TABLE destination_table AS SELECT * FROM source_table

and in this way:
First I created Table and then: INSERT INTO destination_table SELECT *
FROM source_table

In both cases I received an error ORA-00997. Is there any solution of
this problem?

Best regards,
Krystian

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 11:16 AM
Martin T.
 
Posts: n/a
Default Re: Problem with LONG datatype column

sati_82 wrote:
> Hi,
>
> I need to move one table from one schema to another. Unfortunatelly one
> of the column is a LONG datatype. I tried to do it in that way:
> CREATE TABLE destination_table AS SELECT * FROM source_table
>
> and in this way:
> First I created Table and then: INSERT INTO destination_table SELECT *
> FROM source_table
>
> In both cases I received an error ORA-00997. Is there any solution of
> this problem?
>
> Best regards,
> Krystian


Basically the first hit on google web (search: ORA-00997) describes
this problem, and this http://www.dbaxchange.com/3_4_longdatatypes.htm
looks like a nice description and workaround to me.

- cheers -

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 11:16 AM
DA Morgan
 
Posts: n/a
Default Re: Problem with LONG datatype column

sati_82 wrote:
> Hi,
>
> I need to move one table from one schema to another. Unfortunatelly one
> of the column is a LONG datatype. I tried to do it in that way:
> CREATE TABLE destination_table AS SELECT * FROM source_table
>
> and in this way:
> First I created Table and then: INSERT INTO destination_table SELECT *
> FROM source_table
>
> In both cases I received an error ORA-00997. Is there any solution of
> this problem?
>
> Best regards,
> Krystian


DBMS_SCHEMA_COPY will move the entire schema.
Export/Import or DataPump to move one table.

Demos in Morgan's Library at www.psoug.org.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:47 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com