Transporting Data Between Database


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的更多相关文章
- Use excel Macro export data from database
Sub DownLoadMacro() '定义过程名称 Dim i As Integer, j As Integer, sht As Worksheet 'i,j为整数变量:sht 为excel工作表 ...
- bulk insert data into database with table type .net
1. Create Table type in Sqlserver2008. CREATE TYPE dbo.WordTable as table ( [WordText] [nchar]() NUL ...
- [yii]Fetch data from database and create listbox in yii
<?php $records = User::model()->findAll(); $list = CHtml::listData($records, 'id', 'username') ...
- 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 ...
- [Oracle] Transporting Tablespace
Transporting Tablespace Between Database [测试目的] 利用Oracle TTS(transport tablespace)特性实现表空间合并 [主要步骤] 确 ...
- 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 ...
- Cross-Domain Security For Data Vault
Cross-domain security for data vault is described. At least one database is accessible from a plural ...
- taiyi_interview(Introduction To Database Refactoring)
Introduction To Database Refactoring 原文链接:by Scott W. Ambler:http://www.tdan.com/view-articles/5010/ ...
- 【MongoDB】mongoimport and mongoexport of data (一)
In the software development, we usually are faced with a common question of exporting or importing d ...
随机推荐
- 转:ios的图片文件上传代码
转自: https://gist.github.com/igaiga/1354221 @interface ImageUploader : NSObject { NSData *theImage; } ...
- linux经常使用文字处理命令总结
linux grep命令 作用 Linux系统中grep命令是一种强大的文本搜索工具,它能使用正則表達式搜索文本,并把匹 配的行打印出来.grep全称是Global Regular Expressio ...
- C# this.Hide()
C# this.Hide() 第一次用的时候是在_Load函数里: BookSystem bs = new BookSystem(); bs.ShowDialog(); ...
- 【一步一步走(1)】远程桌面软件VNC的安装与配置
近期在VPS上搭建Python Web环境.走了非常多弯路,借此记下. 先说说购买的VPS(PhotonVPS),我可不是打广告.仅仅是感觉这个VPS服务提供商还不错推荐给你大家,我之前也是体验过阿里 ...
- 基于Prometheus搭建SpringCloud全方位立体监控体系
前提 最近公司在联合运维做一套全方位监控的系统,应用集群的技术栈是SpringCloud体系.虽然本人没有参与具体基础架构的研发,但是从应用引入的包和一些资料的查阅大致推算出具体的实现方案,这里做一次 ...
- 在LoadRunner中进行Base64的编码和解码
<Base64 Encode/Decode for LoadRunner>这篇文章介绍了如何在LoadRunner中对字符串进行Base64的编码和解码: http://ptfrontli ...
- ES6 set 应用场景
1.数组去重 let arr = [3, 5, 2, 2, 5, 5]; let unique = [...new Set(arr)]; // [3, 5, 2] 2.并集(Union).交集(Int ...
- git push --set-upstream origin
设置本地分支追踪远程分支 之后就可以直接使用git push提交代码
- 【Linux】行首、行尾添加字符串
在行首或者行尾添加字符串的方式有以下2种 环境描述 test.txt文件内容如下: hello world Qinys 要求:在每一行的行首添加AAA,行尾添加666 VIM编辑状态添加 首先使用命令 ...
- struts.xml 文件添加DTD文件
在编辑struts.xml 文件时,“alt + /”无提示信息,需要在myeclipse 中添加消息头中的文件,步骤如下: 1. 选中该段复制 2. Preferences——>XML Cat ...