Oracle datapump expdp/impdp 导入导出数据库时hang住

php中文网
发布: 2016-06-07 17:29:01
原创
1388人浏览过

最近在导出schema级别的数据时被hang住,不得不停止当前的导出作业,如果你有类似的问题,请继续往下看。

最近在导出schema级别的数据时被hang住,不得不停止当前的导出作业,如果你有类似的问题,请继续往下看。
 
1、问题描述
    导出整个schema时数据库被hang住,如下所示
    符号">"是由securecrt设定的每300秒发送一次
    oracle@dev-db-04:~> expdp goex_admin/xxx directory=db_dump_dir dumpfile=gobo2.dmp logfile=gobo2.log schemas=goex_admin
   
    export: release 10.2.0.4.0 - 64bit production on thursday, 23 may, 2013 9:30:52
   
    copyright (c) 2003, 2007, oracle.  all rights reserved.
   
    connected to: oracle database 10g release 10.2.0.4.0 - 64bit production
    starting "goex_admin"."sys_export_schema_01":  goex_admin/******** directory=db_dump_dir dumpfile=gobo2.dmp
    logfile=gobo2.log schemas=goex_admin
    >>>>
 
    -->查询超长时间的操作,没有任何结果,也就是说datapump压根啥也没有做
    goex_admin@gobo2> @long_ops
   
    no rows selected
   
    -->查询job产生的对象的表,表存在
    goex_admin@gobo2> @datapump_master_tb
   
    status  object_id object_type        owner_object
    ------- ---------- ------------------- --------------------------------------------------
    valid      315838 table              goex_admin.sys_export_schema_01
 
2、问题解决
    参数fixed_date引起数据库导入导出被hang住 [id 563171.1]
    goex_admin@gobo2> show parameter fixed
   
    name                                type        value
    ------------------------------------ ----------- ------------------------------
    fixed_date                          string      20130506 16:00:00
   
    -- author : robinson
   
    goex_admin@gobo2> alter system set fixed_date=none;
   
    system altered.
   
    -->参数fixed_date被移除后,导出正常
    oracle@dev-db-04:~> expdp goex_admin/xxx directory=db_dump_dir dumpfile=gobo2.dmp logfile=gobo2.log schemas=goex_admin
   
    export: release 10.2.0.4.0 - 64bit production on thursday, 23 may, 2013 9:30:52
   
    copyright (c) 2003, 2007, oracle.  all rights reserved.
   
    connected to: oracle database 10g release 10.2.0.4.0 - 64bit production
    starting "goex_admin"."sys_export_schema_01":  goex_admin/******** directory=db_dump_dir dumpfile=gobo2.dmp
    logfile=gobo2.log schemas=goex_admin
    >>>>
    estimate in progress using blocks method...
    processing object type schema_export/table/table_data
    total estimation using blocks method: 89.31 mb
    processing object type schema_export/user
    processing object type schema_export/system_grant
    .......................
    processing object type schema_export/post_schema/procact_schema
    . . exported "goex_admin"."go_ga_cust_tbl"              148.4 kb    551 rows
    . . exported "goex_admin"."go_ga_acc_tbl"                167.9 kb    533 rows
 
3、参数fixed_date
    fixed_date enables you to set a constant date that sysdate will always return instead of the current date.
    to undo a fixed date setting, specify fixed_date=none. this parameter is useful primarily for testing.
    the value can be in the format shown above or in the default oracle date format, without a time.
   
    fixed_date参数可以定义当前的日期为一个常量而不随系统日期的变化而变化,,通常用于测试目的使用
    对于使用datapump进行导入导出的情形,应考虑将该参数设置为none来避免导入导出hang住的问题
    该参数影响的版本version 10.1.0.2 to 11.2.0.3

MindShow
MindShow

MindShow官网 | AI生成PPT,快速演示你的想法

MindShow 1492
查看详情 MindShow

linux

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号