oracle function函数_获取某个字符串中指定的字符串出现的次数
有个简单方法,用(length(str1) - length(replace(str1, str2)))/length(str2)应该能给出str2在str1中出现的次数。select (length('xyzabc123abcefgh') - length(replace('xyzabc123abcefgh', 'abc')))/leng...
ora-00932与ora-01840
SQL> insert into t_date values(null); 1 row inserted SQL> commit; Commit complete SQL> select to_char(a,'yyyymmdd') from t_date; TO_CHAR(A,'YYYYMMDD')-----------------...
oracle cardinality对于执行计划的影响
1,SQL> create table t1(a int,b int);表已创建。SQL> create table t2(a int,b int);表已创建。SQL> insert into t1 select level,level from dual connect by level<已创建1999999行。SQL> commit;提交完...
zt_oracle cursor_open cursors_session_cached_cursors管理及优化
http://www.orafaq.com/node/758
oracle动态采样_optimizer_dynamic_sampling(二)
oracle 动态采样 1,动态采样就是为了提升数据库的性能,通过对表和其索引的谓词选择度和统计收集更加精确的信息. 2,上述的表及索引的统计包括:表的数据块数,索引数据块数,表的基数,关联列的统计.&n...
oracle动态采样_optimizer_dynamic_sampling
SQL> show parameter optimizer_dynamic_samNAME &nb...
oracle hint_use_concat_use_nl_with_index
unnest 1,这个提示会让优化器在评估访问路径和连接操作时,会考虑把把子查询整合到包含它的语句之中, 2,在子查询被整合或合并之前,优化器先要验证语句是否合理,必须通过启发式或查询验证 use_...
oracle hint_parallel_parallel_index
oracle hint parallel 1,并行度如合理,启用 2,并行度如不合同不启用 3,default,启用默认参数的配置值SQL> create table t_parallel(a int) parallel 2;表已创建...
oracle hint_px_distribute_push_subq_px_join_filter_qb_name_rewrite
pq_distribute hint1,/*+ pq_distribute(@查询块 外部分发表 内部分发表) */2,此提示让优化器在生产和消费查询服务器分发两个连接表的记录集,这种分发可以极大提升并行连接操作的性能3,6种分发提示的组合用...
oracle分区partition及分区索引partition index(一)
SQL> create table t_partition(partion_id int,a int) 2 partition by range(partition_id) 3 ( 4 partition p1 values less than (10) tablespace users ...
zt_Using Oracle's Parallel Execution Features
http://zhaolinjnu.blog.sohu.com/66719987.html
zt_将普通表转变为分区表几种方式
http://space.itpub.net/4227/viewspace-68553
zt_checkpoint检查点解密(转)
http://space.itpub.net/160455/viewspace-503246
zt_RBA-redo block address
如下概念非常重要,一定要仔细理解 Redo Byte Address (RBA)Recent entries in the redo thread of an Oracle instance are addressed using a 3-part redo byte address, or RBA. An RBA is comprised ...
zt_lunar_x$表中文译义
http://blog.csdn.net/lunar2000/article/details/193462
oracle hint_no_index
oracle hint系列9no_index1,如果指定了表中一个索引,表中其它索引仍可选用2,如果指定了表中所有的索引,不会使用表中所有的索引3,如果未指定索引,不会使用表中所有的索引,即会走此表的全表扫描4,如果同时指定...
oracle hint_no_parallel_no_parallel_index
oracle hint1,no_parallel 1,适用于create 或alter开启表的并行,禁用其并行功能SQL> create table t_parallel(a int) parallel 3;表已创建。SQL> explain plan for select a from t_parallel;已解释。...
oracle hint_no_push_pred_no_push_subq
no_push_pred 1,不会把连接谓词推入视图或子查询内部 2,oracle优化器默认会把连接谓词推入子查询内部SQL> explain plan for select * from emp,(select mgr from emp) v where emp.mgr=v.mgr an...
oracle dump函数解析_字符集
http://wenku.baidu.com/view/62e707a2b0717fd5360cdc19.html
zt_一样的delete语句,不一样的执行时间
http://www.os2ora.com/same-delete-statement-different-elasped-time/ 小结:1,分析大牛的处理问题思路 2,基本概念一定要理解透彻...