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. 给ubuntu设置静态ip —— How to set static IP Address in Ubuntu Server 16.04

    原文: http://www.configserverfirewall.com/ubuntu-linux/ubuntu-set-static-ip-address/ ----------------- ...

  2. 利用内存分析工具(Memory Analyzer Tool,MAT)分析java项目内存泄露

    转载:http://blog.csdn.net/wanghuiqi2008/article/details/50724676 一.开发环境: 操作系统:ubuntu 14.04 IDE:Eclipse ...

  3. dhclient 简介

    dhclient 就和它名字一样,用来通过 dhcp 协议配置本机的网络接口. 使用方法就是 #dhclient ifN # ifN 就是 ifconfig 中输出的接口名称,etc. eth0,wl ...

  4. hdu4515小Q系列故事——世界上最遥远的距离

    Problem Description 世界上最遥远的距离 不是生与死 而是我就站在你面前 你却不知道我爱你 世界上最遥远的距离 不是我就站在你面前你却不知道我爱你 而是明明知道彼此相爱 却不能在一起 ...

  5. Android Training - Volley(Lesson 0 - 序言)

    写在http://hukai.me/blog/android-training-volley-index/

  6. Android逆向之旅---SO(ELF)文件格式详解(转)

    第一.前言 从今天开始我们正式开始Android的逆向之旅,关于逆向的相关知识,想必大家都不陌生了,逆向领域是一个充满挑战和神秘的领域.作为一名Android开发者,每个人都想去探索这个领域,因为一旦 ...

  7. 原装Win8系统换win7系统(图文教程)

    装Win8系统换win7系统(图文教程) 在这几天小编发现到,很多用户在使用装机助理制作的U盘进行win8系统换win7系统时总是失败,搞得人心惶惶的.有些用户以为在制作好U盘启动后放进需要装的系统就 ...

  8. C# 取字符串中间文本 取字符串左边 取字符串右边

    好像是第二种效率高一点,取str字符串中123左边的所有字符:第一种Between(str,"","123"),而第二种是Between(str,null,&q ...

  9. Navicat for MySQL再谈之无奈之下还是去安装Navicat Premium

    不多说,直接上干货! 首先,Navicat for MySQL没有查看数据库属性. 其次,没有这个功能多和强大,在走过一段弯路之后,果断放弃Navicat for MySQL,而使用Navicat P ...

  10. 调试JDK1.8源码的方法

    背景 在学习JDK源码的时候,免不了需要调试JDK的源码. 比如:想理解ConcurrentHashMap的put(K k, V v)方法,JDK自带的rt.jar文件是支持断点调试,但是却看不到变量 ...