Guys,
Someone know how to explain how I do a trace in Oracle?
and how to format this using TKProf.
My greatest difficulty is to use TKProf, I can not use it.
Someone could help me?
tkprof - SQLTrace
-
- Rank: Programador Júnior
- Posts: 28
- Joined: Fri, 09 Dec 2005 9:17 am
- Location: Itajai-SC
_______________________________________
Thiago Antonio
SCJP - Sun Certified Java Programer
SCJA - Sun Certified Java Associate
Thiago Antonio
SCJP - Sun Certified Java Programer
SCJA - Sun Certified Java Associate
-
- Rank: DBA Sênior
- Posts: 372
- Joined: Tue, 24 Jan 2006 3:33 pm
- Location: Palmas - TO
- Contact:
Thiago, this week I'm doing an Oracle course (database tuning), which speaks exactly the correct way to activate and manage this type of activity in the bank.
If you do not have Avechado, on Friday when you finish the course, I'll give you a summary of how to perform a trace in the bank.
Gilberto
If you do not have Avechado, on Friday when you finish the course, I'll give you a summary of how to perform a trace in the bank.
Gilberto
-
- Rank: DBA Sênior
- Posts: 372
- Joined: Tue, 24 Jan 2006 3:33 pm
- Location: Palmas - TO
- Contact:
Well, it's not quite what I'd like to describe! But as my service is pulled, I think this link http://www.oracle-base.com/articles/8i/ ... eTrace.php summarizes what can be done.
I hope it helps!
Gilberto
I hope it helps!
Gilberto
- dr_gori
- Moderador
- Posts: 5024
- Joined: Mon, 03 May 2004 3:08 pm
- Location: Portland, OR USA
- Contact:
Thomas F. G
Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered
Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered
That's it guys!
TKProf is nothing more than a utility that converts Trace binary files to "understandable text" by us.
What are traces?
is a log of everything that happens in the bank. Each DML command executed, times, statistics, etc. This file is recorded on the Oracle server. To know where it writes, turn this SQL:
Oracle generates a sequential file for the trace files. Maybe you have to know the name of the file by the creation date. Of course, you must have to read in this directory to access it.
With this file, you run the TKProf, so:
But how am I active Trace?
There are several forms!
In SQL * Plus you can rotate the following command:
How to activate Trace of another session?
How to activate Trace in Reports? http://en.glufke.net/oracle/viewtopic.php?t=45
How to activate Trace Level 12? (which is the most detailed of all traces)
's
TKProf is nothing more than a utility that converts Trace binary files to "understandable text" by us.
What are traces?
is a log of everything that happens in the bank. Each DML command executed, times, statistics, etc. This file is recorded on the Oracle server. To know where it writes, turn this SQL:
SQL> select *
2 from v$parameter
3 where name like 'user_dump_dest'
4 /
NUM NAME TYPE VALUE
---------- ----------------- ---------- -------------------------------
750 user_dump_dest 2 /app/oracle/admin/tsas/udump
1 row selected.
SQL>
With this file, you run the TKProf, so:
TKPROF <arquivo_origem.trc> <seu_arq_de_saida.txt>
There are several forms!
In SQL * Plus you can rotate the following command:
ALTER SESSION SET SQL_TRACE = TRUE;
ALTER SESSION SET SQL_TRACE = FALSE;
EXEC SYS.DBMS_SYSTEM.SET_SQL_TRACE_IN_SESSION( <o_sid> , <o_serial#> ,true);
EXEC SYS.DBMS_SYSTEM.SET_SQL_TRACE_IN_SESSION( <o_sid> , <o_serial#> ,false);
How to activate Trace Level 12? (which is the most detailed of all traces)
EXEC SYS.DBMS_SYSTEM.SET_EV( <sid>, <serial#>,10046,12, '');
-
- Rank: Programador Júnior
- Posts: 28
- Joined: Fri, 09 Dec 2005 9:17 am
- Location: Itajai-SC
_______________________________________
Thiago Antonio
SCJP - Sun Certified Java Programer
SCJA - Sun Certified Java Associate
Thiago Antonio
SCJP - Sun Certified Java Programer
SCJA - Sun Certified Java Associate
Thank you guys .... Great.
- dr_gori
- Moderador
- Posts: 5024
- Joined: Mon, 03 May 2004 3:08 pm
- Location: Portland, OR USA
- Contact:
Thomas F. G
Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered
Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered
In this case, I think the best way is to create a trigger at the bank level - after logon.
Hence you log in a table the session information (collected in the V $ session).
Hence you log in a table the session information (collected in the V $ session).
-
- Information
-
Who is online
Users browsing this forum: No registered users and 14 guests