dbTalk Databases Forums  

"_" on first character -> ORA-00911: invalid character

comp.databases comp.databases


Discuss "_" on first character -> ORA-00911: invalid character in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Karol
 
Posts: n/a

Default "_" on first character -> ORA-00911: invalid character - 04-01-2009 , 07:54 AM






Hi
In SQL command od Oracle 9i I look error because "_" is invalid character.

examle:
grant all on _USER_REPL_NESTED_TABLE_NAMES to baza_prog_admin
*
ERROR at line 1:
ORA-00911: invalid character


Why "_" on first character is invalid?



Reply With Quote
  #2  
Old   
Ed Prochak
 
Posts: n/a

Default Re: "_" on first character -> ORA-00911: invalid character - 04-01-2009 , 08:04 AM






On Apr 1, 7:54*am, "Karol" <n... (AT) mail (DOT) com> wrote:
Quote:
Hi
In SQL command od Oracle 9i *I *look error because "_" is invalid character.

* * * * examle:
* * * * grant all on _USER_REPL_NESTED_TABLE_NAMES to baza_prog_admin
* * * * * * * * * * * * **
* * * * ERROR at line 1:
* * * * ORA-00911: invalid character

Why "_" on first character is invalid?
Because that is the syntax of identifiers. RTFM.
http://download.oracle.com/docs/cd/B...008.htm#i27570

Among the rules is this:
"Nonquoted identifiers must begin with an alphabetic character from
your database character set. Quoted identifiers can begin with any
character."

Ed


Reply With Quote
  #3  
Old   
Lee Fesperman
 
Posts: n/a

Default Re: "_" on first character -> ORA-00911: invalid character - 04-04-2009 , 05:02 PM



On Apr 1, 6:04*am, Ed Prochak <edproc... (AT) gmail (DOT) com> wrote:
Quote:
On Apr 1, 7:54*am, "Karol" <n... (AT) mail (DOT) com> wrote:

Hi
In SQL command od Oracle 9i *I *look error because "_" is invalid character.

* * * * examle:
* * * * grant all on _USER_REPL_NESTED_TABLE_NAMES to baza_prog_admin
* * * * * * * * * * * * **
* * * * ERROR at line 1:
* * * * ORA-00911: invalid character

Why "_" on first character is invalid?

Because that is the syntax of identifiers. RTFM.http://download.oracle.com/docs/cd/B.../b14200/sql_el...

Among the rules is this:
"Nonquoted identifiers must begin with an alphabetic character from
your database character set. Quoted identifiers can begin with any
character."
In Standard SQL, a leading underscore has special meaning as an
'introducer'. It precedes the qualified character set name that
modifies a
following character string literal or identifier. This specifies the
character set used in the literal or identifier.

Because of the above, Standard SQL does not allow a leading underscore
for
a unquoted identifier. It's one place where Oracle complies with the
standard.

--
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
================================================== ============
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.