新的
$ rman target / @full_bak
Recovery Manager: Release
Copyright (c)
connected to target database: MMSDB (DBID=
RMAN> run {
Starting backup at
current log archived
using target database controlfile instead of recovery catalog
allocated channel: ORA_DISK_
channel ORA_DISK_
channel ORA_DISK_
channel ORA_DISK_
input archive log thread=
channel ORA_DISK_
channel ORA_DISK_
piece handle=/msflsh/MMSDB/backupset/
comment=NONE
channel ORA_DISK_
channel ORA_DISK_
archive log filename=/msflsh/MMSDB/archivelog/
stamp=
Finished backup at
Starting backup at
using channel ORA_DISK_
channel ORA_DISK_
channel ORA_DISK_
input datafile fno=
input datafile fno=
input datafile fno=
input datafile fno=
channel ORA_DISK_
channel ORA_DISK_
piece handle=/msflsh/MMSDB/backupset/
comment=NONE
channel ORA_DISK_
Finished backup at
Starting backup at
current log archived
using channel ORA_DISK_
channel ORA_DISK_
channel ORA_DISK_
input archive log thread=
channel ORA_DISK_
channel ORA_DISK_
piece handle=/msflsh/MMSDB/backupset/
comment=NONE
channel ORA_DISK_
channel ORA_DISK_
archive log filename=/msflsh/MMSDB/archivelog/
stamp=
Finished backup at
Starting Control File and SPFILE Autobackup at
piece handle=/msflsh/MMSDB/autobackup/
comment=NONE
Finished Control File and SPFILE Autobackup at
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy
using channel ORA_DISK_
no obsolete backups found
Recovery Manager complete
$ id
uid=
$ exit
# id
uid=
# hagrp
# su
Sun Microsystems Inc
You have new mail
$ id
uid=
$ sqlplus
SQL*Plus: Release
Copyright (c)
Connected to:
Oracle Database
With the Partitioning and Data Mining options
SQL> shutdown immediate;
Database closed
Database dismounted
ORACLE instance shut down
SQL> exit
Disconnected from Oracle Database
With the Partitioning and Data Mining options
$ rman target /
Recovery Manager: Release
Copyright (c)
connected to target database (not started)
RMAN> startup mount;
Oracle instance started
database mounted
Total System Global Area
Fixed Size
Variable Size
Database Buffers
Redo Buffers
RMAN> restore database;
Starting restore at
using target database controlfile instead of recovery catalog
allocated channel: ORA_DISK_
channel ORA_DISK_
channel ORA_DISK_
channel ORA_DISK_
restoring datafile
restoring datafile
restoring datafile
restoring datafile
channel ORA_DISK_
piece handle=/msflsh/MMSDB/backupset/
tag=TAG
channel ORA_DISK_
Finished restore at
RMAN> recover database;
Starting recover at
using channel ORA_DISK_
starting media recovery
media recovery complete
Finished recover at
RMAN> alter database open;
database opened
RMAN>
$ exit
# id
uid=
# hagrp
測試過程
From:http://tw.wingwit.com/Article/program/Oracle/201311/17449.html