Knowledge

SQL Scripts

explain.sql

(download)

by Jeff Maresh. A fully instrumented EXPLAIN PLAN script for Oracle8i, extracting informat ...(more)

enqwaits.sql

(download)

SQL*Plus script creates a stored procedure named ENQWAITS, which produces a detailed repor ...(more)

extmap.sql

(download)

SQL*Plus script that might save your life someday! The report's main purpose is to provide ...(more)

filestat.sql

(download)

SQL*Plus script to help you interpret the data in the V$FILESTAT view, to help detect thos ...(more)

function_idx.sql

(download)

SQL*Plus script to query the database and list all function based indexes.

gen_analyze_dd.sql

(download)

SQL*Plus script to query the Oracle data dictionary in order to generate another SQL*Plus ...(more)

gen_pin.sql

(download)

I execute this script on a daily basis (at a low period) in order to pin frequently execut ...(more)

gen_rebuild_idx.sql

(download)

Along with invalidated compiled objects (see gen_recompile_idx.sql below), indexes marke ...(more)

gen_recompile.sql

(download)

Invalidated objects (such as packages, procedures, views, etc) cause real trouble in envir ...(more)

hc.sql

(download)

SQL*Plus script which executes an "anonymous" PL/SQL block to perform a "health check" of ...(more)

i.sql

(download)

SQL*Plus script on the ALL_IND_COLUMNS view to display all indexes associated with a table ...(more)

latches.sql

(download)

SQL*Plus script to query the V$LATCH view and detect the latch families experiencing the h ...(more)

latchfree.sql

(download)

SQL*Plus script which queries the V$SESSION_WAIT view to identify all of the sessions curr ...(more)

logswitch.sql

(download)

SQL*Plus script for Oracle8 databases which runs an "anonymous" PL/SQL block to query the ...(more)

locks.sql

(download)

SQL*Plus script to query the V$LOCK view and provide a decoded report, identifying blocker ...(more)

mts.sql

(download)

SQL*Plus script which queries the V$DISPATCHER, V$SHARED_SERVER, and V$CIRCUIT views (amon ...(more)

nondefparm.sql

(download)

Query X$ tables to display any initialization parameters not at their default values.

parm.sql

(download)

Query X$ tables to display documented and undocumented initialization parameters