function of sql
将函数解开,你这sql调用了太多的函数,所以会慢。建议:1.如果是11g的话启用函数缓存,这样对于相同的输入参数,返回值如果一样的话,只需计算一次。2.如果无法使用1.,就将函数解开,你这个写代码的人是受到java编...
disable cartisian
alter session set "_optimizer_mjc_enabled" = false;
contains and like '%abc%'
scott@ORCL> CREATE UNIQUE INDEX SCOTT.I_DEPT_DEPTNO_DNAME ON SCOTT.DEPT 2 ( DNAME);Index created.scott@ORCL> Analyze Table SCOTT.DEPT Compute Statistics ;Table analyzed.scott@ORC...
execution plan
select * from table(dbms_xplan.display_cursor(null,null,'iostats last')); (I/O) SELECT * FROM table(dbms_xplan.display_cursor(NULL, NULL, 'memstats last'));(PGA)