Generating more archive logs

Hi all,,
my env is Oracle 10gR2,RHEL4.0,
In my dev Db one of user table contain more than 10Lac Records .in that some duplicate are present.
I am deleting record by record it is generating more Archive log file.due to that my is database hanged.
can you tell me what are the possible reasons for gen of more arch file.
Regards,
kk

Hi,
If the answer is not in previous post and if you're deleting (much) more than you're keeping (i mean very large volumes) i suggest :
(create a backup table as the one you're deleting in (same structure-> not constraints))
- backup the rows you want to keep in an other table
- truncate the original table
- re-insert the backuped rows
- truncate the backuped table

Similar Messages

  • More archive logs

    Hello All,
    we are on 11.1.0.6 on AIX
    On our database side, finding "excessive redo log generation" at a specific time only (between 11 -12 midnight)
    How to find what exactly going on at that time whos causing so much redo generation.
    Thanks

    Thnaks for the update....
    Yes I am licenced.
    Taken AWR report, can you please suggest which part of the report give me the idea about root cause.
    @faran,
    Nothig been schedule at that time like backup script etc....
    Mean by eccessive is we have 4 grups with each 2 members with 200 MB size each
    Yesterday between said time its hight for rest of the time. 38 archives generated at this perticular time only.
    Edited by: DOA on 7 Sep, 2012 1:48 AM

  • Archive log generating views

    our database is running in archive log mode.
    i want to know which are the sessions generated/generating(sysdate and sysdate -2) more archive log .
    can i get it from the database view???

    855516 wrote:
    our database is running in archive log mode.
    i want to know which are the sessions generated/generating(sysdate and sysdate -2) more archive log .
    can i get it from the database view???use v$archived_log/v$log_history
    sys@ORCL>  select name,completion_time from v$archived_log where completion_time > sysdate-2;
    NAME                                                                             COMPLETIO
    C:\ORACLE\FLASH_RECOVERY_AREA\ARC0000000042_0776788597.0001                      27-MAR-12
    C:\ORACLE\FLASH_RECOVERY_AREA\ARC0000000043_0776788597.0001                      27-MAR-12
    C:\ORACLE\FLASH_RECOVERY_AREA\ARC0000000044_0776788597.0001                      27-MAR-12
    C:\ORACLE\FLASH_RECOVERY_AREA\ARC0000000045_0776788597.0001                      27-MAR-12
    C:\ORACLE\FLASH_RECOVERY_AREA\ARC0000000046_0776788597.0001                      27-MAR-12
    C:\ORACLE\FLASH_RECOVERY_AREA\ARC0000000048_0776788597.0001                      27-MAR-12
    C:\ORACLE\FLASH_RECOVERY_AREA\ARC0000000049_0776788597.0001                      27-MAR-12
    C:\ORACLE\FLASH_RECOVERY_AREA\ARC0000000050_0776788597.0001                      27-MAR-12
    C:\ORACLE\FLASH_RECOVERY_AREA\ARC0000000051_0776788597.0001                      27-MAR-12
    C:\ORACLE\FLASH_RECOVERY_AREA\ARC0000000052_0776788597.0001                      28-MAR-12
    C:\ORACLE\FLASH_RECOVERY_AREA\ARC0000000053_0776788597.0001                      28-MAR-12
    11 rows selected.

  • Are there any possible reason RMAN generates some corrupt archive log files

    Dear all,
    Are there any possible reason RMAN generates some corrupt archive log files?
    Best Regards,
    Amy

    Because I try to perform daily backup at lunch time and found out it takes more than 1 hour had no any progress. Normally we take around 40 minus. The following is the log file:
    RMAN> Run
    2> {
    3> CONFIGURE CONTROLFILE AUTOBACKUP ON;
    4> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u03/db/backup/RMAN/%F.bck';
    5> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
    6> allocate channel ch1 type disk format '/u03/db/backup/RMAN/backup_%d_%t_%s_%p_%U.bck';
    7> backup incremental level 1 cumulative database plus archivelog delete all input;
    8> backup current controlfile;
    9> backup spfile;
    10> release channel ch1;
    11> }
    12> allocate channel for maintenance type disk;
    13> delete noprompt obsolete;
    14> delete noprompt archivelog all backed up 2 times to disk;
    15>
    16>
    using target database controlfile instead of recovery catalog
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters are successfully stored
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u03/db/backup/RMAN/%F.bck';
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u03/db/backup/RMAN/%F.bck';
    new RMAN configuration parameters are successfully stored
    old RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
    new RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
    new RMAN configuration parameters are successfully stored
    allocated channel: ch1
    channel ch1: sid=99 devtype=DISK
    Starting backup at 31-MAR-09
    current log archived
    After that I go to archive log directory "/u02/oracle/uat/uatdb/9.2.0/dbs" and use ls -lt command to see how many archive logs and my screen just hang. After we found out that we cannot use ls -lt command to read arch1_171.dbf
    archive log, the rest of archive logs able to use ls -lt command.
    We cannot delete this file as well. We shutdown database abort and perform check disk...... and fix the disk error and then open database again. Everything seems back to normal and we can use ls -lt command to read arch1_171.dbf.
    The strange problem is we have the same problem in Development and Production..... one ore more archive logs seems to be corrupted under the same directories /u02/oracle/uat/uatdb/9.2.0/dbs.
    Does anyone encounter the same problem?
    Amy

  • How to find a session with high archive logs

    Any query, to see which active session is generating high archive logs in oracle 8i &9i and high rbs usage

    Though, there is no direct option or view where you can get this information.
    However, you may can find out the session which are generating lot of redo and undo. I guess, when the session has lot of redo & undo, definately, it contribution towards archive would be more.
    You can query v$sess_io and v$session to findout the the session which is generating lot of redo. i.e. lot of block changes occuring.
    SELECT s.sid, s.serial#, s.username, s.program, i.block_changes
    FROM v$session s, v$sess_io i
    WHERE s.sid = i.sid
    ORDER BY 5 desc
    Also query v$transaction and v$session to find out the session that is generating lot of undo information.
    Jaffar
    Message was edited by:
    Syed Jaffar

  • "specification does not match any archived log in the recovery catalog"

    I would like to know about this message.
    I Validated my backup and archivelogs yesterday.
    Today when I tried to do - CROSSCHECK ARCHIVELOG ALL;
    I gave me the following error -
    RMAN> crosscheck archivelog all;
    released channel: ORA_SBT_TAPE_1
    released channel: ORA_DISK_1
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=291 device type=DISK
    specification does not match any archived log in the recovery catalog
    when I tried to list all the archivelogs then also I am getting this message -
    RMAN> list archivelog all;
    specification does not match any archived log in the recovery catalog
    I have retention policy of 15 Days.
    Waiting for your inputs.

    Thanks Werner..This means that it is just a message.
    One more question related to Archive Log backups -
    traditionally DBAs used to take backup of an Archivelog by spupplying "alter system archive log current" before taking the backup. somewhat like -
    run
    allocate channel t1 device type 'sbt_tape' PARMS="ENV=(TDPO_OPTFILE=/oracle/TESTDB/tdpo.opt)";
    sql 'alter system archive log current';
    backup archivelog all delete input;
    release channel t1;
    But, since RMAN automatically archives CURRENT redo log at the start of the archivelog backup, do we REALLY need to pass sql 'alter system archive log current'; before starting the archivelog backup in the script?
    RMAN> backup archivelog all;
    Starting backup at 11-MAR-10
    current log archived ===========> RMAN automatically archived the CURRENT redo log
    released channel: ORA_DISK_1
    allocated channel: ORA_SBT_TAPE_1
    related question to this is - Since it generates one archived log everytime it takes the archived log backup, this backup may get hung if the archived destination is 100% full. Is there any way we can take the archive log backup without generating an extra archived log before the start of the backup?
    Thanks,
    Roopesh

  • MAKING MORE ARCHIVE IN MATERIALIZED VIEW

    Hi experts,
    i created a materialised view and created index on that, but while refreshing the MV it is making more archive log file.
    in index i also opted nologging option, still while refreshing it is still creating more archieve files.
    what to do so that it should not create more archive while refreshing materlialised view.
    thanks

    10g to 8i can work, assuming
    - 8i = 8.1.7
    - You are applying at least the 8.1.7.4 patchset to the master (8i) or you are applying the latest patchset to the slave (10g). Realistically, you probably want to do both.
    If you are talking about using the standard edition, I assume that you are only doing basic replication, not multi-master replication. I also assume you are aware of the limitations on hardware that come with Standard Edition 1-- I don't recall if you are limited to machines that have a capacity for 2 or 4 CPU's. Also, be aware that Oracle considers multi-core CPU's as multiple CPU's.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Archive log (DBA)

    Hi
    I am looking for a SQL script where it generates 100MB archive log file in 2 minutes.

    Just to play, something like this ?
    SQL> create table titi as select * from all_objects where 1=2;
    Table created.
    SQL> set serveroutput on
    SQL> declare
      2  v_redo_size1 number;
      3  v_redo_size2 number;
      4  v_start      number;
      5  v_end        number;
      6  begin
      7     select a.value, dbms_utility.get_time
      8     into   v_redo_size1,v_start
      9     from v$mystat a,v$statname b
    10     where a.statistic#=b.statistic#
    11     and   b.name like 'redo size%';
    12 
    13     for i in 1..15 loop
    14         insert into titi select * from all_objects;
    15     end loop;
    16    
    17     select a.value, dbms_utility.get_time
    18     into   v_redo_size2,v_end
    19     from v$mystat a,v$statname b
    20     where a.statistic#=b.statistic#
    21     and   b.name like 'redo size%';
    22 
    23     dbms_output.put_line('Redo size generated '||trunc((v_redo_size2-v_redo_size1)/1024/1024)||' Mb');
    24     dbms_output.put_line('Elapse time '||trunc((v_end-v_start)/100)||' sec.');
    25  end;
    26  /
    Redo size generated 106 Mb
    Elapse time 91
    PL/SQL procedure successfully completed.
    SQL> Nicolas.

  • Archive Logs Suddenly generating more

    Hi to all,
    My production database is Oracle 9i Enterprise Edition and sitting in Windows Box.
    My Average Archive log file generation is 8 files a day. My single log file size is 50 MB.
    Suddenly from last month 25th onwards my log files count is
    70 on 25th
    125 on 26th
    120 on 27th
    15th on 28th
    7 on 29th
    83 on 30th
    135 on 31st
    75 till now today...
    How it is possible, I've not enabled single additional oracle feature till this day and my transactions never increased all these days. I dont find any problems in alert log files.
    Can you people help me what will be the possible causes.
    Please help me in this regard.
    Vijay

    Vijayaraghavan Krishnan wrote:
    Hi to all,
    My production database is Oracle 9i Enterprise Edition and sitting in Windows Box.
    My Average Archive log file generation is 8 files a day. My single log file size is 50 MB.
    Suddenly from last month 25th onwards my log files count is
    70 on 25th
    125 on 26th
    120 on 27th
    15th on 28th
    7 on 29th
    83 on 30th
    135 on 31st
    75 till now today...
    How it is possible, I've not enabled single additional oracle feature till this day and my transactions never increased all these days. I dont find any problems in alert log files.
    Can you people help me what will be the possible causes.
    Please help me in this regard.
    VijayPlease provide more information related to database, parameter, etc.

  • To generate email alert when archive logs fill

    Hi. I was away yesterday and the archive logs were filling up and were at 92% when I got in this morning.
    I need to have an email generated once the /archlogs directory fills past 90%.
    The total size of that directory is 8064M. So once it hits around 7257M I would like an email fired to me and my boss.
    Oracle 9.2.0.5.0
    UNIX AIX 5.2

    In addition to Sybrand's reply, you might want to consider some other factors.
    First, when setting up email notifications, you need to adjust your expectations to account for the possible latency in email delivery. I have seen 'critical' emails take several hours to get through the system. This is not a function of Oracle, but of the email servers.
    Second, if archivelog destination filling up is an ongoing problem, I'd be looking at how my archivelogs are backed up and deleted - how I do my housekeeping on that destination. You should have more important things to do than constant monitoring and responding to 'destination full' conditions.

  • Generating lots of archive logs

    Hi Friends,
    We have an EBS 11i on AIX 5L ...which has just been setup and ready for UAT...but the AppsDBA/Functional Consultant who didi it are not around anymore to ask for questiones. I just noticed the there are archive logs generated everyday...like 30 logs...when in fact the application is not being used. Is there concurrent programs
    that has been setup to update data on a background process, just like recursive updating which is not really necessary. How do I check if there are updates being done.
    Thanks a lot

    Do not stop this concurrent program as it is used to synchronize the Workflow local tables with the user and role information stored in the product application tables until each affected product performs the synchronization automatically.
    More details can be found in the following note:
    Note: 171703.1 - 11.5.x: Implementing Oracle Workflow Directory Service Synchronization
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=171703.1
    Did you check the total size of the log files? I believe you should not be worried now until the system is delivered to the users, you can monitor the number of log files generated daily then and based on that start your investigation.

  • Too many archive logs getting generated on 11.1.0.7

    I could see heavy arch generation on PROD instance although there is not much activity on PROD
    this is a fresh instance which has gone live month ago and archive log being enabled weeks ago but
    i could see about 20 to 23 GB of arch generation daily although the database size is 90 GB around
    Raised SR they told me its unable to Purge statistics from the SYSAUX tablespace
    they asked me to run some queries an run this
    exec dbms_stats.purge_stats(sysdate - 50);
    which was running for long hours and just coming out because of insufficient space
    although the retention policy is 31 days
    SQL> select DBMS_STATS.GET_STATS_HISTORY_RETENTION from dual;
    GET_STATS_HISTORY_RETENTION
                             31
    history is avail for more than 90 days
    SQL> select dbms_stats.get_stats_history_availability from dual;
    GET_STATS_HISTORY_AVAILABILITY
    01-APR-13 11.00.07.250483000 AM +05:30
    asked to apply this patch 12683802 which i applied on DEV instance
    but still i can see so many archs generating although there is no activity on DEV instance.
    now when i run this scripts little by little
    exec dbms_stats.purge_stats(sysdate - 50);
    its purging but its taking ages and the size of sysaux is getting filled the current size of DEV have 3 datafiles each with around 4000mb
    -- B4 applying patch
    SQL> select trunc(first_time) on_date,
      2         thread# thread,
      3         min(sequence#) min_sequence,
      4         max(sequence#) max_sequence,
      5         max(sequence#) - min(sequence#) nos_archives,
      6         (max(sequence#) - min(sequence#)) * log_avg_mb req_space_mb
      7  from   v$log_history,
      8         (select avg(bytes/1024/1024) log_avg_mb
      9          from   v$log)
    10  group  by trunc(first_time), thread#, log_avg_mb
    11  order by on_date
    12  /
    ON_DATE             THREAD MIN_SEQUENCE MAX_SEQUENCE NOS_ARCHIVES REQ_SPACE_MB
    24-JUN-13                1            1            3            2         2000
    25-JUN-13                1            4           17           13        13000
    26-JUN-13                1           18           30           12        12000
    27-JUN-13                1           31           43           12        12000
    28-JUN-13                1           44           51            7         7000
    29-JUN-13                1           52           64           12        12000
    30-JUN-13                1           65           77           12        12000
    01-JUL-13                1           78           88           10        10000
    -- after applying patch
    ON_DATE        
    THREAD MIN_SEQUENCE MAX_SEQUENCE NOS_ARCHIVES REQ_SPACE_MB
    21-JUN-13           
    1       
    1       
    5       
    4    
    4000
    22-JUN-13           
    1       
    6      
    20      
    14   
    14000
    23-JUN-13           
    1      
    21      
    35      
    14   
    14000
    24-JUN-13           
    1      
    36      
    85      
    49   
    49000
    25-JUN-13           
    1      
    86     
    111      
    25   
    25000
    26-JUN-13           
    1     
    112     
    127      
    15   
    15000
    27-JUN-13           
    1     
    128     
    134       
    6    
    6000
    28-JUN-13           
    1     
    135     
    143       
    8    
    8000
    29-JUN-13           
    1     
    144     
    151       
    7    
    7000
    30-JUN-13           
    1     
    152     
    158       
    6    
    6000
    01-JUL-13           
    1     
    159     
    163       
    4    
    4000
    the above results b4 and after are taken from TEST and DEV which are cloned from PROD instance and only on DEV the patch is applied
    here are env details
    EBS:21.1.3
    Database:11.1.0.7
    OS:RHEL 5.6
    am still not satisfied wanted to know if any one of you have a solution for this
    please help
    Zavi

    Hi Amogh,
    As said from support as well to run logminer i have run here is the output from it
    i followed note id:1504755.1
    ------------------------------log miner output for archs of 02.07.13 on PROD------------------------
    -- following logs
    Jul 2 10:59 archive_PROD_1_1446_807549584.arc
    Jul 2 11:05 archive_PROD_1_1447_807549584.arc
    EXECUTE DBMS_LOGMNR.ADD_LOGFILE( -
         LOGFILENAME => '/archive_prod/prod/archive_PROD_1_1446_807549584.arc', -
         OPTIONS => DBMS_LOGMNR.NEW);
    EXECUTE DBMS_LOGMNR.ADD_LOGFILE( -
         LOGFILENAME => '/archive_prod/prod/archive_PROD_1_1447_807549584.arc', -
         OPTIONS => DBMS_LOGMNR.ADDFILE);
    SQL> select operation,seg_owner,seg_name,count(*) from v$logmnr_contents group by seg_owner,seg_name,operation;
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    INSERT                              APPLSYS    FND_LOGINS                        47
    UPDATE                              PO         RCV_TRANSACTIONS_INTERFAC          2
                                                   E
    INSERT                              PO         RCV_TRANSACTIONS                   3
    UNSUPPORTED                         INV        MTL_SUPPLY                         6
    DELETE                              PO         RCV_SUPPLY                         3
    UPDATE                              CSI        CSI_ITEM_INSTANCES                 3
    UPDATE                              APPLSYS    FND_CONC_RELEASE_CLASSES          17
    INSERT                              JA         JAI_RTP_POPULATE_T                 3
    INSERT                              GL         GL_CODE_COMBINATIONS               1
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    UNSUPPORTED                         JA         JAI_AP_TDS_INV_TAXES               7
    UNSUPPORTED                         AP         AP_INVOICE_LINES_ALL               8
    DELETE                              ZX         ZX_TRX_HEADERS_GT                  4
    INSERT                              INV        MTL_ITEM_CATEGORIES                3
    INSERT                              XLA        XLA_AE_HEADERS_GT                  3
    UPDATE                              XLA        XLA_AE_HEADERS_GT                  3
    UPDATE                              ENI        DR$ENI_DEN_HRCHY_PAR_IM1$          4
                                                   R
    UPDATE                              APPLSYS    FND_USER_DESKTOP_OBJECTS          10
    INSERT                              APPLSYS    FND_APPL_SESSIONS                  3
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    UPDATE                              XLA        XLA_TRANSFER_LOGS                  2
    INSERT                              GL         GL_JE_HEADERS                      2
    DELETE                              GL         GL_INTERFACE_CONTROL               1
    DELETE                              GL         GL_INTERFACE                       3
    INSERT                              CE         CE_SECURITY_PROFILES_GT            1
    INSERT                              PA         PA_PROJECTS_FOR_ACCUM              8
    INSERT                              PA         PA_PJM_REQ_COMMITMENTS_TM       1162
                                                   P
    DELETE                              PA         PA_PROJECT_ACCUM_COMMITME        162
                                                   NTS
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    UPDATE                              PA         PA_TXN_ACCUM                    1749
    UPDATE                              PA         PA_RESOURCE_LIST_ASSIGNME         13
                                                   NTS
    INSERT                              ENI        ENI_OLTP_ITEM_STAR                 1
    START                                                                           561
    COMMIT                                                                          934
    INSERT                              ICX        ICX_SESSION_ATTRIBUTES            45
    INSERT                              INV        MTL_SUPPLY                         8
    UPDATE                              INV        MTL_MATERIAL_TRANSACTIONS         11
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
                                                   _TEMP
    INSERT                              CSI        CSI_TRANSACTIONS                   3
    INSERT                              CSI        CSI_I_VERSION_LABELS               1
    INSERT                              CSI        CSI_I_VERSION_LABELS_H             1
    INSERT                              JA         JAI_RTP_TRANS_T                    3
    INSERT                              JA         JAI_AP_INVOICE_LINES               1
    UNSUPPORTED                         AP         AP_INVOICE_DISTRIBUTIONS_          9
                                                   ALL
    DELETE                              BOM        BOM_RESOURCE_CHANGES               2
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    ROLLBACK                                                                          3
    INSERT                              XLA        XLA_TRANSACTION_ENTITIES,          2
                                                   AP
    INSERT                              ENI        MLOG$_ENI_OLTP_ITEM_STAR           7
    UNSUPPORTED                         XLA        XLA_TRANSACTION_ENTITIES,          4
                                                   AP
    INSERT                              XLA        XLA_DISTRIBUTION_LINKS,AP          6
    UPDATE                              QA         QA_CHARS                           1
    UPDATE                              MRP        MRP_SCHEDULE_DATES                 7
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    UPDATE                              ENI        ENI_DENORM_HIERARCHIES             4
    UNSUPPORTED                         SYS        SEG$                               1
    INSERT                              INV        MTL_TRANSACTION_ACCOUNTS           4
    UPDATE                              APPLSYS    FND_USER_PREFERENCES               5
    DELETE                              SYS        WRI$_OPTSTAT_HISTHEAD_HIS     235644
                                                   TORY
    INSERT                              BNE        BNE_DOC_USER_PARAMS                1
    INSERT                              GL         GL_INTERFACE                       6
    INSERT                              GL         GL_JE_LINES                        4
    INSERT                              GL         GL_JE_SEGMENT_VALUES               2
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    INSERT                              GL         GL_IMPORT_REFERENCES               4
    UPDATE                              PA         PA_MAPPABLE_TXNS_TMP               3
    UPDATE                              PA         PA_PROJECT_ACCUM_COMMITME         95
                                                   NTS
    INSERT                              INV        MLOG$_MTL_SYSTEM_ITEMS_B           1
    INSERT                              INV        MTL_SYSTEM_ITEMS_TL                1
    UPDATE                              APPLSYS    FND_CONFLICTS_DOMAIN            6040
    INSERT                              APPLSYS    MO_GLOB_ORG_ACCESS_TMP            97
    UPDATE                              APPLSYS    FND_CONCURRENT_QUEUES            117
    UNSUPPORTED                         JA         JAI_RCV_LINES                      3
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    INSERT                              INV        MLOG$_MTL_MATERIAL_TRANSA         21
                                                   C
    INSERT                              CSI        CSI_ITEM_INSTANCES                 1
    INSERT                              JA         JAI_AP_TDS_INV_TAXES               2
    INSERT                              BOM        BOM_RES_INSTANCE_CHANGES           2
    INSERT                              PA         PA_TXN_INTERFACE_AUDIT_AL          4
                                                   L
    INSERT                              PA         PA_EXPENDITURE_COMMENTS            2
    DELETE                              PA         PA_TRANSACTION_XFACE_CTRL          1
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
                                                   _ALL
    INSERT                              AP         AP_LINE_TEMP_GT                    3
    UPDATE                              ENI        ENI_OLTP_ITEM_STAR                 3
    INSERT                              XLA        XLA_EVENTS_GT                      3
    UPDATE                              XLA        XLA_EVENTS_GT                      3
    UPDATE                              XLA        XLA_AE_HEADERS,AP                  8
    DELETE                              XLA        XLA_VALIDATION_LINES_GT            2
    INSERT                              INV        MTL_TXN_COST_DET_INTERFAC          2
                                                   E
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    UPDATE                              INV        MTL_CST_TXN_COST_DETAILS           2
    DELETE                              INV        MTL_TXN_COST_DET_INTERFAC          2
                                                   E
    UNSUPPORTED                         SYS        HISTGRM$                          16
    UPDATE                              INV        MTL_MATERIAL_TRANSACTIONS          6
    INSERT                              XLA        XLA_EVENTS,CST                     3
    DELETE                              BNE        BNE_DOC_ACTIONS                    1
    INSERT                              GL         GL_INTERFACE_CONTROL               2
    INSERT                              XLA        XLA_TB_WORK_UNITS                  1
    UPDATE                              ZX         ZX_TRX_HEADERS_GT                 67
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    DDL                                 SYS        SYS_TEMP_0FD9D6611_EC264F          1
                                                   91
    DELETE                              PA         PA_TXN_ACCUM_DETAILS            1327
    UNSUPPORTED                         PA         PA_TXN_ACCUM                     523
    INSERT                              PA         PA_MAPPABLE_TXNS_TMP               2
    DELETE                              PA         PA_RESOURCE_LIST_PARENTS_          2
                                                   TMP
    DELETE                              PA         PA_PROJECTS_FOR_ACCUM             17
    UPDATE                              SYS        SEQ$                             224
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    DELETE                              APPLSYS    WF_DEFERRED                        5
    UPDATE                              APPLSYS    FND_CONC_PROG_ONSITE_INFO         51
    INSERT                              APPLSYS    FND_CONCURRENT_REQUESTS           46
    INSERT                              PO         PO_SESSION_GT                      7
    INSERT                              INV        MTL_MATERIAL_TRANSACTIONS          5
                                                   _TEMP
    INSERT                              INV        MTL_ONHAND_QUANTITIES_DET          3
                                                   AIL
    UPDATE                              SYS        SYS_FBA_BARRIERSCN                 2
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    UPDATE                              MRP        MRP_MESSAGES_TMP                  29
    DELETE                              MRP        MRP_MESSAGES_TMP                  29
    UPDATE                              AP         AP_INVOICES_ALL                   15
    UPDATE                              JA         JAI_AP_TDS_INV_TAXES              43
    INSERT                              BOM        MLOG$_BOM_RESOURCE_CHANGE          4
                                                   S
    UNSUPPORTED                         PA         PA_TRANSACTION_INTERFACE_          2
                                                   ALL
    INSERT                              PA         PA_EXPENDITURE_GROUPS_ALL          1
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    INSERT                              PA         PA_EXPENDITURE_ITEMS_ALL           2
    INSERT                              AP         AP_INVOICE_LINES_ALL               3
    INSERT                              APPLSYS    FND_LOG_MESSAGES                  29
    INSERT                              ZX         ZX_ITM_DISTRIBUTIONS_GT           71
    UNSUPPORTED                         ZX         ZX_TRX_HEADERS_GT                  5
    INSERT                              XLA        XLA_EVENTS,AP                      3
    UPDATE                              AP         AP_PREPAY_HISTORY_ALL              3
    UPDATE                              AP         AP_PREPAY_APP_DISTS                1
    INSERT                              INV        MLOG$_MTL_ITEM_CATEGORIES          3
    INSERT                              XLA        XLA_AE_LINES,AP                    6
    DELETE                              XLA        XLA_AE_HEADERS_GT                  1
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    UPDATE                              SYS        HIST_HEAD$                        76
    INSERT                              SYS        WRI$_OPTSTAT_IND_HISTORY          10
    UNSUPPORTED                         ENI        DR$ENI_DEN_HRCHY_PAR_IM1$          3
                                                   R
    UPDATE                              INV        MTL_CST_ACTUAL_COST_DETAI          3
                                                   LS
    INSERT                              XLA        XLA_TRANSACTION_ENTITIES,          3
                                                   CST
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    INSERT                              ICX        ICX_TRANSACTIONS                   1
    UPDATE                              GL         GL_INTERFACE                       4
    UPDATE                              PO         PO_REQ_DISTRIBUTIONS_ALL          66
    UNSUPPORTED                         PO         PO_REQUISITION_HEADERS_AL          1
                                                   L
    UNSUPPORTED                         PO         PO_REQUISITION_LINES_ALL          66
    DELETE                              PA         PA_COMMITMENT_TXNS              1461
    UNSUPPORTED                         PA         PA_MAPPABLE_TXNS_TMP               3
    INSERT                              PA         PA_PROJECT_ACCUM_COMMITME        197
                                                   NTS
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    INSERT                              BOM        CST_ITEM_COSTS                     1
    INSERT                              JA         JAI_RCV_TRANSACTIONS               3
    UPDATE                              PO         RCV_SUPPLY                         3
    UPDATE                              INV        MTL_SUPPLY                        11
    DELETE                              INV        MTL_SUPPLY                        11
    UPDATE                              PO         PO_DISTRIBUTIONS_ALL               3
    UPDATE                              PO         PO_LINE_LOCATIONS_ALL              9
    INSERT                              INV        MLOG$_MTL_ONHAND_QUANTITI          3
                                                   E
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    DELETE                              PO         RCV_TRANSACTIONS_INTERFAC          3
                                                   E
    INSERT                              MRP        MRP_MESSAGES_TMP                  22
    INSERT                              AP         AP_INVOICE_DISTRIBUTIONS_          3
                                                   ALL
    UPDATE                              AP         AP_INVOICE_DISTRIBUTIONS_         30
                                                   ALL
    INSERT                              PA         PA_EXPENDITURES_ALL                1
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    INSERT                              ZX         ZX_TRX_HEADERS_GT                  8
    UNSUPPORTED                         ZX         ZX_LINES_DET_FACTORS             566
    DELETE                              AP         AP_LINE_TEMP_GT                    9
    UPDATE                              AP         AP_PAYMENT_SCHEDULES_ALL           5
    UPDATE                              ICX        ICX_SESSIONS                      12
    UNSUPPORTED                         AP         AP_INVOICES_ALL                    3
    INSERT                              JA         JAI_RCV_JOURNAL_ENTRIES            4
    UNSUPPORTED                         INV        MTL_TRANSACTIONS_INTERFAC         24
                                                   E
    UPDATE                              MRP        MRP_RECOMMENDATIONS               14
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    INSERT                              ENI        MLOG$_ENI_DENORM_HIERARCH         16
                                                   I
    INSERT                              SYS        WRI$_OPTSTAT_HISTGRM_HIST          8
                                                   ORY
    INSERT                              APPLSYS    WF_CONTROL                         1
    UPDATE                              BNE        BNE_DOC_USER_PARAMS                1
    DELETE                              APPLSYS    WF_CONTROL                         1
    UPDATE                              GL         GL_JE_BATCHES                      2
    INSERT                              GL         GL_POSTING_INTERIM                 1
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    UNSUPPORTED                         JA         JAI_PO_OSP_LINES                   1
    INSERT                              AP         AP_INVOICES_ALL                    2
    INSERT                              PA         PA_COMMITMENT_TXNS_TMP           160
    UPDATE                              PA         PA_COMMITMENT_TXNS              1391
    DELETE                              PA         PA_MAPPABLE_TXNS_TMP               3
    INTERNAL                                                                    4906910
    UPDATE                              APPLSYS    FND_CONCURRENT_REQUESTS          153
    UPDATE                              JA         JAI_RCV_LINES                      3
    INSERT                              INV        MLOG$_MTL_SUPPLY                  30
    INSERT                              CSI        CSI_I_PARTIES_H                    1
    UNSUPPORTED                         JA         JAI_RCV_TRANSACTIONS               7
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    UPDATE                              JA         JAI_RCV_TRANSACTIONS              24
    INSERT                              MRP        MRP_RECOMMENDATIONS                8
    UNSUPPORTED                         AP         AP_PAYMENT_SCHEDULES_ALL           4
    UPDATE                              PA         PA_TRANSACTION_INTERFACE_          4
                                                   ALL
    INSERT                              XLA        XLA_ACCT_PROG_EVENTS_GT            4
    INSERT                              XLA        XLA_AE_LINES_GT                   12
    UNSUPPORTED                         XLA        XLA_AE_LINES_GT                   30
    INSERT                              XLA        XLA_AE_HEADERS,AP                  3
    INSERT                              XLA        XLA_VALIDATION_LINES_GT            3
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    DELETE                              XLA        XLA_EVENTS_GT                      1
    UNSUPPORTED                         XLA        XLA_BAL_CONCURRENCY_CONTR          2
                                                   OL
    DELETE                              XLA        XLA_BAL_CONCURRENCY_CONTR          2
                                                   OL
    INSERT                              APPLSYS    FND_CONC_REQUEST_ARGUMENT          2
                                                   S
    UPDATE                              QA         QA_RESULTS                         2
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    INSERT                              MRP        MRP_SCHEDULE_CONSUMPTIONS         21
    INSERT                              ENI        ENI_DENORM_HRCHY_PARENTS           4
    UNSUPPORTED                         ENI        ENI_DENORM_HRCHY_PARENTS           4
    UPDATE                              APPLSYS    FND_USER                           6
    INSERT                              XLA        XLA_TRANSFER_LOGS                  2
    UPDATE                              GL         GL_JE_LINES                        4
    UPDATE                              APPLSYS    FND_NODES                          3
    UNSUPPORTED                         PO         PO_REQ_DISTRIBUTIONS_ALL          66
    DELETE                              ZX         ZX_ITM_DISTRIBUTIONS_GT           66
    INSERT                              AP         AP_PAYMENT_SCHEDULES_ALL           2
    INSERT                              IBY        IBY_DOCS_PAYABLE_GT                2
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    INSERT                              AP         AP_DOC_SEQUENCE_AUDIT              1
    INSERT                              PA         PA_COMMITMENT_TXNS              1380
    INSERT                              PA         PA_RESOURCE_ACCUM_DETAILS          3
    INSERT                              ENI        DR$ENI_DEN_HRCHY_PAR_IM1$         19
                                                   I
    UPDATE                              PA         PA_PROJECT_ACCUM_ACTUALS          12
    INSERT                              EGO        EGO_ITEM_TEXT_TL                   1
    INSERT                              INV        MTL_ITEM_REVISIONS_TL              1
    UNSUPPORTED                                                                    1720
    INSERT                              APPLSYS    FND_CONC_PP_ACTIONS               47
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    UNSUPPORTED                         APPLSYS    FND_CONCURRENT_PROCESSES          97
    DELETE                              APPLSYS    MO_GLOB_ORG_ACCESS_TMP            11
    INSERT                              MRP        MRP_RELIEF_INTERFACE              16
    UPDATE                              PO         PO_REQUISITION_LINES_ALL           1
    INSERT                              INV        MTL_MATERIAL_TRANSACTIONS          5
    INSERT                              CSI        CSI_I_PARTIES                      1
    UNSUPPORTED                         SYS        DBMS_LOCK_ALLOCATED               15
    UPDATE                              PO         PO_SESSION_GT                      4
    INSERT                              MRP        MRP_SCHEDULE_DATES                 4
    INSERT                              MRP        MLOG$_MRP_SCHEDULE_DATES          15
    DELETE                              MRP        MRP_SCHEDULE_DATES                 4
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    DELETE                              BOM        BOM_RES_INSTANCE_CHANGES           2
    INSERT                              PA         PA_COST_DISTRIBUTION_LINE          2
                                                   S_ALL
    INSERT                              ZX         ZX_TRANSACTION_LINES_GT          138
    UNSUPPORTED                         CSI        CSI_ITEM_INSTANCES                 2
    UNSUPPORTED                         XLA        XLA_EVENTS,AP                      6
    INSERT                              XLA        XLA_AE_SEGMENT_VALUES             13
    UNSUPPORTED                         SYS        TAB$                              15
    INSERT                              SYS        WRI$_OPTSTAT_HISTHEAD_HIS      81562
                                                   TORY
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    DDL                                 SYS        SYS_TEMP_0FD9D6610_EC264F          1
                                                   91
    UNSUPPORTED                         SYS        IND$                              10
    DELETE                              APPLSYS    FND_CONC_PP_ACTIONS                7
    INSERT                              BNE        BNE_DOC_ACTIONS                    1
    INSERT                              GL         GL_JE_BATCHES                      1
    INSERT                              PA         PA_TXN_ACCUM_DETAILS            1386
    INSERT                              PA         PA_TXN_ACCUM                       2
    INSERT                              PA         PA_RESOURCE_LIST_PARENTS_          2
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
                                                   TMP
    UPDATE                              CTXSYS     DR$INDEX                           1
    INSERT                              INV        MTL_PENDING_ITEM_STATUS            1
    DELETE                              SYS        WRI$_OPTSTAT_IND_HISTORY     2130287
    UNSUPPORTED                         APPLSYS    FND_CONCURRENT_REQUESTS           49
    INSERT                              PO         RCV_TRANSACTIONS_INTERFAC          3
                                                   E
    UPDATE                              APPLSYS    FND_CONCURRENT_PROCESSES          40
    UPDATE                              PO         RCV_TRANSACTIONS                   3
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    UNSUPPORTED                         PO         PO_HEADERS_ALL                     3
    INSERT                              INV        MTL_CST_TXN_COST_DETAILS           5
    INSERT                              CSI        CSI_ITEM_INSTANCES_H               3
    DELETE                              INV        MTL_MATERIAL_TRANSACTIONS          5
                                                   _TEMP
    UPDATE                              SYS        DBMS_LOCK_ALLOCATED               15
    DELETE                              MRP        MRP_RECOMMENDATIONS                8
    UPDATE                              AP         AP_INVOICE_LINES_ALL              11
    INSERT                              BOM        MLOG$_BOM_RES_INSTANCE_CH          4
                                                   A
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    INSERT                              BOM        BOM_RESOURCE_CHANGES               2
    UPDATE                              PA         PA_TRANSACTION_XFACE_CTRL          1
                                                   _ALL
    INSERT                              AP         AP_PREPAY_HISTORY_ALL              1
    INSERT                              AP         AP_PREPAY_APP_DISTS                1
    INSERT                              XLA        XLA_EVT_CLASS_ORDERS_GT            4
    UPDATE                              XLA        XLA_EVENTS,AP                      6
    INSERT                              ENI        ENI_DENORM_HIERARCHIES             6
    INSERT                              SYS        WRI$_OPTSTAT_TAB_HISTORY           5
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    UNSUPPORTED                         XLA        XLA_AE_HEADERS_GT                  3
    UPDATE                              BNE        BNE_DOC_ACTIONS                    1
    UPDATE                              GL         GL_JE_HEADERS                      2
    DELETE                              XLA        XLA_TRANSFER_LOGS                  1
    UNSUPPORTED                         ZX         ZX_TRANSACTION_LINES_GT          264
    INSERT                              PA         PA_PJM_PO_COMMITMENTS_TMP        378
    UNSUPPORTED                         INV        MTL_SYSTEM_ITEMS_B                 2
    INSERT                              INV        MTL_ITEM_REVISIONS_B               1
    266 rows selected.
    ------------------------------log miner output for archs of 03.07.13 on PROD------------------------
    --following log files
    Jul 3 10:56 archive_PROD_1_1469_807549584.arc
    Jul 3 10:58 archive_PROD_1_1470_807549584.arc
    Jul 3 11:01 archive_PROD_1_1471_807549584.arc
    Jul 3 11:03 archive_PROD_1_1472_807549584.arc
    Jul 3 11:04 archive_PROD_1_1473_807549584.arc
    Jul 3 11:05 archive_PROD_1_1474_807549584.arc
    EXECUTE DBMS_LOGMNR.ADD_LOGFILE( -
         LOGFILENAME => '/archive_prod/prod/archive_PROD_1_1469_807549584.arc', -
         OPTIONS => DBMS_LOGMNR.ADDFILE);
    EXECUTE DBMS_LOGMNR.ADD_LOGFILE( -
         LOGFILENAME => '/archive_prod/prod/archive_PROD_1_1470_807549584.arc', -
         OPTIONS => DBMS_LOGMNR.ADDFILE);
    EXECUTE DBMS_LOGMNR.ADD_LOGFILE( -
         LOGFILENAME => '/archive_prod/prod/archive_PROD_1_1471_807549584.arc', -
         OPTIONS => DBMS_LOGMNR.ADDFILE);
    EXECUTE DBMS_LOGMNR.ADD_LOGFILE( -
         LOGFILENAME => '/archive_prod/prod/archive_PROD_1_1472_807549584.arc', -
         OPTIONS => DBMS_LOGMNR.ADDFILE);
    EXECUTE DBMS_LOGMNR.ADD_LOGFILE( -
         LOGFILENAME => '/archive_prod/prod/archive_PROD_1_1473_807549584.arc', -
         OPTIONS => DBMS_LOGMNR.ADDFILE);
    EXECUTE DBMS_LOGMNR.ADD_LOGFILE( -
         LOGFILENAME => '/archive_prod/prod/archive_PROD_1_1474_807549584.arc', -
         OPTIONS => DBMS_LOGMNR.ADDFILE);
    SQL> select operation,seg_owner,seg_name,count(*) from v$logmnr_contents group by seg_owner,seg_name,operation;
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    DELETE                              SYS        CCOL$                              6
    DELETE                              SYS        SEG$                               3
    INSERT                              APPLSYS    FND_LOGINS                       108
    UPDATE                              APPLSYS    FND_CONC_RELEASE_CLASSES          33
    UPDATE                              PO         RCV_TRANSACTIONS_INTERFAC          4
                                                   E
    INSERT                              APPLSYS    FND_LOG_TRANSACTION_CONTE          1
                                                   XT
    INSERT                              PO         RCV_TRANSACTIONS                   2
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    UNSUPPORTED                         INV        MTL_SUPPLY                         4
    INSERT                              PO         RCV_RECEIVING_SUB_LEDGER           4
    INSERT                              GL         GL_JE_HEADERS                     12
    DELETE                              GL         GL_INTERFACE                      49
    DELETE                              GL         GL_INTERFACE_CONTROL               8
    INSERT                              JA         JAI_RTP_POPULATE_T                 1
    INSERT                              JA         JAI_RGM_TRM_SCHEDULES_T            4
    UPDATE                              JA         JAI_RCV_CENVAT_CLAIMS              2
    INSERT                              APPLSYS    FND_APPL_SESSIONS                  9
    UPDATE                              APPLSYS    WF_NOTIFICATIONS                   4
    UPDATE                              PO         PO_HEADERS_INTERFACE              10
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    INSERT                              PO         PO_DISTRIBUTIONS_INTERFAC          6
                                                   E
    INSERT                              JA         JAI_PO_LINE_LOCATIONS             18
    UNSUPPORTED                         PO         PO_LINE_LOCATIONS_ALL              2
    UNSUPPORTED                         PO         PO_LINES_ALL                       8
    DELETE                              ZX         ZX_TRX_HEADERS_GT                 14
    INSERT                              PA         PA_STRUCTURES_TASKS_TMP          440
    INSERT                              SYS        SEQ$                               2
    INSERT                              BNE        BNE_DOC_CREATION_PARAMS            9
    UPDATE                              ENI        DR$ENI_DEN_HRCHY_PAR_IM1$          6
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
                                                   R
    INSERT                              SYS        MON_MODS$                          9
    UPDATE                              PA         PA_PROJECTS_ALL                    4
    UPDATE                              WIP        WIP_MOVE_TXN_INTERFACE             1
    INSERT                              CE         CE_SECURITY_PROFILES_GT            8
    UPDATE                              WIP        WIP_PERIOD_BALANCES                1
    INSERT                              INV        MTL_MWB_GTMP                      14
    UPDATE                              SYS        WRI$_SCH_CONTROL                   1
    DELETE                              SYS        OBJ$                              51
    DDL                                 SYS        WRH$_ROWCACHE_SUMMARY              1
    OPERATION                           SEG_OWNER  SEG_NAME                    COUNT(*)
    DDL                                 SYS        WRH$_ACTIVE_SESSION_HISTO          1
                                                   RY
    DDL                                 SYS        WRH$_SYS_TIME_MODEL                1
    INSERT                              IBY        IBY_DOCS_PAYABLE_ALL               6
    UPDATE                              IBY        IBY_DOCS_PAYABLE_ALL              36
    INSERT                              GL         GL_CODE_COMBINATIONS               3
    INSERT                              XLA        XLA_AE_HEADERS_GT                 12
    UPDATE

  • Create procedure is generating too many archive logs

    Hi
    The following procedure was run on one of our databases and it hung since there were too many archive logs being generated.
    What would be the answer? The db must remain in archivelog mode.
    I understand the nologging concept, but as I know this applies to creating tables, views, indexes and tablespaces. This script is creating procedure.
    CREATE OR REPLACE PROCEDURE APPS.Dfc_Payroll_Dw_Prc(Errbuf OUT VARCHAR2, Retcode OUT NUMBER
    ,P_GRE NUMBER
    ,P_SDATE VARCHAR2
    ,P_EDATE VARCHAR2
    ,P_ssn VARCHAR2
    ) IS
    CURSOR MainCsr IS
    SELECT DISTINCT
    PPF.NATIONAL_IDENTIFIER SSN
    ,ppf.full_name FULL_NAME
    ,ppa.effective_date Pay_date
    ,ppa.DATE_EARNED period_end
    ,pet.ELEMENT_NAME
    ,SUM(TO_NUMBER(prv.result_value)) VALOR
    ,PET.ELEMENT_INFORMATION_CATEGORY
    ,PET.CLASSIFICATION_ID
    ,PET.ELEMENT_INFORMATION1
    ,pet.ELEMENT_TYPE_ID
    ,paa.tax_unit_id
    ,PAf.ASSIGNMENT_ID ASSG_ID
    ,paf.ORGANIZATION_ID
    FROM
    pay_element_classifications pec
    , pay_element_types_f pet
    , pay_input_values_f piv
    , pay_run_result_values prv
    , pay_run_results prr
    , pay_assignment_actions paa
    , pay_payroll_actions ppa
    , APPS.pay_all_payrolls_f pap
    ,Per_Assignments_f paf
    ,per_people_f ppf
    WHERE
    ppa.effective_date BETWEEN TO_DATE(p_sdate) AND TO_DATE(p_edate)
    AND ppa.payroll_id = pap.payroll_id
    AND paa.tax_unit_id = NVL(p_GRE, paa.tax_unit_id)
    AND ppa.payroll_action_id = paa.payroll_action_id
    AND paa.action_status = 'C'
    AND ppa.action_type IN ('Q', 'R', 'V', 'B', 'I')
    AND ppa.action_status = 'C'
    --AND PEC.CLASSIFICATION_NAME IN ('Earnings','Alien/Expat Earnings','Supplemental Earnings','Imputed Earnings','Non-payroll Payments')
    AND paa.assignment_action_id = prr.assignment_action_id
    AND prr.run_result_id = prv.run_result_id
    AND prv.input_value_id = piv.input_value_id
    AND piv.name = 'Pay Value'
    AND piv.element_type_id = pet.element_type_id
    AND pet.element_type_id = prr.element_type_id
    AND pet.classification_id = pec.classification_id
    AND pec.non_payments_flag = 'N'
    AND prv.result_value <> '0'
    --AND( PET.ELEMENT_INFORMATION_CATEGORY LIKE '%EARNINGS'
    -- OR PET.element_type_id IN (1425, 1428, 1438, 1441, 1444, 1443) )
    AND NVL(PPA.DATE_EARNED, PPA.EFFECTIVE_DATE) BETWEEN PET.EFFECTIVE_START_DATE AND PET.EFFECTIVE_END_DATE
    AND NVL(PPA.DATE_EARNED, PPA.EFFECTIVE_DATE) BETWEEN PIV.EFFECTIVE_START_DATE AND PIV.EFFECTIVE_END_DATE --dcc
    AND NVL(PPA.DATE_EARNED, PPA.EFFECTIVE_DATE) BETWEEN Pap.EFFECTIVE_START_DATE AND Pap.EFFECTIVE_END_DATE --dcc
    AND paf.ASSIGNMENT_ID = paa.ASSIGNMENT_ID
    AND ppf.NATIONAL_IDENTIFIER = NVL(p_ssn, ppf.NATIONAL_IDENTIFIER)
    ------------------------------------------------------------------TO get emp.
    AND ppf.person_id = paf.person_id
    AND NVL(PPA.DATE_EARNED, PPA.EFFECTIVE_DATE) BETWEEN ppf.EFFECTIVE_START_DATE AND ppf.EFFECTIVE_END_DATE
    ------------------------------------------------------------------TO get emp. ASSIGNMENT
    --AND paf.assignment_status_type_id NOT IN (7,3)
    AND NVL(PPA.DATE_EARNED, PPA.EFFECTIVE_DATE) BETWEEN paf.effective_start_date AND paf.effective_end_date
    GROUP BY PPF.NATIONAL_IDENTIFIER
    ,ppf.full_name
    ,ppa.effective_date
    ,ppa.DATE_EARNED
    ,pet.ELEMENT_NAME
    ,PET.ELEMENT_INFORMATION_CATEGORY
    ,PET.CLASSIFICATION_ID
    ,PET.ELEMENT_INFORMATION1
    ,pet.ELEMENT_TYPE_ID
    ,paa.tax_unit_id
    ,PAF.ASSIGNMENT_ID
    ,paf.ORGANIZATION_ID
    BEGIN
    DELETE cust.DFC_PAYROLL_DW
    WHERE PAY_DATE BETWEEN TO_DATE(p_sdate) AND TO_DATE(p_edate)
    AND tax_unit_id = NVL(p_GRE, tax_unit_id)
    AND ssn = NVL(p_ssn, ssn)
    COMMIT;
    FOR V_REC IN MainCsr LOOP
    INSERT INTO cust.DFC_PAYROLL_DW(SSN, FULL_NAME, PAY_DATE, PERIOD_END, ELEMENT_NAME, ELEMENT_INFORMATION_CATEGORY, CLASSIFICATION_ID, ELEMENT_INFORMATION1, VALOR, TAX_UNIT_ID, ASSG_ID,ELEMENT_TYPE_ID,ORGANIZATION_ID)
    VALUES(V_REC.SSN,V_REC.FULL_NAME,v_rec.PAY_DATE,V_REC.PERIOD_END,V_REC.ELEMENT_NAME,V_REC.ELEMENT_INFORMATION_CATEGORY, V_REC.CLASSIFICATION_ID, V_REC.ELEMENT_INFORMATION1, V_REC.VALOR,V_REC.TAX_UNIT_ID,V_REC.ASSG_ID, v_rec.ELEMENT_TYPE_ID, v_rec.ORGANIZATION_ID);
    COMMIT;
    END LOOP;
    END ;
    So, how could I assist our developer with this, so that she can run it again without it generating a ton of logs ? ?
    Thanks
    Oracle 9.2.0.5
    AIX 5.2

    The amount of redo generated is a direct function of how much data is changing. If you insert 'x' number of rows, you are going to generate 'y' mbytes of redo. If your procedure is destined to insert 1000 rows, then it is destined to create a certain amount of redo. Period.
    I would question the <i>performance</i> of the procedure shown ... using a cursor loop with a commit after every row is going to be a slug on performance but that doesn't change the fact 'x' inserts will always generate 'y' redo.

  • Generate archive logs are not in sequence number?

    On last friday... the latest archive log number was ARC00024.ARC. Tomorrow when I come backup, the archive logs ARC00001.ARC and ARC00002.ARC were being generated by oracle itself. I wondering the archive log sequence should be in sequence. What is happening?
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination C:\oracle\ora92\RDBMS
    Oldest online log sequence 1
    Next log sequence to archive 3
    Current log sequence 3
    SQL>
    FAN
    Edited by: user623471 on Jun 7, 2009 7:35 PM

    khurram,
    Its our production instance and havent issued resetlogs option but when listing the arvchives it shows in different sequence number...
    and also while copying the archives by RMAN it doesnt copy in sequence
    -rw-r----- 1 xxx dba 69363859 May 28 19:16 2_10373.arc.gz
    -rw-r----- 1 xxx dba 43446622 May 28 19:16 1_10553.arc.gz
    -rw-r----- 1 xxx dba 52587365 May 28 19:16 1_10578.arc.gz
    -rw-r----- 1 xxx dba 45251820 May 28 19:16 1_10543.arc.gz
    -rw-r----- 1 xxx dba 60890256 May 28 19:17 1_10579.arc.gz
    -rw-r----- 1 xxx dba 46659008 May 28 19:17 1_10548.arc.gz
    -rw-r----- 1 xxx dba 116899466 May 28 19:17 2_10353.arc.gz
    -rw-r----- 1 xxx dba 77769517 May 28 19:17 1_10531.arc.gz
    -rw-r----- 1 xxx dba 66401923 May 28 19:18 1_10530.arc.gz
    -rw-r----- 1 xxx dba 45972697 May 28 19:18 1_10605.arc.gz
    -rw-r----- 1 xxx dba 55082543 May 28 19:18 1_10600.arc.gz
    -rw-r----- 1 xxxq dba 42682207 May 28 19:19 1_10547.arc.gz
    thanks,
    baskar.l

  • How can I turn off archive logs are being generated by system? (ugrent)

    Dear all,
    How can I turn off archive logs are being generated by system?
    Best Regards,
    Amy

    Sorry not to you @kamran its to OP.accidently it reply button pressed for you
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145750508 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 262144 bytes
    Database mounted.
    SQL> alter database noarchivelog
      2  /
    Database altered.
    SQL> Khurram

Maybe you are looking for

  • Reading and Splitting

    I have 5 classes: Fruit Apple, Melon and gooseberry extends Fruit and has few additional attributes of their own FruitExpert is the main class I have to read from a file which is record based according to the first line. For Eg: APPLE CRISPIN YELLOWI

  • Settings phone services in chinese

    somehow I hit a wrong setting now my services are reading in Chinese someone please help

  • Trying to install a Demo Plug-in...

    I just got a free demo Filter plug-in for 3D Shadow effects from a company called Andromeda Software Inc. The instructions say that when you go to install it, it will look for a Photoshop folder called Plug-ins, if it doesn't find this folder, it say

  • Xmi models

    can anyone please let me know about xmi files?...i came across this doubt while i was going thru the NWDS web dynpro model tools which import an XMI model for developing an application.

  • Tool for measuring execution time?

    Hi, i'm trying to measure the time of some determined methods in my app. I've tried System.currentMillis(), but i don't get the accuracy i need (System.nanoTime() - from 1.5.0 sdk won't help me neihter). Does anyone know a simple java tool that i can