how can I get the ssql plan wrapped in a pl/sql block

  • From: 刘 Qinliu <Ivyliu_99@xxxxxxxxxxx>
  • To: 'ORACLE-L' <oracle-l@xxxxxxxxxxxxx>
  • Date: Sat, 11 Mar 2017 01:36:34 +0000

I execute a pl/sql blcok as following:
begin
select count(*) from sys_base where part_num='11111';
end;
I want to view the execute the sql plan select count(*) from sys_base where 
part_num='11111'' .
However, in the v$sql I just get 'begin select count(*) from sys_base where 
part_num='11111'' end;'

so I can't view th plan . How can I view the sqls wrapped in pl/sql procedure.

Is there any way I can get the sql plan  from a procedure or funcation

Other related posts: