远程连接oracle导出指定表

通过sqlplus连接远程导出

格式:exp 用户名/密码@远程地址(ip:port/service_name) file=本地目录 tables=(表名称1, 表名称2)

示例:

C:\Users\Administrator>exp admin/123456@192.168.1.1:1521/otp file=e:\wlp\1018\plan.dmp tables=(pla_plan)

Export: Release 11.2.0.1.0 - Production on 星期二 10月 18 10:23:36 2022

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


连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集

即将导出指定的表通过常规路径...
. . 正在导出表                        PLA_PLAN导出了      417993 行
成功终止导出, 没有出现警告。

导入dmp至目标数据库

格式:imp 用户名/密码@远程地址(ip:port/service_name) file=本地目录 tables=(表名称1, 表名称2)

示例:

C:\Users\Administrator>imp wlp/admin123@127.0.0.1:1521/orcl file=e:\wlp\1018\plan.dmp tables=(pla_plan)

Import: Release 11.2.0.1.0 - Production on 星期二 10月 18 16:51:01 2022

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


连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

经由常规路径由 EXPORT:V11.02.00 创建的导出文件

已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入
. 正在将 FJORM 的对象导入到 WLP
. 正在将 FJORM 的对象导入到 WLP
. . 正在导入表                      "PLA_PLAN"导入了      417993 行
即将启用约束条件...
成功终止导入, 没有出现警告。
posted @ 2022-10-18 10:32  漆原Blog  阅读(64)  评论(0)    收藏  举报