oracle全量备份

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

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 oracle

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

delete from xxxxxx; 性能

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

注明: it

oralce11g 在新建表时 是不分配表空间的 为的是提升性能 节约空间 在第一次插入记录时才分配的 只是oracle11g 以上版本会出这个问题 低版本 不会有 咱们用alter system set deferred_segment_creation=false;  修改一下默认参数就能够 这个我已经修改了
相关文章
相关标签/搜索