ITPub博客

首页 > 数据库 > Oracle > oracle 9i 系统空间很有限的情况下的迁移

oracle 9i 系统空间很有限的情况下的迁移

原创 Oracle 作者:imlihj2007 时间:2012-03-30 23:39:16 0 删除 编辑

--oracle 9i rman 迁移[系统空间 很少的时候]

--1 backup database exclude other tablespace configure the rman noexclude

select 'CONFIGURE EXCLUDE FOR TABLESPACE '||name||' ;' from v$tablespace where name not in ('SYSTEM','TEMP');

select * from v$tablespace;

--2 backup database and copy it to others

backup full database tag 'full_backup' format 'd:rmanbakdf_t%t_s%s_p%p.bak';

--3 backup other datafile and copy them to others

backup datafile 2,3,4,5,6,7,8,9;

--4 backup switch logfile more then 5 times

sql 'alter system switch logfile';--必须运行 几次 否则 恢复执行 不成功

--5 backup controfile

backup current controlfile format 'd:rmanbak_u%u.bak';

--=======================================================================================================

--1 startup nomount

startup nomount

--2 restore controlfile

restore controlfile from 'D:RMANBAK_U1AN773HC.BAK';

--3 restore database

restore database ;

--4 copy other log

--5 recover database

recover database;

--6 open database resetlogs

alter database open resetlogs;

[@more@]n

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9879835/viewspace-1057789/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-05-25

  • 博文量
    109
  • 访问量
    1577023