Q

Creating a dblink without using tns_alias

If we can't update the tnsnames.ora file, is there a way to create a dblink without using the tns_alias? What is the format that adds in the port number, etc.?

If we can't update the tnsnames.ora file, is there a way to create a dblink without using the tns_alias? What is the format that adds in the port number, etc.?
Oracle 10g does let you use the "hostname:port/service_name" convention instead of a TNS alias when connecting to a remote database with SQL*Plus. However, a quick test of a database link using this convention results in a ORA-12154 error. You'll have to configure your TNSNAMES.ORA config file with the alias you want to use. Your DBA should be able to help you with this.
This was first published in November 2005

Dig deeper on Oracle and SQL

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close