Thanks,
Eugene
The tkprof utility accepts user and password for explain; it doesn't
accept TNS aliases. Please read the documentation:
http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76992/ch14_str.htm#1256
David Fitzjarrell
David Fitzjarrell likely provided the answer that you need.
There is an interesting comment in Tom Kyte's "Expert Oracle One on
One" book, pages 461-62, that relate to the use of EXPLAIN with
TKPROF:
"I prefer to never use the EXPLAIN= however and would recommend the
same for you. The reason is that the explain plan query may differ
radically from the actual query used at run time. The only plan than
can be trusted is the plan saved in the trace file itself."
If the "Row Source Operation" heading appears in the TKPROF output,
that is the real plan. If it does not, directly open the trace file
and search for "STAT #" (without the quotes). The STAT lines only
print when the cursor is closed.
Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc.
Since you specified "@my_db", is my_db defined in your tnsnames.ora
config file? My bet is that 1) it is not defined there or 2) your
session is not using that tnsnames.ora config file.
If you can log in with SQL*Plus without using "@my_db", then do not
specify it with tkprof either. Otherwise, either define this entry in
your tnsnames.ora or use the TNS_ADMIN environment variable to point to
the directory holding this file.
HTH,
Brian
--
===================================================================
Brian Peasland
d...@nospam.peasland.net
http://www.peasland.net
Remove the "nospam." from the email address to email me.
"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown
--
Posted via a free Usenet account from http://www.teranews.com
set TNS_ADMIN=C:\ORANT\network\admin
Thanks
Nilesh
I'm not sure and didn't test, but any connection as sys usually
requires SYSDBA qualifier (with the exception of RMAN). It may be
something to check, at least, trying another user.
HTH,
Steve
You might want to consider using orasrp. Much more comprehensive
output and more accurate than tkprof.
See Cary Millsap's book "Optimizing Oracle Performance" or www.hotsos.com