Log file switch (archiving needed)

Hi,
My database is on windows 2003, 10.2.0.4, recently I have been getting the following wait events on a regular basis, LOG FILE SWITCH (ARCHIVING NEEDED)...My redo files are 50MB with 5 groups...I have changed the log_archive_max_process from 2 to 3, but still the problem persists...can anyone help me regarding the same?As to what other changes can be done?and this happens only during the time of BOD and EOD.
Thanks,
AJ

Hi Jonathan,
Thanks for the reply, I am not worried abt the archiving thing for the time being,as my database was working absolutely fine before the new query that was added in the Begin of Day process. So I am trying to tweak the query.
Folllowing is the procedure which gets called during the Begin of Day:
CREATE OR REPLACE procedure Lms_Pr_Bod_Update_Tmp (p_import_type in number)
as
v_update_script varchar2(2000);
v_upper_start_tag varchar2(10); -- san_22-apr-2009
v_upper_end_tag varchar2(10); -- san_22-apr-2009
begin
declare
cursor cur_update_tmp is
select -- this query is for all of lov type of data
a.destination_column_name, a.column_to_update , b.mapped_lov_syscode lov_syscode,
c.destination_table_name,'LOV_DATA_SYSCODE' select_attribute,'LMS_LOV_DATA_MAP' select_table,
'SOURCE_UNIQUE_ID' where_condition,'LOV_SYSCODE' lov_condition,'LOV' att_type
from lms_import_column_info a
inner join lms_attribute_master b
on a.attribute_syscode = b.attribute_syscode
and (a.column_to_update is not null or trim(a.column_to_update) = '')
inner join lms_import_type_master c
on a.import_type_syscode = c.import_type_syscode
where a.import_type_syscode = p_import_type
and b.mapped_lov_syscode is not null
union all
select -- this query is for all of dummy attribute
a.destination_column_name, a.column_to_update , 1 lov_syscode,
d.destination_table_name,c.attribute_name_internal select_attribute,
case
when b.applicable_for = 'INS' then 'LMS_ENTITY_INSTRUMENT'
when b.applicable_for = 'ACC' then 'LMS_ENTITY_ACCOUNT'
end case,
b.attribute_name_internal where_condition,'1' lov_condition,'DUMMY' att_type
from lms_import_column_info a
inner join lms_attribute_master b
on a.attribute_syscode = b.attribute_syscode
and (a.column_to_update is not null and trim(a.column_to_update) <> ' ')
and b.attribute_type = 'DUM' and dummy_column_type = 'FILT'
inner join lms_attribute_master c
on b.dummy_mapped_attribute_pk = c.attribute_syscode
inner join lms_import_type_master d
on a.import_type_syscode = d.import_type_syscode
where a.import_type_syscode = p_import_type;
begin
v_upper_start_tag := 'UPPER('; -- san_22-apr-2009
v_upper_end_tag := ')';          -- san_22-apr-2009
for cr_update_tmp in cur_update_tmp loop
if p_import_type = 4 and cr_update_tmp.column_to_update IN ('INSTRUMENT_SYSCODE','ACCOUNT_SYSCODE')
and Upper(cr_update_tmp.destination_table_name) = 'LMS_ENTITY_TRANSACTION_TMP' then
v_upper_start_tag := ''; -- san_22-apr-2009
v_upper_end_tag := ''; -- san_22-apr-2009
end if;
v_update_script := 'UPDATE ' || cr_update_tmp.destination_table_name || ' A SET ' || ' A.' || cr_update_tmp.column_to_update || ' =
(select ' || CR_UPDATE_TMP.SELECT_ATTRIBUTE || ' from ' || CR_UPDATE_TMP.SELECT_TABLE || '
where ' || V_UPPER_START_TAG || CR_UPDATE_TMP.WHERE_CONDITION || V_UPPER_END_TAG || '=' || V_UPPER_START_TAG || CR_UPDATE_TMP.DESTINATION_COLUMN_NAME || V_UPPER_END_TAG ||
' AND ' || cr_update_tmp.lov_condition || ' = ' || cr_update_tmp.lov_syscode || ')';
v_upper_start_tag := 'UPPER('; v_upper_end_tag := ')';
execute immediate (v_update_script);
end loop;
end;
end;
Following is the flow of the query:
1. A temporary table is created where in the updates can be made.
2. Rows are inserted into ths table from the source table
3. Updates are performed on this table
4. Updates are then copied to the source table
5. This procedure is alled twice, so before getting called for the second time, table is truncated.
Thanks,
AJ

Similar Messages

  • RAC 10.2.0.4, event gc cr block busy & log file switch

    hello everybody,
    i would like to know if there is any dependencies between gc cr block busy and log switch in the one node of the rac cluster.
    i had a select and its completion time lasted 12 secs instead of 1, the start time of the select is the start time of the log switch on the node.
    But when i looked into the active session history the session which was standing for that select had been waiting gc cr block busy instead log file switch completion.
    While looking to the Google resources i ve noticed that "The gc current block busy and gc cr block busy wait events indicate that the
    remote instance received the block after a remote instance processing delay.
    In most cases, this is due to a log flush".
    I would be really greatfull if anybody would be able to locate the initial dependancy i ve mantioned and explain the cause of the issue as i can not quite get why the selection took so long.
    Thank you in advance!

    Did you told "log file switch"?
    you mean log file switch (checkpoint incomplete) or log file switch (archiving needed) or log file switch/archive or log file switch (clearing log file) or log file switch completion or log switch/archive
    however a instance can wait ... if you find high values about waiting, you may tune your database.
    please show us
    - Top 5 Wait Events
    SQL> alter session set nls_date_format='YYYY/MM/DD HH24:MI:SS';
    SQL> select name, completion_time from V$ARCHIVED_LOG order by completion_time ;
    Check How often do you switch logfile to archive log? ... Every switch log file... you may find "log file switch" waiting
    I see... you no high DML activitiy.
    But Please check High segment + object and query on AWR report... (example: Segments by Physical Writes )
    just investigate
    Good Luck

  • Log file switch (checkpoint not complete)

    HI,
    I am using Oracle 9.2 on rhel
    IN the statspack report I am getting one of the event I.e log file switch (checkpoint not complete).Statspack duration is about 1.5 hrs...any suggestion
    Instance Efficiency Percentages (Target 100%)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                Buffer Nowait %:   99.97       Redo NoWait %:     98.31
                Buffer  Hit   %:   95.84    In-memory Sort %:    100.00
                Library Hit   %:   99.57        Soft Parse %:     98.51
             Execute to Parse %:   72.70         Latch Hit %:     99.71
    Parse CPU to Parse Elapsd %:   53.15     % Non-Parse CPU:     99.10
    Shared Pool Statistics        Begin   End
                 Memory Usage %:   93.66   93.74
        % SQL with executions>1:   60.41   60.94
      % Memory for SQL w/exec>1:   60.89   61.66
    Top 5 Timed Events
    ~~~~~~~~~~~~~~~~~~                                                     % Total
    Event                                               Waits    Time (s) Ela Time
    log file switch (checkpoint incomplete)            35,936      35,100    42.81
    enqueue                                             6,144      16,684    20.35
    buffer busy waits                                  17,190      13,346    16.28
    wait for a undo record                             51,967       4,931     6.01
    ARCH wait on SENDREQ                                  877       4,813     5.87
              -------------------------------------------------------------

    Please find the whole stats[pack report
    {code}
    STATSPACK report for
    DB Name DB Id Instance Inst Num Release Cluster Host
    ICAI 1504443695 icai 1 9.2.0.8.0 NO icaidb.icai.
    org
    Snap Id Snap Time Sessions Curs/Sess Comment
    Begin Snap: 70 04-Aug-10 14:27:14 162 34.7
    End Snap: 73 04-Aug-10 15:30:43 254 55.4
    Elapsed: 63.48 (mins)
    Cache Sizes (end)
    ~~~~~~~~~~~~~~~~~
    Buffer Cache: 4,928M Std Block Size: 8K
    Shared Pool Size: 1,312M Log Buffer: 1,024K
    Load Profile
    ~~~~~~~~~~~~ Per Second Per Transaction
    Redo size: 96,260.76 53,769.94
    Logical reads: 13,998.20 7,819.20
    Block changes: 1,227.83 685.85
    Physical reads: 592.13 330.76
    Physical writes: 19.93 11.13
    User calls: 313.12 174.91
    Parses: 31.41 17.55
    Hard parses: 0.47 0.26
    Sorts: 11.61 6.49
    Logons: 0.11 0.06
    Executes: 115.04 64.26
    Transactions: 1.79
    % Blocks changed per Read: 8.77 Recursive Call %: 26.28
    Rollback per transaction %: 5.43 Rows per Sort: 472.17
    Instance Efficiency Percentages (Target 100%)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Buffer Nowait %: 99.97 Redo NoWait %: 98.31
    Buffer Hit %: 95.84 In-memory Sort %: 100.00
    Library Hit %: 99.57 Soft Parse %: 98.51
    Execute to Parse %: 72.70 Latch Hit %: 99.71
    Parse CPU to Parse Elapsd %: 53.15 % Non-Parse CPU: 99.10
    Shared Pool Statistics Begin End
    Memory Usage %: 93.66 93.74
    % SQL with executions>1: 60.41 60.94
    % Memory for SQL w/exec>1: 60.89 61.66
    Top 5 Timed Events
    ~~~~~~~~~~~~~~~~~~ % Total
    Event Waits Time (s) Ela Time
    log file switch (checkpoint incomplete) 35,936 35,100 42.81
    enqueue 6,144 16,684 20.35
    buffer busy waits 17,190 13,346 16.28
    wait for a undo record 51,967 4,931 6.01
    ARCH wait on SENDREQ 877 4,813 5.87
    Wait Events for DB: ICAI Instance: icai Snaps: 70 -73
    -> s - second
    -> cs - centisecond - 100th of a second
    -> ms - millisecond - 1000th of a second
    -> us - microsecond - 1000000th of a second
    -> ordered by wait time desc, waits desc (idle events last)
    Avg
    Total Wait wait Waits
    Event Waits Timeouts Time (s) (ms) /txn
    log file switch (checkpoint 35,936 35,886 35,100 977 5.3
    enqueue 6,144 5,660 16,684 2716 0.9
    buffer busy waits 17,190 5,325 13,346 776 2.5
    wait for a undo record 51,967 49,137 4,931 95 7.6
    ARCH wait on SENDREQ 877 0 4,813 5489 0.1
    log file switch (archiving n 3,705 3,653 3,600 972 0.5
    db file sequential read 600,718 0 621 1 88.1
    log file sync 6,826 140 561 82 1.0
    log file parallel write 7,052 0 421 60 1.0
    log buffer space 1,361 16 230 169 0.2
    db file scattered read 289,115 0 212 1 42.4
    switch logfile command 116 23 160 1377 0.0
    wait for stopper event to be 1,924 1,111 123 64 0.3
    control file parallel write 1,355 0 63 46 0.2
    PX Deq: Txn Recovery Start 1,253 0 36 29 0.2
    SQL*Net break/reset to clien 560 0 20 36 0.1
    local write wait 18 15 17 918 0.0
    log file switch completion 21 7 9 442 0.0
    control file sequential read 237,021 0 6 0 34.8
    log file sequential read 437 0 6 13 0.1
    BFILE get length 297 0 2 7 0.0
    latch free 485 67 2 4 0.1
    BFILE read 1,023 0 1 1 0.2
    log file single write 18 0 0 16 0.0
    SQL*Net more data to client 13,785 0 0 0 2.0
    process startup 10 0 0 9 0.0
    control file single write 10 0 0 4 0.0
    row cache lock 34 0 0 0 0.0
    db file single write 1 0 0 14 0.0
    LGWR wait for redo copy 89 0 0 0 0.0
    PX Deq: Signal ACK 3 0 0 4 0.0
    PX Deq: Join ACK 5 0 0 1 0.0
    BFILE open 106 0 0 0 0.0
    db file parallel read 25 0 0 0 0.0
    async disk IO 1,383 0 0 0 0.2
    db file parallel write 255 0 0 0 0.0
    BFILE internal seek 1,023 0 0 0 0.2
    direct path read 843 0 0 0 0.1
    BFILE closure 106 0 0 0 0.0
    undo segment extension 844 844 0 0 0.1
    direct path write 96 0 0 0 0.0
    SQL*Net message from client 1,188,764 0 445,926 375 174.3
    virtual circuit status 125 125 3,660 29277 0.0
    wakeup time manager 86 86 2,451 28506 0.0
    PX Idle Wait 755 750 1,466 1941 0.1
    jobq slave wait 60 60 176 2930 0.0
    SQL*Net more data from clien 3,035 0 1 0 0.4
    SQL*Net message to client 1,188,882 0 1 0 174.3
    Wait Events for DB: ICAI Instance: icai Snaps: 70 -73
    -> s - second
    -> cs - centisecond - 100th of a second
    -> ms - millisecond - 1000th of a second
    -> us - microsecond - 1000000th of a second
    -> ordered by wait time desc, waits desc (idle events last)
    Avg
    Total Wait wait Waits
    Event Waits Timeouts Time (s) (ms) /txn
    Background Wait Events for DB: ICAI Instance: icai Snaps: 70 -73
    -> ordered by wait time desc, waits desc (idle events last)
    Avg
    Total Wait wait Waits
    Event Waits Timeouts Time (s) (ms) /txn
    ARCH wait on SENDREQ 877 0 4,813 5489 0.1
    buffer busy waits 2,164 1,176 1,184 547 0.3
    log file parallel write 7,052 0 421 60 1.0
    wait for stopper event to be 1,924 1,111 123 64 0.3
    control file parallel write 1,301 0 57 44 0.2
    enqueue 393 0 10 26 0.1
    control file sequential read 234,452 0 6 0 34.4
    log file sequential read 431 0 6 13 0.1
    db file scattered read 124 0 1 10 0.0
    log buffer space 40 0 1 13 0.0
    log file single write 15 0 0 20 0.0
    db file sequential read 20 0 0 9 0.0
    process startup 7 0 0 8 0.0
    latch free 19 3 0 2 0.0
    LGWR wait for redo copy 89 0 0 0 0.0
    PX Deq: Signal ACK 3 0 0 4 0.0
    PX Deq: Join ACK 5 0 0 1 0.0
    db file parallel write 255 0 0 0 0.0
    async disk IO 793 0 0 0 0.1
    rdbms ipc reply 1 0 0 0 0.0
    direct path read 88 0 0 0 0.0
    direct path write 88 0 0 0 0.0
    rdbms ipc message 50,357 3,296 16,467 327 7.4
    pmon timer 1,271 1,251 3,653 2874 0.2
    smon timer 64 0 2,302 35963 0.0
    SQL ordered by Gets for DB: ICAI Instance: icai Snaps: 70 -73
    -> End Buffer Gets Threshold: 10000
    -> Note that resources reported for PL/SQL includes the resources used by
    all SQL statements called within the PL/SQL code. As individual SQL
    statements are also reported, it is possible and valid for the summed
    total % to exceed 100
    CPU Elapsd
    Buffer Gets Executions Gets per Exec %Total Time (s) Time (s) Hash Value
    5,652,833 456 12,396.6 10.6 20.04 1062.67 285625578
    SELECT /*+ INDEX(OT_DAK_ENTRY_DETL IDM_DED_NAME) */DEH_TXN_CODE
    ,DEH_NO FROM OT_DAK_ENTRY_HEAD,OT_DAK_ENTRY_DETL WHERE DEH_SY
    S_ID = DED_DEH_SYS_ID AND TRUNC(DEH_APPLICATION_DT) = :b1 AND
    DED_DAK_CODE = :b2 AND DED_NAME LIKE LTRIM(RTRIM(:b3)) || '%'
    AND NVL(DED_INSTR_NO,'XXXXXX') = NVL(:b4,'XXXXXX') AND TRUNC(
    5,096,348 189 26,964.8 9.6 23.64 23.25 1772835295
    select decode(level,1,'',2,' ',3,' ',4,' ',5,'
    ', ' ') || decode(:1,'ENG',menu_option_desc,menu_opt
    ion_desc_bl) "OPTION", menu_parent_id "PARENT", menu_action_type
    "TYPE",menu_action "ACTION", decode(level,1,'',2,' ',3,' ',4,'
    ',5,' ', ' ') ||decode(menu_action_type, 'M', '+', 'o'
    4,894,185 96 50,981.1 9.2 7.89 10.11 23088203
    INSERT INTO OT_MEM_FEE_COL_DETL(MFCD_FEE_TYPE,MFCD_CONDON_FEE_YN
    ,MFCD_EXCESS_USED_YN,MFCD_CONDN_CODE,MFCD_PM_CODE,MFCD_CURR_CODE
    ,MFCD_INSTR_NO,MFCD_INSTR_DT,MFCD_AMT,MFCD_BANK_CODE,MFCD_INSTR_
    TYPE,MFCD_BRANCH,MFCD_COLLECTION,MFCD_FM_DT,MFCD_TO_DT,MFCD_RES_
    CODE,MFCD_CR_UID,MFCD_CR_DT,MFCD_UPD_UID,MFCD_UPD_DT,MFCD_CONDON
    4,885,684 152 32,142.7 9.2 7.64 8.87 1007886847
    SELECT MIN(MFCH_NO) FROM OT_MEM_FEE_COL_HEAD, OT_MEM_FEE_COL_DET
    L WHERE MFCH_SYS_ID = MFCD_MFCH_SYS_ID AND MFCH_REF_NO = :B4 AND
    MFCH_REF_TXN_CODE = :B3 AND MFCD_INSTR_NO = :B2 AND MFCD_BANK_C
    ODE = :B1 AND MFCD_AMT > 0
    2,680,356 446 6,009.8 5.0 95.57 125.49 197211170
    SELECT /*+ INDEX(OT_STUDENT_FEE_COL_IPCC_HEAD OT_STUDENT_FEE_COL
    IPCCHEAD_UK01) */SFCH_SYS_ID,SFCH_DT,DECODE(NVL(SSTN_SRN,SFCH
    TEMPREF_NO),SSTN_SRN, NULL ,SFCH_TEMP_REF_NO) SFCH_TEMP_REF_NO
    ,NVL(SFCH_STUD_SRN,SSTN_SRN) SFCH_STUD_SRN,SFCH_COURSE_CODE,SFCH
    SCHEMECODE,SFCH_EXMP_STUD_YN,SFCH_EXMP_STUD_REASON,DEH_APPLICA
    2,288,204 1 2,288,204.0 4.3 54.31 59.36 3103356680
    DECLARE job BINARY_INTEGER := :job; next_date DATE := :mydate;
    broken BOOLEAN := FALSE; BEGIN BEGIN /*Quest SOO PPCM job */ qu
    est_ppcm_snapshot_pkg.take_snapshot; END; :mydate := next_date;
    IF broken THEN :b := 1; ELSE :b := 0; END IF; END;
    2,253,877 1 2,253,877.0 4.2 52.70 56.21 579012758
    DELETE FROM QUEST_PPCM_SQL_TEXT TXT WHERE INSTANCE_ID >= 0 AND N
    OT EXISTS (SELECT 1 FROM QUEST_PPCM_SQL_SNAPSHOT SNAP WHERE SNAP
    .SNAPSHOT_ID > 0 AND SNAP.INSTANCE_ID= TXT.INSTANCE_ID AND SNAP.
    SQL_ID = TXT.SQL_ID)
    1,656,006 24 69,000.3 3.1 10.00 24.26 4081782417
    SELECT PISH_COURSE_CODE FROM OV_STU_PAYINSLIP_IPCC_DTL WHERE
    PISH_BANK_CODE = :b1 AND PISH_NO BETWEEN :b2 AND :b3 AND PISD_
    CURR_CODE = :b4 AND PISH_REGION_CODE = :b5 ORDER BY 1
    SQL ordered by Gets for DB: ICAI Instance: icai Snaps: 70 -73
    -> End Buffer Gets Threshold: 10000
    -> Note that resources reported for PL/SQL includes the resources used by
    all SQL statements called within the PL/SQL code. As individual SQL
    statements are also reported, it is possible and valid for the summed
    total % to exceed 100
    CPU Elapsd
    Buffer Gets Executions Gets per Exec %Total Time (s) Time (s) Hash Value
    1,567,946 12 130,662.2 2.9 21.99 47.39 1585476974
    SELECT NVL(TO_CHAR(A.DEH_APPLICATION_DT,'DD/MM/RRRR'), NULL ),NV
    L(TO_CHAR(A.DEH_DT,'DD/MM/RRRR'), NULL ) FROM OT_DAK_ENTRY_HEA
    D A,OT_DAK_ENTRY_DETL B,OT_FIRM_NAME_APPR_HEAD C WHERE A.DEH_SY
    S_ID = B.DED_DEH_SYS_ID AND B.DED_DAK_SYS_ID = C.FNAH_DED_SYS_I
    D AND C.FNAH_SYS_ID = (SELECT MAX(B.FNAH_SYS_ID) FROM OT_FIR
    1,216,226 4 304,056.5 2.3 9.90 54.25 937031003
    SELECT TRIM(STUD_SRN)
    Q1_REGNO, TR
    IM(STUD_TEMP_REF_NO)
    Q1_TEMPNO, STUD_TITLE
    1,138,801 178 6,397.8 2.1 18.13 1009.80 1617597
    SELECT SRN,ACTIVITYDESCRIPTION,STATUS,DOCUMENTNO,DOCUMENTDATE FR
    OM OV_ART_TRANS_STATUS WHERE (SRN=:1) order by DOCUMENTDATE
    1,029,221 230 4,474.9 1.9 20.27 20.76 1838125769
    SELECT MRH_DT,MRH_FIRST_NAME,MRH_MIDDLE_NAME,MRH_SUR_NAME,MRH_ST
    ATUS FROM OM_MEM_REG_HEAD WHERE DECODE(:b1,1,MRH_MRN,MRH_MFCH
    TEMPREF_NO) = :b2
    778,949 52 14,979.8 1.5 20.32 21.85 4142254844
    SELECT LTRIM(RTRIM(DECODE(TIT_NAME,'MR.','CA.','MS.','CA.','MRS.
    ','CA.') || ' ' || MRH_FIRST_NAME || ' ' || MRH_MIDDLE_NAME
    || ' ' || MRH_SUR_NAME || ' ' || DECODE(MRH_APPR_UID, NULL ,
    NULL ,DECODE(MRH_MEM_STATUS,2, NULL ,DECODE(MRH_FELLOW_STATUS_YN
    ,'Y','FCA','ACA'))) || DECODE(MRH_RESI_STATUS,'A','
    755,893 517 1,462.1 1.4 90.43 89.07 1033584013
    SELECT DECODE(MFCD_FEE_TYPE,'M08',1,'M05',2,'M06',3,'M09',4,'M10
    ',5,'M11',6,'M12',7,'M07',8,'M13',9,'M14',10,'M15',11,'M04',12,'
    M03',13,'M02',14,'M01',15,'M21',16,'M22',17,'M23',18,'EXCESS',19
    ,20) FEE_SEQ,MFCD_FEE_TYPE FEE_TYPE,SUM(MFCD_AMT) AMOUNT FROM
    OT_MEM_FEE_COL_HEAD,OT_MEM_FEE_COL_DETL WHERE MFCH_SYS_ID = MFC
    751,010 1,090 689.0 1.4 28.61 31.41 1734754400
    SELECT ROWID,PIIPD_ICAI_EXAM_APPEARED,PIIPD_REG_NO,PIIPD_MTH,PII
    PD_YR,PIIPD_ROLL_NO,PIIPD_EXT_EXAM_APPEARED,PIIPD_EXAM_CODE_1,PI
    IPD_SUBJ_CODE_1,PIIPD_GROUP_1,PIIPD_ROLL_NO_1,PIIPD_LAST_PAPER_D
    T_1,PIIPD_EXAM_CODE_2,PIIPD_SUBJ_CODE_2,PIIPD_GROUP_2,PIIPD_ROLL
    SQL ordered by Reads for DB: ICAI Instance: icai Snaps: 70 -73
    -> End Disk Reads Threshold: 1000
    CPU Elapsd
    Physical Reads Executions Reads per Exec %Total Time (s) Time (s) Hash Value
    227,513 2 113,756.5 10.1 22.04 79.36 2837394537
    SELECT STUD_SRN,STUD_FIRST_NAME,STUD_MIDDLE_NAME,STUD_MAIDEN_NAM
    E,STUD_SURNAME,STUD_FATHER_NAME,STUD_BIRTH_DT,STUD_COMM_CODE,STU
    D_SEX,STUD_HANDICAPPED_YN,STUD_HANDICAPPED_REASON,STUD_LANG_CODE
    ,STUD_NATIONALITY_CODE,STUD_EMAIL,STUD_PERMNT_ADDR_LINE_1,STUD_P
    ERMNT_ADDR_LINE_2,STUD_PERMNT_ADDR_LINE_3,STUD_PERMNT_ADDR_LINE_
    220,939 12 18,411.6 9.8 21.99 47.39 1585476974
    SELECT NVL(TO_CHAR(A.DEH_APPLICATION_DT,'DD/MM/RRRR'), NULL ),NV
    L(TO_CHAR(A.DEH_DT,'DD/MM/RRRR'), NULL ) FROM OT_DAK_ENTRY_HEA
    D A,OT_DAK_ENTRY_DETL B,OT_FIRM_NAME_APPR_HEAD C WHERE A.DEH_SY
    S_ID = B.DED_DEH_SYS_ID AND B.DED_DAK_SYS_ID = C.FNAH_DED_SYS_I
    D AND C.FNAH_SYS_ID = (SELECT MAX(B.FNAH_SYS_ID) FROM OT_FIR
    198,343 2 99,171.5 8.8 5.82 46.25 1414719916
    UPDATE OM_MEM_REG_HEAD SET MRH_MRN=:b1 WHERE MRH_SYS_ID = :b2
    198,343 2 99,171.5 8.8 5.81 46.10 1414796677
    UPDATE OT_DAK_ACTV_HISTORY SET DAH_REG_NO = :B1 WHERE DAH_REG_NO
    = :B3 AND TRUNC(DAH_ACTV_ED_DT ) <= TRUNC(:B2 ) AND DAH_ACTV_ST
    ATUS = 'C'
    173,892 2 86,946.0 7.7 13.85 16.34 3262067067
    SELECT STUD_SRN,STUD_FIRST_NAME,STUD_MIDDLE_NAME,STUD_MAIDEN_NAM
    E,STUD_SURNAME,STUD_FATHER_NAME,STUD_BIRTH_DT,STUD_COMM_CODE,STU
    D_SEX,STUD_HANDICAPPED_YN,STUD_HANDICAPPED_REASON,STUD_LANG_CODE
    ,STUD_NATIONALITY_CODE,STUD_EMAIL,STUD_PERMNT_ADDR_LINE_1,STUD_P
    ERMNT_ADDR_LINE_2,STUD_PERMNT_ADDR_LINE_3,STUD_PERMNT_ADDR_LINE_
    112,038 9 12,448.7 5.0 9.23 10.14 2058267852
    SELECT ROWID,STUD_DT,STUD_TXN_CODE,STUD_NO,STUD_AMD_NO,STUD_REF_
    FROM,STUD_REF_TXN_CODE,STUD_REF_NO,STUD_TEMP_REF_NO,STUD_SRN,STU
    D_TITLE,STUD_STATUS,STUD_FIRST_NAME,STUD_MIDDLE_NAME,STUD_SURNAM
    E,STUD_MAIDEN_NAME,STUD_NAME_STATUS,STUD_FATHER_NAME,STUD_NATION
    ALITY_CODE,STUD_NATION_PROOF_ENCL_YN,STUD_SEX,STUD_HANDICAPPED_Y
    102,583 1 102,583.0 4.5 4.51 285.99 802587273
    SELECT ROWID,DEH_DT,DEH_TXN_CODE,DEH_NO,DEH_AMD_NO,DEH_REF_FROM,
    DEH_REF_TXN_CODE,DEH_REF_NO,DEH_REF_SYS_ID,DEH_REGION_CODE,DEH_A
    PPLICATION_DT,DEH_DOC_STATUS,DEH_STATUS,DEH_PRINT_STATUS,DEH_CLO
    STATUS,DEHSYS_ID,DEH_COMP_CODE,DEH_ACNT_YR,DEH_AMD_DT,DEH_AMD_
    UID,DEH_AMD_RES_CODE,DEH_REF_FROM_NUM,DEH_CR_UID,DEH_CR_DT,DEH_U
    98,825 3 32,941.7 4.4 6.70 6.66 2078892348
    /*SELECT STUD_SRN
    Q1_RE
    GNO, O_GET_OLD_REG_NO(STUD_SRN, :BP_COURSE) OLD_NO, TIT_NAME||'
    '||STUD_FIRST_NAME||' '||STUD_MIDDLE_NAME||' '||STUD_SURNAME
    Q1_NAME, LTRIM(RTRIM(A.STUD_CORRES_ADDR_LINE_1 ))||DECO
    96,187 2 48,093.5 4.3 10.78 16.53 3301514821
    SELECT MFCD_PAYIN_SLIP_NO MFCD_PAYIN_SLIP_NO
    , DECODE(MFCD_BANK_CODE ,'ICI',1,2) ICI_FIRST
    , DECODE(MFCD_INSTR_TYPE,'S',1,'L
    SQL ordered by Reads for DB: ICAI Instance: icai Snaps: 70 -73
    -> End Disk Reads Threshold: 1000
    CPU Elapsd
    Physical Reads Executions Reads per Exec %Total Time (s) Time (s) Hash Value
    ',2,'O',3,4) TYPE_FIRST , MFCD_PAYIN_SLIP_DT , FM_BANK
    .BANK_NAME , BAD_ADDR1 ADD1
    80,683 4 20,170.8 3.6 9.90 54.25 937031003
    SELECT TRIM(STUD_SRN)
    Q1_REGNO, TR
    IM(STUD_TEMP_REF_NO)
    Q1_TEMPNO, STUD_TITLE
    77,972 8 9,746.5 3.5 8.92 8.84 2241526944
    SELECT ROWID,STUD_DT,STUD_TXN_CODE,STUD_NO,STUD_AMD_NO,STUD_REF_
    FROM,STUD_REF_TXN_CODE,STUD_REF_NO,STUD_TEMP_REF_NO,STUD_SRN,STU
    D_TITLE,STUD_STATUS,STUD_FIRST_NAME,STUD_MIDDLE_NAME,STUD_SURNAM
    E,STUD_MAIDEN_NAME,STUD_NAME_STATUS,STUD_FATHER_NAME,STUD_NATION
    ALITY_CODE,STUD_NATION_PROOF_ENCL_YN,STUD_SEX,STUD_HANDICAPPED_Y
    75,667 3 25,222.3 3.4 3.34 25.09 3345305231
    SELECT DISTINCT SFCH_STUD_SRN FROM OT_STUDENT_FEE_COL_HEAD A,O
    T_STUDENT_FEE_COL_DETL B WHERE B.SFCD_SFCH_SYS_ID = A.SFCH_SYS_
    ID AND B.SFCD_INSTR_BANK_CODE = :b1 AND B.SFCD_INSTR_NO = :b2
    72,658 52 1,397.3 3.2 20.32 21.85 4142254844
    SELECT LTRIM(RTRIM(DECODE(TIT_NAME,'MR.','CA.','MS.','CA.','MRS.
    ','CA.') || ' ' || MRH_FIRST_NAME || ' ' || MRH_MIDDLE_NAME
    || ' ' || MRH_SUR_NAME || ' ' || DECODE(MRH_APPR_UID, NULL ,
    NULL ,DECODE(MRH_MEM_STATUS,2, NULL ,DECODE(MRH_FELLOW_STATUS_YN
    ,'Y','FCA','ACA'))) || DECODE(MRH_RESI_STATUS,'A','
    48,619 3 16,206.3 2.2 4.19 4.11 496772197
    SELECT ROWID,STUD_DT,STUD_TXN_CODE,STUD_NO,STUD_AMD_NO,STUD_REF_
    FROM,STUD_REF_TXN_CODE,STUD_REF_NO,STUD_TEMP_REF_NO,STUD_SRN,STU
    D_TITLE,STUD_STATUS,STUD_FIRST_NAME,STUD_MIDDLE_NAME,STUD_SURNAM
    E,STUD_MAIDEN_NAME,STUD_NAME_STATUS,STUD_FATHER_NAME,STUD_NATION
    ALITY_CODE,STUD_NATION_PROOF_ENCL_YN,STUD_SEX,STUD_HANDICAPPED_Y
    48,063 230 209.0 2.1 20.27 20.76 1838125769
    SELECT MRH_DT,MRH_FIRST_NAME,MRH_MIDDLE_NAME,MRH_SUR_NAME,MRH_ST
    ATUS FROM OM_MEM_REG_HEAD WHERE DECODE(:b1,1,MRH_MRN,MRH_MFCH
    SQL ordered by Executions for DB: ICAI Instance: icai Snaps: 70 -73
    -> End Executions Threshold: 100
    CPU per Elap per
    Executions Rows Processed Rows per Exec Exec (s) Exec (s) Hash Value
    38,614 38,614 1.0 0.00 0.00 1741347688
    SELECT SYSDATE FROM SYS.DUAL
    12,490 12,488 1.0 0.00 0.00 2614155871
    SELECT DECODE(:b1,'L',DECODE(:b2,'ENG',STATUS_NAME,STATUS_BL_NAM
    E),DECODE(:b2,'ENG',STATUS_SHORT_NAME,STATUS_BL_SHORT_NAME)) STA
    TUS_DESC,STATUS_FRZ_FLAG_NUM FROM OM_STATUS WHERE STATUS_CODE
    = :b4
    8,629 8,628 1.0 0.00 0.00 1644340447
    SELECT DECODE(:b1,'L',DECODE(:b2,'ENG',FEE_TYPE_NAME,FEE_TYPE_BL
    NAME),DECODE(:b2,'ENG',FEETYPE_SHORT_NAME,FEE_TYPE_BL_SHORT_NA
    ME)) FEE_NAME,FEE_TYPE_FRZ_FLAG_NUM FROM OM_FEE_TYPE WHERE FE
    E_TYPE_CODE = :b4
    7,275 7,272 1.0 0.00 0.34 3716207873
    update seq$ set increment$=:2,minvalue=:3,maxvalue=:4,cycle#=:5,
    order$=:6,cache=:7,highwater=:8,audit$=:9,flags=:10 where obj#=:
    1
    6,293 6,283 1.0 0.00 0.00 2804237544
    SELECT DECODE(:b1,'L',DECODE(:b2,'ENG',CITY_NAME,CITY_BL_NAME),D
    ECODE(:b2,'ENG',CITY_SHORT_NAME,CITY_BL_SHORT_NAME)) CITY_NAME,C
    ITY_TALUK_CODE,CITY_DIST_CODE,CITY_STATE_CODE,CITY_REGION_CODE,C
    ITY_FRZ_FLAG_NUM FROM OM_CITY WHERE CITY_CODE = :b4
    6,221 6,221 1.0 0.00 0.00 484036617
    SELECT DAH_SYS_ID.NEXTVAL FROM DUAL
    6,221 6,221 1.0 0.00 0.00 2945494810
    SELECT COUNT(DAH_SYS_ID) FROM OT_DAK_ACTV_HISTORY WHERE DAH_ACTV
    TYPE = :B2 AND DAHTXN_SYS_ID = :B1
    5,979 5,979 1.0 0.00 0.00 35936114
    SELECT STUD_DOC_STATUS FROM OM_STUDENT_HEAD WHERE STUD_SYS_ID
    = :b1
    4,637 4,637 1.0 0.00 0.00 1237293873
    SELECT DECODE(:b1,'L',DECODE(:b2,'ENG',COU_NAME,COU_BL_NAME),DEC
    ODE(:b2,'ENG',COU_SHORT_NAME,COU_BL_SHORT_NAME)) COU_NAME,COU_FR
    Z_FLAG_NUM FROM OM_COUNTRY WHERE COU_CODE = :b4
    4,404 1,276 0.3 0.00 0.00 1829426463
    SELECT NVL(TAU_FROM_VALUE,0), NVL(TAU_TO_VALUE,0) FROM IM_TXN_AU
    TH_USER WHERE TAU_TA_TYPE = :B3 AND TAU_TXN_CODE = :B2 AND TAU_A
    UTH_UID = :B1
    4,220 4,220 1.0 0.00 0.00 1006906503
    UPDATE OT_DAK_ACTV_HISTORY SET DAH_ACTV_ED_DT = :B3 , DAH_ACTV_S
    TATUS = 'C' WHERE DAH_ACTV_TYPE = :B2 AND DAH_TXN_SYS_ID = :B1
    3,874 66 0.0 0.00 0.00 4284733339
    SELECT TIT_NAME ||' '|| AR_FIRST_NAME||' '||AR_MIDDLE_NAME||' '|
    |AR_SUR_NAME FROM OT_ARTICLE_REGISTRATION, OM_TITLE WHERE TRIM(A
    SQL ordered by Executions for DB: ICAI Instance: icai Snaps: 70 -73
    -> End Executions Threshold: 100                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

  • What will happen when redo log file or archive log file, which is yet to be

    What will happen when redo log file or archive log file, which is yet to be read by logminer is corrupted? It seems that the captures process hangs between “Paused for flow control” and “Enqueuing Messages”. How to come out of this condition without recreating the captures process?
    Any clue is helpful
    Thanks in advance for your help.

    Basically you can't skip SCN since it will result in a data integrity issues (say you had skipped some inserts and later there will be some updates to a not replicated data).
    Streams maintain their own checkpoint tables with transaction related stuff. So there is no way you can jump over a range of SCN's without recreating capture.
    The only thing you can try - temporary give capture process a rule without any objects. But it will need to mine through the redo anyway.

  • Log file switch (checkpoint incomplete)

    hello,
    Lately, I have a lot of update/delete work on my OLTP production database. Generally this database is heavy loaded with much inserts especially at the daytime so I do my work at nights :) However, this work cause some contention. I have run AWR raport and I see "log file switch (checkpoint incomplete)" on a second place in wait events. I have a six redo log groups, each file 400MB, redo log buffer 12MB, mttr 0, checkpoint interval 0 and checkpoint timeout 1800 so checkpoints are usually "made by" log switches. Normally I have 2-5 switches per hour, but when I am doing my work it's abut 15-20 switches/hour. Can I speed it up by resizing redo files or by adding more groups ? I don't have test environment to test it so I am wondering if somone has experiense with that?
    thanks
    10gr2, linux

    Hi Helter,
    i have expirienced the same problem only with smaller log files and 3 groups, the solution you suggested helped me solve the issue, eversince i don't have any "checkpoint incomplete" error masaages in the alert log file.
    i have enlarged each group to be 100 mb (initially was 50 mb) and added 2 more groups.
    hope this solution will help you too.
    dBarak

  • Checkpoint vs. log file switch

    Hi..
    Does Oracle flush all dirty buffers at log file switch or just a part of dirty buffers?
    Doc says Full checkpoint occurs only by commands (Shutdonw or checkpoint command). I guess the meaning of this is that log file switch doen's flush all dirty buffers..I want to get some more infomaton on this.
    Thanks

    Hi Jonathan,
    Thank you for participating in the OTN topics.
    At any full checkpoint (log switch or command) DBWR
    is triggered to walk the checkpoint queue and write
    all the blocks that are currently on it - i.e. all
    the currently dirty blocks. Obviously this can take
    some time, but the task has a known completion point
    because of the queue structure.Once I've red interesting article published on Oracle Magazine RE two years ago.
    Author states (and there is no reason to distrust him) that after log switch so called low priority normal checkpoint takes place in contrast to incremental checkpoint when DBWR will perform actual writes to disk. It is not necessarily for DBWR to start checkpoint writes at the log switch immediately.
    I played a bit experimenting with log switch, global checkpoint etc making many DML at the same time to supply DBWR with dirty blocks but algorith used by Oracle is not clear at all.
    I observed that ckpt_block_writes in the v$instance_recovery view is not increasing after log switch but instead it increments occasionally (by incremental checkpoint starting I suppose).
    Can you please put some comments about this.
    Your opinion is really valuable.
    >
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    Best Regards,
    Alex
    Message was edited by:
    Alex Katykhin

  • WARNING - Last redo log file switch interval was 6 minutes. Next interval p

    Hello!
    I just started monitoring my Oracle via ConSol Nagios script.
    Now it show`s a Warning because:
    WARNING - Last redo log file switch interval was 6 minutes. Next interval presumably >2 minutes. Second incident in a row.
    As I do not know much about Oracle I do not understand that message.
    a) What does it mean ?
    b) Is it really critical ?
    Thanks!

    >
    I just started monitoring my Oracle via ConSol Nagios script.
    Now it show`s a Warning because:
    WARNING - Last redo log file switch interval was 6 minutes. Next interval presumably >2 minutes. Second incident in a row.
    As I do not know much about Oracle I do not understand that message.
    a) What does it mean ?
    b) Is it really critical ?
    >
    First of all: This is not an Oracle Error message. Instead, you have a somewhat arbitrarily threshold set in your non-Oracle monitoring tool. If this happens only once in a while - ignore it or modify the threshold.
    Generally, frequent fast logswitches can be the cause of performance problems.
    If you have Oracle Enterprise Manager in place and Diagnostic Pack licensed, it would give you a much more qualified statement about your Database performance. Also a recommendation to increase the Logfile size in case.
    If you look for a procedure to increase the size of your logfiles:
    http://uhesse.wordpress.com/2010/01/20/how-to-change-the-size-of-online-redologs/
    Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • Oracle standby/redo log file shipping keeps needing logs re-registering

    Hi
    We have Log File Shipping enabled and the prod system ships redo logs over to the LFS server. It's kept 24 hours behind. It usually ships the logs (and I believe automatically registers them) without issue.
    EXCEPT - it keeps complaining about missing redo log files.
    The file is usually there; but just needs registering with:
    alter database register or replace logfile '/oracle/S1P/saparch/S1Parch1_636443_654987192.dbf';
    (we found if we left out the 'or replace' it takes a very long time or even hangs)
    It then plods on and applies the next... can go for another 2 or 3... or 20... but then often gets stuck again, and you need to register the next.
    Can spend whole days on this...!!
    We did try running a script to register the next 1365 redo logs! It failed on 4, so I ran it again... it worked on those 4, but turned up 3 others it had worked with before! HUH?!? So manually did those 3 ... fine... it carried on rolling forward... but got stuck after 10 minutes again when it hit another it reckoned needed registering (we'd already done it twice!!).
    Any ideas?
    Ross

    Hi
    We have Log File Shipping enabled and the prod system ships redo logs over to the LFS server. It's kept 24 hours behind. It usually ships the logs (and I believe automatically registers them) without issue.
    EXCEPT - it keeps complaining about missing redo log files.
    The file is usually there; but just needs registering with:
    alter database register or replace logfile '/oracle/S1P/saparch/S1Parch1_636443_654987192.dbf';
    (we found if we left out the 'or replace' it takes a very long time or even hangs)
    It then plods on and applies the next... can go for another 2 or 3... or 20... but then often gets stuck again, and you need to register the next.
    Can spend whole days on this...!!
    We did try running a script to register the next 1365 redo logs! It failed on 4, so I ran it again... it worked on those 4, but turned up 3 others it had worked with before! HUH?!? So manually did those 3 ... fine... it carried on rolling forward... but got stuck after 10 minutes again when it hit another it reckoned needed registering (we'd already done it twice!!).
    Any ideas?
    Ross

  • Log file switch

    Hi,
    on 11g R2, on Win 2008, how to see the frequency of switching from one log file to another ?
    Thank you.

    you can use this:
    select to_char(first_time,'YYYY-MON-DD') day,
    to_char(sum(decode(to_char(first_time,'HH24'),'00',1,0)),'99') "00",
    to_char(sum(decode(to_char(first_time,'HH24'),'01',1,0)),'99') "01",
    to_char(sum(decode(to_char(first_time,'HH24'),'02',1,0)),'99') "02",
    to_char(sum(decode(to_char(first_time,'HH24'),'03',1,0)),'99') "03",
    to_char(sum(decode(to_char(first_time,'HH24'),'04',1,0)),'99') "04",
    to_char(sum(decode(to_char(first_time,'HH24'),'05',1,0)),'99') "05",
    to_char(sum(decode(to_char(first_time,'HH24'),'06',1,0)),'99') "06",
    to_char(sum(decode(to_char(first_time,'HH24'),'07',1,0)),'99') "07",
    to_char(sum(decode(to_char(first_time,'HH24'),'08',1,0)),'99') "08",
    to_char(sum(decode(to_char(first_time,'HH24'),'09',1,0)),'99') "09",
    to_char(sum(decode(to_char(first_time,'HH24'),'10',1,0)),'99') "10",
    to_char(sum(decode(to_char(first_time,'HH24'),'11',1,0)),'99') "11",
    to_char(sum(decode(to_char(first_time,'HH24'),'12',1,0)),'99') "12",
    to_char(sum(decode(to_char(first_time,'HH24'),'13',1,0)),'99') "13",
    to_char(sum(decode(to_char(first_time,'HH24'),'14',1,0)),'99') "14",
    to_char(sum(decode(to_char(first_time,'HH24'),'15',1,0)),'99') "15",
    to_char(sum(decode(to_char(first_time,'HH24'),'16',1,0)),'99') "16",
    to_char(sum(decode(to_char(first_time,'HH24'),'17',1,0)),'99') "17",
    to_char(sum(decode(to_char(first_time,'HH24'),'18',1,0)),'99') "18",
    to_char(sum(decode(to_char(first_time,'HH24'),'19',1,0)),'99') "19",
    to_char(sum(decode(to_char(first_time,'HH24'),'20',1,0)),'99') "20",
    to_char(sum(decode(to_char(first_time,'HH24'),'21',1,0)),'99') "21",
    to_char(sum(decode(to_char(first_time,'HH24'),'22',1,0)),'99') "22",
    to_char(sum(decode(to_char(first_time,'HH24'),'23',1,0)),'99') "23"
    from v$log_history group by to_char(first_time,'YYYY-MON-DD');

  • Log file switches

    I was wondering how I could have my 10g archive log's perform a switch based on time and not size?
    Do I have to schedule a job or set a parameter or ?
    Thanks.

    you could create a jobI wouldn't advise this way, you can have nightly batches which manipulate too many data, in this case the automatic switch (managed by Oracle core) will allready more often, or during the day (open hours) if there are too many users (for one reason...) which work in same time and create a max of activities, with crontab job, you will have an overload of switch redolog... because scheduled switches by job can add to the automatic switches generated by Oracle. Your db will take the time to managed switches instead of a better job.
    I wouldn't chocked if only two or three switches occured during an all unworked day (why switch if no activity, what did you want to save ?), and no surprise if switches every 5 min during batches.
    Nicolas.

  • Archive log file size is varying in RAC 10g database.

    ---- Environment oracle 10g rac 9 node cluster database, with 3 log groups for each node with 500 mb size for each redo log file.
    Question is why would be the archive log file size is varying, i know when ever there is log file switch the redo log will be archived, So as our redo log file size is of 500 MB
    isn't the archive log file size should be the same as 500 MB?
    Instead we are seeing the archive log file is varying from 20 MB to 500 MB this means the redo log file is not using the entire 500 MB space? What would be causing this to happen? how can we resolve this?
    Some init parameter values.(just for information)
    fast_start_mttr_target ----- 400
    log_checkpoint_timeout ----- 0
    log_checkpoint_interval ----- 0
    fast_start_io_target ----- 0

    There was a similar discussion a few days back,
    log file switch before it filled up
    The guy later claimed it's because their log_buffer size. It's remain a mystery to me still.

  • How do I setup RMAN not to delete archive log files on the source database so GoldenGate can process DDL/DML changes?

    I want to setup RMAN not to delete any archive log files that will be used by GoldenGate.   Once GoldenGate is completed with the archive log file, the archive log file can be backup and deleted by RMAN.   It's my understanding that I can issue the following command "REGISTER EXTRACT <ext_name>, LOGRETENTION" to enable to functionally.   Is this the only thing I need to do to execute to enable this functionally?

    Hello,
    Yes this is the rigth way  using clasic capture.
    Using the command : REGISTER EXTRACT Extract_name LOGRETENTION.
    Create a Oracle Streams Group Capture (Artificial)  that prevent RMAN archive deletion if these are pending to process for Golden Gate capture process.
    You can see this integration doing a SELECT * FROM DBA_CAPTURE; after execute the register command.
    Then, when RMAN try to delete a archive file pending to process for GG this warning appear AT RMAN logs:
    Error:     RMAN 8317 (RMAN-08317 RMAN-8317)
    Text:     WARNING: archived log not deleted, needed for standby or upstream capture process.
    Then , this is a good manageability feature. I think is a 11.1 GG new feature.
    Tip. To avoid RMAN backup multiples times a archive pending to process, there is a option called BACKUP archivelog not backed 1 times.
    If you remove a Capture process that is registered with the database you need to use this comand to remove the streams capture group:
    unREGISTER EXTRACT extract_name LOGRETENTION;
    Then if you query dba_capture, the artificial Streams group is deleted.
    I hope help.
    Regards
    Arturo

  • Reasons for multiplexing archive log files

    hi
    I would like to try multiplexing the archive log files, but I need to explain it to my boss who is the unofficial DBA. I want to tell her that it is necessary. Are there are really convincing, compelling reasons that one would set up more than 1 archive log file destination?
    Cheers.
    DA

    Archives are the thing that protect your data. If you have only one source for them, let's just keep our fingers crossed that nothing ever goes wrong with that source at the same time as something going wrong with the database, for then you will have lost data irrecoverably. So how much data loss is acceptable?
    On the other hand, if your original archive destination uses mirrored disks and if it is backed up regularly to tape, and if daily checks that that backup has taken place successfully are made... there's an at least reasonable case to be made not to bother multiplexing the archives: you already have redundancy in depth and the additional archiving destination could well slow down the whole archiving subsystem... and that can translate into problems for LGWR and hence foreground waits suffered by users.
    Nevertheless, it is true that assuming you back up your archives nightly, there is always going to be a days'-worth of archives which haven't been backed up yet. Should anything nasty happen to those, you will not be in a completely recoverable position ...and I have seen both parts of a mirrored drive die at about the same time, so that's no guarantee!
    If you or your colleague don't mind losing a day's work or if you are betting people and don't mind taking a punt on hardware not failing, then not multiplexing archives is a fair judgement call to make. But if you cannot afford any data loss at all and you want to make sure that it's as guaranteed as you can get that you won't, then multiplexing archives is pretty essential.

  • Online Redo log file/ Archive Files

    hi guyz,
    is there any tool available for to view contents of redo log file, or archive file (WHAT"S INSIDE????)
    i hope i've explained what i want
    regards
    neo

    Dear Friend,
    Good day to you and I hope that this e-mail will find you well and in good
    health.I write you this e-mail to seek for a possible investment co-operation
    and assistance with you in your company. It will be my gladness to go into a
    possible investment co-operation with you in your company.If you are interested, do respond to me as soon as possible so that we
    can discuss in greater details.Do have a nice day and I look forward to read from you, soon.
    Sincerely,
    Mrs Lohan Cisse.

  • Private strand flush not complete how to find optimal size of redo log file

    hi,
    i am using oracle 10.2.0 on unix system and getting Private strand flush not complete in the alert log file. i know this is due to check point is not completed.
    I need to increase the size of redo log files or add new group to the database. i have log file switch (checkpoint incomplete) in the top 5 wait event.
    i can't change any parameter of database. i have three redo log group and log files are of 250MB size. i want to know the suitable size to avoid problem.
    select * from v$instance_recovery;
    RECOVERY_ESTIMATED_IOS     ACTUAL_REDO_BLKS     TARGET_REDO_BLKS     LOG_FILE_SIZE_REDO_BLKS     LOG_CHKPT_TIMEOUT_REDO_BLKS     LOG_CHKPT_INTERVAL_REDO_BLKS     FAST_START_IO_TARGET_REDO_BLKS     TARGET_MTTR     ESTIMATED_MTTR     CKPT_BLOCK_WRITES     OPTIMAL_LOGFILE_SIZE     ESTD_CLUSTER_AVAILABLE_TIME     WRITES_MTTR     WRITES_LOGFILE_SIZE     WRITES_LOG_CHECKPOINT_SETTINGS     WRITES_OTHER_SETTINGS     WRITES_AUTOTUNE     WRITES_FULL_THREAD_CKPT
    625     9286     9999     921600          9999          0     9     112166207               0     0     219270206     0     3331591     5707793please suggest me or tell me the way how to find out suitable size to avoid problem.
    thanks
    umesh

    How often should a database archive its logs
    Re: Redo log size increase and performance
    Please read the above thread and great replies by HJR sir. I think if you wish to get concept knowledge, you should add in your notes.
    "If the FAST_START_MTTR_TARGET parameter is set to limit the instance recovery time, Oracle automatically tries to checkpoint as frequently as necessary. Under this condition, the size of the log files should be large enough to avoid additional checkpointing due to under sized log files. The optimal size can be obtained by querying the OPTIMAL_LOGFILE_SIZE column from the V$INSTANCE_RECOVERY view. You can also obtain sizing advice on the Redo Log Groups page of Oracle Enterprise Manager Database Control."
    Source:http://download-west.oracle.com/docs/cd/B13789_01/server.101/b10752/build_db.htm#19559
    Pl also see ML Doc 274264.1 (REDO LOGS SIZING ADVISORY) on tips to calculate the optimal size for redo logs in 10g databases
    Source:Re: Redo Log Size in R12
    HTH
    Girish Sharma

Maybe you are looking for