分析统计信息及动态采样
要对数据库对象生成统计信息,可以有以下方法:select * from dba_tables;一、使用analyzeanalyze table scott.temp compute statistics (for all columns); --完全统计法analyze table scott.temp compute st...
批量绑定
1、创建表==============================================================create table scott.temp(id number(10) primary key, descr varchar2(20))pctfree 20pctused 40;======================================...
SQL_trace and 10046事件
一、SQL_TRACE1、启动并生成SQL TRACESQL> grant alter session to scott;SQL> alter system flush shared_pool;SQL> set timing onSQL> alter session set tracefile_identifier='mytest';SQL> alter session set ...