dataguard中使用rman搭建standby报错RMAN-05500:
standby库:
SQL> shutdown immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 1.1358E+10 bytes
Fixed Size 2216744 bytes
Variable Size 8589937880 bytes
Database Buffers 2751463424 bytes
Redo Buffers 13946880 bytes
SQL> select status from v$instance;
STATUS
------------------------
STARTED
SQL> exit
primary库:
[oracle@powerlong4 ~]$ rman target sys/syspl1xxx@PD2 auxiliary /
RMAN> run {
allocate auxiliary channel c1 device type disk;
allocate auxiliary channel c2 device type disk;
duplicate target database for standby nofilenamecheck dorecover;
release channel c1;
release channel c2;
}
2> 3> 4> 5> 6> 7>
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=1158 device type=DISK
allocated channel: c2
channel c2: SID=22 device type=DISK
Starting Duplicate Db at 07-FEB-15
released channel: c1
released channel: c2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 02/07/2015 17:07:33
RMAN-05500: the auxiliary database must be not mounted when issuing a DUPLICATE command
RMAN>