• 数据泵:导入导出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

  • 相关阅读:
    springboot自定义对象参数
    mybatis学习之查询条件构造器
    C#的Abstract和Virtual
    ducker的网络介绍
    docker启动Tomcat报错404解决
    EF框架报错:System.Data.Entity.Internal.AppConfig的类型初始值设定项引发异常
    docker的运行过程
    html的video控件使用
    EF中lambda表达式实现LIKE模糊查询
    nginx和Tomcat的区别
  • 原文地址:https://www.cnblogs.com/houzhiheng/p/14865925.html
Copyright © 2020-2023  润新知