上一页 1 ··· 159 160 161 162 163 164 165 166 167 ··· 177 下一页
摘要: db file sequential read等待事件有3个参数:file#,first block#,和block数量。这个等待事件有3个参数P1,P2,P3,其中P1代表Oracle要读取的文件的绝对文件号,P2代表Oracle从这个文件中开始读取的起始数据块号,P3代表读取的BLOCK数量,通... 阅读全文
posted @ 2014-03-17 14:31 czcb 阅读(182) 评论(0) 推荐(0) 编辑
摘要: /*+ ordered use_nl(t2) index(t2) */ 阅读全文
posted @ 2014-03-13 13:34 czcb 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 改为MERGE /*+ordered*/ INTO YJBZH_GRXDFHZMXJL GRXDFHZMXJL USING ( SELECT A.AGMT_ID AS AGMT_ID, B.CUST_NAME AS CUST_NAME FROM DWF.F_AGT_CADB_BOOK_H A, DW... 阅读全文
posted @ 2014-03-13 11:30 czcb 阅读(172) 评论(0) 推荐(0) 编辑
摘要: declare v_number NUMBER; v_number2 NUMBER;beginexecute immediate 'truncate table t2';insert into t2 select count(*) from dual;commit;begininsert into... 阅读全文
posted @ 2014-03-12 21:39 czcb 阅读(280) 评论(0) 推荐(0) 编辑
摘要: declare v_number NUMBER; v_number2 NUMBER;beginselect count(*) into v_number from dual;DBMS_OUTPUT.PUT_LINE('table YJBZH_GRXDFHZMXJL此时记录数为'||v_number)... 阅读全文
posted @ 2014-03-12 21:22 czcb 阅读(258) 评论(0) 推荐(0) 编辑
摘要: SQL_ID 4g70n3k9bqc5v, child number 0-------------------------------------MERGE INTO YJBZH_GRXDFHZMXJL GRXDFHZMXJL USING ( SELECT A.AGMT_ID AS AGMT_ID,... 阅读全文
posted @ 2014-03-12 13:03 czcb 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 今天我要做一个SQL调优,监控该SQL, 利用ASH 监控 该SQL是在sid=4848 上面跑的db file sequential read等待事件有3个参数:file#,first block#,和block数量。这个等待事件有3个参数P1,P2,P3,其中P1代表Oracle要读取的文件的绝... 阅读全文
posted @ 2014-03-12 11:06 czcb 阅读(355) 评论(0) 推荐(0) 编辑
摘要: SQL> drop table test1 purge;Table dropped.SQL> create table test1 as select * from dba_objects where 1=2;Table created.SQL> insert into test1 select ... 阅读全文
posted @ 2014-03-12 10:32 czcb 阅读(242) 评论(0) 推荐(0) 编辑
摘要: SQL> select ename||q'['aa']' from emp where deptno=10;ENAME||Q'['AA'--------------CLARK'aa'KING'aa'MILLER'aa'SQL> select ename||''''||'aa'||'''' from ... 阅读全文
posted @ 2014-03-11 14:14 czcb 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 另外查了下v$undostat,发现begin_time已经很久没有改变,BEGIN_TIME END_TIME MAXQUERYLEN MAXCONCURRENCY UNEXPIREDBLKS EXPIREDBLKSBEGIN_TIMEDATEIdentifies the beginning of... 阅读全文
posted @ 2014-03-11 10:18 czcb 阅读(214) 评论(0) 推荐(0) 编辑
上一页 1 ··· 159 160 161 162 163 164 165 166 167 ··· 177 下一页