Solved

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

Posted on 2004-09-18
2
305 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 65 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 60 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Read about achieving the basic levels of HRIS security in the workplace.
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

726 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