출처 : http://www.idevelopment.info/
by Don Burleson <www.dba-oracle.com>
One of the more perplexing issues for an Oracle administrator is tracking the execution of an Oracle import. When a production system is down, IT managers are anxious to know the progress of the Oracle Import utility. For very large tables, the Oracle Import utility can take many hours, and the DBA needs to know the rate at which the utility is adding rows to the table. To monitor how fast rows are imported from a running import job, try the following method.
SELECT
SUBSTR(sql_text, INSTR(sql_text,'INTO "'),30) table_name
, rows_processed
, ROUND( (sysdate-TO_DATE(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60,1) minutes
, TRUNC(rows_processed/((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60)) rows_per_minute
FROM
sys.v_$sqlarea
WHERE
sql_text like 'INSERT %INTO "%'
AND command_type = 2
AND open_versions > 0;
Don Burleson, one of the world's top Oracle database experts, has written 12 books, has published more than 70 articles in national magazines, and serves as editor in chief of Oracle Internals, a leading Oracle database journal. As a leading corporate database consultant, Don has worked with numerous Fortune 500 corporations creating robust database architectop of IT trendstures for mission-critical systems
'::: DB ::: > Oracle' 카테고리의 다른 글
[PL/SQL] Index Build(Rebuild) 진행율 (0) | 2009.10.01 |
---|---|
Recycling the listener.log File (0) | 2009.09.15 |
Opatch 기능 및 사용가이드(V9.2) (0) | 2009.09.14 |
[PL/SQL] Procedure, Trigger Source를 File 로 남기기 (0) | 2009.09.14 |
Export Files Greater Than 2GB (0) | 2009.09.14 |