oracle表数据导出dmp文件

1、plsql工具导出dmp文件sql

工具—>导出表 选择要导出的表 如图所示
数据库

2、使用命令方式oracle

  1. 查看本地oracle客户端配置tnsname.ora配置信息文件工具

#=uc/uc 本机数据库文件==
LC_UC=
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = UCDEV)
    )
)

其中:LC_UC为数据库名,HOST为IP地址测试

2.测试tns是否可用 tnsping LC_UC(tnsname.ora配置信息显示表明可用)spa

3.命令导入导出数据code

    a. 将数据库LC_UC彻底导出,用户名uc 密码uc 导出到D:\uc .dmp中xml

  exp uc/uc @LC_UC file=d:\uc.dmp full=y

   b. 将数据库中system用户与sys用户的表导出table

 exp system/uc @LC_UC file=d:\uc.dmp owner=(system,sys)

   c. 将数据库中的表table1 、table2导出class

 exp system/uc@LC_UC file=d:\uc.dmp tables=(table1,table2)

  d 将数据库中的表table1中的字段filed1以"00"打头的数据导出

 exp system/uc@LC_UC file=d:\uc.dmp tables=(table1) query=\" where filed1 like '00%'\"
相关文章
相关标签/搜索