转贴_push_subq_sql tuning
http://yumianfeilong.com/html/2010/03/18/418.html
oracle hint use_merge提示的hint优化select insert性能
如下sql运行非常慢insert /*+APPEND*/ into deal_order_user_choose_tmp nologging ( ORDER_ID,--订单ID varchar2(100) VARCHAR2(80) &nbs...
wps2012表格列转行
编写迁移存储过程,因为代码逻辑调整要注掉诸多列,因人工操作,难免insert与select对应出现错误.一调试提示:PL/SQL: ORA-00947: 没有足够的值. 肯定是select与in...
oracle函数测试小记
工作要有到函数,查阅之前blog中的笔记,测试如下:create or replace function func_get_asset_id/* 过程、函数简要描述信息 ********************************************************** *...
oracle10g_11g_绑定变量bind_与最优执行计划explain plan
1,测试sql绑定变在捕获且是不同的绑定变时值时,执行计划的变化情况小结:短速不会在视图中记录绑定变量的数据 既然绑定变量对于性能影响很大,如何处理此问题SQL> create table t_bind_diff(bind_id i...
转贴_Sequence引起的row cache lock
http://www.dbaroad.me/archives/2009/01/sequence-row-cache-lock.html
转贴_用hanganalyze解决row cache lock
http://www.oracleblog.org/working-case/deal-with-row-cache-lock/
2012-11-24星期六加班一天
2012-11-24星期六加班一天,经项目经理批准刘; 以为特记!
转贴oracle直方图histogram(二)
http://hi.baidu.com/goodlisf/item/e374242dc040bd0872863e08
oracle直方图histogram小记(一)
测试直方图的用法1,直方图的概念 直方图有两种类别,等频直方图与等高直方图。 默认的,如果一个倾斜列上的唯一值超过了254个,那么ORACLE会对此列建立等高直方图,否则建立等频直方图。 何谓...
oracle如何彻底kill掉会话及os操作系统资源
http://blog.chinaunix.net/uid-10951-id-1762465.html
转贴_使用10046事件获取SQL语句中绑定变量的具体值
http://space.itpub.net/519536/viewspace-692196
oracle bind value peeking绑定变量窥视
SQL> var a number;SQL> exec :a:=10;PL/SQL 过程已成功完成。SQL> select * from dept where deptno=:a; DEPTNO DNAME LOC ...
expdp_10g_11g_相关选项测试小记
SQL> create user expdp_user identified by system account unlock;用户已创建。SQL> grant resource,connect to expdp_user;授权成功。SQL> spoofSP2-0042: 未知命令 "spoof" - 其余行忽略。SQL> spool当...
转贴_字符串分隔_拆分
http://atgc.itpub.net/post/22412/217030 create or replace type acc_type as object(acc varchar2(50))/create or replace type acc_table as table of acc_type/create or replace function str2ta...
oracle procedure输入参数为date日期小记
create or replace procedure proc_tuning(in_order_id int,in_order_date date,out_refcursor out sys_refcursor)isv_sql varchar2(4000);begin v_sql:='select * from t_orderbill where '; i...
oracle10g_11g expdp_impdp可以灵活导出导入特定对象类型procedure小记
8,仅导出特定对象类型procedure expdp scott/system@orcl dumpfile=dir_scott:expdp_20121121_scott_procedure.dmp logfile=dir_scott:expdp_20121121_scott_procedure.log schemas=scott include=procedure...
通过dba_hist_sqltext 等字典分析生产库某sql时快时慢
1,查找历史sqlselect * from dba_hist_sqltext where sql_text like '%PORTAL_ORDERBILL%' and sql_text like '%PORTAL_CONSIGNEE%';2,查找历史sql的执行计划是否发生过变化,并在何时发生变化select a.INST...
oracl10g以上通过v$sql_plan查找sql的执行计划是否发生变化
--查找某个sql的执行计划是否发生了变化select vp.SQL_ID from v$sql_plan vp where vp.OBJECT_OWNER='SCOTT' group by vp.SQL_ID having count(vp.PLAN_HASH_VALUE)>1
oracle单条sql与plsql rowid插入记录小记
SQL> create table t_rowid as select * from dba_objects;表已创建。SQL> commit;提交完成。SQL> insert into t_rowid select * from t_rowid;已创建3193984行。SQL> commit;提交完成。SQL> select count(*) from t...