Oracle 10g Remote Reolocation issues - TNS Listner

I have just had to move a windows server to a collocated location and am having problems connecting to the Oracle 10g Database on that machine remotely from my development machine via SQL plus or OEM.

Error: TNS-12541: TNS:no listener

Pinging the remote database machine from my development machine is successful
TNSPing shows the no listener error
local tnsping behind firewall results "OK (10 msec)"

I have changed the tnsnames.ora to contain the new ip number on my development machine and opened the remote firewall for the port I am using.

Do I need to also update ora files on the Remote Database machine.

The remote setup is up and running fine with all connections to the Database fine in that location. (ie behind the firewall and on the local network)...

Currently:

Dev Machine (location 1) tnsnames.ora

BCS.GORDON =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = ***.***.***.***)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = bcs.gordon)
    )
  )

Remote Database (location 2) listener.ora

# listener.ora Network Configuration File: D:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

LISTENER_GORDON =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = gordon)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
  )

SID_LIST_LISTENER_GORDON =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
      (PROGRAM = extproc)
    )
  )


Remote Database (location 2) tnsnames.ora

BCS.GORDON =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = Gordon)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = bcs.gordon)
    )
  )


Any guidance would be appreciated
LVL 1
HKDevAsked:
Who is Participating?
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
Open ports: as this is 10g, all requests are made on port 1521 (before, 1521 was only the negotiation port, and a negotiated dynamic port was used for the actual connection).

Your problem with pinging the dev machine does not matter. I suppose you use a public ip as target address. Did you forward the 1521 port to the internal address of Oracle?
Or are you using a VPN or similar connection building a private network?
In any case, if NAT is applied, your machine's IP is translated to another IP, and is not pingable.
0
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
Try to use (SID=bcs.gordon) instead of the service name in your local tnsnames.ora. If that helps, it is a global name or domain issue. You can try to disable NTS auth in remote sqlnet.ora, so no additional domain parts are added to the service name by Oracle.
 
0
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
BTW: With EasyConnect you can write a much more simple connection description as user/pwd@server/instance
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
HKDevAuthor Commented:
Thanks for the reply. Is this what you mean for my local dev machine?

Dev Machine (location 1) tnsnames.ora

BCS.GORDON =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = ***.***.***.***)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SID = bcs.gordon)
    )
  )
0
 
HKDevAuthor Commented:
I tried this with no success. Still the same error.

C:\Documents and Settings\ChrisL>sqlplus "sys@bcs.gordon/***** as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Nov 4 16:24:16 2008
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
ERROR:
ORA-12541: TNS:no listener
Enter user-name:
0
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
sqlplus sys@******/bcs.gordon

0
 
HKDevAuthor Commented:
Still no luck.

I cannot ping my Dev machine from the oracle machine? but I can ping the oracle machien from my dev machine.

What ports would need to be open on both firewalls ?
0
 
HKDevAuthor Commented:
I have attached a diagram to try and help explain the situation a little more.

OracleSetup.jpg
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.