Upload
Download free for 30 days
Login
Submit Search
Oracleでモテる実行計画を固定させる2つの方法
1 like
3,477 views
Daiki Mogmet Ito
実行計画をモテる感じでロックする方法のご紹介
Technology
Read more
1 of 62
Download now
Downloaded 17 times
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
More Related Content
PPTX
オープンソース・ソフトウェアで始めるバイナリ解析
jetbee0
PDF
固定化か?最新化か?オプティマイザ統計の運用をもう一度考える。 -JPOUG Tech Talk Night #6-
歩 柴田
PDF
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
PDF
まだパスワードで認証してるの?Passkeysを使ってパスワードを駆逐してやる!
Daiki Mogmet Ito
PDF
iOS 15で通知はより見られなくなる
Daiki Mogmet Ito
PPTX
unity build on github actions
Daiki Mogmet Ito
PDF
How to learn new language
Daiki Mogmet Ito
PDF
Oracle how-to-audit-backup
Daiki Mogmet Ito
オープンソース・ソフトウェアで始めるバイナリ解析
jetbee0
固定化か?最新化か?オプティマイザ統計の運用をもう一度考える。 -JPOUG Tech Talk Night #6-
歩 柴田
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
まだパスワードで認証してるの?Passkeysを使ってパスワードを駆逐してやる!
Daiki Mogmet Ito
iOS 15で通知はより見られなくなる
Daiki Mogmet Ito
unity build on github actions
Daiki Mogmet Ito
How to learn new language
Daiki Mogmet Ito
Oracle how-to-audit-backup
Daiki Mogmet Ito
Featured
(20)
PDF
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
PDF
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
PDF
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
PDF
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
PDF
2024 State of Marketing Report – by Hubspot
Marius Sescu
PDF
Everything You Need To Know About ChatGPT
Expeed Software
PDF
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
PDF
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
PDF
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
PDF
Skeleton Culture Code
Skeleton Technologies
PDF
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
PDF
Content Methodology: A Best Practices Report (Webinar)
contently
PPTX
How to Prepare For a Successful Job Search for 2024
Albert Qian
PDF
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
PDF
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
PDF
5 Public speaking tips from TED - Visualized summary
SpeakerHub
PDF
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
PDF
Getting into the tech field. what next
Tessa Mero
PDF
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
PDF
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Ad
Oracleでモテる実行計画を固定させる2つの方法
2.
About me • twitter:
@mogmet • 好物:iOS, php, MySQL, Oracle • 仕事:インフラエンジニア→iOSエンジニア→フリーランスなDBA • ブログとか: http://mogmet.com/ • 作ったアプリたち↓
3.
嬉しかったこと
4.
Platinum 12cホルダーになりました
5.
ところで今日(11/29)は何の日 でしょう。
6.
いい肉の日
7.
だけじゃない
8.
FF XVの発売日!
9.
皆さんイケメンですよね
10.
きっとモテますよね
11.
彼らみたいにモテたい!
12.
今日はDBAでも モテる技を 教えよう!!!
13.
Agenda • モテない統計情報の固定の仕方 • モテる統計情報の固定の仕方 •
更にモテる実行計画の固定の仕方
14.
モテナイ統計情報の固定の仕方
15.
統計情報をロックする
16.
BEGIN DBMS_STATS.LOCK_TABLE_STATS ('HIMOTE', 'MOTETAI'); END; / 統計情報をロック
17.
実行計画を改善しづらい 統計情報をロック
18.
気遣いできない男子レベル 統計情報をロック
19.
http://livedoor.blogimg.jp/ahiru178/imgs/9/1/9116c9fa.jpg?65730e2d
20.
それでも実行計画を固定 したい人たちに気遣い 出来る固定方法を紹介
21.
モテる統計情報の固定の仕方
22.
オプティマイザ統計の保留
23.
MOTEMOTEテーブルに 魔法をかける オプティマイザ統計の保留
24.
BEGIN DBMS_STATS.SET_TABLE_PREFS ('MOTEO', 'MOTEMOTE', 'publish', 'false'); END; / オプティマイザ統計の保留
25.
統計情報をとってみる オプティマイザ統計の保留
26.
オプティマイザ統計の保留
27.
ここでSELECTしてみると オプティマイザ統計の保留
28.
オプティマイザ統計の保留
29.
魔法のおまじないをとなえる オプティマイザ統計の保留
30.
alter session set OPTIMIZER_USE_PENDING_STATISTICS =
false オプティマイザ統計の保留
31.
オプティマイザ統計の保留
32.
PUBLISHされている統計情報しか 使わなくなる!!! オプティマイザ統計の保留
33.
実質ロックみたいな感じ! オプティマイザ統計の保留
34.
これはモテる!!! オプティマイザ統計の保留
35.
更にモテる実行計画の固定の仕方
36.
SQL計画管理
37.
SQL計画管理 データベースで既知の計画または確認済の計画のみが 使用されるようにオプティマイザで実行計画を自動的 に管理する予防的なメカニズムです。
38.
SQL計画管理 なるほど!!
39.
SQL計画管理 わからん!!
40.
SQL計画管理 大まかな流れ
41.
SQL計画管理 準備編
42.
SQL計画管理 alter session set optimizer_capture_sql_plan_baselines =true;
43.
SQL計画管理
44.
SQL計画管理
45.
SQL計画管理 実践編
46.
SQL計画管理 データが大量に変わったり してデータが変わった!
47.
SQL計画管理 おまじないを更にかける
48.
SQL計画管理 alter session set optimizer_use_sql_plan_baselines =
true;
49.
SQL計画管理
50.
SQL計画管理 SQLベースラインにある 承認された実行計画の中で 最適な実行計画だけを 使ってくれる!
51.
SQL計画管理 実行計画をSQL計画ベースラインに もっていって承認して使うには どうするか?
52.
SQL計画管理
53.
SQL計画管理 ファンクラブへの入会 手続きを踏んで下さい
54.
SQL計画管理 駄菓子菓子
55.
SQL計画管理 真なるモテ男は女性に手間を 煩わせない
56.
SQL計画管理 自動SPM展開アドバイザによりパフォーマ ンスが良いものなら自動的に未承認の実行 計画も承認されます。
57.
注意事項
58.
SPMはEnterprise Edition でないと使えません!!
59.
まとめ
60.
まとめ • 統計情報を変えたくないときは統計情報の保留 を使うとモテる • 金があるならSPMを使って金の暴力でモテよう
61.
これで明日から君もDBA女子の 視線釘付けだ!
62.
Thank you for
listening
Download