Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1109313
  • 博文数量: 227
  • 博客积分: 6860
  • 博客等级: 准将
  • 技术积分: 2688
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-02 16:06
文章分类

全部博文(227)

文章存档

2015年(7)

2014年(8)

2012年(5)

2011年(62)

2010年(145)

分类: Oracle

2011-01-16 17:12:09

RMAN> report schema;                  

using target database control file instead of recovery catalog
Report of database schema

List of Permanent Datafiles
===========================
File Size(MB) Tablespace           RB segs Datafile Name
---- -------- -------------------- ------- ------------------------
1    480      SYSTEM               ***     /oracle/oradata/orcl/system01.dbf
2    30       UNDOTBS1             ***     /oracle/oradata/orcl/undotbs01.dbf
3    240      SYSAUX               ***     /oracle/oradata/orcl/sysaux01.dbf
4    5        USERS                ***     /oracle/oradata/orcl/users01.dbf
5    100      EXAMPLE              ***     /oracle/oradata/orcl/example01.dbf
6    0        JASON                ***     /oracle/oradata/orcl/jason01.dbf

List of Temporary Files
=======================
File Size(MB) Tablespace           Maxsize(MB) Tempfile Name
---- -------- -------------------- ----------- --------------------
1    20       TEMP                 32767       /oracle/oradata/orcl/temp01.dbf

RMAN> sql 'alter database datafile 6 offline';

sql statement: alter database datafile 6 offline

RMAN> restore datafile 6;

Starting restore at 16-JAN-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=144 devtype=DISK

channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00006 to /oracle/oradata/orcl/jason01.dbf
channel ORA_DISK_1: reading from backup piece /oracle/orabak/databak/20110116_08m28bdb.dbf
channel ORA_DISK_1: restored backup piece 1
piece handle=/oracle/orabak/databak/20110116_08m28bdb.dbf tag=TAG20110116T092810
channel ORA_DISK_1: restore complete, elapsed time: 00:00:02
Finished restore at 16-JAN-11

RMAN> recover datafile 6;

Starting recover at 16-JAN-11
using channel ORA_DISK_1

starting media recovery
media recovery complete, elapsed time: 00:00:02

Finished recover at 16-JAN-11

RMAN> sql 'alter database datafile 6 online';

sql statement: alter database datafile 6 online

RMAN>
阅读(938) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~