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 ...
随机推荐
- DevExpress TreeList使用教程之绑定多级树
DevExpress TreeList使用教程之绑定多级树 概述:TreeList控件可以同时显示树结构和其他数据列,即在一个列上建立父子关系展开或收缩,同时还可以显示其他列的内容.在TreeLi ...
- 几个免费的DNS地址
百度CDN 180.76.76.76 114.114.114.114 阿里CDN 223.5.5.5 223.6.6.6 googleCDN 8.8.8.8 国内外DNSserver地址列表 http ...
- 快速把web项目部署到weblogic上
转自:http://weijie.blog.51cto.com/340746/90420/ weblogic简介 BEA WebLogic是用于开发.集成.部署和管理大型分布式Web应 ...
- Intent传递对象的方法
//传递对象 Bundle bundle = new Bundle(); intent = new Intent(getApplicationContext(), YourActivity.class ...
- 倍福TwinCAT(贝福Beckhoff)常见问题(FAQ)-有时候项目会无法编译,重新生成就自动卡死或者自动退出怎么办
删除所有中文注释,有中文注释则不一定能编译成功. 更多教学视频和资料下载,欢迎关注以下信息: 我的优酷空间: http://i.youku.com/acetaohai123 我的在线论坛: ...
- vue - webpack.prod.conf.js
描述:webpack打包项目时的配置文件. 命令:yarn run build 或 npm run build 打包后,生成的文件在dist文件夹下 打包后,要在服务器环境下运行!!! 关于怎样运行, ...
- 设计模式 - 迭代器模式(iterator pattern) 具体解释
迭代器模式(iterator pattern) 详细解释 本文地址: http://blog.csdn.net/caroline_wendy 迭代器模式(iterator pattern) : 提供一 ...
- Ubuntu 11.04 安装后要做的20件事情
转自:http://www.cnbeta.com/articles/141137.htm #1 不喜欢Unity? 切换到Ubuntu gnome 经典桌面 注销unity桌面环境,然后选择登录环境为 ...
- Nginx-负载均衡实践(一、对PHP-FPM进行分摊)
应用的服务器分为前端和后端 前端服务器: 负责对静态文件(比如JS.CSS.图片)等的响应, 以及把PHP请求分发到后端服务器 后端服务器: 处理前端服务器分发而来的PHP请求 前端服务器: 192. ...
- linux 常用的命令(转)
常用指令 ls 显示文件或目录 -l 列出文件详细信息l(list) -a 列出当前目录下所有文件及目录,包括隐藏的a(all) mkdir ...