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 ...
随机推荐
- 如何在asp.net mvc框架及django框架下面避免CSRF
CSRF 跨站伪造请求 不知CSRF为何物的,可以问下G哥. 在Asp.net MVC平台下,提供了Html.AntiForgeryToken() 方法,我们只需把其放在form的标签内,在浏览器端就 ...
- TreeView 类 事件
名称 说明 AfterCheck 在选中树节点复选框后发生. AfterCollapse 在折叠树节点后发生. AfterExpand 在展开树节点后发生. AfterLabelEdit 在编辑树节点 ...
- C#时间的味道——任时光匆匆我只在乎你
如果没有遇见你,我将会是在哪里?日子过的怎么样人生是否要珍惜...任时光匆匆我只在乎你,心甘情愿感染你的气息,人生几何能得到知己...一首邓丽君的<我只在乎你>不禁令我唏嘘不已,这些年离我 ...
- RTP 时间戳的处理
RTP 时间戳的处理 在RTP传输音频数据时,一般选定逻辑时间戳速率与采样速率相同, 但是在传输视频数据时,必须使时间戳速率大于每帧的一个滴答(这样才能使图像回放更为平滑--<用TCP/IP ...
- Direcshow中视频捕捉和參数设置报告
Direcshow中视频捕捉和參数设置报告 1. 关于视频捕捉(About Video Capture in Dshow) 1视频捕捉Graph的构建 一个能够捕捉音频或者视频的graph图 ...
- git 关联远程分支
问题解析: git本地新建一个分支后,必须要做远程分支关联.如果没有关联, git 会在下面的操作中提示你显示的添加关联.关联目的是如果在本地分支下操作: git pull, git push ,不需 ...
- Java基础——线程总结
Java基础--线程总结 一.线程是什么? 线程:一个程序里不同的运行路径. 二.怎样创建线程? 两种方法创建线程: 第一种 (1)定义详细功能类实现Runnable接口,能够多次调用而实现数据共享 ...
- RabbitMQ的应用场景以及基本原理介绍(转载)
1.背景 RabbitMQ是一个由erlang开发的AMQP(Advanved Message Queue)的开源实现. 2.应用场景 2.1异步处理 场景说明:用户注册后,需要发注册邮件和注册短信, ...
- etymology-F
forsake [fə'seɪk] vt.放弃:断念. watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400 ...
- SSE,MSE,RMSE,R-square 指标讲解
SSE(和方差.误差平方和):The sum of squares due to error MSE(均方差.方差):Mean squared errorRMSE(均方根.标准差):Root mean ...