摘要:
db file sequential read等待事件有3个参数:file#,first block#,和block数量。这个等待事件有3个参数P1,P2,P3,其中P1代表Oracle要读取的文件的绝对文件号,P2代表Oracle从这个文件中开始读取的起始数据块号,P3代表读取的BLOCK数量,通... 阅读全文
摘要:
/*+ ordered use_nl(t2) index(t2) */ 阅读全文
摘要:
改为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... 阅读全文
摘要:
declare v_number NUMBER; v_number2 NUMBER;beginexecute immediate 'truncate table t2';insert into t2 select count(*) from dual;commit;begininsert into... 阅读全文
摘要:
declare v_number NUMBER; v_number2 NUMBER;beginselect count(*) into v_number from dual;DBMS_OUTPUT.PUT_LINE('table YJBZH_GRXDFHZMXJL此时记录数为'||v_number)... 阅读全文
摘要:
SQL_ID 4g70n3k9bqc5v, child number 0-------------------------------------MERGE INTO YJBZH_GRXDFHZMXJL GRXDFHZMXJL USING ( SELECT A.AGMT_ID AS AGMT_ID,... 阅读全文
摘要:
今天我要做一个SQL调优,监控该SQL, 利用ASH 监控 该SQL是在sid=4848 上面跑的db file sequential read等待事件有3个参数:file#,first block#,和block数量。这个等待事件有3个参数P1,P2,P3,其中P1代表Oracle要读取的文件的绝... 阅读全文
摘要:
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 ... 阅读全文
摘要:
SQL> select ename||q'['aa']' from emp where deptno=10;ENAME||Q'['AA'--------------CLARK'aa'KING'aa'MILLER'aa'SQL> select ename||''''||'aa'||'''' from ... 阅读全文
摘要:
另外查了下v$undostat,发现begin_time已经很久没有改变,BEGIN_TIME END_TIME MAXQUERYLEN MAXCONCURRENCY UNEXPIREDBLKS EXPIREDBLKSBEGIN_TIMEDATEIdentifies the beginning of... 阅读全文