--出口分析

--两个时间报表分析,该声明仅出口4,059,292  数据,10之后分钟数据没有继续出口

             Snap Id  Snap Time  Sessions  Cursors/Session

Begin Snap:  39396  13-Jul-14 18:30:32  558  1.7

End Snap:    39407  13-Jul-14 20:20:07  556  1.7

Elapsed:     109.58 (mins)     

DB Time:     16.76 (mins)

Snap Id Snap Time Sessions Cursors/Session

Begin Snap: 39396 13-Jul-14 18:30:32 558 1.7

End Snap:   39398 13-Jul-14 18:50:37 557 1.7

Elapsed:   20.09 (mins)   

DB Time:   3.51 (mins)

Snap Id Snap Time Sessions Cursors/Session

Begin Snap: 39396 13-Jul-14 18:30:32 558 1.7

End Snap:   39417 13-Jul-14 22:00:18 559 1.7

Elapsed:    209.77 (mins)    

DB Time:    27.15 (mins)

Begin Snap Time Sessions Cursors/Session

            39396 13-Jul-14 18:30:32 558 1.7

End Snap:   39397 13-Jul-14 18:40:34 557 1.7

Elapsed:    10.03 (mins)    

DB Time:    1.64 (mins)

--语句没运行完成

# Plan Hash Value Total Elapsed Time(ms) Executions 1st Capture Snap ID Last Capture Snap ID


1 2193842017            7,218            0               39397 39397

--问题时候的导出资源使用

Stat Name Statement Total Per Execution % Snap Total

Elapsed Time (ms) 7,218   0.72

CPU Time (ms) 3,035   0.35

Executions 0   

Buffer Gets 139,102   0.34

Disk Reads 0   0.00

Parse Calls 0   0.00

Rows 4,059,292    -------------------------事实上我获取两个 awrsqlrpt报告分析。两个时间,也就是18点50 以后,没有数据导出 


User I/O Wait Time (ms) 0   

Cluster Wait Time (ms) 0   

Application Wait Time (ms) 0   

Concurrency Wait Time (ms) 0   

Invalidations 0   

Version Count 2   

Sharable Mem(KB) 44

--22点导出时候资源使用

 Snap Id Snap Time Sessions Cursors/Session

Begin Snap: 39421 13-Jul-14 22:40:22 557 1.7

End Snap: 39422 13-Jul-14 22:50:23 558 1.7

Elapsed:   10.02 (mins)    

DB Time:   1.38 (mins)

Stat Name Statement Total Per Execution % Snap Total

Elapsed Time (ms) 18,405 18,404.69 22.24

CPU Time (ms) 7,555 7,554.87 10.43

Executions 1   

Buffer Gets 354,583 354,583.00 35.03

Disk Reads 0 0.00 0.00

Parse Calls 1 1.00 0.05

Rows 10,555,042 10,555,042.00    ---一共导出怎么多数据(能够正常导出)

User I/O Wait Time (ms) 0   

Cluster Wait Time (ms) 0   

Application Wait Time (ms) 0   

Concurrency Wait Time (ms) 0   

Invalidations 0   

Version Count 2   

Sharable Mem(KB) 44

--以上问题给予语句分析:

SQL Id SQL   Text

bcjy9a9sp1uw9 SELECT /*+NESTED_TABLE_GET_REFS+*/ "KDTA_HIS"."H_ACK_DIVIDEND".* FROM "KDTA_HIS"."H_ACK_DIVIDEND"

--分析:导出发生意外。中止或者等待,或者LMON 引起latch

--会话等待事件分析:

SQL> select substrb(session_id,1,6)||'.'||substrb(session_serial#,1,4),

  2         substrb(event,1,15),

  3         BLOCKING_SESSION,

  4         to_char(SAMPLE_TIME, 'yyyymmdd hh24miss'),

  5         INSTANCE_NUMBER,

  6         sql_id,

  7         (select username

  8            from dba_users b

  9           where b.user_id = a.USER_ID

 10             and rownum = 1) username,

 11         substrb(program,1,10)

12    from DBA_HIST_ACTIVE_SESS_HISTORY a

 13   where (SAMPLE_TIME >=

 14         to_date('2014-07-13 01:00:00', 'yyyy-mm-dd hh24:mi:ss') and

 15         SAMPLE_TIME <=

 16         to_date('2014-07-14 01:10:00', 'yyyy-mm-dd hh24:mi:ss'))

 17     and a.module like '%exp%'

 18   order by session_id,SAMPLE_TIME;

SUBSTRB(SES SUBSTRB(EVENT,1 BLOCKING_SESSION TO_CHAR(SAMPLE_ INSTANCE_NUMBER SQL_ID        USERNAME                       SUBSTRB(PR

----------- --------------- ---------------- --------------- --------------- ------------- ------------------------------ ----------

7638.4126                                    20140713 184020               1 88jm6j85t5b8z KDTA_HIS                       exp.exe

7638.4126   latch free                   529 20140713 184151               1               KDTA_HIS                       exp.exe--------

7638.4126                                    20140713 184643               1 g4kubvga4gnxc KDTA_HIS                       exp.exe

7638.4126   SQL*Net more da                  20140713 185145               1 dvjmxz20wf8xz KDTA_HIS                       exp.exe

--529 会话分析

SQL> select substrb(session_id,1,6)||'.'||substrb(session_serial#,1,4),

  2         substrb(event,1,15),

  3         BLOCKING_SESSION,

  4         to_char(SAMPLE_TIME, 'yyyymmdd hh24miss'),

  5         INSTANCE_NUMBER,

  6         sql_id,

  7         substrb(program,1,30)

  8    from DBA_HIST_ACTIVE_SESS_HISTORY a

9   where (SAMPLE_TIME >=

 10         to_date('2014-07-13 18:30:00', 'yyyy-mm-dd hh24:mi:ss') and

 11         SAMPLE_TIME <=

 12         to_date('2014-07-13 18:45:00', 'yyyy-mm-dd hh24:mi:ss'))

 13     and a.session_id=529

 14   order by session_id,SAMPLE_TIME;

SUBSTRB(SES SUBSTRB(EVENT,1 BLOCKING_SESSION TO_CHAR(SAMPLE_ INSTANCE_NUMBER SQL_ID        SUBSTRB(PROGRAM,1,30)

----------- --------------- ---------------- --------------- --------------- ------------- ------------------------------

529.1                                        20140713 183204               2              
oracle@KXYEB02 (LMON)

529.1                                        20140713 183215               2              
oracle@KXYEB02 (LMON)

529.1                                        20140713 183609               1              
oracle@KXYEB01 (LMON)

529.1                                        20140713 184151               1              
oracle@KXYEB01 (LMON)------------

529.1                                        20140713 184218               2              
oracle@KXYEB02 (LMON)

529.1                                        20140713 184332               1              
oracle@KXYEB01 (LMON)

--dump systemstate 已经无法分析当时数据

--分析awr报告。没有发现latch 问题

-- 下次遇到这个问题的是及时进行一下操作

--1 登录数据库

sqlplus /nolog

conn / as sysdba

oradebug setmypid

oradebug dump systemstate 10

oradebug tracefile_name

--2 能够的话再运行一次

1  获取process id

ps -ef|grep expdp

id

2 10046分析

SQL> select to_char(a.last_analyzed,'yyyymmdd hh24miss') from dba_tables a where table_name='H_ACK_DIVIDEND';

TO_CHAR(A.LAST_

---------------

20140713 181130

SQL>

异常中止或者lmon引起等待挂起,根源原因分析不出来!

版权声明:本文博主原创文章。博客,未经同意不得转载。

expdp备份速度慢的问题的更多相关文章

  1. 生产环境提升rman备份速度----启动块跟踪

    生产环境提升rman备份速度----启动块跟踪 [环境] AIX(5300-08).oracle10g(10.2.0.1.0-64bit) [目标] 因为生产环境数据量较大,欲加快rman备份的速度 ...

  2. 【备忘录】ORACLE数据库每日计划EXPDP备份

        1.OracleBackup_expdp版本|oracle.bat文件 还需手动更改的内容如下: 调用格式需改成call %~dp0\OracleBackup 数据库 用户名 密码 文件夹名称 ...

  3. 因修改system密码导致expdp备份失败

    今天发现一套系统的逻辑备份失效了,检查了一下,发现主要是由于之前其他管理员修改了system用户的密码,导致备份不成功了.为了今后此类的问题发生,修改expdp的脚本连接部分如下:expdp \' / ...

  4. Oracle_exp/expdp备份

    目录索引 1.exp和expdp的区别 2.expdp导出数据库流程 一.↓↓exp和expdp的区别↓↓ 1.exp和expdp最明显的区别就是导出速度的不同.expdp导出是并行导出(如果把exp ...

  5. oracle expdp 备份脚本

    #!/bin/bash#Oracle 环境变量 NLS_LANG=AMERICAN_AMERICA.AL32UTF8 ORACLE_SID=zgw ORACLE_BASE=/opt/oracle OR ...

  6. expdp 备份数据库-附带报错信息

    操作系统层面创建目录 [root@Oracle11g ~]# mkdir -p /home/oracle/db_back/ 修改目录的所属用户.所属组 [root@Oracle11g ~]# chow ...

  7. expdp 备份数据库

    操作系统层面创建目录 [root@Oracle10g ~]# mkdir -p /home/oracle/db_back/ 2. 修改目录的所属用户.所属组 [root@Oracle10g ~]# c ...

  8. RMAN中FILESPERSET设置对备份速度的影响

    看到网上部分人说不指定FILESPERSET(默认值=64)则会导致分配的通道只走第一个而导致备份效率低下,今天仔细研究了一下,参照了多个博主文章,得出结论如下: 如果没有指定filesperset, ...

  9. 通过expdp/impdp进行oracle数据库的备份恢复详细指导

    假定导出oracle数据库home目录为/opt/oracle,数据库用户为exp_user/test,导入用户为imp_user/test,给出如下样例,具体使用时根据实际情况修改路径及用户名/密码 ...

随机推荐

  1. java set转list,数组与list的转换

    读zookeeper的源码(zookeeper.java)时发现的,平时没有怎么注意: private final ZKWatchManager watchManager; List<Strin ...

  2. Java判断1个字符串中出现了几次其他字符串

    public class Test { public static int count(String text,String sub){ , start =; ){ start += sub.leng ...

  3. 单位转换 inch mm mil

    从上面看:英寸(inch)是最大的单位   其次是毫米(mm)  再次是密耳(mil)

  4. JS里的函数的call()与back()方法

    function cat(){} cat.prototype={ food:"fish", say: function(){ alert("I love "+t ...

  5. 关于PyYAML报错问题解决

    转自:http://www.fwqtg.net/%E5%85%B3%E4%BA%8Epyyaml%E6%8A%A5%E9%94%99%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86% ...

  6. SQL Server 中计算农历

    1.建一表,放初始化资料   因为农历的日期,是由天文学家推算出来的,到现在只有到2049年的,以后的有了还可以加入!   CREATE TABLE SolarData ( yearId int no ...

  7. 【例题 6-13 UVA - 1103】Ancient Messages

    [链接] 我是链接,点我呀:) [题意] 在这里输入题意 [题解] 每个图案里面的"洞"的个数都是不同的. 则可以根据这个判别每个图像是什么. 先用dfs确定轮廓之后. 再从每个白 ...

  8. Oracle 排序问题(null带来的)

    null 导致排序有问题, 对于数字的,一定要用nvl来解决.

  9. Instruction-Set Support for Invocation of VMM-Configured Services without VMM Intervention

    A processing core comprising instruction execution logic circuitry and register space. The register ...

  10. jquery ajax 请求时间

    $.ajax({ url:'JsLongPollingMsgServlet', type:'post', dataType:'json', data:{"pageMsgNum":$ ...