Recovery Manager: Release 9.2.0.1.0 - Production
Copyright (c) 1995, 2002, Oracle Corporation.All rights reserved.
RMAN> connect target sys/yappjczadmin@tns
radb
connected to target database (not started)
RMAN> restore spfile from autobackup;
Starting restore at 29-3月 -05
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 03/29/2005 11:09:09
RMAN-12010: automatic channel allocation initialization failed
RMAN-06403: could not obtain a fully authorized session
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
RMAN> startup mount
startup failed: ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file 'C:\ORACLE\ORA92\DATABASE\INITORADB.ORA
'
trying to start the Oracle instance without parameter files ...
Oracle instance started
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of startup command at 03/29/2005 11:09:35
ORA-00209: control file blocksize mismatch, check alert log for more info
RMAN> set dbid = 2303776906
executing command: SET DBID
RMAN> restore spfile from autobackup;
Starting restore at 29-3月 -05
using channel ORA_DISK_1
channel ORA_DISK_1: looking for autobackup on day: 20050329
channel ORA_DISK_1: autobackup found: c-2303776906-20050329-00
channel ORA_DISK_1: SPFILE restore from autobackup complete
Finished restore at 29-3月 -05
RMAN> restore controlfile from autobackup;
Starting restore at 29-3月 -05
using channel ORA_DISK_1
channel ORA_DISK_1: looking for autobackup on day: 20050329
channel ORA_DISK_1: autobackup found: c-2303776906-20050329-00
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 03/29/2005 11:14:00
ORA-19504: failed to create file "C:\ORACLE\ORA92\DATABASE\CTL1ORADB.ORA"
ORA-27086: skgfglk: unable to lock file - already in use
OSD-04002: unable to open file
O/S-Error: (OS 5) 拒绝访问。
RMAN> shutdown
Oracle instance shut down
RMAN> startup nomount
database is already started
RMAN> restore controlfile from autobackup;
Starting restore at 29-3月 -05
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=13 devtype=DISK
channel ORA_DISK_1: looking for autobackup on day: 20050329
channel ORA_DISK_1: autobackup found: c-2303776906-20050329-00
channel ORA_DISK_1: controlfile restore from autobackup complete
replicating controlfile
input filename=D:\CONTROLFILE\CONTROL01.CTL
output filename=E:\CONTROLFILE\CONTROL02.CTL
output filename=F:\CONTROLFILE\CONTROL03.CTL
Finished restore at 29-3月 -05
RMAN> startup mount
database is already started
database mounted
RMAN> restore database;
Starting restore at 29-3月 -05
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to C:\ORACLE\ORADATA\ORADB\SYSTEM01.DBF
restoring datafile 00002 to C:\ORACLE\ORADATA\ORADB\UNDOTBS01.DBF
restoring datafile 00003 to C:\ORACLE\ORADATA\ORADB\CWMLITE01.DBF
restoring datafile 00004 to C:\ORACLE\ORADATA\ORADB\DRSYS01.DBF
restoring datafile 00005 to C:\ORACLE\ORADATA\ORADB\EXAMPLE01.DBF
restoring datafile 00006 to C:\ORACLE\ORADATA\ORADB\INDX01.DBF
restoring datafile 00007 to C:\ORACLE\ORADATA\ORADB\ODM01.DBF
restoring datafile 00008 to C:\ORACLE\ORADATA\ORADB\TOOLS01.DBF
restoring datafile 00009 to C:\ORACLE\ORADATA\ORADB\USERS01.DBF
restoring datafile 00010 to C:\ORACLE\ORADATA\ORADB\XDB01.DBF
restoring datafile 00011 to C:\ORACLE\ORADATA\ORADB\OEM_REPOSITORY.DBF
channel ORA_DISK_1: restored backup piece 1
piece handle=E:\FULL03280924.BAK tag=FULL03280924 params=NULL
channel ORA_DISK_1: restore complete
Finished restore at 29-3月 -05
RMAN> recover database;
Starting recover at 29-3月 -05
using channel ORA_DISK_1
starting media recovery
archive log thread 1 sequence 1 is already on disk as file D:\REDO\REDO01A.LOG
archive log filename=D:\REDO\REDO01A.LOG thread=1 sequence=1
media recovery complete
Finished recover at 29-3月 -05
RMAN> alter database open noresetlogs;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01005: syntax error: found "identifier": expecting one of: "resetlogs, ;"
RMAN-01008: the bad identifier was: noresetlogs
RMAN-01007: at line 1 column 21 file: standard input
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01005: syntax error: found ";": expecting one of: "allocate, alter, backup,
beginline, blockrecover, catalog, change, connect, copy, create, crosscheck, co
nfigure, duplicate, debug, delete, drop, exit, endinline, host, {, library, list
, mount, open, print, quit, recover, register, release, replace, report, renorma
lize, reset, restore, resync, rman, run, rpctest, set, setlimit, sql, spool, sta
rtup, shutdown, send, show, test, upgrade, validate"
RMAN-01007: at line 1 column 32 file: standard input
RMAN> alter database open resetlogs;
database opened
先启动到nomount状态,然后restore spfile,再重新启动到nomount状态,restore controlfile,
startup mount,restore database , recover database ,alter database open resetlogs.
为什么不能noresetlogs?
|