oracle 教程http://www.cuug.com/一.SQL*PLUS中输入SQL> conn as sysdba;SQL> alter system setjob_queue_processes = 6; --自动执行数据收集时该参数需要大于0SQL> alter system set timed_statistics =true; --使用statspack收集统计信息时建议...【阅读全文】
今天在ITPUB看到一个帖子,关于WHERE条件的执行顺序的。http://www.itpub.net/thread-1755665-1-1.html原文如下:今天看到以下一句话,我记得以下的描述应该是针对RBO的吧,现在CBO优化器应该能自己判断了吧?ORACLE采用自下而上的顺序解析WHERE子句,根据这个原理,表之间的连接必须写在其他WHERE条件之前,那些可以过滤掉最大数量记录的条件必须写在WHERE子句的末尾。事实正好相反,可以过滤掉最大数量记录的条件必须写在WHERE子句的前面。看下面一个经典例子:SQL> desc x 名称  【阅读全文】
Beginning
with Oracle10G, when statistics are gathered for a table, the old statistics are
retained so should there be any problem with performance of queries dependent
on those statistics, the old ones can be restored.How
long does Oracle retain the statistics for ?
The
default peri【阅读全文】