Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SERVICE_NAMES parameter is case-sensitive??

FredCAug 17 2007 — edited Aug 17 2007

I created a new database and (out of sloppiness) made the value of the SERVICE_NAMES parameter mixed case. Then, in all the tnsnames.ora files in the system (both local and remote), I specified an uppercase value for the SERVICE_NAME parameter. I then observed the following strange behavior:

When connecting to the database from a remote server (e.g. with sqlplus system@mydb), the connection would fail with the following error:

ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor

I tested this from both Windows and Linux remote hosts; same result.

However, connecting from the local server (the same server that the database is on), using the same connection string (sqlplus system@mydb), I can connect.

Furthermore, all connection problems went away when I changed the database's SERVICE_NAMES to be all caps, matching the SERVICE_NAME parameter in the tnsnames.ora files.

I can find no reference to SERVICE_NAMES being case sensitive. Can anyone explain this behavior? Why would it work locally, but not remotely?

Database is 10gR2 running on RHEL4.

SERVICE_NAMES = MYDB.example.com

All tnsnames.ora files contain the following alias:

MYDB =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = EXAMPLE.COM)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = MYDB.EXAMPLE.COM)
    )
  )
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 14 2007
Added on Aug 17 2007
6 comments
4,951 views