假设我在 sql plus 中执行我的脚本,如下所示
sql>set autotrace traceonly;
sql>select * from employees;
Execution Plan
----------------------------------------------------------
0 SELECT STATEMENT Optimizer Mode=ALL_ROWS (Cost=2 Card=14 Bytes=1 K)
1 0 TABLE ACCESS FULL T416493.EMPLOYEE (Cost=2 Card=14 Bytes=1 K)
Statistics
----------------------------------------------------------
6 user calls
0 physical read total multi block requests
0 physical read total bytes
0 cell physical IO interconnect bytes
0 commit cleanout failures: block lost
0 IMU commits
0 IMU Flushes
0 IMU contention
0 IMU bind flushes
0 IMU mbu flush
14 rows processed
我正在创建一个包,我在其中传递查询,它将为我提供具有此统计信息的执行计划。我该如何实现这个包?