![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
On Mar 4, 1:31*pm, jodleren <sonn... (AT) hot (DOT) ee> wrote: snip I use Borland Database Explorer, and using alter system set timed_statistics=true then * ALTER SYSTEM SET EVENT='10046 trace name context forever, level 12' SCOPE=spfile; Yeah that's kind of the starting point. *The idea is one approach is to have a trigger look at all the new sessions *( new connections ) and set the tracing for just the database session ( the odbc work ) that you want to get traced. Do you have permission from IT management for what you are trying to do? If the DBA is dead are there other people in your organization that might be useful in helping you get the information that you need? At your experience level you really want to figure out how to get this type of stuff done on a test system first ... please. |
#12
| |||
| |||
|
|
On Mar 5, 2:51*am, John Hurley <johnbhur... (AT) sbcglobal (DOT) net> wrote: On Mar 4, 1:31*pm, jodleren <sonn... (AT) hot (DOT) ee> wrote: snip I use Borland Database Explorer, and using alter system set timed_statistics=true then * ALTER SYSTEM SET EVENT='10046 trace name context forever, level 12' SCOPE=spfile; Yeah that's kind of the starting point. *The idea is one approach is to have a trigger look at all the new sessions *( new connections ) and set the tracing for just the database session ( the odbc work ) that you want to get traced. Do you have permission from IT management for what you are trying to do? If the DBA is dead are there other people in your organization that might be useful in helping you get the information that you need? At your experience level you really want to figure out how to get this type of stuff done on a test system first ... please. I am on a test system, and I am the only user - besides test-intranet. And I can see 2 users, me and the storage programme. I have got all possible permitions possible and can access it all. I also see that it is not borland, but that does not stop me from reading it. I understand it. But let me return to my problem: I can get tracing from my database explorer, but not from my storage programme... why? |
#13
| |||
| |||
|
|
But let me return to my problem: I can get tracing from my database explorer, but not from my storage programme... why? |
#14
| |||
| |||
|
|
On Fri, 05 Mar 2010 03:37:51 -0800, jodleren wrote: But let me return to my problem: I can get tracing from my database explorer, but not from my storage programme... why? The answer to that question depends on the error message you're getting when you try to do that. --http://mgogala.byethost5.com |
17.16450) 2010-03-05 13:59:31.268
9.32137) 2010-03-05 18:02:42.781
#15
| |||
| |||
|
|
ORA-01031: insufficient privileges |
#16
| |||
| |||
|
|
On Fri, 05 Mar 2010 08:11:13 -0800, jodleren wrote: ORA-01031: insufficient privileges If I was out and could respond to usenet messages, what would the above line suggest to you? |

#17
| |||
| |||
|
|
On Fri, 05 Mar 2010 08:11:13 -0800, jodleren wrote: ORA-01031: insufficient privileges If I was out and could respond to usenet messages, what would the above line suggest to you? |
#18
| |||
| |||
|
|
create or replace trigger set_trace after logon on database begin * if user not in ('SYS','SYSTEM') then * *execute immediate 'alter session set timed_statistics=true'; * *execute immediate 'alter session set max_dump_file_size=unlimited'; * *execute immediate 'alter session set sql_trace=true'; * end if; * exception * when others then * *null; * end; / it works, but the log files states "ORA-04098: trigger 'WISE.SET_TRACE' is invalid and failed re-validation" |
#19
| |||
| |||
|
|
Did you install the trigger as SYSDBA? |
![]() |
| Thread Tools | |
| Display Modes | |
| |