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. Mac OS X 10.10 执行 Eclipse 提示须要安装 Java

  2. js 倒计时跳转页面

    <script type="text/javascript">var i = 5; var intervalid; intervalid = setInterval(& ...

  3. Linux内核project导论——linux学习和职业曲线(刚開始学习的人,中级,高级都可參考)

    Linux世界介绍 给自己定级 门外汉: 不会安装操作系统 不会用虚拟机(安装和使用) 入门级: 熟悉常见的发行版,甚至装过而且能用一些特殊发行版(比如kali)做过一些简单的图形界面的使用. 会一些 ...

  4. Node.js meitulu图片批量下载爬虫1.051

    原有1.05版程序没有断点续传模式,现在在最近程序基础上改写一版1.051. //====================================================== // m ...

  5. AWS RDS mysql无法连接的问题

    rds创建后,无法连接mysql 检查安全组规则是否配置了 1. 2. 这样你的EC2就可以访问了.如果还不行,检查数据库是否和EC2在同一 VPC内. 官方文档:https://docs.amazo ...

  6. 通过LR监控Linux服务器性能

    1)设置监控服务器要监控 UNIX 资源,必须配置 rstatd 守护程序.注意,可能已经配置了 rstatd守护程序,因为当计算机收到一个 rstatd 请求时,该计算机上的 inetd 自动激活r ...

  7. 理解Linux系统中的load average

    理解Linux系统中的load average(图文版) 博客分类: Linux linux load nagios  一.什么是load average? linux系统中的Load对当前CPU工作 ...

  8. ssh2 三大框架整合

    提示:eclipse环境.工程环境.tomcat环境的jdk保持一致 1.新建一个工程,把工程的编码为utf-8 2.把jsp的编码形式改成utf-8 3.把jar包放入到lib下           ...

  9. Android webView 支持缩放及自适应屏幕

    //支持javascript web.getSettings().setJavaScriptEnabled(true);  // 设置可以支持缩放  web.getSettings().setSupp ...

  10. 使用 WinEdt 来写中文文章or 建模论文

    找了几乎两个小时…… 后来发现… WinEdt 是可以用来写中文文章的…而并非只能英文文章或演示文稿… \documentclass{article} \usepackage{CJK} \begin{ ...