- 论坛徽章:
- 0
|
想通过磁带对数据库进行恢复,现在数据库在NOMOUNT状态,我想指定备份时间来恢复控制文件,脚本如下,但系ORA提示我要MOUNT的状态,请问是不是我指定时间的语句错误呢?请问应该怎样怎样写呢?谢谢RMAN> set DBID=3761288359
executing command: SET DBID
RMAN> run{
2> allocate channel d1 type 'sbt_tape' parms
3> 'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
4> set until time "to_date('2013/5/21 23:59:59','yyyy/mm/dd hh24:mi:ss')";
5> restore controlfile to '/oracle/DEV/controlfile.ctl' from autobackup;
6> release channel d1;}
using target database control file instead of recovery catalog
allocated channel: d1
channel d1: sid=342 devtype=SBT_TAPE
channel d1: Data Protection for Oracle: version 5.4.1.0
executing command: SET until clause
released channel: d1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of set command at 11/05/2013 18:43:47
ORA-01507: database not mounted
|
|