[20171109]檢視隱含引數指令碼.txt
[20171109]檢視隱含引數指令碼.txt
--//檢視隱含引數的指令碼,今天沒事修改一下增加查詢description欄位的內容.也有網友要求提供這個指令碼,實際上這些指令碼都是自己工作
--//中不斷收集整理.網上許多地方都能找到.
$ cat hide.sql
col name format a40
col description format a66
col session_value format a22
col default_value format a22
col system_value format a22
select
a.ksppinm name,
a.ksppdesc DESCRIPTION,
b.ksppstdf DEFAULT_VALUE,
b.ksppstvl SESSION_VALUE,
c.ksppstvl SYSTEM_VALUE
from x$ksppi a, x$ksppcv b, x$ksppsv c
where a.indx = b.indx
and a.indx = c.indx
and lower(a.ksppinm) like lower('%&1%')
order by 1;
--//修改如下:
col name format a40
col description format a66
col session_value format a22
col default_value format a22
col system_value format a22
select
a.ksppinm name,
a.ksppdesc DESCRIPTION,
b.ksppstdf DEFAULT_VALUE,
b.ksppstvl SESSION_VALUE,
c.ksppstvl SYSTEM_VALUE
from x$ksppi a, x$ksppcv b, x$ksppsv c
where a.indx = b.indx
and a.indx = c.indx
and lower(a.ksppinm) like lower('%&1%')
order by 1;
$ cat hidex.sql
col name format a40
col description format a66
col session_value format a22
col default_value format a22
col system_value format a22
select
a.ksppinm name,
a.ksppdesc DESCRIPTION,
b.ksppstdf DEFAULT_VALUE,
b.ksppstvl SESSION_VALUE,
c.ksppstvl SYSTEM_VALUE
from x$ksppi a, x$ksppcv b, x$ksppsv c
where a.indx = b.indx
and a.indx = c.indx
and (lower(a.ksppinm) like lower('%&1%') or lower(a.ksppdesc ) like lower('%&1%'))
--//順便測試看看,必須以sys使用者執行:
SYS@book> @ &r/ver1
PORT_STRING VERSION BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
SYS@book> @ &r/hidex _allow%corr%
old 10: and (lower(a.ksppinm) like lower('%&1%') or lower(a.ksppdesc ) like lower('%&1%'))
new 10: and (lower(a.ksppinm) like lower('%_allow%corr%%') or lower(a.ksppdesc ) like lower('%_allow%corr%%'))
NAME DESCRIPTION DEFAULT_VALUE SESSION_VALUE SYSTEM_VALUE
---------------------------------------- ------------------------------------------------------------------ ------------- ------------- ------------
_allow_read_only_corruption allow read-only open even if database is corrupt TRUE FALSE FALSE
_allow_resetlogs_corruption allow resetlogs even if it will cause corruption TRUE FALSE FALSE
_allow_terminal_recovery_corruption Finish terminal recovery even if it may cause corruption TRUE FALSE FALSE
_kdli_allow_corrupt allow corrupt filesystem_logging data blocks during read/write TRUE TRUE TRUE
--//^_^,發現一個_allow_read_only_corruption,感覺異常關閉,設定這個引數可以只讀開啟,明天測試看看.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2147066/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 檢視隱含引數指令碼Oracle指令碼
- [zt] 如何檢視Oracle 隱含引數Oracle
- 常用指令碼:獲取隱含引數指令碼
- oracle隱含引數的檢視與修改Oracle
- 【parameter】oracle的隱含引數的檢視Oracle
- [20170502]11G查詢隱含引數檢視.txt
- v$動態效能檢視和隱含引數
- [20160501]檢視包引數指令碼.txt指令碼
- 檢視資料庫中的隱藏引數(指令碼)資料庫指令碼
- 【指令碼】隱含引數及註釋資訊的查詢方法指令碼
- 檢視oracle隱藏引數Oracle
- Oracle 隱含引數Oracle
- ORACLE隱含引數Oracle
- 檢視Oracle隱藏引數的SQLOracleSQL
- Oracle隱形引數查詢指令碼Oracle指令碼
- oracle獲取隱含引數Oracle
- 隱含引數的查詢
- Oracle的隱含引數(zt)Oracle
- [20190401]隱含引數_mutex_spin_count.txtMutex
- oracle隱藏引數的檢視和使用Oracle
- Shell指令碼對ps命令隱藏引數指令碼
- 獲取Oracle隱含引數資訊Oracle
- 獲取oracle的隱含引數Oracle
- oracle的一個隱含引數Oracle
- Oracle 中所有隱含的 引數Oracle
- Oracle隱含引數的查詢Oracle
- 探究隱含引數_fairness_thresholdAI
- oracle 11g常用隱含引數Oracle
- Oracle 隱含引數 : _allow_resetlogs_corruptionOracle
- 檢視oralce10g,11g隱含引數,並在SQLPLUS視窗格式化輸出SQL
- Oracle檢視引數Oracle
- Oracle direct path read相關隱含引數Oracle
- Oracle 隱含引數 _disable_loggingOracle
- 隱含引數的查詢x$ksppi,x$ksppcv
- 【ASM學習】關於 ASM 的隱含引數ASM
- 關於隱含引數_b_tree_bitmap_plans
- 檢視編譯引數編譯
- 編譯引數檢視編譯