?
Solved

tnsnames.ora file --- including port along with Hostname/ IP address

Posted on 2004-09-18
2
Medium Priority
?
308 Views
Last Modified: 2013-11-18
Can we include the port along with the IP address in tnsnames.ora file to connect to an IP address across a port (not in the same LAN network) ?

eg: HOST = 204.56.64.12 65012 (PORT = 1521)

or HOST = 204.56.64.12  (PORT = 65012)

both the above the examples did not work for me ,

any ideas/inputs/suggestions ?

(Btw, do we always need PORT =1521 to be included for oracle ? or are there any alternatives) ?

0
Comment
Question by:vsuripeddi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Assisted Solution

by:jdlambert1
jdlambert1 earned 195 total points
ID: 12096739
The correct syntax is:

(HOST = 204.56.64.12)  (PORT = 65012)

You can use any port number, but the client and server need to be configured on the same port -- it does no good to "talk" on one port number if the Listener isn't listening on that port. Also, since both computers should be behind firewalls, both firewalls will have to have the same port number open for Oracle traffic. Port 1521 is the standard (default) port for Oracle.
0
 
LVL 9

Accepted Solution

by:
konektor earned 180 total points
ID: 12099839
<database name, which u will use to connect>.<domain name, usually "world"> =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = <IP of db server, or it's name>)(PORT = <port>))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = <database SID>)
    )
  )

but <port> is the number of port on which database listerner listen. it is usually 1521 - but u can change it while installing (usually, when 1521 is used)
port is usually 4-digit, i'm affraid, that your number 65012 is port of something else ...
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question