Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-00972 identifier is too long for

User713324-OracleMar 18 2011 — edited Mar 21 2011
Hi,

Customer on 11.2.0.1, Linux x86-64.

SQL> desc testtbl
Name Null? Type
----------------------------------------- -------- ----------------------------
COL1 VARCHAR2(10)
INCIDENT_DT_TM NOT NULL DATE
TESTCOL123456777 VARCHAR2(10)
TESTCOL1234567 VARCHAR2(10)

SQL> alter table testtbl drop column TESTCOL123456777;
alter table testtbl drop column TESTCOL123456777
*
ERROR at line 1:
ORA-00972: identifier is too long

I count 20 characters, not 30.

Customer is using/testing total recall.

customer then ran:
SQL> alter table testtbl rename column TESTCOL123456777 to testcol12345;

Table altered.

SQL> alter table testtbl drop column testcol12345;

Table altered.

SQL> select * from testtbl;

COL1 INCIDENT_ TESTCOL123
---------- --------- ----------
111 17-MAR-11
111 17-MAR-11
111 17-MAR-11
111 17-MAR-11

SQL> select * from testtbl as of timestamp(systimestamp -1);
select * from testtbl as of timestamp(systimestamp -1)
*
ERROR at line 1:
ORA-00904: "TESTCOL12345": invalid identifier

I'm not sure why the ORA-00972 signaled, nor why the column failed to materialize in the select from a flashed version.

Thanks,
Steve
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 18 2011
Added on Mar 18 2011
2 comments
689 views