The DBMS_SUPPORT Package (文档 ID 62294.1)
来源:互联网 发布:赵丽颖用什么直播软件 编辑:程序博客网 时间:2024/05/17 20:25
The DBMS_SUPPORT Package~~~~~~~~~~~~~~~~~~~~~~~~ This package is an add on to Oracle releases 7.2 onwards to provide a simple interface to some undocumented features of Oracle. As this exposes undocumented features within Oracle there is no guarantee that the results will be exactly as described for all releases. NOTE This package should only be installed when requested by Oracle Support. It is not documented in the server documentation. As such the package functionality may change without notice. It is to be used only as directed by Oracle Support and its use otherwise is not supported. The main feature of this package is to allow user sessions to be traced with more information than is usually available via SQL_TRACE. The package is supplied in the files dbmssupp.sql and prvtsupp.plb. The files are included in the distribution of the following releases (Solaris): 8.0.6, 8.1.7, 9.0.1, 9.2.0 and above Versions of these files may be obtained from Oracle Support for use against Oracle releases 7.2 onwards. The package CANNOT be used in Oracle 7.1 or earlierProcedures and Functions in DBMS_SUPPORT~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The functions / procedures in this package are:MySidFunctionStart_TraceProcedureStop_TraceProcedureStart_Trace_In_SessionProcedureStop_Trace_In_SessionProcedure Each of these are described below.FUNCTION MySid~~~~~~~~~~~~~~Arguments:NoneReturns:Current SID as a NUMBER. This simply returns the SID of the current session. The function has RNPS, WNPS and WNDS RESTRICT_REFERENCES clause and so can be used in SELECT operations. Eg: SELECT DBMS_SUPPORT.MYSID from DUAL;PROCEDURE Start_Trace~~~~~~~~~~~~~~~~~~~~~~~~~~~~Arguments: waits IN BOOLEAN DEFAULT TRUEbinds IN BOOLEAN DEFAULT FALSE This procedure starts tracing in the current session. The trace output is written, like SQL_TRACE, to the user trace file. The default is to trace everything SQL_TRACE would capture plus WAIT information. DBMS_SUPPORT.START_TRACE;is the default and gives information on WAITS as well as SQL_TRACE DBMS_SUPPORT.START_TRACE( waits=>false, binds=>false ) is equivalent to standard SQL_TRACE DBMS_SUPPORT.START_TRACE( waits=>true, binds=>false ) is the same as the default and gives information on WAITS as well as SQL_TRACE DBMS_SUPPORT.START_TRACE( waits=>true, binds=>true ) in addition to the above gives information about bind values.This is typically only of use for Oracle support. DBMS_SUPPORT.START_TRACE( waits=>false, binds=>true ) Like SQL_TRACE with additional BIND information only. No WAITs aretraced.Known issues: - Under MTS , XA or Oracle8 session switching the trace output may be spread over several different trace files and thus be of little use.PROCEDURE Stop_Trace~~~~~~~~~~~~~~~~~~~~Arguments:None This procedure stops trace in the current session.Known issues: - If SQL_TRACE was enabled separately this procedure will turn it off.PROCEDURE Start_Trace_In_Session~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Arguments: sid IN NUMBER serial IN NUMBER waits IN BOOLEAN DEFAULT TRUEbinds IN BOOLEAN DEFAULT FALSE This is like START_TRACE except that it allows tracing to be started in a different session. For ease of use SERIAL may be set to NULL (or 0) to denote the current session with the given SID. DBMS_SUPPORT.START_TRACE_IN_SESSION( sid , null )Will trace SQL_TRACE and WAITS in the session 'sid'.Output is written to the target sessions trace file/s. DBMS_SUPPORT.START_TRACE_IN_SESSION( sid , serial )Will trace SQL_TRACE and WAITS in the session 'sid,serial#'.You only need to specify a SERIAL if you need to be sure aspecific session is traced. If the session ends and the SID isreused before the START_TRACE_IN_SESSION call is made includingthe SERIAL will cause an error to be raised rather than the tracebeing started against a different session to the one you intended to trace. DBMS_SUPPORT.START_TRACE_IN_SESSION( sid , 0, waits=>TRUE, binds=>TRUE )Allows WAITS and BINDS to be traced in the target session.Known issues: - Under MTS , XA or Oracle8 session switching the trace output may be spread over several different trace files and thus be of little use.PROCEDURE Stop_Trace_In_Session~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Arguments:sid IN NUMBER serial IN NUMBER This is like STOP_TRACE except that it allows tracing to be stopped in a different session. For ease of use the SERIAL may be specified as NULL to denote the current session with the supplied SID. DBMS_SUPPORT.STOP_TRACE_IN_SESSION( sid , null )will stop tracing in session SID.Known issues: - If SQL_TRACE was enabled separately this procedure will turn it off.Trace Output~~~~~~~~~~~~ The trace output is similar to SQL_TRACE output but may include additional WAIT or BIND lines depending on the tracing options chosen. A brief description of the trace output can be found in Note:39817.1References~~~~~~~~~~ Summary description of the raw trace outputNote:39817.1 Description of how to use this package Note.62160.1
REFERENCES
- Oracle Database Products > Oracle Database > Oracle Database > Oracle Database - Enterprise Edition > RDBMS
0 0
- The DBMS_SUPPORT Package (文档 ID 62294.1)
- Tracing Sessions in Oracle Using the DBMS_SUPPORT Package (文档 ID 62160.1)
- How To Reload the SYS.DBMS_STATS Package (文档 ID 1310365.1)
- [Oracle] How to Use DBMS_SUPPORT Package
- How to list the latest installed RPM package name (文档 ID 1553104.1)
- Statistics Package (STATSPACK) Guide (文档 ID 394937.1)
- Installing and Configuring StatsPack Package (文档 ID 149113.1)
- DBMS_SUPPORT包
- LTOM - The On-Board Monitor User Guide (文档 ID 352363.1)
- Tracing the LSNRCTL Control Utility (文档 ID 737530.1)
- How to: Determine if a Package that is About to be Compiled is Being Used Currently (文档 ID 1054939.6
- 使用DBMS_SUPPORT包
- How is the space pressure managed in the Flash Recovery Area - An Example. (文档 ID 315098.1)
- How Does The Invoice Date Get Derived From The Sales Order Line? (文档 ID 300311.1)
- How to collect the full path name of the files in ASM diskgroups (文档 ID 888943.1)
- How to collect the full path name of the files in ASM diskgroups (文档 ID 888943.1)
- The Caret Package
- Troubleshooting: Tuning the Shared Pool and Tuning Library Cache Latch Contention (文档 ID 62143.1)
- 在列表界面获取表头列表
- ie下脱离文档流区域无法被点击
- java通过正则表达式匹配获取链接地址
- 【图像处理】A卡使用Emgucv时调用失败解决方法
- .NET源码混淆工具推荐及下载
- The DBMS_SUPPORT Package (文档 ID 62294.1)
- 数据互操作扩展模块介绍一(ArcGIS Data Interoperability)
- TCP/IP的Socket编程(初识)
- MFC获取文件夹下的所有子文件夹名称
- Nand 的几个名词:oob,bbt,ecc
- iwconfig, iwevent, iwlist, iwspy, iwpriv
- Oracle常见问题汇总(待续)
- android开发异常总结(好记性不如烂博客)
- C++ primer practice: 5.4.1 (Exercises section) answer