Home
All Oracle Error Codes
Oracle DBA Forum

Frequent Oracle Errors

TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated

SQL INSERT FAILS - IDENTIFIER TOO LONG (ORA-00972)

Johan Muller

2006-09-22

Replies:
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