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