`
itspace
  • 浏览: 963343 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

Oracle 10g impdp跨网络导数据

阅读更多
本测试的亮点是impdp参数network_link,此参数支持跨Oracle版本(如10.2.0.4和10.2.0.3),跨操作系统。
测试库
ora10g@mcprod ~]$ export ORACLE_SID=mcstar
ora10g@mcprod ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 10.2.0.3.0 - Production on Tue Nov 16 14:32:11 2010

Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> conn zhou/zhou
Connected.
生产库
[ora10g@hzmc ~]$ export ORACLE_SID=drb
[ora10g@hzmc ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 10.2.0.3.0 - Production on Tue Nov 16 15:05:31 2010

Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> conn system/oracle;
Connected.

SQL> create database link mcstar connect to zhou identified by zhou using 'mcstar';

Database link created.

SQL> conn /as sysdba;
Connected.

SQL>  drop user zhou cascade;

User dropped.

SQL> CREATE DIRECTORY dmpdir AS '/tmp';

Directory created.

SQL>  GRANT read, write ON DIRECTORY dmpdir TO system;

Grant succeeded.

SQL> create tablespace zhou datafile '/Tbackup/mcstar/oradata/zhou02.dbf' size 50m;

Tablespace created.

[ora10g@hzmc tmp]$ impdp system/oracle@drb directory=dmpdir network_link=mcstar schemas=zhou

Import: Release 10.2.0.3.0 - Production on Tuesday, 16 November, 2010 15:28:51

Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
FLASHBACK automatically enabled to preserve database integrity.
Starting "SYSTEM"."SYS_IMPORT_SCHEMA_01":  system/********@drb directory=dmpdir network_link=mcstar schemas=zhou
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 372 MB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
. . imported "ZHOU"."T2"                                  46285 rows
. . imported "ZHOU"."TABLE_AFTER"                        759248 rows
. . imported "ZHOU"."TABLE_BEFORE"                       759248 rows
. . imported "ZHOU"."TESTT1"                             181860 rows
. . imported "ZHOU"."T"                                  189812 rows
. . imported "ZHOU"."T1"                                  46284 rows
. . imported "ZHOU"."ZHOU"                                    0 rows
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Job "SYSTEM"."SYS_IMPORT_SCHEMA_01" successfully completed at 15:33:00

注:在跨版本,跨操作系统中可能存在某些bug
[ora10g@hzmc admin]$ impdp system/oracle@drb directory=dmpdir network_link=ora10g schemas=zhou

Import: Release 10.2.0.3.0 - Production on Tuesday, 16 November, 2010 15:58:24

Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
Starting "SYSTEM"."SYS_IMPORT_SCHEMA_02":  system/********@drb directory=dmpdir network_link=ora10g schemas=zhou
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 4 MB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
ORA-39125: Worker unexpected fatal error in KUPW$WORKER.DISPATCH_WORK_ITEMS while calling DBMS_METADATA.CLOSE []
ORA-31600: invalid input value 200002 for parameter HANDLE in function CLOSE

ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPW$WORKER", line 6228

----- PL/SQL Call Stack -----
  object      line  object
  handle    number  name
0x2be1375c     14916  package body SYS.KUPW$WORKER
0x2be1375c      6293  package body SYS.KUPW$WORKER
0x2be1375c      6988  package body SYS.KUPW$WORKER
0x2be1375c      1259  package body SYS.KUPW$WORKER
0x2de75438         2  anonymous block

分享到:
评论

相关推荐

    oracle11g expdp impdp 分区表重映射导出导入数据迁移方案

    oracle expdp impdp 分区表重映射导出导入 数据迁移方案,以SI01用户为例子,将用户分区表导出后,将分区表重映射到新的表空间,完成数据迁移和检查。照方案例子按步去做,一定能成功。

    oracle 10g数据泵之impdp

    关于oracle 10g 数据泵的导入操作,掌握中间的参数及内容。

    Oracle_10G使用数据泵(EXPDP和IMPDP)

    Oracle_10G使用数据泵(EXPDP和IMPDP)

    ORACLE数据泵impdp与expdp

    在10g之前,传统的导出和导入分别使用EXP工具和IMP工具,从10g开始,不仅保留了原有的EXP和IMP工具,还提供了数据泵导出导入工具EXPDP和IMPDP.使用EXPDP和IMPDP时应该注意的事项; EXP和IMP是客户段工具程序,它们既可以在...

    window下Oracle 11g导出的EXPDP数据导入到linux

    通过使用 EXPDP 和 IMPDP 命令,我们可以轻松地将 Oracle 11g 数据从 Windows 服务器导出到 Linux 服务器上,并且可以将数据导入到 Linux 服务器上的 Oracle 数据库中,从而实现数据的迁移和集成。

    精通oracle 10g系统管理(高清PDF)

    通过学习本书,读者不仅可以掌握Oracle数据库的基本管理方法,还可了解并掌握Oracle Database 10g所提供的新特征,包括 Web页面的OEM控制工具、数据泵导出导入工具软件EXPDPR和IMPDP,以及其他新特征。  本书不仅适合...

    expdp/impdp命令详解

    指定转储文件和日志文件所在的目录 DIRECTORY=directory_object Directory_object用于指定目录对象名称.需要注意,目录对象是使用CREATE DIRECTORY语句建立的对象,而不是OS目录

    Oracle数据导入导出imp/exp命令 10g以上expdp/impdp命令

    在 Oracle 10g 及其以上版本中,expdp 和 impdp 命令取代了传统的 exp 和 imp 命令,提供了更多的功能和选项。expdp 命令可以将数据导出到文件中,impdp 命令可以将数据从文件中导入到数据库中。 使用 imp/exp 命令...

    Oracle11g从入门到精通2

     Oracle数据库系统是数据库领域最优秀的数据库之一,《Oracle11g从入门到精通》以Oracle最新版本Oracle 11g为蓝本,系统地讲述了Oracle数据库的概念、管理和应用开发等内容。  全书结构合理、内容翔实、示例丰富...

    Oracle11g客户端安装包.zip

    Windows环境使用exp,imp,expdp,impdp,sqldur2等导入导出数据命令的时候,需要安装Oracle11g客户端环境

    oracle 10g 自动清除 session 删除库 并 自动 impdp 导入备份

    脚本功能 1、自动删除oracle当前链接 2、删除用户 3、新建用户 并授权 导入备份 4、包括一个perl pop3邮件发送客户端

    Oracle 数据泵详解

    Oracle Database 10g引入了最新的数据泵(Data Dump)技术,数据泵导出导入(EXPDP和IMPDP)的作用 1)实现逻辑备份和逻辑恢复. 2)在数据库用户之间移动对象. 3)在数据库之间移动对象 4)实现表空间搬移. 二、数据泵...

    oracle10g通过浏览器备份数据

    通过ie完成对oracle10g的数据备份,备份时实际调用expdp工具完成。

    “军卫一号”数据库Oracle 10g故障维修2例.pdf

    然而,在实际应用中,Oracle 10g数据库也可能会出现各种故障,影响系统的稳定运行和数据安全。本文将介绍两例“军卫一号”数据库Oracle 10g故障维修,旨在帮助DBA和系统管理员更好地维护和管理Oracle 10g数据库。 ...

    Oracle11g数据库导入Oracle10g数据库中

    11g备份,导入10g的时候会抛错,直接阻止导入。但是有时候还必须得把11g的数据库导入到10g,使用如下方法: 一、在11g服务器上,使用expdp命令备份数据 二、在10g服务器上,使用impdp命令恢复数据

    玩转oracle11g数据泵

    详细介绍oracle impdp expdp使用参数

    windows oracle11g 备份与还原

    oracle备份与还原主要内容包含了 oracle11g数据库的 rman 的一些简单使用,oracle 数据崩的使用,数据库闪回功能的理解和应用。

    Linux:Oracle导出导入数据泵(EXPDP,IMPDP)

    数据泵技术是Oracle Database 10g 中的新技术,它比原来导入/导出(imp,exp)技术快15-45倍。速度的提高源于使用了并行技术来读写导出转储文件。 expdp/impdp和exp/imp的区别 exp和imp是客户端工具程序,它们既可以在...

Global site tag (gtag.js) - Google Analytics