question

Ellie Ryder avatar image
Ellie Ryder asked

Avoiding issues when choosing database names

Would using dots and dashes (e.g. "ABC.Testing" or "ABC-Testing") in naming databases create any issues in the future?

naming
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

HillbillyToad avatar image
HillbillyToad answered

Quoting objects in Oracle is generally a bad idea. That goes for databases, users, tables, etc. The only thing that should be case sensitive is a password, and that's only available in 11g and higher.

I realize this is just an opinion, but a lot of programs/users out there assume case-insensitive objects in oracle when developing their applications.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

dmann avatar image
dmann answered

Are you talking about DB_NAME? You can't get that fancy with it, 8 characters long and limited special characters. Here is the official blurb from the Oracle documentation for 10g on DB_NAME parameter:

DB_NAME specifies a database identifier of up to 8 characters. This parameter must be specified and must correspond to the name specified in the CREATE DATABASE statement. ... The following characters are valid in a database name: alphanumeric characters, underscore (_), number sign (#), and dollar sign ($). No other characters are valid. Oracle removes double quotation marks before processing the database name. Therefore you cannot use double quotation marks to embed other characters in the name. The database name is case insensitive.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

HillbillyToad avatar image HillbillyToad commented ·
>>The database name is case insensitive Sighs in relief :)
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.