oracle-exp&imp-016

来源:网络 责任编辑:栏目编辑 发表时间:2013-07-02 05:50 点击:

数据的导出和导入

做逻辑备份将数据以.dmp的文件导出导入

 

cmd模式下 

 

C:\Documents and Settings\Administrator>exp

 

Export: Release 10.1.0.2.0 - Production on Thu Aug 25 17:52:13 2011

 

Copyright (c) 1982, 2004, Oracle.  All rights reserved.

 

--一般以sys用户做导出的操作

Username: sys as sysdba

Password:

 

Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production

With the Partitioning, OLAP and Data Mining options

Enter array fetch buffer size: 4096 >

--输入导出文件存放路径,但必须以.dmp文件保存

Export file: EXPDAT.DMP > e:\dbf\myexp.dmp

--导出的类别

(1)E(ntire database), (2)U(sers), or (3)T(ables): (2)U > t

 

Export table data (yes/no): yes > y

 

Compress extents (yes/no): yes >

 

Export done in WE8ISO8859P15 character set and AL16UTF16 NCHAR character set

server uses ZHS16GBK character set (possible charset conversion)

 

About to export specified tables via Conventional Path ...

--导出的文件

Table(T) or Partition(T:P) to be exported: (RETURN to quit) > hr.mydepartments

 

Current user changed to HR

. . exporting table                  MYDEPARTMENTS         27 rows exported

Table(T) or Partition(T:P) to be exported: (RETURN to quit) >

 

Export terminated successfully without warnings.

 

 

 

导入数据

C:\Documents and Settings\Administrator>imp

 

Import: Release 10.1.0.2.0 - Production on Thu Aug 25 18:02:38 2011

 

Copyright (c) 1982, 2004, Oracle.  All rights reserved.

 

Username: sys as sysdba

Password:

 

Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production

With the Partitioning, OLAP and Data Mining options

--导入的文件

Import file: EXPDAT.DMP > e:\dbf\myexp.dmp

 

Enter insert buffer size (minimum is 8192) 30720>

 

Export file created by EXPORT:V10.01.00 via conventional path

import done in WE8ISO8859P15 character set and AL16UTF16 NCHAR character set

import server uses ZHS16GBK character set (possible charset conversion)

List contents of import file only (yes/no): no >

 

Ignore create error due to object existence (yes/no): no > y

 

Import grants (yes/no): yes >

 

Import table data (yes/no): yes >

 

Import entire export file (yes/no): no >

Username: hr

--导入到hr

Enter table(T) or partition(T:P) names. Null list means all

    相关新闻>>

      发表评论
      请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
      用户名: 验证码:点击我更换图片
      最新评论 更多>>

      推荐热点

      • Table函数使用简介
      • Oracle数据库Constraint约束的常用操作及异常处理
      • Bulk Collect性能分析(zz)
      • export/import的使用
      • OCP043第十五讲 Database Security
      • ORACLE10gr2数据导入MySQL方案
      • oracle 让sys用户可以使用isqlplus
      • 在oracle数据库下使用iSQL*Plus DBA访问数据库
      • Oracle行列转换小结
      网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
      Copyright © 2008-2015 计算机技术学习交流网. 版权所有

      豫ICP备11007008号-1