就以pdsp node3 down了为例,如下

==========================START=====================================

The Whole solution of a server down or instance crash

For example:

Alert comes like below:

Then we need to check this server status, also send mail to linux team Lst-Techops.DLRS@nike.com ,let them help check or start the server(most cases that server will start automatically).

Also send mail to APP team to inform them the server status (when server up and service online ,also need inform them and let them check APP status)

(Here is application DL for reference)

Below is some solutions and troubleshooting related to database:

Login ora-plus-p-1.va2.b2c.nike.com

Then find can’t connect, so it may went down

Then login another cluster node like ora-plus-p-1.va2.b2c.nike.com

check db status:

oracle@ora-plus-p-1:PDSP1:/u01/home/oracle $ srvctl status database -d PDSP

Instance PDSP1 is running on node ora-plus-p-1

Instance PDSP2 is running on node ora-plus-p-2

Instance PDSP3 is not running on node ora-plus-p-3

Instance PDSP4 is running on node ora-plus-p-4

After sometime or with the help of linux team, the host up.

Normally crs resource and db resource will auto-start with the server start.

Check crs resource or db status command:

sudo /u01/root/11.2.0.4/grid/bin/crsctl status res –t (execute this using your own nikeid)

srvctl status database –d db_name

make sure necessary resource is online.

if crs is not started,

sudo /u01/root/11.2.0.4/grid/bin/crsctl enable crs(so crs will auto-start when node reboot)

sudo /u01/root/11.2.0.4/grid/bin/crsctl start crs

Then check service whether need relocated.

For all of nike database ,services are recorded in this shared drive.

\\NKE-WIN-NAS-P21nike.com\DCIT_DBA\Dataguard\

And for this PDSP service part, the directory is

\\NKE-WIN-NAS-P21nike.com\DCIT_DBA\Dataguard\PDSP

First check service running node:

srvctl status service -d db_name

And then relocate services to the right node:

In this case,we do below:

srvctl relocate service -d PDSP -s PDSPBATCH -i PDSP4 -t PDSP3

srvctl relocate service -d PDSP -s PDSPMISCL -i PDSP4 -t PDSP3

srvctl relocate service -d PDSP -s PDSPNODE3 -i PDSP2 -t PDSP3

srvctl relocate service -d PDSP -s PDSPSOCIAL -i PDSP4 -t PDSP3

srvctl relocate service -d PDSP -s SLOGICSVC -i PDSP4 -t PDSP3

Finally check service is on right/proper node.

Check Stream status:

Select apply_name,status from dba_apply;

Select capture_name,status from dba_capture;

If they are not enabled,start them like below:

Login as strmadmin user:

exec DBMS_CAPTURE_ADM.START_CAPTURE(capture_name => ‘Capture_name’);

exec DBMS_APPLY_ADM.START_APPLY(apply_name => 'APPLY_name');

then check capture and apply status again,make sure they are started and working.

Fire below query and make sure capture_time  should always be changing,so that means capture process is working good.

SELECT

c.CAPTURE_NAME,

to_char(CAPTURE_TIME, 'dd-mon-yy hh24:mi:ss') CAPTURE_TIME,

c.capture_message_number CAPTURE_MSG,

c.STATE,

c.TOTAL_MESSAGES_CAPTURED TOT_MESG_CAPTURE,

c.TOTAL_MESSAGES_ENQUEUED TOT_MESG_ENQUEUE,

SUBSTR(s.PROGRAM,INSTR(s.PROGRAM,'(')+1,4) PROCESS_NAME,

c.SID,

c.inst_id,

s.event

FROM GV$STREAMS_CAPTURE c, GV$SESSION s

WHERE c.SID = s.SID

and c.inst_id=s.inst_id

AND c.SERIAL# = s.SERIAL#  order by c.CAPTURE_NAME;

Fire below query and make sure APPLY_CREATE_TIME  should always be changing, so that means apply  process is working good.

select ac.apply_name, ac.state,

to_char(applied_message_create_time, 'dd-mon-yyyy hh24:mi:ss') APPLY_CREATE_TIME,

round((sysdate-applied_message_create_time)*86400) "LATENCY_IN_SEC"

from dba_apply_progress ap,GV$STREAMS_APPLY_COORDINATOR ac

where ac.apply_name=ap.apply_name

order by apply_name;

Check agent status:

oracle@ora-plus-p-3:PDSP3:/u01/home/oracle $ cd /u01/app/oracle/agent12c/agent_inst/bin/

oracle@ora-plus-p-3:PDSP3:/u01/app/oracle/agent12c/agent_inst/bin $ ./emctl status agent

Oracle Enterprise Manager Cloud Control 12c Release 4

Copyright (c) 1996, 2014 Oracle Corporation.  All rights reserved.

---------------------------------------------------------------

Agent is Not Running

oracle@ora-plus-p-3:PDSP3:/u01/app/oracle/agent12c/agent_inst/bin $ ./emctl start agent

Oracle Enterprise Manager Cloud Control 12c Release 4

Copyright (c) 1996, 2014 Oracle Corporation.  All rights reserved.

Starting agent .................. started.

oracle@ora-plus-p-3:PDSP3:/u01/app/oracle/agent12c/agent_inst/bin $ ./emctl status agent

Oracle Enterprise Manager Cloud Control 12c Release 4

…………………..

---------------------------------------------------------------

Agent is Running and Ready

Check if this is a goldengate node. Unfortunately,  this node3 is a goldengate  node. So need to

Start mgr/extract/pump processed which are abended.

ggsci

start mgr

start xxxx

If they are started successfully and working good(RBA are moving ),then we are lucky and good.

But for some cases, they may can’t start or when started got hung. We can refer to below document.

(this doc recorded some solutions with many goldengate issues,will share it at another blog)

In this case, after starting r1_cp,r2_cp,r3_cp,RBA didn’t moving ,send status command get timeout,

So they probably get hung.

So try to kill them and restart, but still no use .

Then look into database side:

SELECT s.sid,s.serial#,s.inst_id,s.sql_id,last_call_et "Run_in_sec",s.osuser "OS_user",s.machine,a.sql_text,

s.module,s.event,s.blocking_session

FROM     gv$session s,gv$sqlarea a

WHERE   s.sql_id = a.sql_id(+)  and    s.inst_id=a.inst_id  and status='ACTIVE'  and username='GGADMIN'

and type='USER'    order by last_call_et desc;

From sql result, we can see a lot of locks are blocking goldengate processes.

So we can know that goldengate hung processes are caused by these blocking sessions.

And after sometime, the locks still exist. So we need to send mail to APP team to check if can kill these sessions.

Just like below:

After their permission, we can kill these sessions, and then restart r1-r3 processes  ,goldengate  works good.

At other side, we need to find why this node reboot.

We can always find useful information in other survived nodes.

In this case, node3  rebooted, I search some info on node1 like below:

oracle@ora-plus-p-1:PDSP1:/u01/home/oracle $ cd /u01/app/11.2.0.4/grid/log/ora-plus-p-1/

oracle@ora-plus-p-1:PDSP1:/u01/app/11.2.0.4/grid/log/ora-plus-p-1 $ less alertora-plus-p-1.log

2016-10-18 09:46:01.809:

[cssd(2206)]CRS-1612:Network communication with node ora-plus-p-3 (3) missing for 50% of timeout interval.  Removal of this node from cluster in 14.610 seconds

2016-10-18 09:46:09.858:

[cssd(2206)]CRS-1611:Network communication with node ora-plus-p-3 (3) missing for 75% of timeout interval.  Removal of this node from cluster in 6.560 seconds

2016-10-18 09:46:13.860:

[cssd(2206)]CRS-1610:Network communication with node ora-plus-p-3 (3) missing for 90% of timeout interval.  Removal of this node from cluster in 2.560 seconds

Also we can check node3’s osw network file to confirm if any network errors:

cd /cust/app/oracle/OSW/oswbb/archive/oswnetstat/

cat ora-plus-p-3.va2.b2c.nike.com_netstat_16.11.28.1400.dat|grep -in "receive errors"

cat ora-plus-p-3.va2.b2c.nike.com_netstat_16.11.28.1400.dat|grep -in timeout

we can get many packet receive error and timeout error from above commands:

312009 packet receive errors

RcvbufErrors: 818

SndbufErrors: 6294

312009 packet receive errors

RcvbufErrors: 818

SndbufErrors: 6294

So next step,we need work with linux team,network team to work with this.

And  for  else node eviction case, we can also use this method to troubleshoot.

======================ENDED==================================================

What Need To Do when A Node down!的更多相关文章

  1. babeljs源码

    babel.min.js!function(e,t){"object"==typeof exports&&"object"==typeof mo ...

  2. NPM (node package manager) 入门 - 基础使用

    什么是npm ? npm 是 nodejs 的包管理和分发工具.它可以让 javascript 开发者能够更加轻松的共享代码和共用代码片段,并且通过 npm 管理你分享的代码也很方便快捷和简单. 截至 ...

  3. node服务的监控预警系统架构

    需求背景 目前node端的服务逐渐成熟,在不少公司内部也开始承担业务处理或者视图渲染工作.不同于个人开发的简单服务器,企业级的node服务要求更为苛刻: 高稳定性.高可靠性.鲁棒性以及直观的监控和报警 ...

  4. node.js学习(三)简单的node程序&&模块简单使用&&commonJS规范&&深入理解模块原理

    一.一个简单的node程序 1.新建一个txt文件 2.修改后缀 修改之后会弹出这个,点击"是" 3.运行test.js 源文件 使用node.js运行之后的. 如果该路径下没有该 ...

  5. 细说WebSocket - Node篇

    在上一篇提高到了 web 通信的各种方式,包括 轮询.长连接 以及各种 HTML5 中提到的手段.本文将详细描述 WebSocket协议 在 web通讯 中的实现. 一.WebSocket 协议 1. ...

  6. 高大上的微服务可以很简单,使用node写微服务

    安装 npm install m-service --save 使用 编写服务处理函数 // dir1/file1.js // 使用传入的console参数输出可以自动在日志里带上request id ...

  7. 构建通用的 React 和 Node 应用

    这是一篇非常优秀的 React 教程,这篇文章对 React 组件.React Router 以及 Node 做了很好的梳理.我是 9 月份读的该文章,当时跟着教程做了一遍,收获很大.但是由于时间原因 ...

  8. 利用Node.js的Net模块实现一个命令行多人聊天室

    1.net模块基本API 要使用Node.js的net模块实现一个命令行聊天室,就必须先了解NET模块的API使用.NET模块API分为两大类:Server和Socket类.工厂方法. Server类 ...

  9. Node.js:进程、子进程与cluster多核处理模块

    1.process对象 process对象就是处理与进程相关信息的全局对象,不需要require引用,且是EventEmitter的实例. 获取进程信息 process对象提供了很多的API来获取当前 ...

  10. Node.js:理解stream

    Stream在node.js中是一个抽象的接口,基于EventEmitter,也是一种Buffer的高级封装,用来处理流数据.流模块便是提供各种API让我们可以很简单的使用Stream. 流分为四种类 ...

随机推荐

  1. input框中的size和maxlength的区别

  2. 第 11 章 进度条媒体对象和 Well 组件

    学习要点: 1.Well 组件 2.进度条组件 3.媒体对象组件 主讲教师:李炎恢 本节课我们主要学习一下 Bootstrap 的三个组件功能:Well 组件.进度条组件.媒体对象组件. 一.Well ...

  3. codeforces 700A As Fast As Possible 二分求和?我觉得直接解更好

    分析:一辆车最多载k个人,车的速度肯定比人快,所以想要到达时间最短,那么每个人必须做一次公交车.那么把n个人分成p=(n+k-1)/k组.设最短时间为t,每人乘车时间为t1,则t1*v2+(t-t1) ...

  4. php错误处理-错误处理

    错误类型 因为错误类型整型值的巧妙设定,可以采用按位运算符 1 E_ERROR (integer) 致命的运行时错误.这类错误一般是不可恢复的情况,例如内存分配导致的问题. 导致脚本终止不再继续运行 ...

  5. 设计模式/原则篇- Unit of Work

    概念 Unit of Work 即工作单元. 用来维护一组受业务影响的对象列表,将多个操作放在一个单元中,把操作原子化,通过事务统一完成一次提交,如果某个过程出现异常,就将所有修改进行回滚,保证数据的 ...

  6. 今天做项目时,用到了好多关于js的知识点,有的忘记了,然后晚上回来自己整理一番,明天继续整理。哈哈,分享给大家。

    javascript 数据类型 typeof (直接量/变量)-------判断数据类型 简单数据类型(栈,空间小,速度快) string字符串 用引号引起来的文本 number数字 所有数字 NaN ...

  7. css知多少(3)——样式来源与层叠规则

    上一节<css知多少(2)——学习css的思路>有几个人留言表示思路很好.继续期待,而且收到了9个赞,我还是比较欣慰的.没看过的朋友建议先去看看上一节. 这一节就开始实践上一节的思路! 1 ...

  8. HubSpot – 网站开发必备的 jQuery 信息提示库

    HubSpot 一款功能丰富的 jQuery 消息提示插件.它可以帮助你个性化显示您的应用程序的事务性消息.您可以轻松地包裹 Ajax 请求进度,成功和错误消息,还可以添加操作链接到您的消息中. Hu ...

  9. Spirit - 腾讯移动 Web 整体解决方案

    Spirit 并不是一个具体的框架或者工具,但是她是移动端一系列解决方案的整合与聚拢.她是腾讯 Alloyteam 开发团队在移动开发项目中通过大量实践.归纳.总结提炼而成,最终沉淀下来的一个体系,真 ...

  10. 分享最新15个加速 Web 开发的框架和工具

    我们为开发人员挑选了15个最新的  Web 开发框架,你肯定尝试一下这些新鲜的框架,有的可能略微复杂,有的提供了很多的配置选项,也有一些窗口小部件和界面交互的选择.他们将帮助你创建更优秀的网站,提供给 ...