Purge archive logs standby database

How can I purge automaticly the archives logs in the standby database?
I have oracle versión 11.2.0.2 with +ASM in solaris.
Thanks.

My bad.
Will update my notes.
This is still there :
Applied Archivelogs Are Not Deleted On Physical Standby Site from Flash Recovery Area [ID 404338.1]
Since you have your DELETION POLICY set correctly you can also run something like this on the Standby :
run {
allocate channel for maintenance device type disk;
delete archivelog until time 'sysdate -5';
}Best Regards
mseberg
Edited by: mseberg on Aug 16, 2012 4:36 AM

Similar Messages

  • Next log sequence to archive in Standby Database (RAC Dataguard Issue)

    Hi All,
    I just had implemented Data Guard in our server. My primary Database is RAC configured, but it is only single node. The other Instance was removed and converted it to Developement Instance. For the reason I kept the primary as RAC is when I will implement dataguard, my Primary Database is RAC with 7 nodes.
    The first test is successful, and I was able to "switchover" from my primary to standby. I failed in the 'FAILOVER" test.
    I restore my primary server and redo the setup.
    BTW, my standby DB is physical standby.
    When I try to switchover again and issue archive log list, below is my output.
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 38
    *Next log sequence to archive 0*
    Current log sequence 38
    SQL> select open_mode, database_role from v$database;
    OPEN_MODE DATABASE_ROLE
    MOUNTED PHYSICAL STANDBY
    ===============================================
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 38
    *Next log sequence to archive 38*
    Current log sequence 38
    SQL> select open_mode, database_role from v$database;
    OPEN_MODE DATABASE_ROLE
    READ WRITE PRIMARY
    In my first attempt to switchover before I failed in "FAILOVER" test, I also issue +archive log list+ in both primary and standby database, and if I remember it right, next log sequence on both should be identical. Am I right on this?
    Thanks in Advance.
    Jay A

    Or Am i just overthinking on this?
    Is dataguard only looking for the current and oldest log sequence?

  • How to apply archive in Standby Database?

    Hello,
    My Database are running in linux plateform. I am seeing that archives which are generating are not copying to standby server & not applying.
    Can anybody suggest me how to copy archive from primary database(ASM file system) to standby Database & apply those archives?
    Thanks

    Hi,
    I am having similar problem. The primary logs are shipping on to standby but are not getting applied.
    Here are the outputs:
    From primary
    SQL > select thread#,max(sequence#) from v$archived_log where archived='YES' group by thread#;
    THREAD# MAX(SEQUENCE#)
    1 27908
    2 28476
    3 31643
    select max(sequence#) from gv$archived_log;
    MAX(SEQUENCE#)
    31643
    From Standby
    SQL > select thread#,max(sequence#) from v$archived_log where applied ='YES' group by thread#;
    THREAD# MAX(SEQUENCE#)
    1 26862
    2 27580
    3 30874
    select max(sequence#) from v$archived_log;
    MAX(SEQUENCE#)
    31643
    Any help is appreciated.
    Thanks in advance.

  • Apply archive logs to database

    I have a production database that is online. I'm planning to setup a pc with the same configurations as that of the db server and use that server as the reporting generation. The clone pc's database will be one day delay compared to the production database. I'm planning to use export/import but someone suggested to use the archive log files of the production database and apply it to the clone pc, is this doable?
    I have a full export backup and all the archive log of the production database, is this enough to restore the clone pc to the state( one day back) of the production database?
    Need your suggestions. Thanks

    You can do this while configuring physical standby database.
    go through the link below to know more about physical standby
    http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10823/create_ps.htm
    regards

  • Is there a way to apply archive logs, standby DB is opened with 'resetlogs'

    Hi All,
    I have setup a standby database (Oracle 10g SE). I applied hot backup and archive logs to the standby database till yesterday. I have opened the standby database using 'alter database open resetlogs;" and validated the application functionality using the standby database.
    Now I want to regularly apply logs from the Primary database to the standby database, but today I have opened the standby database using 'alter database open resetlogs;"
    Need assistance to know the way to apply archive logs, once the standby database is opened with 'resetlogs' option to keep it in sync with the Primary database.
    Thanks
    Kunal

    Welcome to OTN,
    I have setup a standby database (Oracle 10g SE). I applied hot backup and archive logs to the standby database till yesterday. I have opened the standby database using 'alter database open resetlogs;" and validated the application functionality using the standby database.Standby opened with *resetlogs* ? What you did? have you performed failover of standby database?
    Now I want to regularly apply logs from the Primary database to the standby database, but today I have opened the standby database using 'alter database open resetlogs;"
    Need assistance to know the way to apply archive logs, once the standby database is opened with 'resetlogs' option to keep it in sync with the Primary database.Have you enabled Flashback & created Restore point? If so you can do it.. If not rebuild standby again.
    Check this scenario How To Open Physical Standby For Read Write Testing and Flashback [ID 805438.1]

  • Error archiving to standby database

    Hi
    I get the following error from tyhe primary db when trying to archive to a standby database.
    (tnsping is successfull)
    *** 2007-02-12 11:24:54.263
    RFS network connection lost at host 'test9isb'
    Error 3113 attaching RFS server to standby instance at host 'test9isb'
    Error 3113 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'test9isb'
    Heartbeat failed to connect to standby 'test9isb'. Error is 3113.
    *** 2007-02-12 11:24:54.263
    kcrrfail: dest:2 err:3113 force:0
    ORA-03113: end-of-file on communication channel
    Watching the standby listaner log file, it doesnt seem to get that far, so the problem is probably on the primary/outgoing side ....
    Can anyone suggest where my problem is ?
    Cheers
    Ian
    Message was edited by:
    user553552

    Hi
    I found a problem on the standby hosts listener.ora
    But now I cant really see any errors anywhere, but logs aren't being transferred ....
    Standby query "SELECT PROCESS, STATUS, THREAD#, SEQUENCE#, BLOCK#, BLOCKS FROM V$MANAGED_STANDBY;" is giving output:
    PROCESS STATUS THREAD# SEQUENCE# BLOCK# BLOCKS
    ARCH CONNECTED 0 0 0 0
    ARCH CONNECTED 0 0 0 0
    MRP0 WAIT_FOR_LOG 1 187 0 0
    RFS RECEIVING 0 0 0 0
    primary trace file says:
    Connecting to destination LOG_ARCHIVE_DEST_2 standby host 'test9isb'
    Attaching RFS server to standby instance at 'test9isb'
    Standby database restarted; old mount ID 0x8c27e216 now 0x8c28adf9
    Any advice pls ?!?

  • Logical standby | archive log deleted | how to remove gap ???

    hi gurus...
    i have problem on logical standby
    by mistake standby log coming to logical standby has been deleted , now how to fill up the gap ???
    ON STANDBY
    SEQUENCE# FIRST_CHANGE# NEXT_CHANGE# APPLIED
    228 674847 674872 YES
    229 674872 674973 CURRENT
    230 674973 674997 NO
    231 674997 675023 NO
    232 675023 675048 NO
    233 675048 675109 NO
    234 675109 675135 NO
    235 675135 675160 NO
    236 675160 675183 NO
    237 675183 675208 NO
    238 675208 675232 NO
    239 675232 675257 NO
    240 675257 675282 NO
    241 675282 675382 NO
    242 675382 675383 NO
    243 675383 675650 NO
    244 675650 675652 NO
    245 675652 675670 NO
    246 675670 675688 NO
    247 675688 675791 NO
    248 675791 678524 NO
    archive log are shipping to standby location also and getting registered
    ALERT LOG OF STANDBY
    Fri May 7 12:25:36 2010
    Primary database is in MAXIMUM PERFORMANCE mode
    RFS[21]: Successfully opened standby log 5: '/u01/app/oracle/oradata/BEST/redo05.log'
    Fri May 7 12:25:37 2010
    RFS LogMiner: Registered logfile [u01/app/oracle/flash_recovery_area/BEST/archivelog/archBEST_248_1_715617824.dbf] to LogMiner session id [1]
    but i dont have standby log after 229 sequence ...
    ON PRIMARY
    SYS@TEST AS SYSDBA> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination /u01/app/oracle/flash_recovery_area/TEST/standlogOldest online log sequence 247
    Next log sequence to archive 249
    Current log sequence 249
    what to do next to apply sequences and bring both in sync.
    please help me ,,,,
    Edited by: user12281508 on May 7, 2010 9:45 AM

    thanks for response.
    no its pure logical standby
    i have tried to ftp the archive logs of primary to standby and applied manually
    SYS@BEST AS SYSDBA> alter database register logfile '/u01/app/oracle/flash_recovery_area/BEST/archivelog/archBEST_230_1_715617824.dbf';
    alter database register logfile '/u01/app/oracle/flash_recovery_area/BEST/archivelog/archBEST_230_1_715617824.dbf'
    ERROR at line 1:
    ORA-01289: cannot add duplicate logfile
    SYS@BEST AS SYSDBA> alter database register logfile '/u01/app/home/archTEST_230_1_715617824.dbf';
    alter database register logfile '/u01/app/home/archTEST_230_1_715617824.dbf'
    ERROR at line 1:
    ORA-01289: cannot add duplicate logfile
    any other way ????

  • Standby database Error in applying archives

    Hi All
    Environment:
    Oracle 8i
    Platform- HP-UX
    I have production database on HPUX box and standby database on anothe HPUX box.
    I am applying archive to standby everyday manually.
    In last week, I have added ney datafile webapp03 in Production database tablespace.
    When I apply archive to standby database. It says archive apply sucessfully but give below warning:
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01195: online backup of file 25 needs more recovery to be consistent
    ORA-01110: data file 25: '/u06/oradata/vestcom/webapp03.dbf'
    Yesterday I have copied datafile from production to standby database.
    But still I am getting same warning:
    Please let me know in detail, I am totally new in this admin field.
    Please help me out for this issue:
    Thanks in Advance.
    R M

    Absolutely. First place the tablespace space in backup mode, then copy over the datafile and then end the backup mode - applying the log files should be fine now.
    HTH
    Thanks
    Chandra

  • Standby creating archives log files issue!

    Hello Everyone,
    Working on oracle 10g R2/Windows, I have created a dataguard with one standby database, but there is a strange issue that happen, and I'll need someone to shed the light to me.
    By default archived log created from the primary database should be the  sent to the stanndby database, but I found that the standby database has plus one archived log file.
    From the primary database:
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination C:\local_destination1_orcl
    Oldest online log sequence 1021
    Next log sequence to archive 1023
    Current log sequence 1023
    contents of C:\local_destination1_orcl
    1_1022_623851185.ARC
    from the standby database:
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination C:\local_destination1_orcl
    Oldest online log sequence 1022
    Next log sequence to archive 0
    Current log sequence 1023
    contents of C:\local_destination1_orcl
    1_1022_623851185.ARC
    1_1023_623851185.ARC ---> this is the extra archive file created in the standby database, should someone let me know how to avoid this?
    Thanks for your help

    SELECT FROM v$version;*
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for 64-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    The standby database is a physical standby database (not logical standby)
    Thanks against for your contribution, but I'm still not know why standby create and arhive files too?

  • Have i missed any archive log in Standby setup?, im unable to find

    Dear All,
    I setup standby in Oracle10g.
    In my Primary the archive log list shows as
    primary>archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination D:\STANDBY\Archive
    Oldest online log sequence 30
    Next log sequence to archive 32
    Current log sequence 32
    In my standby the archive log list shows as
    standby>archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination C:\PRIMARY\Archive
    Oldest online log sequence 31
    Next log sequence to archive 0
    Current log sequence 32
    Have i missed any archive log file?
    But in my archive location of the primary i found the archive files from ARC00002_0633898426.001,ARC00003_0633898426.001 to ARC00031_0633898426.001
    and in my archive location of the standby i found the archive files from
    ARC00002_0633898426.001,ARC00003_0633898426.001 to ARC00031_0633898426.001 and one more extra archive file ARC00032_0633898426.001.
    I am getting confused from where i got the archive file ARC00032_0633898426.001 in standby only which is not in primary?
    Please clarify this...

    Please let me know abiut the above issue, i will be thankful to you.

  • Logs are not archived at Standby site on same server

    Hello all,
    I am using 11gR2 on Redhat Linux 5
    i have a testing to do in which i have created my standby database through rman duplicate command
    i have my standby db on the same machine.
    my primary database is : prod
    standby database is : std
    on primary site:
    SQL> select database_role,open_mode,name from v$database;
    DATABASE_ROLE OPEN_MODE NAME
    PRIMARY READ WRITE PROD
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 53
    Next log sequence to archive 55
    Current log sequence 55
    but the archiving is not being done on standby site it shows the following:
    /*SQL> select database_role,open_mode,name,db_unique_name from v$database;
    DATABASE_ROLE OPEN_MODE NAME DB_UNIQUE_NAME
    PHYSICAL STANDBY MOUNTED PROD std
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 0
    Next log sequence to archive 0
    Current log sequence 0
    and in alert logfile os standby database its shoing follwoing error
    Fatal NI connect error 12543, connecting to:
    (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.25.217.137)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=prod)(CID=(PROGRAM=oracle)(HOST=sm-alpha)(USER=oracle))))
    VERSION INFORMATION:
    TNS for Linux: Version 11.2.0.3.0 - Production
    TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production
    Time: 10-DEC-2012 10:51:10
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12543
    TNS-12543: TNS:destination host unreachable
    ns secondary err code: 12560
    nt main err code: 513
    TNS-00513: Destination host unreachable
    nt secondary err code: 113
    nt OS err code: 0
    Fatal NI connect error 12543, connecting to:
    (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.25.217.137)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=prod)(CID=(PROGRAM=oracle)(HOST=sm-alpha)(USER=oracle))))
    VERSION INFORMATION:
    TNS for Linux: Version 11.2.0.3.0 - Production
    TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production
    Time: 10-DEC-2012 10:51:14
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12543
    TNS-12543: TNS:destination host unreachable
    ns secondary err code: 12560
    nt main err code: 513
    TNS-00513: Destination host unreachable
    nt secondary err code: 113
    nt OS err code: 0
    Error 12543 received logging on to the standby
    FAL[client, MRP0]: Error 12543 connecting to toprod for fetching gap sequence
    here is my /etc/hosts
    [root@sm-alpha ~]# cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    10.25.217.137 sm-alpha
    and when i ping to sm-alpha
    it gives
    PING sm-alpha (10.25.217.137) 56(84) bytes of data.
    From 10.25.205.117 icmp_seq=1 Destination Host Unreachable
    From 10.25.205.117 icmp_seq=2 Destination Host Unreachable
    From 10.25.205.117 icmp_seq=3 Destination Host Unreachable
    From 10.25.205.117 icmp_seq=4 Destination Host Unreachable
    From 10.25.205.117 icmp_seq=5 Destination Host Unreachable
    would any one have a kind look at my problem.
    thanks

    Hi;
    You are at wrong forum site. I suggest close your issue here as answered than move your issue Forum Home » High Availability » DATAGUARD which is DG dedicated forum site.
    Regard
    Helios

  • All logs received but not applied | Physical Standby Database

    All,
    Need your help....
    We have physical standby database setup as below
    Primary : 2 node RAC
    Stdby : Standalone physical standby database.
    When I verify the stdby database status, I could see all the logs are received from primary but still not applied many.. Could any one please help me what is the issue and how to resolve it ...?
    Primary :
    =====
    SQL> SELECT THREAD# "Thread",SEQUENCE# "Last Sequence Generated"
    FROM V$ARCHIVED_LOG
    WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)
    ORDER BY 1 2 3 4 ;
    Thread Last Sequence Generated
    1 8073
    1 8073
    2 4521
    2 4521
    stdby:
    ====
    SQL> SELECT ARCH.THREAD# "Thread",
    2 ARCH.SEQUENCE# "Last Sequence Received",
    3 APPL.SEQUENCE# "Last Sequence Applied",
    4 (ARCH.SEQUENCE# - APPL.SEQUENCE#) "Difference"
    5 FROM
    6 (SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN
    7 (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,
    8 (SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN
    (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL
    9 10 WHERE ARCH.THREAD# = APPL.THREAD# ORDER BY 1;
    Thread Last Sequence Received Last Sequence Applied Difference
    1 8073 8055 18
    2 4521 4510 11
    --Below are tailed messages from standby alert log:
    Fri Nov 04 10:45:15 2011
    ARCH: Archival stopped, error occurred. Will continue retrying
    ORACLE Instance BWFCCSTD - Archival Error
    ORA-16014: log 6 sequence# 8058 not archived, no available destinations
    ORA-00312: online log 6 thread 1: '+ASM_DATA01/bwfccstd/onlinelog/group_6.418.766235259'
    ORA-00312: online log 6 thread 1: '+ASM_FRA01/bwfccstd/onlinelog/group_6.307.766235263'
    Fri Nov 04 10:50:15 2011
    Archiver process freed from errors. No longer stopped
    Fri Nov 04 10:50:15 2011
    ARCH: Archival stopped, error occurred. Will continue retrying
    ORACLE Instance BWFCCSTD - Archival Error
    ORA-16014: log 6 sequence# 8058 not archived, no available destinations
    ORA-00312: online log 6 thread 1: '+ASM_DATA01/bwfccstd/onlinelog/group_6.418.766235259'
    ORA-00312: online log 6 thread 1: '+ASM_FRA01/bwfccstd/onlinelog/group_6.307.766235263'
    Fri Nov 04 10:50:15 2011
    Archiver process freed from errors. No longer stopped
    Fri Nov 04 10:55:15 2011
    ARCH: Archival stopped, error occurred. Will continue retrying
    ORACLE Instance BWFCCSTD - Archival Error
    ORA-16014: log 6 sequence# 8058 not archived, no available destinations
    ORA-00312: online log 6 thread 1: '+ASM_DATA01/bwfccstd/onlinelog/group_6.418.766235259'
    ORA-00312: online log 6 thread 1: '+ASM_FRA01/bwfccstd/onlinelog/group_6.307.766235263'
    Fri Nov 04 11:00:15 2011
    Archiver process freed from errors. No longer stopped
    Fri Nov 04 11:00:15 2011
    ARCH: Archival stopped, error occurred. Will continue retrying
    ORACLE Instance BWFCCSTD - Archival Error
    ORA-16014: log 6 sequence# 8058 not archived, no available destinations
    ORA-00312: online log 6 thread 1: '+ASM_DATA01/bwfccstd/onlinelog/group_6.418.766235259'
    ORA-00312: online log 6 thread 1: '+ASM_FRA01/bwfccstd/onlinelog/group_6.307.766235263'
    Fri Nov 04 11:00:15 2011
    Archiver process freed from errors. No longer stopped
    Fri Nov 04 11:05:16 2011
    ARCH: Archival stopped, error occurred. Will continue retrying
    ORACLE Instance BWFCCSTD - Archival Error
    ORA-16014: log 6 sequence# 8058 not archived, no available destinations
    ORA-00312: online log 6 thread 1: '+ASM_DATA01/bwfccstd/onlinelog/group_6.418.766235259'
    ORA-00312: online log 6 thread 1: '+ASM_FRA01/bwfccstd/onlinelog/group_6.307.766235263'
    Fri Nov 04 11:05:16 2011
    Archiver process freed from errors. No longer stopped

    Primary:
    =====
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination +ASM_FRA01
    Oldest online log sequence 8073
    Next log sequence to archive 8074
    Current log sequence 8074
    SQL>
    Stdby:
    =====
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination ?/dbs/arch
    Oldest online log sequence 8074
    Next log sequence to archive 0
    Current log sequence 8074
    Enough space is available :
    =================
    SQL> set lines 180 pages 50000;
    SQL> set lines 100
    col name format a60
    select name
    , floor(space_limit / 1024 / 1024) "Size MB"
    , ceil(space_used / 1024 / 1024) "Used MB"
    from v$recovery_file_dest
    order by nameSQL> SQL> 2 3 4 5 ;
    NAME Size MB Used MB
    +ASM_FRA01                                                        70000        531
    Edited by: 889828 on 2011/11/04 2:26 AM

  • Online Redolog Archiving on Logical Standby Databases!!

    Hi,
    Can I safely stop archiving on logical standby database? It has been inherited from primary database at the time of creation, but I don't see any reason why to keep it enabled while it's consuming unnecessary disk space on our server!!
    Any body can give a valid reason to keep it enabled??
    Thanks

    hi
    u dont need archiving on standby database as standby database reads archive files that come from primary database.its simply wastage of resource.stand by database was created from primary by taking a full backup.and to apply the archive files in case of failure u need atleast 1 backup of stand by database .and i assume u wont go for taking backup of standby database.
    just worry about the archives of primary database.
    kanchan
    OCP ( 9i,10g)

  • Database large Number of archive log

    Oracle 11g
    window server 2008 R2
    My database working fine, from last week i have noticed that database generating large no of archive log.
    Database size is 30GB
    Only one table space is 16GB , other tablespaces not more 2 GB.
    I can not figured out why it  generating large no. of archive log. can any one help me to figure out.
    previous week i have only did these changes
    Drop index
    create index
    create new table from existing table.
    nothing else i  did.

    Hi
    As you say workload increases. See when the number of log switches goes high and take an AWR report or statspack report. Check the DML operations. Use below query to chk the log switches
    spool c:\log_hist.txt
    SET PAGESIZE 90
    SET LINESIZE 150
    set heading on
    column "00:00" format 9999
    column "01:00" format 9999
    column "02:00" format 9999
    column "03:00" format 9999
    column "04:00" format 9999
    column "05:00" format 9999
    column "06:00" format 9999
    column "07:00" format 9999
    column "08:00" format 9999
    column "09:00" format 9999
    column "10:00" format 9999
    column "11:00" format 9999
    column "12:00" format 9999
    column "13:00" format 9999
    column "14:00" format 9999
    column "15:00" format 9999
    column "16:00" format 9999
    column "17:00" format 9999
    column "18:00" format 9999
    column "19:00" format 9999
    column "20:00" format 9999
    column "21:00" format 9999
    column "22:00" format 9999
    column "23:00" format 9999
    SELECT * FROM (
    SELECT * FROM (
    SELECT TO_CHAR(FIRST_TIME, 'DD/MM') AS "DAY"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '00', 1, 0), '99')) "00:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '01', 1, 0), '99')) "01:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '02', 1, 0), '99')) "02:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '03', 1, 0), '99')) "03:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '04', 1, 0), '99')) "04:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '05', 1, 0), '99')) "05:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '06', 1, 0), '99')) "06:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '07', 1, 0), '99')) "07:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '08', 1, 0), '99')) "08:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '09', 1, 0), '99')) "09:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '10', 1, 0), '99')) "10:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '11', 1, 0), '99')) "11:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '12', 1, 0), '99')) "12:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '13', 1, 0), '99')) "13:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '14', 1, 0), '99')) "14:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '15', 1, 0), '99')) "15:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '16', 1, 0), '99')) "16:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '17', 1, 0), '99')) "17:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '18', 1, 0), '99')) "18:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '19', 1, 0), '99')) "19:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '20', 1, 0), '99')) "20:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '21', 1, 0), '99')) "21:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '22', 1, 0), '99')) "22:00"
    , SUM(TO_NUMBER(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '23', 1, 0), '99')) "23:00"
      FROM V$LOG_HISTORY
      WHERE extract(year FROM FIRST_TIME) = extract(year FROM sysdate)
      GROUP BY TO_CHAR(FIRST_TIME, 'DD/MM')
      ) ORDER BY TO_DATE(extract(year FROM sysdate) || DAY, 'YYYY DD/MM') DESC
      ) WHERE ROWNUM <8;
    spool off
    One common mistake is enabling debugging. You can  check in application code if any debugging is enabled. (insert every records for logging or support purpose)
    Regards
    Anand.

  • To clear db2 archive log after db2 database backup

    After db2 backup archive log remains as it is.is there setting to remove archive logs after database backup.DAS is not installed.
    DB2 9.1 FP 6
    os HP unix

    Hello Anand,
    If the archvied logs are not required, ie they are not required for restore    
    you can remove them. 
    You can check this is by running                                                                               
    db2 list history all for db <sid>                                                                               
    The above command will give you a detailed overview of the backup           
    history and what logs were archived and what logs were included or needed for restore of backups.
    If they are no longer needed for a restore, then it is safe to remove them.
    Kind regards,
    Paul

Maybe you are looking for

  • Macbook Pro 13" Screen Distortion and Flickering

    Hi Guys, please help me if you can, got this problem where the screen keeps flickering and distorting... got a couple of videos here, need some help!. http://www.youtube.com/watch?v=3k5Dqj1KlnY http://www.youtube.com/watch?v=XhthT9XHIus&feature=chann

  • The volume control on my ipod touch 4th Gen is gone,what should I do?

    It just happen to me lately, so as I open the music while my earhones are plugged,I saw that there is no volume control on my screen but the song is still playing but I can't hear anything so I remove my earphones then I plugged it again then the vol

  • A new feature in iTunes 7 allows you to set the Kind for your video??

    I'm new to Apple TV and I use Windows for the itune. My question is my music video. I have a lot of video music that imported to Itunes to play on my Apple Tv the problem is, when I Imported them it automatically put the kind of video to "movie". I k

  • EBS-R12 Generate XML (with data) from Embedded Data Definition

    Hi I'm new to running XMLP/BIP in EBS. I have found the extensive set of data definitions and templates in EBS and they work great out of the box. I, however, need to make template modifications. To this end, a correctly structured XML data template

  • Drag and drop issues

    hi ive got the following code. bevvy is a movieclip, theres a dynamic text box called feedText nd a box..imaginately called box. I'm trying to create a drag and drop game when the user drags a word into the box that will have its meaning beside it in