Skip to content

Instantly share code, notes, and snippets.

@Tracnac
Created September 23, 2022 17:38
Show Gist options
  • Select an option

  • Save Tracnac/079d1f24f7c10d6f32e70af5184d58fc to your computer and use it in GitHub Desktop.

Select an option

Save Tracnac/079d1f24f7c10d6f32e70af5184d58fc to your computer and use it in GitHub Desktop.
Paramètres cachés de l’init #oracle

Tous les paramètres cachés d’Oracle.

Vérifié à partir de la 10g fonctionne peut être sur 9i ?! Remplacer le %optim% par le paramètre recherché.

SELECT
x.ksppinm name,
y.ksppstvl VALUE,
decode(ksppity,
1, ‘BOOLEAN’,
2, ‘STRING’,
3, ‘INTEGER’,
4, ‘PARAMETER FILE’,
5, ‘RESERVED’,
6, ‘BIG INTEGER’,
‘UNKNOWN’) typ,
decode(ksppstdf,
‘TRUE’, ‘DEFAULT VALUE’,
‘FALSE’, ‘INIT.ORA’) isdefault,
decode(bitand(ksppiflg / 256, 1),
1, ‘IS_SESS_MOD(TRUE)’,
‘FALSE’) isses_modifiable,
decode(bitand(ksppiflg / 65536, 3),
1, ‘MODSYS(NONDEFERED)’,
2, ‘MODSYS(DEFERED)’,
3, ‘MODSYS(*NONDEFERED*)’,
‘FALSE’) issys_modifiable,
decode(bitand(ksppstvf, 7),
1, ‘MODIFIED_BY(SESSION)’,
4, ‘MODIFIED_BY(SYSTEM)’,
‘FALSE’) is_modified,
decode(bitand(ksppstvf, 2),
2, ‘ORA_STARTUP_MOD(TRUE)’,
‘FALSE’) is_adjusted,
ksppdesc description,
ksppstcmnt update_comment
FROM x$ksppi x,
x$ksppcv y
WHERE x.inst_id = userenv(’Instance’)
AND y.inst_id = userenv(’Instance’)
AND x.indx = y.indx
AND x.ksppinm LIKE ‘%optim%’;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment