Skip to content

Commit

Permalink
updates to reserved-words.sql, new script session-parm-diff.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
jkstill committed Oct 7, 2023
1 parent 348e03c commit 8b5bf43
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 3 deletions.
2 changes: 2 additions & 0 deletions INDEX
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,14 @@
<a href='https://github.com/jkstill/oracle-script-lib/blob/master/sql/getparm.sql'>getparm.sql</a> - get parameters
<a href='https://github.com/jkstill/oracle-script-lib/blob/master/sql/parm-hist-diff.sql'>parm-hist-diff.sql</a> - show difference in parameters from AWR
<a href='https://github.com/jkstill/oracle-script-lib/blob/master/sql/parameter-compare.sql'>parameter-compare.sql</a> - compare parameters between two databases
<a href='https://github.com/jkstill/oracle-script-lib/blob/master/sql/session-parm-diff.sql'>session-parm-diff.sql</a> - show how a sessions setting differ from system settings
<a href='https://github.com/jkstill/oracle-script-lib/blob/master/sql/showallparm.sql'>showallparm.sql</a> - Show all database parameters, including .hidden. parameters
<a href='https://github.com/jkstill/oracle-script-lib/blob/master/sql/showparm.sql'>showparm.sql</a> - Show database parameters
<a href='https://github.com/jkstill/oracle-script-lib/blob/master/sql/showparmchanges.sql'>showparmchanges.sql</a> - show parameters that have changed - uses AWR
<a href='https://github.com/jkstill/oracle-script-lib/blob/master/sql/showparmdrvr.sql'>showparmdrvr.sql</a> - Performs the query for getparm.sql and showparm.sql
<a href='https://github.com/jkstill/oracle-script-lib/blob/master/sql/showallparm73drvr.sql'>showallparm73drvr.sql</a> - Performs the query for getallparm.sql and showallparm.sql
<a href='https://github.com/jkstill/oracle-script-lib/blob/master/sql/showallparm12c-drvr.sql'>showallparm12c-drvr.sql</a> - 12c update for all parms
<a href='https://github.com/jkstill/oracle-script-lib/blob/master/sql/session-parm-diff.sql'>session-parm-diff.sql</a> - show how a sessions setting differ from system settings
<a href='https://github.com/jkstill/oracle-script-lib/blob/master/sql/sys-context-all.sql'>sys-context-all.sql</a> - display all sys_context values as of 12c
<a href='https://github.com/jkstill/oracle-script-lib/blob/master/sql/parms_dump_csv.sql'>parms_dump_csv.sql</a> - Dump all parameters to CSV file
<a href='https://github.com/jkstill/oracle-script-lib/blob/master/sql/parms_dump_12c_csv.sql'>parms_dump_12c_csv.sql</a> - Dump all 12c parameters to CSV file
Expand Down
19 changes: 16 additions & 3 deletions sql/reserved-words.sql
Original file line number Diff line number Diff line change
@@ -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
/
21 changes: 21 additions & 0 deletions sql/session-parm-diff.sql
Original file line number Diff line number Diff line change
@@ -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
/

0 comments on commit 8b5bf43

Please sign in to comment.