Skip to content

Commit

Permalink
spool
Browse files Browse the repository at this point in the history
  • Loading branch information
xtender committed May 27, 2021
1 parent f118428 commit 1fd21a7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tracefile_spool.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@inc/input_vars_init;
set termout off;
col payload for a300;
spool "&2" replace
select
-- component_name,operation_name,file_name,function_name,line_number,
payload
from V$DIAG_TRACE_FILE_CONTENTS
where
trace_filename like '&1'
;
spool off;
col payload clear;
set termout on;

-- you can open file automatically using the following line:
-- host &_START &2

-- _START depends on OS: it is set automatically in inc/on_login_win or inc/on_login_nix
-- windows:
-- DEFINE _START ="start"
-- *nix:
-- DEFINE _START ="open"

0 comments on commit 1fd21a7

Please sign in to comment.