The Export utility can provide a logical backup of:

  • Database objects
  • A tablespace
  • An entire database

The Import utility is used to read a valid Export file for moving data into a database. Redo log history cannot be applied to objects that are imported from an export file, therefore data loss may occur, but can be minimized. The DBA can use the Export and Import utilites to complement normal operating system backups by using them to :

  • Create a historical archive of a database object or entire database; for example, when a schema is modified to support changing business requirements.
  • Save table definitions in a binary file. This may be useful for creating and maintaining a baseline of a given schema structure.
  • Move data from one Oracle database version to another, such as upgrading from Oracle8i to Oracle9i.

Export (导出的文件, 只能 Import 这个工具读取)

运行方法:

  • command-line entries
  • Interactive Export prompts (我们系统)
  • Parameter files
  • Oracle Enterprise Manage

另外, 如果你想使用 Export, 你必须具有如下权限:

CREATE SESSION, EXP_FULL_DATABASE

command-line 运行模式:

操作系统提示符: exp hr/hr tables = (employees, departments) rows=y file=exp1.dmp   -- 注意, 这里不指定文件路径, 那么就是执行命令的当前目录, 也可以直接指定目录

exp hr/hr tables = ( employees, departments) rows=y file = ‘/u01/exp/exp1.dmp’

导出hr 用户的所有object :

exp system/manager owner=hr directy  -- 如果没有指定file, 那么默认的文件名是 expdat.dmp.

导出 tablespace ts_employees 下的所有 objects, 并同时声称日志文件记录在 ts_employees.log 里

exp system/manager transport_tablespace=y tablespaces=(ts_employees) log=ts_employees.log

includes all definitions and data modified in the database since the last cumulative or complete export.

exp system/manager FULL=y INCTYPE=cumulative FILE=expcum1.dmp

parameter file:

exp parfile=exp_param.txt

其中 param.txt 为:

USERID=hr/hr

TABLES=(employees, departments)

FILE=exp_one.dmp

DIRECT=y

Import

command-line 运行方式:

imp hr/hr tables=(employees, departments) rows=y file=exp1.dmp  -- 这样会首先创建这两个 table, 然后再进行插入

imp system/manager FROMUSER=hr file=exp2.dmp

imp system/manager transport_tablespace=y TABLESPACES=ts_employees

Transporting Data Between Database的更多相关文章

  1. Use excel Macro export data from database

    Sub DownLoadMacro() '定义过程名称 Dim i As Integer, j As Integer, sht As Worksheet 'i,j为整数变量:sht 为excel工作表 ...

  2. bulk insert data into database with table type .net

    1. Create Table type in Sqlserver2008. CREATE TYPE dbo.WordTable as table ( [WordText] [nchar]() NUL ...

  3. [yii]Fetch data from database and create listbox in yii

    <?php $records = User::model()->findAll(); $list = CHtml::listData($records, 'id', 'username') ...

  4. Master Note for Transportable Tablespaces (TTS) -- Common Questions and Issues (Doc ID 1166564.1)

    APPLIES TO: Oracle Database Cloud Exadata Service - Version N/A and laterOracle Database Cloud Servi ...

  5. [Oracle] Transporting Tablespace

    Transporting Tablespace Between Database [测试目的] 利用Oracle TTS(transport tablespace)特性实现表空间合并 [主要步骤] 确 ...

  6. Why you shouldn’t connect your mobile application to a database

    BY CRAIG CHAPMAN · PUBLISHED 2015-07-02 · UPDATED 2015-07-02   Working at Embarcadero, I frequently ...

  7. Cross-Domain Security For Data Vault

    Cross-domain security for data vault is described. At least one database is accessible from a plural ...

  8. taiyi_interview(Introduction To Database Refactoring)

    Introduction To Database Refactoring 原文链接:by Scott W. Ambler:http://www.tdan.com/view-articles/5010/ ...

  9. 【MongoDB】mongoimport and mongoexport of data (一)

    In the software development, we usually are faced with a common question of exporting or importing d ...

随机推荐

  1. PostgreSQL 9.5,带来 UPSERT 等新特性

    PostgreSQL 9.5于2016年1月7日正式发布,此版本主要带来了以下几个方面的特性: UPSERT, Row Level Security, and Big Data 1)UPSERTUPS ...

  2. 使用airdrop进行文件共享

    使用airdrop进行文件共享 学习了: https://support.apple.com/zh-cn/HT203106 https://zh.wikihow.com/%E5%9C%A8Mac%E4 ...

  3. 转: ios的关于autolayout的设计与实现

    http://www.taijicoder.com/2015/12/12/iOS-Layout-and-Masnory/

  4. 内网渗透技巧:判断机器真实外网IP的5种方法总结

    在内网渗透中有时需要在某台WEB服务器中留下后门,该机器可以通过内网IP建立IPC连接,但还需要获知外网IP或域名才能访问Wbshell,在无网关权限的情况下,我总结了有如下方法: 1.通过nsloo ...

  5. Unity3D实现3D立体游戏原理及过程,需偏振眼镜3D显

    http://tieba.baidu.com/p/3038509618?fr=ala0&pstaala=3

  6. JDBC数据库编程:ResultSet接口

    掌握ResultSet接口 使用ResultSet接口进行查询 ResultSet接口 在JDBC操作中,数据库所有查询记录将使用ResultSet进行接收,并使用ResultSet显示内容. 常用方 ...

  7. iOS 仿支付宝密码支付

    代码地址如下:http://www.demodashi.com/demo/11484.html 一.准备工作 xcode 主要实现输入密码的时候不可见 二.程序实现 实现思路怎样 在支付宝输入密码的时 ...

  8. (三)Lucene——Field域和索引的增删改

          1. Field域 1.1  Field的属性 是否分词(Tokenized) 是:对该field存储的内容进行分词,分词的目的,就是为了索引. 比如:商品名称.商品描述.商品价格 否:不 ...

  9. Ubuntu Server 12.04 安装 Jabberd2 服务器

    本篇文章由:http://xinpure.com/install-ubuntu-server-12-04-jabberd2-server/ Ubuntu Server 12.04 安装 Jabberd ...

  10. 区别原生chrome 和以chrome为内核的360浏览器

    function isChrome360() { if( navigator.userAgent.toLowerCase().indexOf('chrome') > -1 ) { var des ...