Q

Can I use special characters in Oracle table names?

Learn why you may want to avoid using special characters in Oracle table names when they also have meaning in utilities or SQL scripts in this tip from Oracle database expert Brian Peasland.

I have been working in Oracle databases for years, and have always been advised not to use odd characters such...

as periods, stars, under-scores, spaces and whatnot. I was never truly told why this could be an issue or even if this is still an issue now that I am using R12.

I have stayed away from @, $, &, *, `, and ' in any table name, database password and other places an identifier is noted. The biggest reason is that these characters often have meaning in scripts or for utilities. For instance, in SQL*Plus, the '@' symbol is often used to define a TNSNAMES entry for connecting to a database. In Shell scripts, the '$' character often means what follows is a variable name. If these special characters are used in table names (for instance), then a shell script interacting with that table may not function properly. You may find that there are other special characters as well. 

This was last published in November 2010

Dig Deeper on Oracle database design and architecture

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close