我在结点1上执行这个:
RMAN> run {
allocate channel c1 type disk connect 'sys/whoami@db001' format "/opt/backup/%d_AL_%T_%u_s%s_p%p" ;
allocate channel c2 type disk connect 'sys/whoami@db002' format "/opt/backup/%d_AL_%T_%u_s%s_p%p" ;
backup filesperset 1
(archivelog all not backed up 1 times ) ;
release channel c1;
release channel c2;
}
2> 3> 4> 5> 6> 7> 8>
allocated channel: c1
channel c1: sid=21 devtype=DISK
released channel: c1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-12001: could not open channel c2
RMAN-10008: could not create channel context
RMAN-10003: unable to connect to target database using connect string "sys/whoami@db002"
ORA-01017: invalid username/password; logon denied
RMAN>
RMAN> run {
allocate channel c1 type disk connect 'sys/whoami@db001' format "/opt/backup/%d_AL_%T_%u_s%s_p%p" ;
allocate channel c2 type disk connect 'sys/whoami@db002' format "/opt/backup/%d_AL_%T_%u_s%s_p%p" ;
backup filesperset 1
(archivelog all not backed up 1 times ) ;
release channel c1;
release channel c2;
}
rac 備份連接一個節點就可以了。