zoukankan      html  css  js  c++  java
  • 数据泵:导入导出dblink

    环境介绍:12c->19c

    [oracle@enmoedu1 dpdump]$ expdp system/oracle directory=DATA_PUMP_DIR dumpfile=STATE_2018112201_%U.dmp logfile=STATE_112210.log include=db_link full=y

    Export: Release 12.2.0.1.0 - Production on Fri Jun 4 15:45:56 2021

    Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.

    Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
    Starting "SYSTEM"."SYS_EXPORT_FULL_01": system/******** directory=DATA_PUMP_DIR dumpfile=STATE_2018112201_%U.dmp logfile=STATE_112210.log include=db_link full=y
    Processing object type DATABASE_EXPORT/SCHEMA/DB_LINK
    Master table "SYSTEM"."SYS_EXPORT_FULL_01" successfully loaded/unloaded
    ******************************************************************************
    Dump file set for SYSTEM.SYS_EXPORT_FULL_01 is:
    /u01/app/oracle/admin/PROD/dpdump/STATE_2018112201_01.dmp
    Job "SYSTEM"."SYS_EXPORT_FULL_01" successfully completed at Fri Jun 4 15:46:01 2021 elapsed 0 00:00:04

    [oracle@rac1 dpdump]$ impdp system/oracle directory=DATA_PUMP_DIR dumpfile=STATE_2018112201_%U.dmp logfile=STATE_112210.log

    Import: Release 19.0.0.0.0 - Production on Fri Jun 4 15:46:05 2021
    Version 19.3.0.0.0

    Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.

    Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
    Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
    Starting "SYSTEM"."SYS_IMPORT_FULL_01": system/******** directory=DATA_PUMP_DIR dumpfile=STATE_2018112201_%U.dmp logfile=STATE_112210.log
    Processing object type DATABASE_EXPORT/SCHEMA/DB_LINK
    Job "SYSTEM"."SYS_IMPORT_FULL_01" successfully completed at Fri Jun 4 15:46:10 2021 elapsed 0 00:00:03

    SQL> select owner,object_name from dba_objects where object_type='DATABASE LINK';

    OWNER
    --------------------------------------------------------------------------------
    OBJECT_NAME
    --------------------------------------------------------------------------------
    SYS
    SYS_HUB

    PUBLIC
    TESTLINK1.ENMOEDU.COM

  • 相关阅读:
    [JNA系列]Java调用Delphi编写的Dll之Delphi与JAVA基本数据类型对比
    JSON和数据集互相转换单元
    Windows管理多个java版本--解决'has value '1.8',but'1.7' is required'的方法
    Spring+SpringMVC+MyBatis+Maven框架整合
    让你的程序通过XP防火墙
    内存共享【Delphi版】
    自学k8s-安装docker特定版本技巧
    自学k8s-k8s集群环境搭建
    自学k8s-安装过程为下载flannel.yml和镜像文件,而需要设置的代理
    Centos开放指定端口命令
  • 原文地址:https://www.cnblogs.com/houzhiheng/p/14865925.html
Copyright © 2011-2022 走看看