dbTalk Databases Forums  

What's a quick simple way to test Oracle connectivity between client and database server?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss What's a quick simple way to test Oracle connectivity between client and database server? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Spin
 
Posts: n/a

Default What's a quick simple way to test Oracle connectivity between client and database server? - 11-01-2008 , 09:53 PM






Gurus,

Just learning Oracle. With help from a guru, installed 10g database on one
server and 10g client on another. What's a quick simple way to test Oracle
connectivity between these two servers at this point?

--
Spin


Reply With Quote
  #2  
Old   
Mark D Powell
 
Posts: n/a

Default Re: What's a quick simple way to test Oracle connectivity betweenclient and database server? - 11-01-2008 , 11:26 PM






On Nov 1, 11:53*pm, "Spin" <S... (AT) invalid (DOT) com> wrote:
Quote:
Gurus,

Just learning Oracle. *With help from a guru, installed 10g database onone
server and 10g client on another. *What's a quick simple way to test Oracle
connectivity between these two servers at this point?

--
Spin
Try the tnsping utility: tnsping service_name

The utility sends a message to listener specified by the tnsnames.ora
file entry for the service_name listed on the command line and
responds with ping type information.

HTH -- Mark D Powell --


Reply With Quote
  #3  
Old   
Mark D Powell
 
Posts: n/a

Default Re: What's a quick simple way to test Oracle connectivity betweenclient and database server? - 11-01-2008 , 11:26 PM



On Nov 1, 11:53*pm, "Spin" <S... (AT) invalid (DOT) com> wrote:
Quote:
Gurus,

Just learning Oracle. *With help from a guru, installed 10g database onone
server and 10g client on another. *What's a quick simple way to test Oracle
connectivity between these two servers at this point?

--
Spin
Try the tnsping utility: tnsping service_name

The utility sends a message to listener specified by the tnsnames.ora
file entry for the service_name listed on the command line and
responds with ping type information.

HTH -- Mark D Powell --


Reply With Quote
  #4  
Old   
Mark D Powell
 
Posts: n/a

Default Re: What's a quick simple way to test Oracle connectivity betweenclient and database server? - 11-01-2008 , 11:26 PM



On Nov 1, 11:53*pm, "Spin" <S... (AT) invalid (DOT) com> wrote:
Quote:
Gurus,

Just learning Oracle. *With help from a guru, installed 10g database onone
server and 10g client on another. *What's a quick simple way to test Oracle
connectivity between these two servers at this point?

--
Spin
Try the tnsping utility: tnsping service_name

The utility sends a message to listener specified by the tnsnames.ora
file entry for the service_name listed on the command line and
responds with ping type information.

HTH -- Mark D Powell --


Reply With Quote
  #5  
Old   
Mark D Powell
 
Posts: n/a

Default Re: What's a quick simple way to test Oracle connectivity betweenclient and database server? - 11-01-2008 , 11:26 PM



On Nov 1, 11:53*pm, "Spin" <S... (AT) invalid (DOT) com> wrote:
Quote:
Gurus,

Just learning Oracle. *With help from a guru, installed 10g database onone
server and 10g client on another. *What's a quick simple way to test Oracle
connectivity between these two servers at this point?

--
Spin
Try the tnsping utility: tnsping service_name

The utility sends a message to listener specified by the tnsnames.ora
file entry for the service_name listed on the command line and
responds with ping type information.

HTH -- Mark D Powell --


Reply With Quote
  #6  
Old   
Spin
 
Posts: n/a

Default Re: What's a quick simple way to test Oracle connectivity between client and database server? - 11-02-2008 , 09:22 PM



"Mark D Powell" <Mark.Powell (AT) eds (DOT) com> wrote

On Nov 1, 11:53 pm, "Spin" <S... (AT) invalid (DOT) com> wrote:
Try the tnsping utility: tnsping service_name

The utility sends a message to listener specified by the tnsnames.ora
file entry for the service_name listed on the command line and
responds with ping type information.

HTH -- Mark D Powell --

Is service_name a placeholder for something or do I literally type
"service_name"?


Reply With Quote
  #7  
Old   
Spin
 
Posts: n/a

Default Re: What's a quick simple way to test Oracle connectivity between client and database server? - 11-02-2008 , 09:22 PM



"Mark D Powell" <Mark.Powell (AT) eds (DOT) com> wrote

On Nov 1, 11:53 pm, "Spin" <S... (AT) invalid (DOT) com> wrote:
Try the tnsping utility: tnsping service_name

The utility sends a message to listener specified by the tnsnames.ora
file entry for the service_name listed on the command line and
responds with ping type information.

HTH -- Mark D Powell --

Is service_name a placeholder for something or do I literally type
"service_name"?


Reply With Quote
  #8  
Old   
Spin
 
Posts: n/a

Default Re: What's a quick simple way to test Oracle connectivity between client and database server? - 11-02-2008 , 09:22 PM



"Mark D Powell" <Mark.Powell (AT) eds (DOT) com> wrote

On Nov 1, 11:53 pm, "Spin" <S... (AT) invalid (DOT) com> wrote:
Try the tnsping utility: tnsping service_name

The utility sends a message to listener specified by the tnsnames.ora
file entry for the service_name listed on the command line and
responds with ping type information.

HTH -- Mark D Powell --

Is service_name a placeholder for something or do I literally type
"service_name"?


Reply With Quote
  #9  
Old   
Spin
 
Posts: n/a

Default Re: What's a quick simple way to test Oracle connectivity between client and database server? - 11-02-2008 , 09:22 PM



"Mark D Powell" <Mark.Powell (AT) eds (DOT) com> wrote

On Nov 1, 11:53 pm, "Spin" <S... (AT) invalid (DOT) com> wrote:
Try the tnsping utility: tnsping service_name

The utility sends a message to listener specified by the tnsnames.ora
file entry for the service_name listed on the command line and
responds with ping type information.

HTH -- Mark D Powell --

Is service_name a placeholder for something or do I literally type
"service_name"?


Reply With Quote
  #10  
Old   
Geoff Muldoon
 
Posts: n/a

Default Re: What's a quick simple way to test Oracle connectivity between client and database server? - 11-02-2008 , 10:11 PM



Spin says...
Quote:
"Mark D Powell" <Mark.Powell (AT) eds (DOT) com> wrote in message
news:ce947e1a-0877-4e46-a638-91d48e92e403 (AT) u29g2000pro (DOT) googlegroups.com...
On Nov 1, 11:53 pm, "Spin" <S... (AT) invalid (DOT) com> wrote:
Try the tnsping utility: tnsping service_name

The utility sends a message to listener specified by the tnsnames.ora
file entry for the service_name listed on the command line and
responds with ping type information.

Is service_name a placeholder for something or do I literally type
"service_name"?
On your client machine - in the tnsnames.ora file - you must have an entry
(or entries if you want the client to be able to connect to more than one
server or instance) which "describes" your server/instance to the client.

eg:
my_first_database =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = myserver.whereveritis.com)
(PORT = 1521)
)
(CONNECT_DATA =
(SERVICE_NAME = whatever_the_dba_called_it)
)
)

Yes, lower case entries in the above example are placeholders. HOST can
be be defined using a DNS-enabled name or an IP address. PORT in my
example is the usual default, SERVICE_NAME may or may not be a fully
qualified name depending on the how your database administrator set up the
server instance's listener. Often the entry name (my_first_database) and
the SERVICE_NAME (whatever_the_dba_called_it) are the same, but they need
not be.

Then from a command line prompt:
tnsping my_first_database

If the response is "OK" then the database instance is up, its listener is
running, and your client installation should be able to connect to it with
a valid username/password.

Geoff M


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.