0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Oracle:データベースバッファキャッシュを確認してみた

Posted at

データベースバッファキャッシュとは

アクセスされたデータファイル内にあるデータを保持しておくメモリ領域。
メモリ(SGA)にデータを保持することでデータを参照・更新する速度が速くなったり性能が上がったりする。

データベースバッファキャッシュをSQLで参照

SQL*Plusを起動し、以下のコマンドを実行

 show parameter db_cache_size

結果

image.png

データベースバッファキャッシュのサイズ変更

alter system set db_cache_size=6M;

ほんとはサイズは4の倍数にしなければいけないのですが、4の倍数でない場合強制的に4の倍数に変更されるそうなので、試してみました。

結果

image.png

本当に16Mという4の倍数のサイズになってました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?