免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
Oracle Oerr Utility Utilities
The oerr utility (command line executable) can be used to look up Oracle error messages. Many products within Oracle contain an msg file, or message library. Available only on UNIX platforms and not on Windows, type oerr at the command prompt to receive help on how to use this tool.
%oerr
Usage: oerr facility error
Facility is identified by the three-letter prefix in the error string.  For example, if the developer gets ORA-7300, "ora" is the facility and "7300" is the error.  So type "oerr ora 7300". If one gets LCD-111, type "oerr lcd 111", and so on.
DBMS_PROFILER
This package can be used to capture time spent on PL/SQL calls. Tracing helps find wait times for SQL, but what about time spent on PL/SQL? The steps to run DBMS_PROFILER are easy to perform. Prior to running, get the latest version of the source code from MetaLink. See Note 243775.1, “Implementing and Using the PL.SQL Profiler” and download the PROF.zip file.
Once the files have been downloaded and extracted, take a look at profiler_7.html and see if this utility does not impress with what it can do. The number of times a command or instruction was executed and the time spent doing it are readily seen in the HTML-formatted output. Best of all, this tool is free.
DBMS_DEBUG
For Forms developers, running debug in a Forms session is made easy because of the GUI interface and modal windows inside Forms Builder. In regular PL/SQL on the command line, the same is not true. Although DBMS_DEBUG can provide pretty much the same output as what is seen in Forms debugging, the overhead of running the debugger is somewhat problematic. MetaLink note 221346.1, “DBMS_DEBUG: Simple Example of Debugging An Anonymous Block” offers a fairly simple example of using the package.
The basic steps are to run two sessions. In the first, initialize debug, obtain an identifier, and call the code. A second session is then attached to the first using the identifier. So, in session one:
alter session set plsql_debug=true;
set serveroutput on
var x varchar2(50)
begin
:x := dbms_debug.initialize();
dbms_debug.debug_on();
end;
/
print x
begin
do_whatever;
end;
/
In session two:
set serveroutput on
exec dbms_debug.attach_session('&ssid')
When done, turn off debugging and in session two, detach. The output is then available for viewing.
Summary
From release to release, the number of built-in packages within Oracle has shown a steady increase over the past ten years. It would be safe to assume this trend will continue. What defines a package as being a utility is mostly left to the interpretation of the user. The name of a package does not always belie its function. Do not think that only UTL packages are utility related. As shown in this chapter, utility-like tools can be named DBMS and even be command line executables.
In general, remember that utilities come in the following forms:
Built-in packages
Command line executable
External programs, from Oracle or not
Sage advice in construction applies here as well:  use the right tool for the job at hand. There are certainly plenty to choose from, so make sure the task is not being made harder when a simpler utility would have sufficed.
For more details on Oracle utilities, see the book "Advanced Oracle Utilities" by Bert Scalzo, Donald K. Burleson, and Steve Callan.
You can buy it direct from the publisher for 30% off directly fromRampant TechPress.
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
Oracle 性能分析與診斷|跟蹤診斷&優(yōu)化SQL 語句
史上最強(qiáng)的FQA for ORACLE(備份與恢復(fù)部分)
Oracle資源管理1----資源用戶組與CPU資源管理詳解
[精華] 在Oracle運(yùn)行操作系統(tǒng)命令 (轉(zhuǎn)載)
深入淺出Oracle學(xué)習(xí)筆記(9)
Oracle Package的全局變量與Session
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服