Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > move table with datatype long

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-24-03, 07:40
jeyagowri jeyagowri is offline
Registered User
 
Join Date: Mar 2003
Posts: 11
move table with datatype long

ALTER TABLE APPFLAG MOVE TABLESPACE PAY_DATA
*
ERROR at line 1:
ORA-00997: illegal use of LONG datatype

I have one table which has a LONG datatype, i have to move this table to another tablespace.
the sourcedb was using system tablespace but in targetdb we need to use pay_data tablespace.
i have managed to move all the other tables however i have the above error with this one table.
how can i solve this.
there are data in this table therefore i will not be able to create it again.
please advise.
thanks.
Reply With Quote
  #2 (permalink)  
Old 04-24-03, 08:08
OBRP OBRP is offline
Registered User
 
Join Date: Apr 2002
Posts: 31
Consider import/export utilities or COPY command from SQLPLUS.

HTH,
OBRP
Reply With Quote
  #3 (permalink)  
Old 04-24-03, 10:33
osy45 osy45 is offline
Registered User
 
Join Date: Nov 2002
Posts: 833
the following works for me:

exp the table tbl_with_long

imp usr/pwd@sid file=tbl_with_long show=y log=crttbl.sql

edit the crttbl.sql and adjust the storage clause to the new tablespace

drop all the constraints ... in the system tablespace for the table tbl_with_long

imp sys/pwd@sid file=tbl_with_long fromuser=fromusr touser=touser ignore=yes rows=y
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On