当前位置:数据库 > Oracle >>

oracle全量备份

oracle全量备份
 
1.导出epmssit数据库备份;
exp system/sysadmin@hnepms file=d:\datas\epmssit_bak20100401.dmp owner=epmssit

2.创建epmsprd用户以及表空间;
sqlplus "/as sysdba"
create tablespace epmsprd datafile 'D:\datas\epmsprd.ora' size 100M;
create user epmsprd identified by epmsprd default tablespace epmsprd;
grant resource,connect to epmsprd;

3.将epmssit导入到epmsprd用户;
imp system/sysadmin@hnepms file=d:\datas\epmssit_bak20100401.dmp fromuser=epmssit touser=epmsprd

4.清理epmsprd数据库中的垃圾数据;

delete from xxxxxx;

5.备份epmsprd;
exp system/sysadmin@hnepms file=d:\datas\epmsprd_bak20100401.dmp owner=epmsprd

 

 
注明:
 
oralce11g 在新建表时 是不分配表空间的 为的是提高性能 节约空间 在第一次插入记录时才分配的 只是oracle11g 以上版本会出这个问题 低版本 不会有 
我们用
alter system set deferred_segment_creation=false;  

 

修改一下默认参数就可以 
这个我已经修改了
 
Oracle
MySQL
Access
SQLServer
DB2
Excel
SQLite
SYBASE
Postgres
如果你遇到数据库难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,