Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

No trace file generated when I cannot thru a listener

Laurent SchneiderNov 27 2008 — edited Nov 28 2008
I am surely missing something trivial, thanks if you find it before me :)

I am trying to generate trace files with ALTER SESSION SET SQL_TRACE=TRUE. It works with a local connection, but not when connected thru a listener.

Any clue?
$ sqlplus scott/tiger

SQL*Plus: Release 9.2.0.8.0 - Production on Thu Nov 27 14:12:19 2008

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.8.0 - Production

SQL> select spid from v$process where addr=(select paddr from v$session where sid in (select sid from v$mystat));
SPID
------------
29334

SQL> alter session set sql_trace=true;

Session altered.

SQL> select sysdate from dual;
SYSDATE
---------
27-NOV-08

SQL> alter session set sql_trace=false;

Session altered.

SQL> quit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.8.0 - Production
$ cd /app/oracle/admin/LSC01/udump 
$ ls *29334*
lsc01_ora_29334.trc
$ sqlplus scott/tiger@lsc01

SQL*Plus: Release 9.2.0.8.0 - Production on Thu Nov 27 14:14:42 2008

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.8.0 - Production

SQL> select spid from v$process where addr=(select paddr from v$session where sid in (select sid from v$mystat));
SPID
------------
11395

SQL> alter session set sql_trace=true;

Session altered.

SQL> select sysdate from dual;
SYSDATE
---------
27-NOV-08

SQL> alter session set sql_trace=false;

Session altered.

SQL> quit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.8.0 - Production
$ cd /app/oracle/admin/LSC01/udump 
$ ls *11395*
*11395*: No such file or directory
This post has been answered by 153119 on Nov 27 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 26 2008
Added on Nov 27 2008
2 comments
771 views