2026-03-12 20:23:15

This commit is contained in:
root
2026-03-12 21:23:47 +01:00
parent eab4b36eca
commit 93039b8489
3332 changed files with 699614 additions and 0 deletions

30
tpt/cborun.sql Normal file
View File

@@ -0,0 +1,30 @@
-- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
exec e2sn_monitor.cbo_trace_on;
def cbo_suffix ="/* cbotrace &_DATE */"
clear buffer
1 &1 &cbo_suffix
/
exec e2sn_monitor.cbo_trace_off
prompt Fetching tracefile...
set trimspool on termout off
spool &_tpt_tempdir/cbotrace_&_tpt_tempfile..txt
prompt &1 &cbo_suffix
select column_value CBO_TRACE
from table (e2sn_monitor.get_session_trace)
where regexp_like(column_value, '&2', 'i') or lower(column_value) like lower('&2');
spool off
set termout on
set define ^
host mvim ^_tpt_tempdir/cbotrace_^_tpt_tempfile..txt &
set define &