• oracle如何设置show parameter显示隐含参数


       在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

  • 相关阅读:
    网站添加背景音乐
    解决项目上的红色感叹号
    1.12那些年你不知道的爬虫面试题
    1.11you-get 视频爬取
    1.10pytesseract
    1.9Pyppeteer
    1.8request-html
    1.7XPath
    1.6Selenium XPath
    1.5cookies
  • 原文地址:https://www.cnblogs.com/keanuyaoo/p/3315595.html
Copyright © 2020-2023  润新知