Top 10 tips for Oracle performance (Updated April 2015)Guy Harrison
?
This document provides a summary of Guy Harrison's top 10 Oracle database tuning tips presentation. The tips include being methodical and empirical in tuning, optimizing database design, indexing wisely, writing efficient code, optimizing the optimizer, tuning SQL and PL/SQL, monitoring and managing contention, optimizing memory to reduce I/O, and tuning I/O last but tuning it well. The document discusses each tip in more detail and provides examples and best practices for implementing them.
Prometheus monitoring from outside of Kubernetes? ?と?うして我々はKubernetes上のPromet...whywaita
?
talked by Prometheus Tokyo Meetup #2 https://prometheus.connpass.com/event/127574/
re-upload: https://speakerdeck.com/whywaita/prometheus-monitoring-from-outside-of-kubernetes-kubernetesprometheus-prometheustokyo
Top 10 tips for Oracle performance (Updated April 2015)Guy Harrison
?
This document provides a summary of Guy Harrison's top 10 Oracle database tuning tips presentation. The tips include being methodical and empirical in tuning, optimizing database design, indexing wisely, writing efficient code, optimizing the optimizer, tuning SQL and PL/SQL, monitoring and managing contention, optimizing memory to reduce I/O, and tuning I/O last but tuning it well. The document discusses each tip in more detail and provides examples and best practices for implementing them.
Prometheus monitoring from outside of Kubernetes? ?と?うして我々はKubernetes上のPromet...whywaita
?
talked by Prometheus Tokyo Meetup #2 https://prometheus.connpass.com/event/127574/
re-upload: https://speakerdeck.com/whywaita/prometheus-monitoring-from-outside-of-kubernetes-kubernetesprometheus-prometheustokyo
46. LIKE演算子
? WHERE expression [NOT] LIKE pattern
? ワイルドカード演算子によるパターンマッチ
ングを行える
– % 0文字以上の全ての文字に一致
– _ 任意の1文字に一致
? 例)
– ○ ‘abc LIKE ‘abc’ 文字列が一致
– ○ ‘abc’ LIKE ‘a%’ aで始まる
– ○ ‘abc’ LIKE ‘_b_’ 3文字で2文字目がb
46
47. BETWEEN演算子
? WHERE expression BETWEEN
expression AND expression
? 値の範囲にあるかを検査する
– 指定された値は含まれる(以上?以下)
? 例)
– 列salの値が200以上250以下のデータを選択
– WHERE sal BETWEEN 200 AND 300
47
51. 日時データの取り扱い
? 日付形式を確認?設定する
– SHOW DATESTYLE
– SET DATESTYLE TO ‘style’
– デフォルトはISO形式
? 現在の日付を確認する
– SELECT TIMESTAMP ‘NOW’
? 日時データを特定のタイムゾーンで扱う
– AT TIME ZONE ‘timezone’
51
70. ユーザー?パスワードの設定
? ユーザー作成時にパスワード設定
CREATE USER user WITH PASSWORD ‘pass’
$ createuser –pwprompt user
? 既存ユーザーにパスワード設定
– ALTER USER user WITH PASSWORD
‘pass’
? パスワードはpg_shadowシステムカタログ
表に格納される
? パスワードが設定されていない場合、パス
ワード認証は常に失敗する
70