- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
5#
发表于 2013-8-28 12:35:56
SQL> alter system set db_cache_size=16M;
系统已更改。
SQL> show parameter db_cache
NAME TYPE
------------------------------------ ----------------------
VALUE
------------------------------
db_cache_advice string
ON
db_cache_size big integer
16M
SQL> shutdown immediate;
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup ;
ORACLE 例程已经启动。
Total System Global Area 530345984 bytes
Fixed Size 2404504 bytes
Variable Size 419434344 bytes
Database Buffers 100663296 bytes
Redo Buffers 7843840 bytes
数据库装载完毕。
数据库已经打开。
SQL> oradebug setmypid
已处理的语句
SQL> oradebug dump buffers 4;
已处理的语句
SQL> oradebug tracefile_name
C:\APP\XIANGBLI\diag\rdbms\maclean\maclean\trace\maclean_ora_5668.trc
先看下什么是cache buffer chain
Found 0 hot buffers in working set 32 as expected
CHAIN: 0 LOC: 0x000007FF1CB25EF8 HEAD: [NULL]
CHAIN: 1 LOC: 0x000007FF1CB25F08 HEAD: [NULL]
CHAIN: 2 LOC: 0x000007FF1CB25F18 HEAD: [NULL]
CHAIN: 3 LOC: 0x000007FF1CB25F28 HEAD: [0x7ff05be4e50,0x7ff05be4e50]
BH (0x7ff05be4d98) file#: 5 rdba: 0x01400090 (5/144) class: 19 ba: 0x7ff0597e000
set: 9 pool: 3 bsz: 8192 bsi: 0 sflg: 0 pwc: 0,19
dbwrid: 0 obj: -1 objn: 0 tsn: [0/2] afn: 5 hint: f
hash: [0x7ff1cb25f28,0x7ff1cb25f28] lru: [0x7ff05be5248,0x7ff05be4c08]
lru-flags: debug_dump hot_buffer
obj-flags: object_ckpt_list
ckptq: [0x7ff05be4b18,0x7ff1c7c0b58] fileq: [0x7ff05be4b28,0x7ff1c7c0bf8]
objq: [0x7ff1603adb8,0x7ff05be4c30] objaq: [0x7ff1603ad98,0x7ff05be4d80]
st: XCURRENT md: NULL fpin: 'ktuwh72: ktugus:ktuswr1' fscn: 0x0.4f6b23 tch: 10
flags: buffer_dirty
LRBA: [0x52.3cca9.0] LSCN: [0x0.4f6b46] HSCN: [0x0.4f6f60] HSUB: [1]
CHAIN: 4 LOC: 0x000007FF1CB25F38 HEAD: [0x7ff05be4a90,0x7ff05be4a90]
BH (0x7ff05be49d8) file#: 1 rdba: 0x004000e9 (1/233) class: 1 ba: 0x7ff05978000
set: 9 pool: 3 bsz: 8192 bsi: 0 sflg: 0 pwc: 0,19
dbwrid: 0 obj: 17 objn: 17 tsn: [0/0] afn: 1 hint: f
hash: [0x7ff1cb25f38,0x7ff1cb25f38] lru: [0x7ff05be4c08,0x7ff05be4848]
lru-flags: debug_dump hot_buffer
ckptq: [NULL] fileq: [NULL]
objq: [0x7ff15836008,0x7ff15836008] objaq: [0x7ff15835ff8,0x7ff15835ff8]
st: XCURRENT md: NULL fpin: 'kdswh05: kdsgrp' fscn: 0x0.4f6b44 tch: 2
flags:
LRBA: [0x0.0.0] LSCN: [0x0.0] HSCN: [0xffff.ffffffff] HSUB: [65535]
CHAIN: 5 LOC: 0x000007FF1CB25F48 HEAD: [NULL]
CHAIN: 6 LOC: 0x000007FF1CB25F58 HEAD: [0x7ff053f68d0,0x7ff057faed0]
BH (0x7ff053f6818) file#: 5 rdba: 0x0140034b (5/843) class: 24 ba: 0x7ff05342000
set: 9 pool: 3 bsz: 8192 bsi: 0 sflg: 0 pwc: 0,19
dbwrid: 0 obj: -1 objn: 0 tsn: [0/2] afn: 5 hint: f
hash: [0x7ff053da6d0,0x7ff1cb25f58] lru: [0x7ff053fbf48,0x7ff05be5b08]
lru-flags: debug_dump
|
|