Professional Documents
Culture Documents
转 Event 'Utl - file I - O' - - CodeAntenna
转 Event 'Utl - file I - O' - - CodeAntenna
转 Event 'Utl - file I - O' - - CodeAntenna
The ASH report shows tables and data files with wait event 'utl_file I/O':
Utl_file
CHANGES
No changes.
CAUSE
ASH reports retrieve data from the dba_hist_active_sess_history view. The information in that view is
aggregated from what happened in between each sample from v$active_session_history, which means
that it can potentially include multiple events (such as CPU and I/O events).
In the following example , code is executed that performs CPU and I/O operations in a short period of
time:
connect system/manager
set time on
set timing on
set serveroutput on
declare
x number;
begin
dbms_output.enable(1000000);
for i in (select s.*,rownum r from dba_source s) loop
x:=dbms_utility.get_hash_value(i.name,1,163830000);
if mod(x,99)=0 then
dbms_output.put('+');
else
dbms_output.put('.');
end if;
if mod(i.r,30000)=0 then
dbms_output.put_line('*');
end if;
end loop;
end;
/
If we query v$active_session_history, we see:
SQL> select segment_name from dba_extents where file_id =1 and 9720 between block_id and
block_id+blocks;
SEGMENT_NAME
---------------------------------------------------------------------------------
SOURCE$
SQL> select segment_name from dba_extents where file_id =1 and 79952 between block_id and
block_id+blocks;
SEGMENT_NAME
---------------------------------------------------------------------------------
SOURCE$
SOLUTION
This is expected behavior.
The wait event surfaces when a PL/SQL program is running SQLs and using UTL_FILE in close proximity.
Multiple IOs to the DB and UTL_FILE calls were executed in fast succession and the p1p2p3 sampled
were residual from DB IO events to the datafiles. The "utl_file I/O" event was included as part of the
sample. So when the ASH report is generated, both the "utl_file I/O" event and the information of
datafiles accessed are present.
转载于 :https://www.cnblogs.com/feiyun8616/p/8329482.html
版权声明:本文为CSDN博主「weixin_34283445」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及
本声明。
原文链接:https://blog.csdn.net/weixin_34283445/article/details/94283938
更多相关推荐
利用UTL_FILE包实现文件I/O操作
数据库 运维 操作系统
摘要:本文主要讨论如何利用Oracle的UTL_FILE包来实现对磁盘文件的I/O操作。 文件I/O对于数据库的开
发来说显得很重要,比如如果数据库中的一部分数据来自于磁盘文件,那么就需要使用I/O接口把数据导
入到数据库中来。...
利用UTL_FILE包实现文件I/O操作
pl/sql 编程 Oracle 应用服务器 SQL Unix F#
文件I/O对于数据库的开发来说显得很重要,比如如果数据库中的一部分数据来自于磁盘文件,那么就需
要使用I/O接口把数据导入到数据库中来。在PL/SQL中没有直接的I/O接口,一般在调试程序时可以使用
Oracle自带的DBMS_OU...
utl_file
[Oracle] - [oracle] file buffer oracle fp object 数据库
这个是从网上看到的,你按这个步骤试下
--
[url=http://ndr666.blog.163.com/blog/static/152991022009103043134903/][/url]Createdirectory 让我们
可以在Oracle数据库中灵活的对文件进行读写操作,极大的提高了Oracle...
UTL_FILE
Oracle UTL_FILE
createorreplacedirectoryMY_DIRas'E:\javaWP\Ttt';createorreplacedirectoryTO_DIRas'E:\javaWP\Ott'; 查
看目录 select*fromdb...
Oracle UTL_FILE
Oracle oracle file application integer exception dependencies
OracleUTL_FILEVersion10.2 GeneralInformationNote:O/Spermissionsarethoseoftheuser'Oracle'...notthes
chemaownerorconnecteduserSource{ORACLE_HOME}/rdbms/admin/utlfile.sqlFirstAvailability7.3.4Depe
ndencies...
PLSQL UTL_FILE
Oracle PLSQL UTL_FILE
Oracle进行文件夹读写配置1.设定UTL_FILE_DIROracle8i以前oracle\product\10.2.0\admin\AWF\pfile下的
intOracleSid.oraUTL_FILE_DIR='C:/LOG','C:/LOG2' Oracle9i以
后 ALTERSYSTEMSET UTL_FILE_DIR='C:/Log','C:/LOG...