SQLLODER导入WIn性能数据

"(PDH-CSV 4.0) ()(-480)","\\CW5128\Memory\Available KBytes","\\CW5128\Memory\Pages/sec","\\CW5128\PhysicalDisk(_Total)\% Idle Time","\\CW5128\PhysicalDisk(_Total)\Avg. Disk Queue Length","\\CW5128\PhysicalDisk(_Total)\Avg. Disk sec/Read","\\CW5128\PhysicalDisk(_Total)\Avg. Disk sec/Write","\\CW5128\Processor(_Total)\% Idle Time"
"10/16/2012 10:10:36.459","8825532"," "," "," "," "," "," "
"10/16/2012 10:10:51.459","8830616","412.44303858134458","79.362825411250697","0.2632983148907847","0.0032208791208791208","0.0052627118644067794","98.150413837351437"


 create table per
   (gettime timestamp,
    mem_free_kb number(30),
     mem_pages_sec number(30),
     phy_disk_total_pct number(30),
    phy_Disk_total_Que_len number(30),
     phy_Disk_total_sec_read number(30),
    phy_Disk_total_sec_write number(30),
    cpu_Idle_time_pct number(30));
    alter table per add constraint pk_p primary key(gettime);


LOAD DATA
INFILE '/home/oracle/per_000003.csv'
into table PER
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
(gettime timestamp "mm/dd/YYYY hh24:mi:ss.ffx",mem_free_kb,mem_pages_sec,phy_disk_total_pct,phy_Disk_total_Que_len,phy_Disk_total_sec_read,phy_Disk_total_sec_write,cpu
_Idle_time_pct)

select to_char(gettime, 'yyyy-mm-dd hh24:mi:ss') time_per,
       mem_free_kb,
       mem_pages_sec,
       NET_FACE_BYTE_SEC,
       phy_disk_total_pct,
       phy_Disk_total_Que_len,
       phy_Disk_total_sec_read,
       phy_Disk_total_sec_write,
       cpu_Idle_time_pct
  from per
  order by time_per ;

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7728585/viewspace-756942/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/7728585/viewspace-756942/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值