ORA-00972: identifier is too long [message #560542] |
Sat, 14 July 2012 02:56  |
 |
sam524
Messages: 77 Registered: July 2012 Location: sydney
|
Member |
|
|
SQL> alter system "_allow_level_without_connect_by"=true scope=spfile;
alter system "_allow_level_without_connect_by"=true scope=spfile
*
ERROR at line 1:
ORA-00972: identifier is too long
how to solve this query
|
|
|
|
|
|
Re: ORA-00972: identifier is too long [message #560566 is a reply to message #560563] |
Sat, 14 July 2012 10:26   |
John Watson
Messages: 8988 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Quote:need help really appriciate.... Well, I would really appreciate it if you were to say "thank you" to the people who try to assist you. Also,
Quote:Please read our OraFAQ Forum Guide and How to use [code] tags and make your code easier to read and lastly, we have no idea of what your code is doing, or why you want to set that hidden parameter. I see no way that I can assist further. Perhaps someone else can.
|
|
|
|
|
|
|
|
|
Re: ORA-00972: identifier is too long [message #560580 is a reply to message #560578] |
Sun, 15 July 2012 03:15  |
 |
Michel Cadot
Messages: 68767 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
So either you wrongly use LEVEL pseudo-column in a non hierarchical query (CONNECT BY), either you called LEVEL a column.
In the former, fix the query, LEVEL is irrelevant.
In the latter, either change the name of the expression alias (if it is one), or change the name of the column (if it is a table column), or enclose it between ".
SQL> create table x ("LEVEL" integer);
Table created.
SQL> select level from x;
select level from x
*
ERROR at line 1:
ORA-01788: CONNECT BY clause required in this query block
SQL> select "LEVEL" from x;
no rows selected
But the BEST solution is to change the name of the column and to ALWAYS check v$reserved_words when you create an object.
And the WORST solution is the one you took: use a hidden parameter.
Regards
Michel
[Updated on: Sun, 15 July 2012 03:15] Report message to a moderator
|
|
|