oracle用户量大查询慢卡,千万级大表查询慢的问题

select count(*) c

from (select /*+index(IR_DEVICE_ONU_HIS IDX_IR_DEVICE_ONU_DATE)*/

provincename,

provincecode,

cityname,

citycode,

sitename,

devicename,

vendorname,

createdate,

modifydate

from nlzb.IR_DEVICE_ONU_HIS

where 1 = 1

and createdateformat = 201305

and sitename like '梅陇%'

and devicename like 'XM%'

and type = 1)

call     count       cpu    elapsed       disk      query    current        rows

------- ------  -------- ---------- ---------- ---------- ----------  ----------

Parse        2      0.00       0.00          0          0          0           0

Execute      1      0.00       0.00          0          0          0           0

Fetch        1      9.18      12.79      11134      12834         23           1

------- ------  -------- ---------- ---------- ---------- ----------  ----------

total        4      9.18      12.80      11134      12834         23           1

Misses in library cache during parse: 1

Optimizer goal: CHOOSE

Parsing user id: 67

Elapsed times include waiting on following events:

Event waited on                             Times   Max. Wait  Total Waited

----------------------------------------   Waited  ----------  ------------

SQL*Net message to client                       2        0.00          0.00

SQL*Net message from client                     1        0.00          0.00

direct path write                               8        0.01          0.01

direct path read                              324        0.02          1.18

你可能感兴趣的:(oracle用户量大查询慢卡)