forked from abdulirfan3/Oracle_SQL_Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathall_hidden_parameters.sql
More file actions
32 lines (27 loc) · 983 Bytes
/
Copy pathall_hidden_parameters.sql
File metadata and controls
32 lines (27 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
-- | PURPOSE : Reports on all hidden "undocumented" database parameters. You |
-- | must be connected as the SYS user to run this script. |
-- | NOTE : As with any code, ensure to test this script in a development |
-- | environment before attempting to run it in production. |
-- +----------------------------------------------------------------------------+
Prompt
prompt +--------------------------------------+
prompt | Should be ran by sysdba user |
Prompt +--------------------------------------+
prompt
SET LINESIZE 145
SET PAGESIZE 9999
SET VERIFY off
COLUMN ksppinm FORMAT A42 HEAD 'Parameter Name'
COLUMN ksppstvl FORMAT A39 HEAD 'Value'
COLUMN ksppdesc FORMAT A60 HEAD 'Description' TRUNC
SELECT
ksppinm
, ksppstvl
, ksppdesc
FROM
x$ksppi x
, x$ksppcv y
WHERE
x.indx = y.indx
AND TRANSLATE(ksppinm,'_','#') like '#%'
and ksppinm LIKE NVL('%¶meter_name%', ksppinm);