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 ...
zt_Oracle事务rollback回滚时间估算
http://www.ssc.stn.sh.cn/html/zsk/ITyw/2012-04/5819.html
zt_Oracle事务rollback回滚时间估算
http://www.ssc.stn.sh.cn/html/zsk/ITyw/2012-04/5819.html
oracle_16进制与10进制转换小示例
--16进制转10进制,用to_number,里面的参数是16进制的数据,且参数用单引号括起SQL> select to_number('ff','xx') from dual; TO_NUMBER('FF','XX')-------------------- &...
oracle dml产生undo的区别小测试
--查询某个sql对应事务产生的undo数据块select sid, action, module from v$session where type = 'USER' AND SCHEMANAME = 'SYS';select vt.used_ublk from v$transact...
zt_Oracle9i,10g,11g 使用绑定变量的区别及与cursor_sharing的关系_自适应游标共享
http://space.itpub.net/35489/viewspace-683646
zt_如何清除shared_pool共享池中某个特定sql_令其重新解析
http://space.itpub.net/8984272/viewspace-619964
oracle存储过程procedure_输入参数varchar2与char报错
create or replace procedure proc_bulk_table(x char(1))as v_number pls_integer; v_cnt pls_integer; v_begin pls_integer; v_receive char(1); begin &...
oracle sql_not exists与null的测试
调试存储过程时,发现产品表中许多列的值可能为null,导致not exists产生结果与所期不符测试如下--构建两个同样表结构的表SQL> desc t_null_column; &n...
oracle10g_hint类型及分类
oracle hint1,hint类型 1,适用于单表,如:index和use_nl 2,用于多表,如:leading,use_nl(table1 table2)其实是use_nl(table1)和use_nl(table2)的缩写 3,用于查询块:如...
merge into_目标表匹配列重复与源表匹配表重复的区别
SQL> select * from t_source; &n...