diff --git a/INDEX b/INDEX index 130d1bf..9b4dd5b 100644 --- a/INDEX +++ b/INDEX @@ -337,12 +337,14 @@ PARAMETERS: @getparm.sql: get parameters @parm-hist-diff.sql: show difference in parameters from AWR @parameter-compare.sql: compare parameters between two databases +@session-parm-diff.sql: show how a sessions setting differ from system settings @showallparm.sql: Show all database parameters, including .hidden. parameters @showparm.sql: Show database parameters @showparmchanges.sql: show parameters that have changed - uses AWR @showparmdrvr.sql: Performs the query for getparm.sql and showparm.sql @showallparm73drvr.sql: Performs the query for getallparm.sql and showallparm.sql @showallparm12c-drvr.sql: 12c update for all parms +@session-parm-diff.sql: show how a sessions setting differ from system settings @sys-context-all.sql: display all sys_context values as of 12c @parms_dump_csv.sql: Dump all parameters to CSV file @parms_dump_12c_csv.sql: Dump all 12c parameters to CSV file diff --git a/README.md b/README.md index 4b42cca..f3a9941 100644 --- a/README.md +++ b/README.md @@ -342,12 +342,14 @@ getparm.sql - get parameters parm-hist-diff.sql - show difference in parameters from AWR parameter-compare.sql - compare parameters between two databases +session-parm-diff.sql - show how a sessions setting differ from system settings showallparm.sql - Show all database parameters, including .hidden. parameters showparm.sql - Show database parameters showparmchanges.sql - show parameters that have changed - uses AWR showparmdrvr.sql - Performs the query for getparm.sql and showparm.sql showallparm73drvr.sql - Performs the query for getallparm.sql and showallparm.sql showallparm12c-drvr.sql - 12c update for all parms +session-parm-diff.sql - show how a sessions setting differ from system settings sys-context-all.sql - display all sys_context values as of 12c parms_dump_csv.sql - Dump all parameters to CSV file parms_dump_12c_csv.sql - Dump all 12c parameters to CSV file diff --git a/sql/reserved-words.sql b/sql/reserved-words.sql index 6731fbd..5136b63 100644 --- a/sql/reserved-words.sql +++ b/sql/reserved-words.sql @@ -1,6 +1,19 @@ -select keyword, - res_type || res_attr || res_semi || duplicate attributes + +col keyword format a30 + +col res_type format a5 head 'Use|as|Type|Name?' +col res_attr format a5 head 'Use|as|Attr|Name?' +col res_semi format a6 head 'Use|as|Idntfr|Name?' +col duplicate format a7 head 'Keyword|Dup?' +col reserved format a9 head 'Reserved?' + +select keyword + , reserved + , res_type + , res_attr + , res_semi + , duplicate from v$reserved_words -where reserved = 'Y' +--where keyword like '%YOUR_WORD_HERE%' order by 2,1 / diff --git a/sql/session-parm-diff.sql b/sql/session-parm-diff.sql new file mode 100644 index 0000000..d90d71b --- /dev/null +++ b/sql/session-parm-diff.sql @@ -0,0 +1,21 @@ + +-- session-parm-diff.sql +-- Jared Still 2023 + +col name format a30 head 'Name' +col session_parameter format a30 head 'Session Parameter' +col system_parameter format a30 head 'System Parameter' + +set pagesize 100 +set line 200 trimspool on + +select + p.name + , p.value session_parameter + , s.value system_parameter +from v$parameter p +join v$system_parameter s + on s.name = p.name +where s.value != p.value +/ +