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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Qlemo"Batchelor", 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.
 
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
BTW: With EasyConnect you can write a much more simple connection description as user/pwd@server/instance
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)
    )
  )
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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:
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
sqlplus sys@******/bcs.gordon

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 ?
HKDevAuthor Commented:
I have attached a diagram to try and help explain the situation a little more.

OracleSetup.jpg
Qlemo"Batchelor", 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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.