Can I use special characters in Oracle table names?
Can I use special characters in Oracle table names?

    Requires Free Membership to View

    By submitting your registration information to SearchOracle.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchOracle.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

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 first published in November 2010

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.