Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> SQL INSERT FAILS - IDENTIFIER TOO LONG (ORA-00972)
What is really causing the insert to fail? My object name is 4 characters
long; max lenght is 30 characters. Oracle 10.2 on RHE rel 4.
This is from a back-end pl/sql process that is called by a perl script; we are not getting any errors from perl or the log file.
Trying it manually does show the error though.
SQL> DESC TEST
Name Null? Type ----------------------------------------- -------- ---------------------------- ALARM_ID NOT NULL NUMBER(38) ARHANDLE NOT NULL NUMBER(38) WACN NOT NULL NUMBER(38) SYSTEM NOT NULL NUMBER(38) RFSS NOT NULL NUMBER(38) SITE NOT NULL NUMBER(38) IPADDRESS NOT NULL VARCHAR2(16) SEVERITY NOT NULL NUMBER(38) CLEARED NOT NULL VARCHAR2(5) ACKNOWLEDGED NOT NULL VARCHAR2(5) ACK_TEXT NOT NULL VARCHAR2(1024) TIME_DETECTED NOT NULL NUMBER(38) NUM_SEEN NUMBER(38) LAST_SEEN NUMBER(38) ALIAS_NAME NOT NULL VARCHAR2(16) ELEM_TYPE NOT NULL NUMBER(38) ELEM_INST NOT NULL NUMBER(38) ALARM_CODE NOT NULL NUMBER(38) ALARM_DESC_TEXT NOT NULL VARCHAR2(80) ALARM_DIAG_TEXT NOT NULL VARCHAR2(128) CATEGORY NOT NULL NUMBER(38) ACK_TIME NUMBER(38) ACK_USERID VARCHAR2(16) CLEAR_TIME NUMBER(38) CLEAR_USERID VARCHAR2(16) AGENCY_ID NOT NULL NUMBER(38)
SQL> create table test as select * from alarm_tbl where 1=3;
Table created.
SQL> insert into test
2 values
3 (test_seq.nextval,1,1,1,1,1,"10.128.3.232",3,"false","false","none",1158784510000,1,1158784510000,"NMS",27,1,1283,"Unexpected
event in current state","Backup failed : Please check
/u02/backups/backups_26810.err for errors",5,,,,,1);
(ALARM_ID_SEQ.nextval,1,1,1,1,1,"10.128.3.232",3,"false","false","none",1158784510000,1,1158784510000,"NMS",27,1,1283,"Unexpected
event in current state","Backup failed : Please check
/u02/backups/backups_26810.err for errors",5,,,,,1)
*
ERROR at line 3:
ORA-00972: identifier is too long
Now without the sequence:
SQL> SQL> insert into test
values
(1,1,1,1,1,1,"10.128.3.232",3,"false","false","none",1158784510000,1,1158784510000,"NMS",27,1,1283,"Unexpected
event in current state","Backup failed : Please check
/u02/backups/backups_26810.err for errors",5,,,,,1);
2 3 (1,1,1,1,1,1,"10.128.3.232",3,"false","false","none",1158784510000,1,1158784510000,"NMS",27,1,1283,"Unexpected
event in current state","Backup failed : Please check
/u02/backups/backups_26810.err for errors",5,,,,,1)
*
ERROR at line 3:
ORA-00972: identifier is too long
-- Johan Muller Oracle DBA (214) 676 2147 anytime. "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." --Benjamin Franklin -- http://www.freelists.org/webpage/oracle-lReceived on Fri Sep 22 2006 - 07:45:54 CDT
![]() |
![]() |