当前位置: 首页 > news >正文

Oracle体系结构及备份(十七)——bg-others

一 其他进程

 

        Archiver (ARCn)

        Oneor more archiver processes copy the redo log files to archival storage whenthey are full or a log switch occurs.

 

        Recoverer (RECO)

        The recoverer process is used to resolvedistributed transactions that are pending because of a network or systemfailure in a distributed database. At timed intervals, the local RECO attemptsto connect to remote databases and automatically complete the commit or rollbackof the local portion of any pending distributed transactions.

 

        Dispatcher (Dnnn)

        Dispatchers are optional backgroundprocesses, present only when the shared server configuration is used.

 

        Global Cache Service (LMS)

        In an Oracle Real Application Clustersenvironment, this process manages resources and provides inter-instanceresource control.

 

 

二 操作示例


 

[oracle@localhost 桌面]$ ps -ef | grep ora_ | grep arc
[oracle@localhost 桌面]$ sqlplus / as sysdba;

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 6 11:21:32 2013

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> select log_mode from v$database;

LOG_MODE
------------
NOARCHIVELOG

SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.

Total System Global Area  838860800 bytes
Fixed Size		    1222192 bytes
Variable Size		  788531664 bytes
Database Buffers	   46137344 bytes
Redo Buffers		    2969600 bytes
Database mounted.
SQL> alter database archivelog;

Database altered.

SQL> alter database open;

Database altered.

SQL> select log_mode from v$database;

LOG_MODE
------------
ARCHIVELOG

SQL> exit;
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@localhost 桌面]$ ps -ef | grep ora_ | grep arc
oracle    6644     1  0 11:22 ?        00:00:00 ora_arc0_orcl
oracle    6646     1  0 11:22 ?        00:00:00 ora_arc1_orcl
oracle    6648     1  0 11:22 ?        00:00:00 ora_arc2_orcl

SQL> show parameter log_archive_

NAME				     TYPE	 VALUE
------------------------------------ ----------- ------------------------------
log_archive_config		     string
log_archive_dest		     string
log_archive_dest_1		     string
log_archive_dest_10		     string
log_archive_dest_2		     string
log_archive_dest_3		     string
log_archive_dest_4		     string
log_archive_dest_5		     string
log_archive_dest_6		     string
log_archive_dest_7		     string
log_archive_dest_8		     string

NAME				     TYPE	 VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_9		     string
log_archive_dest_state_1	     string	 enable
log_archive_dest_state_10	     string	 enable
log_archive_dest_state_2	     string	 enable
log_archive_dest_state_3	     string	 enable
log_archive_dest_state_4	     string	 enable
log_archive_dest_state_5	     string	 enable
log_archive_dest_state_6	     string	 enable
log_archive_dest_state_7	     string	 enable
log_archive_dest_state_8	     string	 enable
log_archive_dest_state_9	     string	 enable

NAME				     TYPE	 VALUE
------------------------------------ ----------- ------------------------------
log_archive_duplex_dest 	     string
log_archive_format		     string	 %t_%s_%r.dbf
log_archive_local_first 	     boolean	 TRUE
log_archive_max_processes	     integer	 2
log_archive_min_succeed_dest	     integer	 1
log_archive_start		     boolean	 FALSE
log_archive_trace		     integer	 0

SQL> alter system set log_archive_max_processes = 2;

System altered.

SQL> exit;
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@localhost 桌面]$ ps -ef | grep ora_ | grep arc
oracle    6644     1  0 11:22 ?        00:00:00 ora_arc0_orcl
oracle    6646     1  0 11:22 ?        00:00:00 ora_arc1_orcl
oracle    6648     1  0 11:22 ?        00:00:00 ora_arc2_orcl
[oracle@localhost 桌面]$ sqlplus / as sysdba;

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 6 11:24:42 2013

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> alter system switch logfile;

System altered.

SQL> exit;
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@localhost 桌面]$ sqlplus / as sysdba;

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 6 11:24:59 2013

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> alter system set log_archive_max_processes=32;
alter system set log_archive_max_processes=32
*
ERROR at line 1:
ORA-00068: invalid value 32 for parameter log_archive_max_processes, must be
between 1 and 30


SQL> alter system set log_archive_max_processes=30;

System altered.

SQL> alter system set log_archive_max_processes=2;

System altered.


三 总结

 

        1.其他进程包括ARCn、RECO、Dnnn、LMS;

        2.归档进程在归档模式下有效;

        3.可以动态调整归档进程的大小,但不能超过30。


我的邮箱wgbno27@163.com  新浪微博@Wentasy27
  微信公众平台:JustOracle(微信号:justoracle)
  数据库技术交流群:336882565(加群时验证 From CSDN XXX)
  Oracle交流讨论组https://groups.google.com/d/forum/justoracle
  By Larry Wen


katoonSina CSDN
@Wentasy 博文仅供参考,欢迎大家来访。如有错误之处,希望批评指正。原创博文如需转载请注明出处,谢谢 :) [CSDN博客]

转载于:https://www.cnblogs.com/jiangu66/p/3196836.html

相关文章:

  • 记第四次和第五次面试——两次奇葩的面试
  • ASP.NET MVC Area 的使用
  • linux为什么要安装字体
  • 剥光投入,还要防止阻塞
  • js基本数据类型不妨回头再看看
  • php安全编程: register_globals的安全性
  • 关于http和一次完整的前后端响应
  • 献给在这个世界上摇摆不定的朋友们
  • 浏览器的event loop,一起来了解下吧
  • linux date
  • Storm:最火的流式处理框架
  • Objective-C语法之NSArray和NSMutableArray
  • 腾讯首发汽车解决方案 助力广汽打造新智能网联云平台
  • 谈谈WCF中的Data Contract(3):WCF Data Contract对Collection Dictionary的支持
  • js判断空值
  • 【译】React性能工程(下) -- 深入研究React性能调试
  • Angular js 常用指令ng-if、ng-class、ng-option、ng-value、ng-click是如何使用的?
  • Hibernate最全面试题
  • Linux快速配置 VIM 实现语法高亮 补全 缩进等功能
  • MobX
  • Nginx 通过 Lua + Redis 实现动态封禁 IP
  • Swift 中的尾递归和蹦床
  • Vue官网教程学习过程中值得记录的一些事情
  • webpack入门学习手记(二)
  • 闭包,sync使用细节
  • 代理模式
  • 聊聊flink的TableFactory
  • 区块链将重新定义世界
  • 数组的操作
  • 栈实现走出迷宫(C++)
  • 《码出高效》学习笔记与书中错误记录
  • Semaphore
  • UI设计初学者应该如何入门?
  • (13):Silverlight 2 数据与通信之WebRequest
  • (2/2) 为了理解 UWP 的启动流程,我从零开始创建了一个 UWP 程序
  • (C#)获取字符编码的类
  • (MonoGame从入门到放弃-1) MonoGame环境搭建
  • (pojstep1.3.1)1017(构造法模拟)
  • (附源码)springboot青少年公共卫生教育平台 毕业设计 643214
  • (附源码)springboot学生选课系统 毕业设计 612555
  • (附源码)计算机毕业设计SSM疫情下的学生出入管理系统
  • (接口封装)
  • (一)认识微服务
  • (原創) 人會胖會瘦,都是自我要求的結果 (日記)
  • (转) SpringBoot:使用spring-boot-devtools进行热部署以及不生效的问题解决
  • (转)人的集合论——移山之道
  • (转)如何上传第三方jar包至Maven私服让maven项目可以使用第三方jar包
  • (轉貼) 資訊相關科系畢業的學生,未來會是什麼樣子?(Misc)
  • ****** 二 ******、软设笔记【数据结构】-KMP算法、树、二叉树
  • 、写入Shellcode到注册表上线
  • .NET BackgroundWorker
  • .NET Core WebAPI中使用swagger版本控制,添加注释
  • .NET 回调、接口回调、 委托
  • .Net(C#)常用转换byte转uint32、byte转float等
  • .NET使用存储过程实现对数据库的增删改查