Q
Problem solve Get help with specific problems with your technologies, process and projects.

Entries for sqlnet.ora and tnsnames.ora

What are the simplest entries in sqlnet.ora and tnsnames.ora files that will make the connection to SID named ISGDB3 listening on port 10000 on host sjomir.eng.stsj.jafa.com?

What are the simplest entries in sqlnet.ora and tnsnames.ora files that will make the connection to SID named ISGDB3 listening on port 10000 on host sjomir.eng.stsj.jafa.com?
Your SQLNET.ORA configuration file does not need any entries in it. The defaults are enough to get you going.

The TNSNAMES.ORA configuration file needs a TNS entry to point to this remote database. At the minimum, that entry...

should look like the following:

ISGDB3 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = sjomir.eng.stsj.jafa.com)(PORT = 10000))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = ISGDB3)
    )
  )

It is my convention that the TNS alias name is the same name as the SERVICE_NAME parameter. But the TNS alias can be anything you choose. Once you have the TNS alias defined, you can use it in the userid/password@tns_alias construct to connect to a remote database.

This was last published in July 2006

Dig Deeper on Oracle database design and architecture

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.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close