Solved

Testing Connectivity

Posted on 2014-04-04
5
297 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.

Join & Write a Comment

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

762 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

18 Experts available now in Live!

Get 1:1 Help Now