Solved

Testing Connectivity

Posted on 2014-04-04
5
305 Views
Last Modified: 2014-04-04
Experts -

I do have a linux server A  with oracle 11g client installed. How can I test the connectivity to the Oracle server B (another server) from this linux A server?

The tnsping is NOT working.

Thanks,
Sve.
0
Comment
Question by:sventhan
  • 2
  • 2
5 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39978195
If tnsping isn't working then  then nothing using tnsnames connections will work.

What isn't working with tnsping?
0
 
LVL 76

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 250 total points
ID: 39978207
Also:  tnsping only talks to the listener not the database.

The database can be down and tnsping can still return an OK status if the listener knows about the database (the instance is hard-coded in the listener.ora file).
0
 
LVL 18

Author Comment

by:sventhan
ID: 39978287
Thanks Steve.

It looks like i've to setup the environment variables, .profile, oracle_home etc., to get this working. I've only installed the 11g client on the app server side, need to set up other env.
0
 
LVL 23

Accepted Solution

by:
David earned 250 total points
ID: 39978327
Some more common mistakes:  
-- the location of the tnsping is neither PATH'ed nor included
-- the host TNSNAMES.ORA is improperly PATH'ed
-- the host TNSNAMES.ORA is in error

I'll often recommend that to troubleshoot a statement, one must connect directly to the database host; log in with an authorized account; make a direct SQL*Plus connection (see: EZCONNECT syntax); and ensure the statement will complete.  THEN start re-layering complexity.
0
 
LVL 18

Author Closing Comment

by:sventhan
ID: 39978568
Thanks for the help.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

773 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