- 最后登录
- 2016-6-27
- 在线时间
- 134 小时
- 威望
- 351
- 金钱
- 2586
- 注册时间
- 2012-3-16
- 阅读权限
- 60
- 帖子
- 188
- 精华
- 6
- 积分
- 351
- UID
- 309
|
9#
发表于 2012-4-18 17:09:03
有了新的进展,发现同样的做法在linux下是没问题的,版本是10.2.0.4,之前在windows下的版本是11.2.0.3,不知道是平台问题还是版本问题:
[oracle@rac2 archive]$ rman target /
Recovery Manager: Release 10.2.0.4.0 - Production on Wed Apr 18 16:52:37 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: rac (DBID=xxxxx)
RMAN> run{
2> allocate channel c1 type disk connect 'sys/abc123@rac1';
3> allocate channel c2 type disk connect 'sys/abc123@rac2';
4> crosscheck archivelog sequence 67220 thread 1;
5> }
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: sid=117 instance=rac1 devtype=DISK
allocated channel: c2
channel c2: sid=20 instance=rac2 devtype=DISK
validation succeeded for archived log
archive log filename=/archive/1_67220_715983123.dbf recid=128097 stamp=780944154
validation succeeded for archived log
archive log filename=+ASMARCH/rac/archivelog/2012_04_18/thread_1_seq_67220.9526.780944151 recid=128096 stamp=780944154
Crosschecked 2 objects
released channel: c1
released channel: c2
RMAN> exit
Recovery Manager complete.
[oracle@rac2 archive]$ rman target /
Recovery Manager: Release 10.2.0.4.0 - Production on Wed Apr 18 17:01:26 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: rac (DBID=xxxxx)
RMAN> run{
2> allocate channel c1 type disk connect 'sys/abc123@rac1';
3> allocate channel c2 type disk connect 'sys/abc123@rac2';
4> delete archivelog sequence 67220 thread 1;
5> }
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: sid=117 instance=rac1 devtype=DISK
allocated channel: c2
channel c2: sid=37 instance=rac2 devtype=DISK
List of Archived Log Copies
Key Thrd Seq S Low Time Name
------- ---- ------- - --------- ----
128097 1 67220 A 18-APR-12 /archive/1_67220_715983123.dbf
128096 1 67220 A 18-APR-12 +ASMARCH/rac/archivelog/2012_04_18/thread_1_seq_67220.9526.780944151
Do you really want to delete the above objects (enter YES or NO)? yes
deleted archive log
archive log filename=/archive/1_67220_715983123.dbf recid=128097 stamp=780944154
deleted archive log
archive log filename=+ASMARCH/rac/archivelog/2012_04_18/thread_1_seq_67220.9526.780944151 recid=128096 stamp=780944154
Deleted 2 objects
released channel: c1
released channel: c2
RMAN>
命令是在节点2上执行的,执行完后节点1的归档日志被删除,但是同样的做法在之前的windows平台下却不行,实在是诡异~~ |
|