Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check whether an object name is valid or not?

Status
Not open for further replies.

yang99

Programmer
Sep 23, 2004
2
CA
Hi all,

I came across a requirement to check whether a given object name is valid or not, according to ORACLE's naming regulation. In other words, I want to validate the name before I actually send the request (create, or select, or whatever) to the database.

Is there any server/client side function or tool dealing with this issue? FYI, the naming regulation is on page
Thanks

Yang
 
I don't know about such function, but you may try to create an object and then just catch an error. BTW, using double quotes may allow almost arbitrary names, thus the length is the only restriction.

Regards, Dima
 
Thanks Sem. You are right. By applying the length restriction plus checking double quotes is good enough for time being.

Yang
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top