先要授予advisor给创建的用户
grant advisor to sshe;
explain plan for
select s.id,s.name,b.id,b.name from samlltable s,bigtable b where s.id=b.id and b.id=40000; 解析的SQL语句
SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY)
------------------------------------整个一起执行-----------------------