Log actively being archived by another process的问题解决思路
2007-09-06 16:25
429 查看
今天遇到一个RMAN备份的错误,报错信息如下:
Starting backup at 2007-09-03:08:19:42
user interrupt received
error occurred in source file: krmk.pc, line: 7635
text of failing SQL statement: alter system archive log current
ORACLE error from target database:
ORA-01013: user requested cancel of current operation
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 09/03/2007 08:24:47
RMAN-03014: implicit resync of recovery catalog failed
RMAN-03099: job cancelled at user request
Recovery Manager complete.
从以上信息可以看出RMAN在执行alter system archive log current命令的时候报错,导致备份没有成功.
查看alert日志,发现如下信息:
Mon Sep 3 08:31:23 2007
ARCH: Evaluating archive log 11 thread 1 sequence 2185
ARCH: Beginning to archive log 11 thread 1 sequence 2185
Creating archive destination LOG_ARCHIVE_DEST_2: '/export/home/oracle/dev/MSP/log_archive_dest_2/1_2185.dbf'
Mon Sep 3 08:31:24 2007
ARC0: Evaluating archive log 11 thread 1 sequence 2185
ARC0: Unable to archive log 11 thread 1 sequence 2185
Log actively being archived by another process
Mon Sep 3 08:31:24 2007
Creating archive destination LOG_ARCHIVE_DEST_1: '/export/home/oracle/dev/MSP/log_archive_dest_1/1_2185.dbf'
ARCH: Completed archiving log 11 thread 1 sequence 2185
Log actively being archived by another process说明归档进程可能会有2个或者2个以上,如果其中一个正在归档某个日志,而另一个进程来尝试归档该日志的话,则会出现这个提示,这个问题一般在使用rman执行backup加选项plus archivelog 时候出现。要解决这个问题你可以在如何能提高归档速度方面考虑,比如日志文件和归档目的地的写是否存在IO上的可能的提高(比如归档目的地是raid5换做raid10等),或者某个归档进程出现异常或者归档目的地有问题造成归档进程阻塞而没有及时完成.
结合以上信息,可以断定备份失败和Log actively being archived by another process有关系。原因是当数据库正在执行alter system archive log current的时候,RMAN备份也刚好发起了一个归档日志的操作,这样就造成了两个归档进程之间的竞争,从而导致备份失败。
关于这个问题产生的详细原因可以参考eygle的一篇文章:
http://www.eygle.com/archives/2007/06/log_archive_process_more.html
Starting backup at 2007-09-03:08:19:42
user interrupt received
error occurred in source file: krmk.pc, line: 7635
text of failing SQL statement: alter system archive log current
ORACLE error from target database:
ORA-01013: user requested cancel of current operation
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 09/03/2007 08:24:47
RMAN-03014: implicit resync of recovery catalog failed
RMAN-03099: job cancelled at user request
Recovery Manager complete.
从以上信息可以看出RMAN在执行alter system archive log current命令的时候报错,导致备份没有成功.
查看alert日志,发现如下信息:
Mon Sep 3 08:31:23 2007
ARCH: Evaluating archive log 11 thread 1 sequence 2185
ARCH: Beginning to archive log 11 thread 1 sequence 2185
Creating archive destination LOG_ARCHIVE_DEST_2: '/export/home/oracle/dev/MSP/log_archive_dest_2/1_2185.dbf'
Mon Sep 3 08:31:24 2007
ARC0: Evaluating archive log 11 thread 1 sequence 2185
ARC0: Unable to archive log 11 thread 1 sequence 2185
Log actively being archived by another process
Mon Sep 3 08:31:24 2007
Creating archive destination LOG_ARCHIVE_DEST_1: '/export/home/oracle/dev/MSP/log_archive_dest_1/1_2185.dbf'
ARCH: Completed archiving log 11 thread 1 sequence 2185
Log actively being archived by another process说明归档进程可能会有2个或者2个以上,如果其中一个正在归档某个日志,而另一个进程来尝试归档该日志的话,则会出现这个提示,这个问题一般在使用rman执行backup加选项plus archivelog 时候出现。要解决这个问题你可以在如何能提高归档速度方面考虑,比如日志文件和归档目的地的写是否存在IO上的可能的提高(比如归档目的地是raid5换做raid10等),或者某个归档进程出现异常或者归档目的地有问题造成归档进程阻塞而没有及时完成.
结合以上信息,可以断定备份失败和Log actively being archived by another process有关系。原因是当数据库正在执行alter system archive log current的时候,RMAN备份也刚好发起了一个归档日志的操作,这样就造成了两个归档进程之间的竞争,从而导致备份失败。
关于这个问题产生的详细原因可以参考eygle的一篇文章:
http://www.eygle.com/archives/2007/06/log_archive_process_more.html
相关文章推荐
- Log actively being archived by another process
- [UE4]解决UE4打包错误 “is being used by another process”
- 解决编译报错:Unable to copy file, because it is being used by another process.
- 文件流操作,报“because it is being used by another process. ”错误解决
- FileStream:The process cannot access the file because it is being used by another process
- eclipse tomcat May be locked by another process 解决
- the process cannot access the file because it is being used by another process
- Bug on Build Solution: "Unable to copy file... because it is being used by another process.."
- Caused by: org.hibernate.hql.ast.QuerySyntaxException: TkltEmpQuitProcess is not mapped. 问题解决
- 解决postgresql:template1 is being accessed by other users问题
- PVCS Tracker Notify出现Notify is in use by another process问题的解决方案
- 关于 oracle record is locked by another user 问题解决办法
- the process cannot access the file because it is being used by another process
- 如何解决:ERROR: the user data image is used by another emulator. aborting 的问题
- C#使用Create创建文件后,报The Process cannot access the file because it is being used by another process的异常
- 解压deb包时遇到 “dpkg status database is locked by another process”问题
- /var/cache/debconf/config.dat is locked by another process解决办法
- File ID 1 of database ID 6 cannot be shrunk as it is either being shrunk by another process or is empty 的解决方案
- Git 使用中显示“Another git process seems to be running in this repository...”问题解决
- error while unload assembly from GAC "assembly is being used by another process"