WEB开发网
开发学院数据库Oracle 用Oracle存储来分析Unix系统的性能 阅读

用Oracle存储来分析Unix系统的性能

 2007-05-12 12:27:31 来源:WEB开发网   
核心提示: 2. 创建stats$vmstat表SQL> connect perfstat/perfstatSQL> @create_vmstat_tab.sql# create_vmstat_tab.sqldrop table stats$vmstat;create table stat

2. 创建stats$vmstat表

SQL> connect perfstat/perfstat
SQL> @create_vmstat_tab.sql
# create_vmstat_tab.sql
drop table stats$vmstat;
create table stats$vmstat
(
start_date date,
duration number,
server_name varchar2(20),
running_queue number,
waiting_queue number,
swap_in number,
swap_out number,
kbytes_page_in number,
Kbytes_page_out number,
page_scan number,
user_cpu number,
system_cpu number,
idle_cpu number,
wait_cpu number
)
tablespace sysaux
storage (initial 10m
next 1m
pctincrease 0)
;
comment on column stats$vmstat.start_date
is '监控时间';
comment on column stats$vmstat.duration
is '监控时长';
comment on column stats$vmstat.server_name
is '服务器名称';
comment on column stats$vmstat.running_queue
is '执行队列';
comment on column stats$vmstat.waiting_queue
is '等待队列';
comment on column stats$vmstat.swap_in
is '每秒平均交换进LWPs数';
comment on column stats$vmstat.swap_out
is '交换出进程数';
comment on column stats$vmstat.kbytes_page_in
is '换页进字节(K)';
comment on column stats$vmstat.kbytes_page_out
is '换页出字节(K)';
comment on column stats$vmstat.page_scan
is '换页守护进程扫描页数';
comment on column stats$vmstat.user_cpu
is '用户操作占用的CPU';
comment on column stats$vmstat.system_cpu
is '系统操作占用的CPU';
comment on column stats$vmstat.idle_cpu
is 'CPU空闲率';
comment on column stats$vmstat.wait_cpu
is 'CPU等待率(AIX独有)';

上一页  1 2 3 4 5 6  下一页

Tags:Oracle 存储 分析

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接