• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 698
  • Last Modified:

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
0
HKDev
Asked:
HKDev
  • 4
  • 4
1 Solution
 
QlemoC++ DeveloperCommented:
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
 
QlemoC++ DeveloperCommented:
BTW: With EasyConnect you can write a much more simple connection description as user/pwd@server/instance
0
 
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
QlemoC++ DeveloperCommented:
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
 
QlemoC++ DeveloperCommented:
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

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now