Oracle数据库备份中的三种模的实际应用
在Oracle数据库备份中我们经常会使用到以下的三种模式,分别是表方式、要将指定用户中的所有对象以及数据导出/导入,以及全库方式这三种模式的相关介绍,以下就是Oracle数据库备份中的三种模式的实际应用的介绍,望你会有所了解。
(1)表方式,将指定表的数据导出/导入。
导出:导出一张或几张表:
- $ exp user/pwd file=/dir/xxx.dmp log=
xxx.log tables=table1,table2
导出某张表的部分数据
- $ exp user/pwd file=/dir/xxx.dmp log=
xxx.log tables=table1 query=\“where col1=
\‘…\’and col2 \<…\”
导入:导入一张或几张表
- $ imp user/pwd file=/dir/xxx.dmp log=
xxx.log tables=table1,- table2 fromuser=dbuser touser=
dbuser2 commit=y ignore=y
(2)在Oracle数据库备份中第二种模式用户方式,要将指定用户的所有对象及数据导出/导入。
导出:
- $ exp user/pwd file=/dir/xxx.dmp log=
xxx.log owner=(xx, yy)
只导出数据对象,不导出数据 (rows=n )
- $ exp user/pwd file=/dir/xxx.dmp log=
xxx.log owner=user rows=n
导入:
- $ imp user/pwd file=/dir/xxx.dmp log=
xxx.log fromuser=dbuser touser=dbuser2- commit=y ignore=y
(3)全库方式,将数据库中的所有对象导出/导入导出:
- $ exp user/pwd file=/dir/xxx.dmp log=xxx.log full=
ycommit=y ignore=y
导入:
- $ imp user/pwd file=/dir/xxx.dmp log=xxx.log fromuser=
dbuser touser=dbuser2
以上就是对Oracle数据库备份中三种模式相关的内容的介绍,望你会有所收获。
【编辑推荐】
- Oracle 数据的导入中相关两个步骤的描述
- Oracle 删除表空间之前把其中的文件也删除的解决方案
- Oracle创建临时表空间用到的代码的示例
- Oracle exp备份机上安装oracle10.1都需添加的内容
- Oracle exp备份使用sysdba进行导出和导入的操作
版权声明:
作者:后浪云
链接:https://www.idc.net/help/314351/
文章版权归作者所有,未经允许请勿转载。
THE END