Home » RDBMS Server » Server Administration » long data type illegal?
long data type illegal? [message #573326] Wed, 26 December 2012 14:46 Go to next message
maninderkrb
Messages: 41
Registered: August 2012
Location: India
Member

when I try comnd
create table a as select * from b where 1=2;
it says illegal datatype long
i m bemused what sin has the long datatype done?
Re: long data type illegal? [message #573327 is a reply to message #573326] Wed, 26 December 2012 14:56 Go to previous messageGo to next message
LKBrwn_DBA
Messages: 362
Registered: July 2003
Location: WPB, FL
Senior Member
Oracle® Database SQL Language Reference: LONG Data Type

Do not create tables with LONG columns. Use LOB columns (CLOB, NCLOB, BLOB) instead. LONG columns are supported only for backward compatibility.


[Updated on: Wed, 26 December 2012 15:09] by Moderator

Report message to a moderator

Re: long data type illegal? [message #573328 is a reply to message #573326] Wed, 26 December 2012 15:11 Go to previous messageGo to next message
Michel Cadot
Messages: 54672
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
LONG datatypes are obsolete since more than 15 years.
Do you still use Windows 95 on your PC?
Anyone that still uses LONG datatype just deserves the hell where they are.

Regards
Michel
Re: long data type illegal? [message #573452 is a reply to message #573328] Fri, 28 December 2012 12:32 Go to previous messageGo to next message
msol25
Messages: 214
Registered: June 2011
Location: Mumbai
Senior Member
Dear Lkbrawn,

Please ignore to use Long datatype,Instead you can use CLOB Datatype.You can also assign values to long datatype as i have used in oracle 8i,but
you need to create xml and save into particular unix location and then call that file using sqlldr,then you will able to load that .xml file
into particular long datatype column.But i think u can't assign directly to long datatype as it is depricated before 8i as well.
Re: long data type illegal? [message #573454 is a reply to message #573452] Fri, 28 December 2012 12:51 Go to previous message
LKBrwn_DBA
Messages: 362
Registered: July 2003
Location: WPB, FL
Senior Member
msol25 wrote on Fri, 28 December 2012 13:32

Please ignore to use Long datatype,Instead you can use CLOB Datatype.You can also assign values to long datatype as i have used in oracle 8i,but you need to create xml and save into particular unix location and then call that file using sqlldr,then you will able to load that .xml file into particular long datatype column.But i think u can't assign directly to long datatype as it is depricated before 8i as well.


Dear mumbai,
What are you talking about?


[Updated on: Fri, 28 December 2012 12:53] by Moderator

Report message to a moderator

Previous Topic: Oracle Upgrade to 11G issue
Next Topic: TNS-12505: TNS:listener does not currently know of SID given in connect descriptor
Goto Forum:
  


Current Time: Tue Jun 18 20:33:50 CDT 2013

Total time taken to generate the page: 0.10715 seconds