ORA-00997: illegal use of LONG datatype 1. 错误原因 ORA-00997 错误表明在 Oracle 数据库中非法使用了 LONG 数据类型。LONG 数据类型是 Oracle 中一种较旧的大字段数据类型,用于存储可变长度的字符数据,但由于其限制较多,Oracle 推荐在新的开发中使用 CLOB(Character Large Object)或其他更现代的数据类型。 LO...
ORA-997非法使用LONG字段类型 Oracle在对表记录做插入时,如果使用insert…select…类型的语句,且操作中含有LONG/LONGRAW字段类型,那么会遇到报错ORA-00997:illegaluseofLONGdatatype。 SQL>createtablet1(numnumber,num2long); Tablecreated. SQL>insertintot1values(1,1); 1rowcreated. SQL>commi...
create table test8 AS select DIRECTIONS from siebel.s_org_ext; create table test8 AS select DIRECTIONS from siebel.s_org_ext * ERROR at line 1: ORA-00997: illegal use of LONG datatype SOLUTION: In general, we can’t create an object_type OF LONG datatype using CTAS method. desc sieb...
ORA-997非法使用LONG字段类型 Oracle在对表记录做插入时,如果使用insert…select…类型的语句,且操作中含有LONG/LONGRAW字段类型,那么会遇到报错ORA-00997:illegaluseofLONGdatatype。 SQL>createtablet1(numnumber,num2long); Tablecreated. SQL>insertintot1values(1,1); 1rowcreated. SQL>commi...
Oracle 10.2.0.4 中转换long类型到CLOB类型时出现ORA-00997: illegal use of LONG datatype错误。 最后用TO_LOB()函数解决: INSERT INTO T_CLOB SELECT A, TO_LOB(B) FROM T_LONG; Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 ...
During PeopleTools upgrade or PeopleSoft application upgrade, you may get an Oracle error: ORA-00997: illegal use of LONG datatype. This post will walk you through the steps to workaround and resolve the error. I encountered this error during PTools upgrade and based on the symptoms, it lo...
红色的字体是问题所在 tsp.durtime 我在tsp的基类中设置的Long类型 。使用就会报ORA-00997: illegal use of LONG datatype 不知道如何解决,我现在只能改成max((tsp.endTime-tsp.begTime)*24*60) 我想知道 如果我一定要用Long 该怎么做。为什么。谢谢。 Hibernate...
Oracle在对表记录做插入时,如果使用insert … select …类型的语句,且操作中含有LONG/LONG RAW字段类型,那么会遇到报错ORA-00997: illegal use of LONG datatype。 SQL>create table t1 (num number,num2 long); Table created. SQL>insert into t1 values(1,1); ...
Oracle Database - Enterprise Edition - Version 9.2.0.6 to 9.2.0.8 [Release 9.2]: How To Workaround Error: Ora-00997: Illegal Use Of Long Datatype
long列是不允许出现在create table xx as select * from yyy里的 oracle建议使用clob\blob\nclob来代替。如:create table t(a int,b long);insert into t values(1,'1');--可以这样创建,不过默认类型就成了clob create table t1 as select a,to_lob(b) from t;--也可以这样,先创建一个...