[20160501]檢視包引數指令碼.txt
[20160501]檢視包引數指令碼.txt
--我以前寫的指令碼
SCOTT@book> @ &r/desc_proc sys dbms_stats get_table%
INPUT OWNER PACKAGE_NAME OBJECT_NAME
sample : @desc_proc sys dbms_stats gather_%_stats
OWNER PACKAGE_NAME OBJECT_NAME SEQUENCE ARGUMENT_NAME DATA_TYPE IN_OUT DATA_TYPE D
---------- -------------------- ------------------------------ ---------- -------------------- -------------------- --------- -------------------- -
SYS DBMS_STATS GET_TABLE_STATS 1 OWNNAME VARCHAR2 IN VARCHAR2 N
1 OWNNAME VARCHAR2 IN VARCHAR2 N
2 TABNAME VARCHAR2 IN VARCHAR2 N
2 TABNAME VARCHAR2 IN VARCHAR2 N
3 PARTNAME VARCHAR2 IN VARCHAR2 Y
3 PARTNAME VARCHAR2 IN VARCHAR2 Y
4 STATTAB VARCHAR2 IN VARCHAR2 Y
4 STATTAB VARCHAR2 IN VARCHAR2 Y
5 STATID VARCHAR2 IN VARCHAR2 Y
5 STATID VARCHAR2 IN VARCHAR2 Y
6 NUMROWS NUMBER OUT NUMBER N
6 NUMROWS NUMBER OUT NUMBER N
7 NUMBLKS NUMBER OUT NUMBER N
7 NUMBLKS NUMBER OUT NUMBER N
8 AVGRLEN NUMBER OUT NUMBER N
8 AVGRLEN NUMBER OUT NUMBER N
9 STATOWN VARCHAR2 IN VARCHAR2 Y
9 STATOWN VARCHAR2 IN VARCHAR2 Y
10 CACHEDBLK NUMBER OUT NUMBER N
11 CACHEHIT NUMBER OUT NUMBER N
20 rows selected.
--很明顯這樣的輸出引數排序了,不是自己需要的.刪除排序操作看看:
SCOTT@book> @ &r/desc_proc sys dbms_stats get_table%
INPUT OWNER PACKAGE_NAME OBJECT_NAME
sample : @desc_proc sys dbms_stats gather_%_stats
OWNER PACKAGE_NAME OBJECT_NAME SEQUENCE ARGUMENT_NAME DATA_TYPE IN_OUT DATA_TYPE DEFAULTED
---------- -------------------- ------------------------------ ---------- -------------------- -------------------- --------- -------------------- ----------
SYS DBMS_STATS GET_TABLE_STATS 1 OWNNAME VARCHAR2 IN VARCHAR2 N
2 TABNAME VARCHAR2 IN VARCHAR2 N
3 PARTNAME VARCHAR2 IN VARCHAR2 Y
4 STATTAB VARCHAR2 IN VARCHAR2 Y
5 STATID VARCHAR2 IN VARCHAR2 Y
6 NUMROWS NUMBER OUT NUMBER N
7 NUMBLKS NUMBER OUT NUMBER N
8 AVGRLEN NUMBER OUT NUMBER N
9 STATOWN VARCHAR2 IN VARCHAR2 Y
1 OWNNAME VARCHAR2 IN VARCHAR2 N
2 TABNAME VARCHAR2 IN VARCHAR2 N
3 PARTNAME VARCHAR2 IN VARCHAR2 Y
4 STATTAB VARCHAR2 IN VARCHAR2 Y
5 STATID VARCHAR2 IN VARCHAR2 Y
6 NUMROWS NUMBER OUT NUMBER N
7 NUMBLKS NUMBER OUT NUMBER N
8 AVGRLEN NUMBER OUT NUMBER N
9 STATOWN VARCHAR2 IN VARCHAR2 Y
10 CACHEDBLK NUMBER OUT NUMBER N
11 CACHEHIT NUMBER OUT NUMBER N
$ cat desc_proc.sql
column owner format a10
column package_name format a20
column object_name format a30
column data_type format a20
column ARGUMENT_NAME format a20
column defaulted format a10
set verify off
break on owner on package_name on object_name skip 1
PROMPT INPUT OWNER PACKAGE_NAME OBJECT_NAME
PROMPT sample : @desc_proc sys dbms_stats gather_%_stats
Prompt
SELECT owner,
package_name,
object_name,
sequence,
argument_name,
data_type,
in_out,
data_type,
defaulted
FROM dba_arguments
WHERE owner = NVL(upper('&1'),'SYS')
AND package_name = NVL(upper('&2'),'DBMS_STATS')
AND object_name like NVL(upper('&3'),object_name)
AND data_level = 0
--ORDER BY owner,package_name,object_name,sequence;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2091423/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 檢視隱含引數指令碼Oracle指令碼
- [20171109]檢視隱含引數指令碼.txt指令碼
- 檢視資料庫中的隱藏引數(指令碼)資料庫指令碼
- Oracle檢視引數Oracle
- 檢視編譯引數編譯
- 編譯引數檢視編譯
- 檢視ORACLE AS 埠指令碼Oracle指令碼
- [20170502]11G查詢隱含引數檢視.txt
- 檢視oracle隱藏引數Oracle
- 檢視備份資訊指令碼指令碼
- 動態建立檢視指令碼指令碼
- Jmeter的指令碼引數化JMeter指令碼
- [20180814]慎用檢視錶壓縮率指令碼.txt指令碼
- 檢視JVM執行時引數JVM
- 檢視JVM預設配置引數JVM
- 【MySQL】檢視MySQL Server引數方法MySqlServer
- python指令碼傳引數argvPython指令碼
- 在WinDbg指令碼中使用引數指令碼
- 導庫標準引數指令碼指令碼
- 檢視引數是否可以動態修改
- 檢視Oracle隱藏引數的SQLOracleSQL
- [zt] 如何檢視Oracle 隱含引數Oracle
- win10怎樣檢視電腦配置引數_win10電腦配置引數檢視教程Win10
- 檢視JVM預設引數及微調JVM啟動引數JVM
- Shell指令碼 – 檢視網路介面資訊指令碼
- 透過shell指令碼檢視鎖資訊指令碼
- rman的備份檢視的指令碼指令碼
- 檢視鎖定的session資訊指令碼Session指令碼
- 通過shell指令碼檢視鎖資訊指令碼
- 獲取單個檢視DDL指令碼指令碼
- 【管理】Oracle 常用的V$ 檢視指令碼Oracle指令碼
- 常用指令碼:獲取隱含引數指令碼
- Oracle隱形引數查詢指令碼Oracle指令碼
- TCL指令碼讀取命令列引數指令碼命令列
- shell指令碼的命令列引數 - todo指令碼命令列
- bash shell指令碼接受多個引數指令碼
- [20170515]檢查資料庫scn指令碼.txt資料庫指令碼
- 2.7.11 檢視引數設定的方法