在sqlplus中shwo parameter是显示不了隐藏参数的,需要做一个处理,如下所示:
以SYS用户登录:
C:Documents and Settingsguogang>sqlplus / as sysdba;
SQL> create or replace view my_v$parameter_with_hidden (NUM,NAME , TYPE , DISPLAY_VALUE ,
ISDEFAULT , ISSES_MODIFIABLE , ISSYS_MODIFIABLE ,ISMODIFIED ,
ISADJUSTED, DESCRIPTION, UPDATE_COMMENT)
as select x.indx+1,ksppinm,ksppity,ksppstvl,ksppstdf,
decode(bitand(ksppiflg/256,1),1,'TRUE','FALSE'),
decode(bitand(ksppiflg/65536,3),1,'IMMEDIATE',2,'DEFERRED', 3,'IMMEDIATE','FALSE'),
decode(bitand(ksppstvf,7),1,'MODIFIED',4,'SYSTEM_MOD','FALSE'),
decode(bitand(ksppstvf,2),2,'TRUE','FALSE'),
ksppdesc,
ksppstcmnt
from x$ksppi x, x$ksppcv y
where (x.indx = y.indx);
SQL> grant select on my_v$parameter_with_hidden to test;
以普通用户登录:
C:Documents and Settingsguogang>sqlplus test/test
SQL> create synonym v$parameter for sys.my_v$parameter_with_hidden ;
SQL> show parameter _small_table_threshold
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
_small_table_threshold integer 798