zt_systemstate案例分析
http://space.itpub.net/8242091/action-spacelist-starttime-1341072000-endtime-1343750400
zt_How to read ERRORSTACK output
http://tech.e2sn.com/oracle/troubleshooting/how-to-read-errorstack-output
oracle hint_cache_nocache
oracle hintnocache1,/*+ nocache(table) */2,如果一个表进行全表扫描把这它放在buffer cache的lru(least recently used),这样就可以快速为其它更需要buffer cache的块free space3,cache与nocache会影响v$sy...
oracle hint_noappend_parallel
1,hintmodel_min_analysis 1,/*+ model_min_analysis */ 2,忽略一些spreadsheet rules的编译期间的优化工作,这个主要指的具体有依赖性关系的图表分析 3,其它一些spreadsheet优化,比如构建fil...
oracle_merge
hint_merge1,optimizer_secure_view_merging2,如果查询块包括group by或在select中有distinct,且开启complex view merging 优化器自动把查询块合并到整个访问SQL语句中3,如果子查询不是关联子查询会把...
oracle hint_no_expand_no_fact
hint no_expandlnnvl在执行计划中,这是函数1,no_expand对于where条件中出现in列表或出现or的查询,不会考虑or扩展2,一般情况下,优化器会使用or扩展,假如不使用or扩展代价更低,会使用or扩展SQL> explain plan ...
oracle hint_leading
oracle hint_leading_merge1,leading 1,比ordered功能更多 2,如下明确看出leading可以发变首表 3,如果指定了ordered,优先级高于leading SQL> explain plan for select emp.empno,de...
oracle group by与分组列为null空
SQL> create table t_group(a int,b int);Table createdSQL> insert into t_group values(null,1);1 row insertedSQL> insert into t_group values(null,2);1 row insertedSQL> insert into t_group values(...
ORA-04030: out of process memory when trying to allocate 61464 bytes
--订单类型select /*+ use_nl(po psg) */ distinct po.remark9from portal_orderbill po, portal_shopping_goodslist psgwhere po.rec_status=1 and  ...
oracle hint_skip scan_index_ss
oracle hint 系列3oracle skip scan1,适用于组合索引2,仅应用于组合索引的非前导列3,会根据组合索引的前导列的不重复值把组合索引分为多个逻辑上的子索引4,如果前导列选择性差,非前导列选择列高,最能发挥性...
oracle hint之hint_index_ffs,index_join
oracle hint_index_ffs,index_joinindex_ffs hint1,对表用快速索引全扫描进行访问2,经测,仅count可以使用index_ffs,而非count聚合函数好像不能使用index_ffsSQL> explain plan for select /*+ index_ffs(t_t...
oracle hint之full,index,index_asc,index_desc,index_combile示例
oracle hint之full,index,index_asc,index_desc,index_combile示例1,full hintSQL> explain plan for select a,b from t_test where a=3;已解释。SQL> select * from table(dbms_xplan.display);PLAN_TABLE_...
orace global temporary table全局临时表测试小记
session1>desc t_global_temp; 名称 &nbs...
oracle批量生成日期后缀的表存储过程代码
create or replace procedure sp_t_date(in_start_date date,in_table_count pls_integer)isv_sql varchar2(4000);v_receive char(8);begin v_receive:=to_char(in_start_date,'yyyymmdd'); for...
zt_oracle undo机制
http://blog.chinaunix.net/uid-24612962-id-3161892.html
oracle hint no_merge
oracle hint no_merge强制oracle不把子查询inline view和outer view外层查询合并为一个单一的查询,即子查询运行出结果集再和外层查询的其它结果集进行关联操作 下为测试结果 SQL> explain p...
zt_Oracle 10gR2新SQL提示——opt_param
http://www.hellodba.com/reader.php?ID=86&lang=CN
zt-当前模式读与一致性读
http://www.hellodba.com/reader.php?ID=178&lang=CN http://www.hellodba.com/reader.php?ID=179&lang=CN
oracle11g同义词synonym创建及授权且删除相关测试
SQL> show userUSER 为 "SCOTT"SQL> create table t_tonyi(a int);表已创建。SQL> create public synonym t_tongyi for scott.ton...
oracle execute immediate动态sql组合执行comment小记
create or replace procedure proc_auto_commentasv_number pls_integer;v_repl_string varchar2(100);v_sql varchar2(4000);v_sqlerrm varchar2(1000);begin v_number:=2; for i in 1..v_number ...