The naming methods are defined in the sqlnet.ora file of your Oracle Client. Direct Oracle Access merely passes the database name to the Oracle Client, which resolves the name as defined in the sqlnet.ora file.
By default the sqlnet.ora file is located in directory \Network\Admin.