Solved

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

Posted on 2004-09-18
2
297 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
2 Comments
 
LVL 15

Assisted Solution

by:jdlambert1
jdlambert1 earned 65 total points
Comment Utility
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
Comment Utility
<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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Creating and Managing Databases with phpMyAdmin in cPanel.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now