Oracle Databaseの既存バージョンの10gや11gOracle Zero Data Loss Recovery Applianceの登場で、ますます重要な機能となってきたOracle Recovery Managerについて、OTN人気連載シリーズ「しばちょう先生の試して納得!DBAへの道」の執筆者が語ります。RMANバックアップの運用例から、高速増分バックアップの内部動作とチューニング方法まで、出し惜しみなく解説します。
The document discusses the benefits of exercise for mental health. Regular physical activity can help reduce anxiety and depression and improve mood and cognitive function. Exercise causes chemical changes in the brain that may help protect against mental illness and improve symptoms for those who already suffer from conditions like anxiety and depression.
Oracle Databaseの既存バージョンの10gや11gOracle Zero Data Loss Recovery Applianceの登場で、ますます重要な機能となってきたOracle Recovery Managerについて、OTN人気連載シリーズ「しばちょう先生の試して納得!DBAへの道」の執筆者が語ります。RMANバックアップの運用例から、高速増分バックアップの内部動作とチューニング方法まで、出し惜しみなく解説します。
The document discusses the benefits of exercise for mental health. Regular physical activity can help reduce anxiety and depression and improve mood and cognitive function. Exercise causes chemical changes in the brain that may help protect against mental illness and improve symptoms for those who already suffer from conditions like anxiety and depression.
El documento repite continuamente la frase "MAYO 27 DE 2011 DÍA DEL DESAFÍO MUNDIAL", declarando Mayo 27 de 2011 como el Día del Desafío Mundial. Agradece a la estudiante Lizeth Natalia Tenjo Leguizamón por su aporte de imágenes fotográficas para una presentación sobre este tema.
Primera feria empresarial santa maría de lríogarfredy
La primera feria empresarial de Santa María del Río se celebró en 2012. El evento reunió a empresas locales para mostrar sus productos y servicios a la comunidad. La feria buscó promover el desarrollo económico de la región a través de la colaboración entre empresas.
El documento presenta varios resúmenes de historias creadas por padres e hijos de primer grado. Las historias incluyen a un lobo y un cazador que se hacen amigos, estrellas brillantes que alegraban los días, una niña inquieta que corría con su perro, y varias otras sobre animales como patos, mariposas y en el zoológico. Cada historia termina con un mensaje de "fin" y los nombres de quienes la crearon.
Växjö kommun ligger i framkant i sitt klimatarbete. Bo Franks presentation om hur de arbetar med klimatfrågan i kommunen. Från En dag för klimatet 110318
El documento resume los conceptos fundamentales relacionados con el pensamiento humano, incluyendo cómo opera a través de la percepción, representación mental y memoria. Explica conceptos como creencias, hábitos, costumbres, actitudes y emociones, y cómo estas surgen y afectan el comportamiento humano. Finalmente, discute la inteligencia humana y cómo los problemas surgen a través de las motivaciones e intereses de las personas.
La investigación busca oportunidades de empleo. El documento escrito por Diego Ribera, Inma Pitarch y Carmen Bochons explora las posibilidades laborales disponibles.
Este documento lista datas entre janeiro de 2003 e setembro de 2006, seguidas por três frases pedindo para pensar bem, divulgar o e-mail e fazer sua parte.
Novo Produto Estadão PME. Guia de Compras e Serviços. A vida moderno praticamente decretou um novo jeito de comprar. Agora, as pessoas estão valorizando a compra de produtos e serviços em suas regiões vizinhas. Se você está numa região de forte potencial de compra, mostre-se para sua vizinhança, anuncie no Guia de Compras e Serviços Estadão. Não percam essa oportunidade!
O empreendimento TIME oferece diversas opções de moradia, trabalho e lazer em um único local, incluindo apartamentos residenciais, salas comerciais para escritórios, amplos espaços corporativos, um hotel e lojas em um shopping center administrado pelo Florida Center.
As civilizações da Mesopotâmia desenvolveram a escrita cuneiforme na argila. Os egípcios criaram uma sociedade forte através das pirâmides e hieróglifos. Os gregos lançaram as bases da arte, ciência e filosofia ocidentais, enquanto os romanos se dedicaram ao direito e arquitetura como arcos de triunfo e mosaicos.
El documento describe dos sedes educativas en Santa María del Río en 2012: la Sede La Lorena y la Sede Río Frío. Ambas sedes forman parte del Instituto Municipal de Recreación y Deportes de Santa María del Río.
Apresentação dos principais fatos do novo bairro JARDIM DAS PERDIZES - Tecnisa. Conheça os bastidores desta grandiosa obra que está mudando o conceito de um bairro com qualidade de vida, dentro da cidade de São Paulo.
2015 0228 OpenStack swift; GMO Internet ServicesNaoto Gohko
GMO Internet Inc., has been service provided by the quotient material made of the fact that OpenStack Swift the ConoHa VPS brand and GMO Apps Cloud. discussed the differences between the physical configuration of the OpenStack Swift at rackspace and ConoHa, was carried out optimization of the configuration.
In addition, you have an implementation that provided by Dual-head on multiple merchandise by invoking the swift-proxy for each service.
Some might think Docker is for developers only, but this is not really the case.Docker is here to stay and we will only see more of it in the future.
In this session learn what Docker is and how it works.This session will be covering core areas such as volumes, but also stepping it up to a few tips and tricks to help you get the most out of your Docker environment.The session will dive into a few examples of how to create a database environment within just a few minutes - perfect for testing,development, and possibly even production systems.
Machine Learning explained with Examples
Everybody is talking about machine learning. What is it actually and how can I use it?
In this presentation we will see some examples of solving real life use cases using machine learning. We will define Tasks and see how that task can be addressed using machine learning.
SQL Server 2017でLinuxに対応し、その延長線でDocker対応やKubernetesによる可用性構成が組めるようになりました。そしてリリースを間近に控えたSQL Server 2019ではKubernetesを活用したBig Data Cluster機能の提供が予定されており、コンテナの活用範囲はさらに広がっています。
本セッションではこれからSQL Serverコンテナに触れていくための基礎知識と実際に触れてみるための手順やサンプルをお届けします。
4. Copyright (C) 2013 CO-Sol Inc. All Rights Reserved
事象: 複数セッションがハング
複数のセッションの処理がハングした
アラートログには特にエラーは出力されていない
処理のハングを確認したのは21:55~21:58の時間帯
21:58以降解消したように見える
21:55以前の状況はよくわからない
問題発生時に実行されていたセッションIDやSQLなどの情報は不明
再発に備えて原因を特定したい
3
調査対象となるこの事象を、以後「本事象」と記載します
5. Copyright (C) 2013 CO-Sol Inc. All Rights Reserved
ハング分析に有用な診断情報
1. HANG ANALYZE
ハングに関係するセッション相互の待機関係(待機させている、待機している)を
トレースファイルにDumpしたもの
2. ASH(Active Session History)
セッション情報(V$SESSION)を1秒おきに収集(+1/10に間引き)した情報
過去のある時点におけるセッションの状態、時系列でのセッション状態の推移を
確認できる
3. System State Dump
インスタンス全体の極めて詳細な情報をトレースファイルにDumpしたもの
情報の取得と出力に時間を要する場合がある
4. プロセスのスタックトレース
既知のBugに該当しているかの判断に有用
Oracleの関数命名ルールに熟知していれば、処理中の内容を推測できる
通常、System State Dumpを取得すると同時に取得される
4
要手動取得
要手動取得
自動収集
要手動取得
6. Copyright (C) 2013 CO-Sol Inc. All Rights Reserved
それぞれの診断情報の概念
55
HANGANALYZE
コマンド実行時点のプロセス(セッション)間の待機
関係
System State Dump
コマンド実行時点のインスタンス全体の詳細情報
ASH
全セッションの推移
(アイドルセッションを除く)
Oracleインスタンス
8. Copyright (C) 2013 CO-Sol Inc. All Rights Reserved
KROWN:66559
7
ハング分析関連情報を一括収集する方法が記載されています
ASH、 AWRレポート、一部OS情報は別途収集する必要あり
MOS限定情報
のため
ちょっと自粛
9. Copyright (C) 2013 CO-Sol Inc. All Rights Reserved
一般的な調査アプローチ
多面的かつ相互補完的なアプローチが求められる
診断情報を突き合わせて、総合的に判断する
「推論」の確からしさを高める
とはいっても、どの順序で情報をみてゆくのか?
1. HANGANALYZE
2. ASH
3. 状況に応じてOS観点の情報やSystem State Dump
8
10. Copyright (C) 2013 CO-Sol Inc. All Rights Reserved
HANGANALYZE
Oracle Databaseに組み込まれたハング診断
情報
プロセス相互の待機関係を分析し、トレースファイ
ルに出力する
待機関係=待機チェーン (Chain)
「待たせているプロセス」と「待たされているプロセス」の関係
待機原因が待機イベント(V$SESSIONではevent列
)として表示される場合が多い
HANGANALYZEの取得方法
ALTER SESSION SET EVENTS 'immediate
trace name HANGANALYZE level 3';
SYSユーザーで実行する
9
待たせている
待たされて
いる
待たせている
待たされて
いる
11. Copyright (C) 2013 CO-Sol Inc. All Rights Reserved
HANGANALYZEの出力例
10
*** 2013-05-27 21:55:52.883
===============================================================================
HANG ANALYSIS:
(略)
===============================================================================
Chains most likely to have caused the hang:
[a] Chain 1 Signature: 'log file parallel write'<='log buffer space'<='buffer busy waits'
Chain 1 Signature Hash: 0xf27e57e2
[b] Chain 2 Signature: 'log file parallel write'<='log buffer space'
Chain 2 Signature Hash: 0x56c5cf5
[c] Chain 3 Signature: 'log file parallel write'<='log buffer space'<='latch: In memory undo latch'
Chain 3 Signature Hash: 0x1d6eb75b
===============================================================================
Non-intersecting chains:
-------------------------------------------------------------------------------
Chain 1:
-------------------------------------------------------------------------------
Oracle session identified by:
{
instance: 1 (b203.b203)
os id: 5860
process id: 15, oracle@l64rw3.domain (MMON)
session id: 15
session serial #: 1
}
is waiting for 'buffer busy waits' with wait info:
{
p1: 'file#'=0x3
p2: 'block#'=0x80
p3: 'class#'=0x11
time in wait: 52.137595 sec
インスタンス内の全待機
チェーンからの抜粋
1番目の待機チェーンの待機
関係を表示
12. Copyright (C) 2013 CO-Sol Inc. All Rights Reserved
本事象のChain 1 (抜粋)
11
-------------------------------------------------------------------------------
Chain 1:
-------------------------------------------------------------------------------
Oracle session identified by:
{
instance: 1 (b203.b203)
os id: 5860
process id: 15, oracle@l64rw3.domain (MMON)
session id: 15
session serial #: 1
}
is waiting for 'buffer busy waits' with wait info:
{
p1: 'file#'=0x3
p2: 'block#'=0x80
p3: 'class#'=0x11
time in wait: 52.137595 sec
(略)
}
and is blocked by
=> Oracle session identified by:
{
instance: 1 (b203.b203)
os id: 6011
process id: 21, oracle@l64rw3.domain (J000)
session id: 43
session serial #: 11
}
which is waiting for 'log buffer space' with wait info:
{
time in wait: 1 min 2 sec
timeout after: never
(略)
J000 21/43
'enq: CF -
contention'
log buffer space
MMON 15/15
'enq: CF -
contention'
buffer busy
waits
プロセスID 15
のプロセス情報
+セッション情報
プロセスID 15
の待機状態
Chain 1
プロセスID 21
のプロセス情報
+セッション情報
プロセスID 21
の待機状態
13. Copyright (C) 2013 CO-Sol Inc. All Rights Reserved
本事象のChain 1 (抜粋)
12
and is blocked by
=> Oracle session identified by:
{
instance: 1 (b203.b203)
os id: 6011
process id: 21, oracle@l64rw3.domain (J000)
session id: 43
session serial #: 11
}
which is waiting for 'log buffer space' with wait info:
{
time in wait: 1 min 2 sec
timeout after: never
(略)
}
and is blocked by
=> Oracle session identified by:
{
instance: 1 (b203.b203)
os id: 5852
process id: 11, oracle@l64rw3.domain (LGWR)
session id: 11
session serial #: 1
}
which is waiting for 'log file parallel write' with wait info:
{
p1: 'files'=0x2
p2: 'blocks'=0x6d5c
p3: 'requests'=0xe
time in wait: 1 min 8 sec
timeout after: never
(略)
J000 21/43
'enq: CF -
contention'
log buffer space
LGWR 11/11
'enq: CF -
contention'
log file
parallel write
18. Copyright (C) 2013 CO-Sol Inc. All Rights Reserved
ASH分析用SQLの例
1. 事象発生時間帯を抽出
2. セッション数の推移をみる(1分単位)
17
SELECT … FROM DBA_HIST_ACTIVE_SESS_HISTORY
WHERE sample_time BETWEEN
to_timestamp('&start_time', 'yyyy-mm-dd HH24:mi:ss')
AND to_timestamp('&end_time', 'yyyy-mm-dd HH24:mi:ss')
SELECT to_char(sample_time, 'yyyy-mm-dd HH24:mi')
, count(distinct session_id)
FROM DBA_HIST_ACTIVE_SESS_HISTORY
WHERE sample_time between
to_timestamp('&start_time', 'yyyy-mm-dd HH24:mi:ss')
AND to_timestamp('&end_time', 'yyyy-mm-dd HH24:mi:ss')
GROUP BY to_char(sample_time, 'yyyy-mm-dd HH24:mi')
ORDER BY to_char(sample_time, 'yyyy-mm-dd HH24:mi');
19. Copyright (C) 2013 CO-Sol Inc. All Rights Reserved
ASH分析用SQLの例
3. 長時間実行SQL上位30件を抽出
4. 3. で特定したSQLを実行していたセッションを抽出
18
SELECT * FROM (
SELECT sql_id, sql_exec_id
, min(sample_time) , max(sample_time)
, max(sample_time) - min(sample_time) exec_time
FROM DBA_HIST_ACTIVE_SESSION_HISTORY
GROUP BY sql_id, sql_exec_id
ORDER BY exec_time desc
) WHERE rownum <=30;
SELECT session_id, session_serial#
, min(sample_time),max(sample_time)
FROM DBA_HIST_ACTIVE_SESSION_HISTORY
WHERE sql_id='<sql_id>'
GROUP BY session_id, session_serial#;
参考) http://co-sol.jp/techdb/2013/05/oracle_database_11g_ash_enhancements_sql_exec_id.html
20. Copyright (C) 2013 CO-Sol Inc. All Rights Reserved
ピボットテーブルによるASH分析
19
ピボットテーブルの作成方法については
http://co-sol.jp/techdb/2013/05/analyze_ash_by_excel_db_tech_showcase_osaka_2013.html
21. Copyright (C) 2013 CO-Sol Inc. All Rights Reserved
HANGANALYZEとASHを踏まえて
LGWRが怪しい
HANG ANALYZE
LGWRが全待機チェーンの末端に位置していた
ASHの時系列分析
LGWRの'log file parallel write'待機から問題動作が広がっているように見え
る
ファイルI/Oに関する問題であるため、OSの観点から調査を継続した
い
LGWRのOS プロセスIDは5852
20
and is blocked by
=> Oracle session identified by:
{
instance: 1 (b203.b203)
os id: 5852
process id: 11, oracle@l64rw3.domain (LGWR)
session id: 11
session serial #: 1
}
which is waiting for 'log file parallel write' with wait info:
{
(略)
HANG ANALYZEからの抜粋
22. Copyright (C) 2013 CO-Sol Inc. All Rights Reserved
OSの視点から
問題プロセスに着目して
ps コマンドの実行結果
/proc疑似ファイルシステム
/proc/<pid>/status
/proc/<pid>/stack
など
syslog
21