v$session中command欄位的含義解析
以下函式解析檢視v$session中command欄位的含義
create or replace
function lln_session_cmd_info(p_cmd in number default 0)
return varchar2 is
v_retinfo varchar2(64);
begin
select case p_cmd
when 0 then
'0'
when 1 then
'CREATE TABLE'
when 2 then
'INSERT'
when 3 then
'SELECT'
when 4 then
'CREATE CLUSTER'
when 5 then
'ALTER CLUSTER'
when 6 then
'UPDATE'
when 7 then
'DELETE'
when 8 then
'DROP CLUSTER'
when 9 then
'CREATE INDEX'
when 10 then
'DROP INDEX'
when 11 then
'ALTER INDEX'
when 12 then
'DROP TABLE'
when 13 then
'CREATE SEQUENCE'
when 14 then
'ALTER SEQUENCE'
when 15 then
'ALTER TABLE'
when 16 then
'DROP SEQUENCE'
when 17 then
'GRANT OBJECT'
when 18 then
'REVOKE OBJECT'
when 19 then
'CREATE SYNONYM'
when 20 then
'DROP SYNONYM'
when 21 then
'CREATE VIEW'
when 22 then
'DROP VIEW'
when 23 then
'VALIDATE INDEX'
when 24 then
'CREATE PROCEDURE'
when 25 then
'ALTER PROCEDURE'
when 26 then
'LOCK'
when 27 then
'NO-OP'
when 28 then
'RENAME'
when 29 then
'COMMENT'
when 30 then
'AUDIT OBJECT'
when 31 then
'NOAUDIT OBJECT'
when 32 then
'CREATE DATABASE LINK'
when 33 then
'DROP DATABASE LINK'
when 34 then
'CREATE DATABASE'
when 35 then
'ALTER DATABASE'
when 36 then
'CREATE ROLLBACK SEG'
when 37 then
'ALTER ROLLBACK SEG'
when 38 then
'DROP ROLLBACK SEG'
when 39 then
'CREATE TABLESPACE'
when 40 then
'ALTER TABLESPACE'
when 41 then
'DROP TABLESPACE'
when 42 then
'ALTER SESSION'
when 43 then
'ALTER USER'
when 44 then
'COMMIT'
when 45 then
'ROLLBACK'
when 46 then
'SAVEPOINT'
when 47 then
'PL/SQL EXECUTE'
when 48 then
'SET TRANSACTION'
when 49 then
'ALTER SYSTEM'
when 50 then
'EXPLAIN'
when 51 then
'CREATE USER'
when 52 then
'CREATE ROLE'
when 53 then
'DROP USER'
when 54 then
'DROP ROLE'
when 55 then
'SET ROLE'
when 56 then
'CREATE SCHEMA'
when 57 then
'CREATE CONTROL FILE'
when 59 then
'CREATE TRIGGER'
when 60 then
'ALTER TRIGGER'
when 61 then
'DROP TRIGGER'
when 62 then
'ANALYZE TABLE'
when 63 then
'ANALYZE INDEX'
when 64 then
'ANALYZE CLUSTER'
when 65 then
'CREATE PROFILE'
when 66 then
'DROP PROFILE'
when 67 then
'ALTER PROFILE'
when 68 then
'DROP PROCEDURE'
when 70 then
'ALTER RESOURCE COST'
when 71 then
'CREATE SNAPSHOT LOG'
when 72 then
'ALTER SNAPSHOT LOG'
when 73 then
'DROP SNAPSHOT LOG'
when 74 then
'CREATE SNAPSHOT'
when 75 then
'ALTER SNAPSHOT'
when 76 then
'DROP SNAPSHOT'
when 77 then
'CREATE TYPE'
when 78 then
'DROP TYPE'
when 79 then
'ALTER ROLE'
when 80 then
'ALTER TYPE'
when 81 then
'CREATE TYPE BODY'
when 82 then
'ALTER TYPE BODY'
when 83 then
'DROP TYPE BODY'
when 84 then
'DROP LIBRARY'
when 85 then
'TRUNCATE TABLE'
when 86 then
'TRUNCATE CLUSTER'
when 91 then
'CREATE FUNCTION'
when 92 then
'ALTER FUNCTION'
when 93 then
'DROP FUNCTION'
when 94 then
'CREATE PACKAGE'
when 95 then
'ALTER PACKAGE'
when 96 then
'DROP PACKAGE'
when 97 then
'CREATE PACKAGE BODY'
when 98 then
'ALTER PACKAGE BODY'
when 99 then
'DROP PACKAGE BODY'
when 100 then
'LOGON'
when 101 then
'LOGOFF'
when 102 then
'LOGOFF BY CLEANUP'
when 103 then
'SESSION REC'
when 104 then
'SYSTEM AUDIT'
when 105 then
'SYSTEM NOAUDIT'
when 106 then
'AUDIT DEFAULT'
when 107 then
'NOAUDIT DEFAULT'
when 108 then
'SYSTEM GRANT'
when 109 then
'SYSTEM REVOKE'
when 110 then
'CREATE PUBLIC SYNONYM'
when 111 then
'DROP PUBLIC SYNONYM'
when 112 then
'CREATE PUBLIC DATABASE LINK'
when 113 then
'DROP PUBLIC DATABASE LINK'
when 114 then
'GRANT ROLE'
when 115 then
'REVOKE ROLE'
when 116 then
'EXECUTE PROCEDURE'
when 117 then
'USER COMMENT'
when 118 then
'ENABLE TRIGGER'
when 119 then
'DISABLE TRIGGER'
when 120 then
'ENABLE ALL TRIGGERS'
when 121 then
'DISABLE ALL TRIGGERS'
when 122 then
'NETWORK ERROR'
when 123 then
'EXECUTE TYPE'
when 157 then
'CREATE DIRECTORY'
when 158 then
'DROP DIRECTORY'
when 159 then
'CREATE LIBRARY'
when 160 then
'CREATE JAVA'
when 161 then
'ALTER JAVA'
when 162 then
'DROP JAVA'
when 163 then
'CREATE OPERATOR'
when 164 then
'CREATE INDEXTYPE'
when 165 then
'DROP INDEXTYPE'
when 167 then
'DROP OPERATOR'
when 168 then
'ASSOCIATE STATISTICS'
when 169 then
'DISASSOCIATE STATISTICS'
when 170 then
'CALL METHOD'
when 171 then
'CREATE SUMMARY'
when 172 then
'ALTER SUMMARY'
when 173 then
'DROP SUMMARY'
when 174 then
'CREATE DIMENSION'
when 175 then
'ALTER DIMENSION'
when 176 then
'DROP DIMENSION'
when 177 then
'CREATE CONTEXT'
when 178 then
'DROP CONTEXT'
when 179 then
'ALTER OUTLINE'
when 180 then
'CREATE OUTLINE'
when 181 then
'DROP OUTLINE'
when 182 then
'UPDATE INDEXES'
when 183 then
'ALTER OPERATOR'
else
'This function Not Supported'
end
into v_retinfo
from dual;
return v_retinfo;
end;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28974745/viewspace-2149903/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- v$session command 的含義Session
- [20171102]檢視v$session中process欄位含義Session
- topas 中 PgSp 欄位的含義
- v$session的blocking_session含義SessionBloC
- v$process和v$session中欄位解釋Session
- V$SESSION COMMANDSession
- 理解V$LOCK.ID1和ID2欄位的含義
- linux top命令欄位含義Linux
- Oracle 11g中v$session檢視server列的含義OracleSessionServer
- v$session.PROCESS/V$process.SPID含義Session
- [筆記]解析v$log/v$logfile中status列值的含義筆記
- iOS開發Xcode中的Info.plist欄位含義iOSXCode
- restrict session的含義RESTSession
- v$sql.command_type and v$session.commandSQLSession
- group by中cube含義解析
- SAP ABAP 中,if_http_extension 介面的flow_rc 欄位含義HTTP
- V$SESSION中的saddr,paddr,taddr 與v$process及v$transaction中欄位的關係Session
- HTTP 請求頭部欄位中 connection - keep-alive 的含義HTTPKeep-Alive
- v$session與v$sql連線現在使用哪個欄位?SessionSQL
- Oracle 動態效能表 v$session & v$process各個欄位的說明OracleSession
- Chrome Network 下邊欄中 Finish 的含義Chrome
- 卡卡西:一文詳解explain各欄位含義AI
- [20171120]理解v$session的state欄位Session
- 舉例解釋一下explain各欄位的含義AI
- ABAP 資料庫表 Size Category 欄位的準確含義資料庫Go
- group by中rollup的以及grouping含義解析
- v$session--X$KSUSE s,X$KSLED e欄位對應Session
- oracle會話阻塞查詢指令碼及對應欄位含義Oracle會話指令碼
- v$session中的serverSessionServer
- 【SESSION】v$session and v$license 中sessions_current 的區別Session
- all_constraints 表欄位Constraint_type值含義AI
- oracle等待引數含義_v$session_wait_p1_p2_p3OracleSessionAI
- php二進位制安全的含義PHP
- Java中static的含義Java
- 含LONG型別欄位的表無法MOVE型別
- Request 增加自定義欄位的方式
- V$ASM_DISK 檢視含義ASM
- Oracle中的Rownum 欄位Oracle