我想获取执行查询的详细时间。
我有查询
explain plan for select land.name from gis_osm_landuse_a_07_1 land, gis_osm_pois_07_1 poi where
sdo_relate(land.geometry, poi.geometry,'mask=contains')='true' group by land.name;
它给了我
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
------------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 504 | 68040 | 75128 (1)| 00:00:03 |
| 1 | HASH GROUP BY | | 504 | 68040 | 75128 (1)| 00:00:03 |
| 2 | NESTED LOOPS | | 10149 | 1338K| 75126 (1)| 00:00:03 |
| 3 | TABLE ACCESS FULL | GIS_OSM_POIS_07_1 | 24949 | 1924K| 85 (2)| 00:00:01 |
| 4 | TABLE ACCESS BY INDEX ROWID | GIS_OSM_LANDUSE_A_07_1 | 1 | 56 | 75126 (1)| 00:00:03 |
|* 5 | DOMAIN INDEX (SEL: 0.010000 %)| TERRITORY_IDX | | | 3 (0)| 00:00:01 |
仅仅为我几秒钟的时间
我应该怎么做才能有毫秒的时间?
gather_plan_statistics对我不起作用
select /*+ gather_plan_statistics */
- 00000-“执行ODCIIndexStart()例程时出错” *原因:ODCIIndexStart例程的执行导致错误。