Skip to content

Instantly share code, notes, and snippets.

@a3016c
a3016c / list.md
Created November 15, 2020 23:35 — forked from ih2502mk/list.md
Quantopian Lectures Saved
@a3016c
a3016c / alog.sh
Created October 19, 2016 19:36 — forked from DavidEGx/alog.sh
Example of tailing a log file with some colors using grep
#!/bin/bash
# Tail an apache log an put some colors into the output
# www.davideg.es
shopt -s expand_aliases
alias grey-grep="GREP_COLOR='1;30' grep -E --color=always --line-buffered"
alias red-grep="GREP_COLOR='1;31' grep -E --color=always --line-buffered"
alias green-grep="GREP_COLOR='1;32' grep -E --color=always --line-buffered"
alias yellow-grep="GREP_COLOR='1;33' grep -E --color=always --line-buffered"
-- Shared Pool
select * from table(dbms_xplan.display_cursor('SQL_ID',null,'ALL'));
-- AWR
select * from table(dbms_xplan.display_awr('SQL_ID',null,null,'ALL'));
select * from table(dbms_xplan.display_awr('SQL_ID',null,DBID,'ALL'));