oracle 数据库DG架构,进程理解
2018-03-13 11:54
881 查看
下面是主备库进程的一张关联图
RFS(remote file server):运行在备库上的进程,用于在备库上进行主库的日志恢复。默认,这个进程用于接收从主库传送过来的归档日志。
当物理备库启用了 Redo Apply时,备库可以通过实时应用这个特性,直接使用这个进程从 standby redo log 中直接应用 redo 日志。
下面是在备库的 alert 日志中截取的一段关于 RFS 的信息
2851 RFS[1]: Selected log 7 for thread 1 sequence 40 dbid 3135732069 branch 895320808
2852 Sun Nov 15 01:00:48 2015
2853 Archived Log entry 17 added for thread 1 sequence 39 ID 0xbae9db91 dest 1:
2854 Mon Nov 16 22:01:29 2015
2855 RFS[1]: Selected log 6 for thread 1 sequence 41 dbid 3135732069 branch 895320808
2856 Mon Nov 16 22:01:30 2015
2857 Archived Log entry 18 added for thread 1 sequence 40 ID 0xbae9db91 dest 1:
2858 Tue Nov 17 14:15:33 2015
2859 Primary database is in MAXIMUM PERFORMANCE mode
2860 RFS[2]: Assigned to RFS process (PID:21867)
2861 RFS[2]: Selected log 7 for thread 1 sequence 42 dbid 3135732069 branch 895320808
2862 Tue Nov 17 14:15:33 2015
2863 RFS[3]: Assigned to RFS process (PID:21869)
2864 RFS[3]: Selected log 6 for thread 1 sequence 41 dbid 3135732069 branch 895320808
2865 Tue Nov 17 14:15:33 2015
2866 Archived Log entry 19 added for thread 1 sequence 41 ID 0xbae9db91 dest 1:
2867 Tue Nov 17 14:44:20 2015
2868 Primary database is in MAXIMUM PERFORMANCE mode
2869 RFS[4]: Assigned to RFS process (PID:23281)
2870 RFS[4]: Selected log 6 for thread 1 sequence 43 dbid 3135732069 branch 895320808
2871 Tue Nov 17 14:44:20 2015
2872 RFS[5]: Assigned to RFS process (PID:23285)
2873 RFS[5]: Selected log 7 for thread 1 sequence 42 dbid 3135732069 branch 895320808
2874 Tue Nov 17 14:44:22 2015
2875 Archived Log entry 20 added for thread 1 sequence 42 ID 0xbae9db91 dest 1:
2876 Tue Nov 17 16:10:46 2015
2877 Primary database is in MAXIMUM PERFORMANCE mode
2878 RFS[6]: Assigned to RFS process (PID:27628)
2879 RFS[6]: Selected log 7 for thread 1 sequence 44 dbid 3135732069 branch 895320808
2880 Tue Nov 17 16:10:47 2015
2881 RFS[7]: Assigned to RFS process (PID:27632)
2882 RFS[7]: Selected log 6 for thread 1 sequence 43 dbid 3135732069 branch 895320808
在主库的报错日志中,有如下一段,是主库尝试连接到备库的RFS进程
4111 Error 12541 received logging on to the standby
4112 Check whether the listener is up and running.
4113 Tue Nov 10 14:57:49 2015
4114 Error 1034 received logging on to the standby
4115 Tue Nov 10 15:02:51 2015
4116 ARC2: Attempting destination LOG_ARCHIVE_DEST_2 network reconnect (1094)
4117 ARC2: Error 1094 attaching to RFS for reconnect
4118 Tue Nov 10 15:03:01 2015
4119 ARC2: Error 1094 attaching to RFS for reconnect
4120 ARC2: Error 1094 attaching to RFS for reconnect
4121 Tue Nov 10 15:03:11 2015
4122 ARC2: Error 1094 attaching to RFS for reconnect
4123 ARC2: Error 1094 attaching to RFS for reconnect
4124 Tue Nov 10 15:03:21 2015
4125 ARC2: Error 1094 attaching to RFS for reconnect
4126 ARC2: Error 1094 attaching to RFS for reconnect
4127 Tue Nov 10 15:03:31 2015
4128 ARC2: Error 1094 attaching to RFS for reconnect
4129 ARC2: Error 1094 attaching to RFS for reconnect
4130 Tue Nov 10 15:03:41 2015
4131 ARC2: Error 1094 attaching to RFS for reconnect
4132 ARC2: Error 1094 attaching to RFS for reconnect
4133 ARC2: Error 1094 attaching to RFS for reconnect
MRP:当物理备库启用了实时应用的时候,会创建这个进程,用于日志的实时应用。
下面是截取备库 alert 日志中的一段信息
2348 Starting background process MRP0
2349 Wed Nov 11 11:24:25 2015
2350 MRP0 started with pid=7, OS id=8220
2351 Wed Nov 11 11:24:26 2015
2352 MRP0: Background Managed Standby Recovery process started (newdb)
当数据库主备角色切换时,备库会杀掉这个进程,下面是 alert 日志中的一段
4777 MRP0: Background Media Recovery process shutdown (newdb)
4778 Wed Nov 11 11:22:51 2015
4779 Role Change: Canceled MRP
4780 Killing 2 processes (PIDS:27972,20487) (all RFS) in order to disallow current and future RFS connections. Requested by OS process 27978
4781 Stopping Emon pool
4782 All dispatchers and shared servers shutdown
4783 CLOSE: killing server sessions.
RFS(remote file server):运行在备库上的进程,用于在备库上进行主库的日志恢复。默认,这个进程用于接收从主库传送过来的归档日志。
当物理备库启用了 Redo Apply时,备库可以通过实时应用这个特性,直接使用这个进程从 standby redo log 中直接应用 redo 日志。
下面是在备库的 alert 日志中截取的一段关于 RFS 的信息
2851 RFS[1]: Selected log 7 for thread 1 sequence 40 dbid 3135732069 branch 895320808
2852 Sun Nov 15 01:00:48 2015
2853 Archived Log entry 17 added for thread 1 sequence 39 ID 0xbae9db91 dest 1:
2854 Mon Nov 16 22:01:29 2015
2855 RFS[1]: Selected log 6 for thread 1 sequence 41 dbid 3135732069 branch 895320808
2856 Mon Nov 16 22:01:30 2015
2857 Archived Log entry 18 added for thread 1 sequence 40 ID 0xbae9db91 dest 1:
2858 Tue Nov 17 14:15:33 2015
2859 Primary database is in MAXIMUM PERFORMANCE mode
2860 RFS[2]: Assigned to RFS process (PID:21867)
2861 RFS[2]: Selected log 7 for thread 1 sequence 42 dbid 3135732069 branch 895320808
2862 Tue Nov 17 14:15:33 2015
2863 RFS[3]: Assigned to RFS process (PID:21869)
2864 RFS[3]: Selected log 6 for thread 1 sequence 41 dbid 3135732069 branch 895320808
2865 Tue Nov 17 14:15:33 2015
2866 Archived Log entry 19 added for thread 1 sequence 41 ID 0xbae9db91 dest 1:
2867 Tue Nov 17 14:44:20 2015
2868 Primary database is in MAXIMUM PERFORMANCE mode
2869 RFS[4]: Assigned to RFS process (PID:23281)
2870 RFS[4]: Selected log 6 for thread 1 sequence 43 dbid 3135732069 branch 895320808
2871 Tue Nov 17 14:44:20 2015
2872 RFS[5]: Assigned to RFS process (PID:23285)
2873 RFS[5]: Selected log 7 for thread 1 sequence 42 dbid 3135732069 branch 895320808
2874 Tue Nov 17 14:44:22 2015
2875 Archived Log entry 20 added for thread 1 sequence 42 ID 0xbae9db91 dest 1:
2876 Tue Nov 17 16:10:46 2015
2877 Primary database is in MAXIMUM PERFORMANCE mode
2878 RFS[6]: Assigned to RFS process (PID:27628)
2879 RFS[6]: Selected log 7 for thread 1 sequence 44 dbid 3135732069 branch 895320808
2880 Tue Nov 17 16:10:47 2015
2881 RFS[7]: Assigned to RFS process (PID:27632)
2882 RFS[7]: Selected log 6 for thread 1 sequence 43 dbid 3135732069 branch 895320808
在主库的报错日志中,有如下一段,是主库尝试连接到备库的RFS进程
4111 Error 12541 received logging on to the standby
4112 Check whether the listener is up and running.
4113 Tue Nov 10 14:57:49 2015
4114 Error 1034 received logging on to the standby
4115 Tue Nov 10 15:02:51 2015
4116 ARC2: Attempting destination LOG_ARCHIVE_DEST_2 network reconnect (1094)
4117 ARC2: Error 1094 attaching to RFS for reconnect
4118 Tue Nov 10 15:03:01 2015
4119 ARC2: Error 1094 attaching to RFS for reconnect
4120 ARC2: Error 1094 attaching to RFS for reconnect
4121 Tue Nov 10 15:03:11 2015
4122 ARC2: Error 1094 attaching to RFS for reconnect
4123 ARC2: Error 1094 attaching to RFS for reconnect
4124 Tue Nov 10 15:03:21 2015
4125 ARC2: Error 1094 attaching to RFS for reconnect
4126 ARC2: Error 1094 attaching to RFS for reconnect
4127 Tue Nov 10 15:03:31 2015
4128 ARC2: Error 1094 attaching to RFS for reconnect
4129 ARC2: Error 1094 attaching to RFS for reconnect
4130 Tue Nov 10 15:03:41 2015
4131 ARC2: Error 1094 attaching to RFS for reconnect
4132 ARC2: Error 1094 attaching to RFS for reconnect
4133 ARC2: Error 1094 attaching to RFS for reconnect
MRP:当物理备库启用了实时应用的时候,会创建这个进程,用于日志的实时应用。
下面是截取备库 alert 日志中的一段信息
2348 Starting background process MRP0
2349 Wed Nov 11 11:24:25 2015
2350 MRP0 started with pid=7, OS id=8220
2351 Wed Nov 11 11:24:26 2015
2352 MRP0: Background Managed Standby Recovery process started (newdb)
当数据库主备角色切换时,备库会杀掉这个进程,下面是 alert 日志中的一段
4777 MRP0: Background Media Recovery process shutdown (newdb)
4778 Wed Nov 11 11:22:51 2015
4779 Role Change: Canceled MRP
4780 Killing 2 processes (PIDS:27972,20487) (all RFS) in order to disallow current and future RFS connections. Requested by OS process 27978
4781 Stopping Emon pool
4782 All dispatchers and shared servers shutdown
4783 CLOSE: killing server sessions.
相关文章推荐
- 看图理解Oracle实例与用户、数据库关系
- 关于oracle的数据库名称、实例名称和服务名称三个概念的理解
- Oracle 数据库的聚簇(对理解sap的聚集表有帮助)
- Oracle HowTo:如何快速杀死占用过多资源(CPU,内存)的数据库进程
- Oracle 9i & 10g编程艺术-深入数据库体系结构——第5章:Oracle进程
- Oracle/Mysql之JDBC连接数据库七大步骤(结合代码理解)
- oracle云计算及大型数据库集群系统架构
- Oracle 11.2.0.3数据库CJQ进程造成row cache lock等待事件影响job无法停止问题分析
- 数据库学习之--Oracle 架构与MySQL架构对比
- 数据库高可用架构(MySQL、Oracle、MongoDB、Redis)
- [转]数据库高可用架构(MySQL、Oracle、MongoDB、Redis)
- Oracle DG进程介绍
- Oracle基础-对于数据库,实例,表空间,用户,表的理解
- oracle 数据库ATAN2(n1,n2) 的理解
- 从oracle到mysql,主从到分库,一个普通项目数据库架构的变迁
- <Oracle 数据库后台进程>
- Servlet+oracle MVC 架构 搭建简易购物车web项目---数据库设计
- 理解Oracle企业架构模型
- oracle学习入门系列之五内存结构、数据库结构、进程
- 源码-Oracle数据库管理-第十七章-动态SQL语句-Part 1(理解动态SQL语句)