trcroute

The Oracle trcroute utility ( UNIX  only) enables DBAs to identify the actual route a connection takes from the client to the server through the Oracle network.  trcroute will provide very specific error messages in the event of a problem.  This makes debugging the connectivity issues much easier.  The utility requires an entry from tnsnames.ora file on the command line:

 

$ trcroute GRACELANV8_GRA901m

 

Trace Route Utility for Solaris: Version 9.0.1.0.0 - Production on 03-FEB-2003 1

4:04:51

 

Copyright (c) 1999 Oracle Corporation.  All rights reserved.

 

Route of TrcRoute:

------------------

 

Node: Client            Time and address of entry into node:

-------------------------------------------------------------

03-FEB-2003 14:04:51 ADDRESS= PROTOCOL=TCP  HOST=gracelan  PORT=1525

 

Node: Server            Time and address of entry into node:

-------------------------------------------------------------

03-FEB-2003 14:04:51 ADDRESS= PROTOCOL=TCP  HOST=gracelan  PORT=1525 

 

This example shows the client to server communication route between two listener processes.

 

Unlike tnsping, trcroute stops at each network "hop" and gathers certain information before advancing toward the final destination.  The listener handles all of the communication with trcroute, leaving the database out of the picture.

 

 UNIX  provides a utility that will show similar connectivity information between two hosts, independent of any Oracle services.  The traceroute utility can be found in /usr/sbin and only requires a host name or IP address. 

 

 

oracle@asgard:/usr/sbin > traceroute gracelan

traceroute to gracelan.bmc.com (172.18.16.215), 30 hops max, 40 byte packets

 1  aus6509vlan2-1.bmc.com (198.64.245.253)  0.431 ms  0.272 ms  0.257 ms

 2  gracelan.bmc.com (172.18.16.215)  0.430 ms  0.400 ms  0.641 ms         

 

The result of the traceroute command displays the time spent at each stop along the way. 

 

trcroute and traceroute are only available on  UNIX  platforms.  If the DBA needs to track the network paths that begin from Windows client machines trying to access a remote database server, the tracert utility (trace route) can be used.   tracert has nothing to do with the listener, but it does indicate the number of hops required to get from point A to point B, which can also be very helpful when debugging network connectivity issues.

 

D:\oracle\ora81\bin>tracert www.oracle.com

 

Tracing route to bigip-www.us.oracle.com [148.87.9.44]

over a maximum of 30 hops:

 

  1   <10 ms   <10 ms   <10 ms  gate18.bmc.com [172.18.1.63]

  2     *        *        *     Request timed out.

  3    10 ms   <10 ms   <10 ms  192.168.44.2

  4   <10 ms   <10 ms    10 ms  208.241.47.161

  5   <10 ms    10 ms    10 ms  244.ATM1-0.GW1.AUS3.ALTER.NET

[157.130.135.193]

  6    10 ms    10 ms    30 ms  161.at-6-0-0.XR2.DFW9.ALTER.NET

[152.63.101.86]

  7    40 ms    30 ms    30 ms  0.so-2-0-0.XL2.DFW9.ALTER.NET [152.63.102.5]

  8   120 ms   160 ms   110 ms  0.so-7-0-0.BR6.DFW9.ALTER.NET

[152.63.103.78]

  9   110 ms    70 ms    80 ms  so-1-0-0.edge1.Dallas1.Level3.net

[209.245.240.141]

 10   271 ms   200 ms   200 ms  so-5-0-0.gar1.Dallas1.level3.net

[209.244.15.161]

 11   321 ms    20 ms    20 ms  unknown.Level3.net [64.159.3.193]

 12   190 ms   220 ms   151 ms  so-3-0-0.mp2.SanJose1.Level3.net

[64.159.1.130]

 13   161 ms   130 ms   160 ms  gige9-0.hsipaccess1.SanJose1.Level3.net

[64.159.2.39]

 14    50 ms    80 ms    90 ms  unknown.Level3.net [209.245.144.66]

 15   121 ms    60 ms    70 ms  whq4op3o33-swi-1-rtr-1-v10.us.oracle.com

[148.87.1.6]

 16   200 ms   240 ms   251 ms  bigip-www.us.oracle.com [148.87.9.44]

 

Trace complete.

 

The route from this workstation to www.oracle.com took 16 hops.  It is easy to see which hops are the longest and where the bottlenecks occur. The number of hops indicates the number of times data is forwarded in the route between the client and the remote host. The more hops, the more time it takes and the greater the chance an error could occur.  Although this example uses a remote address (www.oracle.com), a utility such as this can be just as useful when debugging internal network performance. 

 
 
Copyright 2003, Rampant Tech Press, Dave Moore - All Rights Reserved. All product names and trademarks are property of their respective owners.