Oracle datapump expdp/impdp 导入导出数据库时hang住_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 1587 | 回复: 0   主题: Oracle datapump expdp/impdp 导入导出数据库时hang住        下一篇 
renruishen
注册用户
等级:新兵
经验:58
发帖:79
精华:0
注册:2011-12-25
状态:离线
发送短消息息给renruishen 加好友    发送短消息息给renruishen 发消息
发表于: IP:您无权察看 2015-7-7 15:00:27 | [全部帖] [楼主帖] 楼主

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
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

--转自
北京联动北方科技有限公司




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论