Oracle database archive logs

Hi all

I searched the Oracle and Internet Documents. It is really hard to get information on the management of the archive Log, so I thought to post it here:

Now, our Database 9i (EBS 11.5.x) was in no archive mode, so I allowed him to archive mode.

Edit the pfile $ORACLE_HOME/admin/SID/pfile who will be /oracle/proddb/9.2.0/dbs/initPROD.ora

############################

# Archive Log Destinations-benr(10/15/04)

############################

Log_archive_dest_1 = ' location = / Uncordon / archive.

log_archive_start = TRUE


then connect to the database





SQL > shutdown normal;

SQL > startup mount exclusive;

SQL > alter system set log_archive_start = TRUE scope = spfile;
SQL > alter system set log_archive_dest_1='LOCATION= /oracle/archivelog '
scope=both;
SQL > alter archivelog database;
SQL > CHANGE the START of the SYSTEM ARCHIVE LOG;
SQL > alter database open;
SQL > alter system archive log all;
SQL > change the start of the archive log system;
SQL > archive log start;


The next day, I checked the location of archive and sparked an archive of 1 GB even if there is no activity on the database.

root@test4:/oracle/archivelog>ls
1_844.dbf   1_862.dbf   1_880.dbf   1_898.dbf   1_916.dbf   1_934.dbf
1_845.dbf   1_863.dbf   1_881.dbf   1_899.dbf   1_917.dbf   1_935.dbf
1_846.dbf   1_864.dbf   1_882.dbf   1_900.dbf   1_918.dbf   1_936.dbf
1_847.dbf   1_865.dbf   1_883.dbf   1_901.dbf   1_919.dbf   1_937.dbf
1_848.dbf   1_866.dbf   1_884.dbf   1_902.dbf   1_920.dbf   1_938.dbf
1_849.dbf   1_867.dbf   1_885.dbf   1_903.dbf   1_921.dbf   1_939.dbf
1_850.dbf   1_868.dbf   1_886.dbf   1_904.dbf   1_922.dbf   1_940.dbf
1_851.dbf   1_869.dbf   1_887.dbf   1_905.dbf   1_923.dbf   1_941.dbf
1_852.dbf   1_870.dbf   1_888.dbf   1_906.dbf   1_924.dbf   1_942.dbf
1_853.dbf   1_871.dbf   1_889.dbf   1_907.dbf   1_925.dbf   1_943.dbf
1_854.dbf   1_872.dbf   1_890.dbf   1_908.dbf   1_926.dbf   1_944.dbf
1_855.dbf   1_873.dbf   1_891.dbf   1_909.dbf   1_927.dbf   1_945.dbf
1_856.dbf   1_874.dbf   1_892.dbf   1_910.dbf   1_928.dbf   1_946.dbf
1_857.dbf   1_875.dbf   1_893.dbf   1_911.dbf   1_929.dbf   1_947.dbf
1_858.dbf   1_876.dbf   1_894.dbf   1_912.dbf   1_930.dbf   lost+found
1_859.dbf   1_877.dbf   1_895.dbf   1_913.dbf   1_931.dbf   test.txt
1_860.dbf   1_878.dbf   1_896.dbf   1_914.dbf   1_932.dbf
1_861.dbf   1_879.dbf   1_897.dbf   1_915.dbf   1_933.dbf

Question

1. How can I delete old logs archiving without using RMAN?

2. How should I know which Archives connects to keep and delete?

3. is there a way to know why the database generates so many newspapers to check-in?

Hello

Yes, you must keep this archive. You can schedule the job to compress files to archive (record use of space) and move it to another place as a backup.

You can schedule both COLD backup once a week, in this case it is scabies archive for a week.

HTH

Tags: Database

Similar Questions

  • Application of an rman duplicate database archiving log

    I have databtase orcl2, which I've restored to orcl1 since the last incremental backup of nights. I need to roll up before orcl2 max log archive I have on orcl1 for today. What are the steps to do this, or if you could point me to the documentation it would be also useful.

    Thanks in advance

    When restore operations are completed successfully, you have a database that is separate and independent. You cannot apply any archivelogs of orcl1, even when orcl2 was built from orcl1 backups. If you want to have 2 databases that are synchronized with each other, you need a solution of dataguard (primary and physical relief databases).
    Refer to the documentation of dataguard corresponding to your version of unknown data.

    Werner

  • list of archive logs show only 1 location instead of 2

    Friends...
    OS: OEL 5.5 64-bit
    DB: 11g R2 (11.2.0.3) 64-bit
    I put 2 destination to archive. Log_archive_dest_1 = / u01/archive1 and log_archive_dest_2 under/u01/archive2.
    When I do this...
    SQL> archive log list
    Database log mode              Archive Mode
    Automatic archival             Enabled
    Archive destination            /u01/archive2/
    Oldest online log sequence     8
    Next log sequence to archive   10
    Current log sequence           10
    at the same time, when I do this...
    SQL> select dest_name,status,destination from v$archive_dest;
    
    DEST_NAME                                          STATUS                                             DESTINATION
    -------------------------------------------------- -------------------------------------------------- --------------------------------------------------
    LOG_ARCHIVE_DEST_1                                 VALID                                              /u01/archive1/
    LOG_ARCHIVE_DEST_2                                 VALID                                              /u01/archive2/
    Why list archives logs showing that one location whereas the query indicates both the location. and why list of newspapers of record showing instead of archive1 archive2?

    Thank you

    The LIST of NEWSPAPERS of ARCHIVES control gives a quick overview of the State of archive, it clearly should not be used to report on destinations.

    The ARCHIVE_DEST view $ V gives a clear view into where on the disk are these destinations and when you use the LOG_ARCHIVE_DEST_n parameter, is closely related to what has been entered in the file init.ora parameters

    Maybe this might help you http://www.databasejournal.com/features/oracle/article.php/3867646/Oracle-Database-Archive-Logging---Where-are-my-archive-logs.htm

  • How to activate the log mode archive in oracle database 11 g 2

    Hi all

    I hope that you all are doing well.

    I want to activate the archiving log in my version of the database 11.2.0.4.0 safely.

    Why safely because my database works fine now.

    Windows 8.1 - OS 64 bit.

    Please provide the correct steps

    so that the work of database and schema can not lose more after that the archive log is enabled.

    Thank you all for your response.

    I followed the thread How to archivelog mode

    Measures

    -----

    SQL > archive log list

    SQL > show parameter db_recovery_file

    SQL > alter system set db_recovery_file_dest_size = 10G scope = the two sid ='* ';

    SQL > shutdown immediate

    SQL > bootable media.

    SQL > alter archivelog database;

    SQL > alter database open;

    She is successful.

  • No clarity about the location of archive logs in Oracle database 11g

    I have this request which I am not able to solve. There is a location of the log archiving mentioned as /oraarch/app/oracle/oradata/snlprod/archive_logs/in the parameter log_archive_dest_1. But the archive logs appear in another location/orabackup/rman/snlprod/archive_logs. I wonder how the archive logs show at this location, / orabackup/rman/snlprod/archive_logs.


    I assume that there is only one way in what place can be given which is seen availability-> restore settings-> Media Recovery.


    Hopefully, my question is clear.


    Please get back with the answer to my query.


    Concerning

    Check the location of the archive log backup in the script. What is /orabackup/rman/snlprod/archive_logs.

  • can't understand why an extract of the database restore fails (missing archive logs)

    Dear,

    I'm completely back up my database ensures every night with following statement.

    full backup AS BACKUPSET COMPRESSED ORCL_FULL_STBY format database tag ' / oradata/archive/fast_recovery_area/%d_%T_%s_%p_FULL_STBY' more tag ORCL_FULL_STBY archivelog delete all entries;

    I wanted to check with 'restore... Preview' if my backup is good enough to restore the database from scratch.
    result = failed!
    Reason:
    "any backup log archived for thread 1 with sequence 65 and YVERT departure from 49020676 found to restore."

    I have read the documentation oracle and articles for days, but I did not understand that even though I take online backup yesterday if I want to restore my database today I still need archival newspapers last month?

    can you please review my analysis and tell me where I am doing wrong?

    for example a piece from my last backup;

    Time of accomplishment BS key Type LV size device Type elapsed time
    ------- ---- -- ---------- ----------- ------------ ---------------
    1008 full 199.25 M DISK 00:04:44 October 8, 15
    BP key: 1010 situation: AVAILABLE Tablet: YES Tag: ORCL_FULL_STBY
    Item name: / oradata/archive/fast_recovery_area/QIPDB1_20151008_1057_1_FULL_STBY
    List of defined backup data files 1008
    Name of file LV Type cash SNA cash time
    ---- -- ---- ---------- --------- ----
    50570723 full 1 8 October 15 /oradata/data/qipdb1/system01.dbf
    4 integer 50570723 8 October 15 /oradata/data/qipdb1/users01.dbf

    as you can see "Cash SNA" is 50570723 so tells me that my understanding if restore these backups I need archived newspapers on top of the YVERT.
    for me the best candidate is

    Time of accomplishment time BS key size Device Type
    ------- ---------- ----------- ------------ ---------------
    65,25 M 1004 00:01 DRIVE: 24 OCTOBER 8, 15
    BP key: 1006 situation: AVAILABLE Tablet: YES Tag: ORCL_FULL_STBY
    Part name: /oradata/archive/fast_recovery_area/QIPDB1_STBY/backupset/2015_10_08/o1_mf_annnn_ORCL_FULL_STBY_c1dkfw9k_.bkp

    List of newspapers archived in backup set 1004
    The next time that THRD Seq YVERT low low time next YVERT
    ---- ------- ---------- --------- ---------- ---------
    1 79 50310555 7 OCTOBER 15 50570723 8 OCTOBER 15

    BUT out of "restore...". Preview' RMAN stil tells me that

    any backup log archived for thread 1 with sequence 65 and YVERT departure from 49020676 found to restore
    any backup log archived for thread 1 with sequence 66 and YVERT departure from 49020693 found to restore
    any backup log archived for thread 1 with sequence 67 and YVERT departure from 49020696 found to restore
    any backup log archived for thread 1 with sequence 68 and YVERT departure from 49020761 found to restore
    any backup log archived for thread 1 with sequence 69 and YVERT departure from 49020836 found to restore
    any backup log archived for thread 1 with sequence 70 and YVERT departure from 49020919 found to restore
    any backup log archived for thread 1 with sequence 71 and YVERT departure from 49021021 found to restore
    any backup log archived for thread 1 with sequence 72 and YVERT departure from 49155291 found to restore
    any backup log archived for thread 1 with sequence 73 and YVERT departure from 49324912 found to restore
    any backup log archived for thread 1 with sequence 74 and YVERT departure from 49498102 found to restore

    When I look at V$ ARCHIVED_LOG I see seems indeed to these archived logs removed for cause of "more tag ORCL_FULL_STBY archivelog delete all entries ' that they have been deleetd after saving.
    and because of my retention policy and script; I remove the logs also archived backups that are more than 2 days.

    S SEQUENCE # FIRST_CHANGE # NEXT_CHANGE #.
    - ---------- ------------- ------------
    65 49020676 49020693 D
    A 49020693 OF 49020676 65
    D 68 49020761 49020836
    66 49020693 49020696 D
    67 49020696 49020761 D
    69 49020836 49020919 D
    70 49020919 49021021 D
    49155291 49021021 71 D
    72 49155291 49324912 D
    D 73 49324912 49498102
    74 49498102 49632131 D

    I still don't understand why rman complains of the archived logs that are for an older sequence (SNA) as my last backup
    because I was assuming that the concerned newspapers archived should have already applied to these files of data, right?

    My final goal is to deliver below for the case that we have lost everything.

    Run {}
    restore the database;
    recover the database;
    }

    Thanks in advance,
    Halit

    Hi guys,.

    I found the root cause and workaround

    RMAN-06025 - RMAN RESTORE DATABASE OVERVIEW to the backup site asks former newspaper (Doc ID 1599013.1)

    CAUSE Checkpoint_change# standby controlfile not refreshed properly.  BUG 15876029 - RESTORE PREVIEW ASKING OLD ARCHIVE LOG IN STANDBY DATABASE  Closed as DUPLICATE of  BUG 8740124 - CURRENT STANDBY REDO LOG GROUP SHOULD BE INCLUDED IN THE DATABASE BACKUP BY RMAN SOLUTION  1) Workaround is to recreate the standby controlfile.  OR  2) upgrade to 11.2.0.4 or above where Bug 8740124  is fixed  OR  3) check for availability of patch 8740124
    
  • Recovery of database of old backup and archive log file complete

    Hi expert Oracle!
    I encountered the problem where my oracle database restore.

    In my case:
    -My version of the database: 10.2.0.2
    -J' have a full database backup (01 - Nov)
    -J' have all the archived since (01 - Nov-> 05 - Nov) log file
    -My database down to 05 - Nov with disk error (no data file, not again...).
    -I have no backup RMAN (01 - Nov-> 05 - Nov)

    How to restore my database to 05 - Nov?

    Thank you

    After you RESTORE the DATABASE,

    Use the VALUE UNTIL to set the Point of recovery to 05 - Nov, and then RECOVER the DATABASE
    OR
    Use the SQL command "RECOVER database with the HELP of BACKUP CONTROLFILE until CANCEL" that will keep asking 'future' ArchiveLogs backup.

    Hemant K Collette

  • Find the archive logs generated per day (for 7.3.4 database)?

    I use a query like the one below to determine the average amount archives logs generated per day for a database for a month:

    Select sum (GB_USED_PER_DAY) count (GB_USED_PER_DAY) in (SELECT
    To_char(completion_time,'YYYY-mm-DD') completion_date,
    round (SUM (block_size *(blocks+1)) / 1024 / 1024 / 1024, 2) GB_USED_PER_DAY
    V $ archived_log
    WHEN TRUNC (completion_time) BETWEEN
    TRUNC(SYSDATE-30) AND TRUNC (SYSDATE)
    GROUP OF TO_CHAR(completion_time,'YYYY-MM-DD')
    order by 1 desc);

    This query does not work on Oracle 7.3.4 database. Anyone know how I can calculate average archive generation of newspapers per day for Oracle 7.3.4?

    Thanks in advance!

    Select substr(first_time,1,8), round (sum (bytes) /(1024*1024)) MB of v$ log group by substr (first_time, 1, 8);

  • Problem with the Archive log in Oracle 11 g

    Hi gurus,

    I'm new in the DBA role and I have real problems with the archive logs - they are written to the wrong place.
    This is my environment:
    Windows Server 2003 Enterprise x 64 Edition; Oracle 11g EE + ASM;
    I did everything according to the instructions.
    I did the following:
    1. install Oracle 11 g software
    2 instance created using DBCA for ASM in the same House and added a no formatted disk as a DATA disk group
    3 database instance created using DBCA mode archive using ASM for data files. I've mirrored controlfiles and redo online records on the C: drive. I created flash_recovery_area and a reference to it when the instance was created.
    4. start to import the data.

    And here's the problem - for an unknown to me reason archive logs are written on 2 places: 1. in the flash_recovery_area, 2; IN MY ORACLE_HOME!

    I opened with EM dbconsole init settings and found that there is a single parameter, that points to this place (standby_archive_dest =' docs in the % ORACLE_HOME%\RDBMS, it is written that it is an obsolete parameter). Is another parameter that I found (LOG_ARCHIVE_LOCAL_FIRST = TRUE - I put it to FALSE), but nothing to help continue to write in ORACLE_HOME.

    How can I stop it? If I can't stop, so what happens in production? Should I manually delete all newspapers of this Archive - it will be madness!

    Try to set log_archive_dest_1 specifically. Example: -.

    ALTER system set db_recovery_file_dest_size = 400G;
    ALTER system set db_recovery_file_dest = '+ ASM_ORADATA42;
    ALTER system set log_archive_dest_state_1 = reporter;
    ALTER system set LOG_ARCHIVE_DEST_1 is 'LOCATION = USE_DB_RECOVERY_FILE_DEST VALID_FOR =(ONLINE_LOGFILE,ALL_ROLES)';.
    ALTER system set log_archive_dest_state_1 = enable;

  • Backup the database with archiving logs lost

    How can I get a backup of the database when all archive logs have been lost?

    So, it looks that you use RMAN to back up, since all the archivelog went. You can do

    RMAN> crosscheck archivelog all;
    
    RMAN> delete archivelog all;
    

    then make a backup.

  • Problem with the archive log when you use RMAN for backup and restore (11g 2)

    Hello world
    Please help me solve this problem.
    I'm just beginner in Oracle Database (11 g 2). Today, I had a problem, I tried to back up and restore my db by RMAN. I delete all the files in /u01/app/oracle/oradata/orcl / * , then I restore them easily, but the point is I have a table, I can restore Hungarian, but cannot restore anything ranks in it (something wrong with step restore database). I'll tell the detail below.
    -First, I create a 'Day' with command table create table hr.day (varchar (20)) day. Then I backup complete by this:
    run{
    allocate channel bkp device type DISK FORMAT '/u01/backup/DB_FULL_%d_%T_s%s_p%p' ;
    backup as compressed backupset incremental level 0 tag 'DB_FULL' database include current controlfile;
    backup as compressed backupset tag 'ARCL_BKP_FULL' archivelog all delete input;
    crosscheck archivelog all;
    crosscheck backup;
    delete noprompt obsolete;
    release channel bkp;
    }


    D ' other hand, I have insert 'Monday' to table. then do an incremental backup by this:

    run{
    allocate channel bkp device type DISK FORMAT '/u01/backup/DB_INC_%d_%T_s%s_p%p' ;
    backup as compressed backupset incremental level 1 tag 'DB_INC' database include current controlfile;
    backup as compressed backupset tag 'ARCL_BKP_INC' archivelog all delete input;
    crosscheck archivelog all;
    crosscheck backup;
    delete noprompt obsolete;
    release channel bkp;
    }

    Repeat 7 times (Monday-> Saturday). And I got these files:

    [oracle@rac ~]$ ls -l /u01/backup/
    total 400280
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 07:23 c-1428943247-20160120-01
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:04 c-1428943247-20160120-02
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:05 c-1428943247-20160120-03
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:06 c-1428943247-20160120-04
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:08 c-1428943247-20160120-05
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:08 c-1428943247-20160120-06
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:09 c-1428943247-20160120-07
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:32 c-1428943247-20160120-08
    -rw-r----- 1 oracle oinstall 296337408 Jan 20 07:23 DB_FULL_ORCL_20160120_s89_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 07:23 DB_FULL_ORCL_20160120_s90_p1
    -rw-r----- 1 oracle oinstall   2266624 Jan 20 07:23 DB_FULL_ORCL_20160120_s91_p1
    -rw-r----- 1 oracle oinstall   4073984 Jan 20 07:23 DB_FULL_ORCL_20160120_s92_p1
    -rw-r----- 1 oracle oinstall  11201536 Jan 20 07:23 DB_FULL_ORCL_20160120_s93_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:05 DB_INC_ORCL_20160120_s100_p1
    -rw-r----- 1 oracle oinstall    146944 Jan 20 08:05 DB_INC_ORCL_20160120_s101_p1
    -rw-r----- 1 oracle oinstall    884736 Jan 20 08:06 DB_INC_ORCL_20160120_s103_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:06 DB_INC_ORCL_20160120_s104_p1
    -rw-r----- 1 oracle oinstall     82432 Jan 20 08:06 DB_INC_ORCL_20160120_s105_p1
    -rw-r----- 1 oracle oinstall    294912 Jan 20 08:07 DB_INC_ORCL_20160120_s107_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:07 DB_INC_ORCL_20160120_s108_p1
    -rw-r----- 1 oracle oinstall     18944 Jan 20 08:08 DB_INC_ORCL_20160120_s109_p1
    -rw-r----- 1 oracle oinstall    155648 Jan 20 08:08 DB_INC_ORCL_20160120_s111_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:08 DB_INC_ORCL_20160120_s112_p1
    -rw-r----- 1 oracle oinstall    131584 Jan 20 08:08 DB_INC_ORCL_20160120_s113_p1
    -rw-r----- 1 oracle oinstall    647168 Jan 20 08:09 DB_INC_ORCL_20160120_s115_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:09 DB_INC_ORCL_20160120_s116_p1
    -rw-r----- 1 oracle oinstall      8704 Jan 20 08:09 DB_INC_ORCL_20160120_s117_p1
    -rw-r----- 1 oracle oinstall   2203648 Jan 20 08:04 DB_INC_ORCL_20160120_s95_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:04 DB_INC_ORCL_20160120_s96_p1
    -rw-r----- 1 oracle oinstall   1899008 Jan 20 08:04 DB_INC_ORCL_20160120_s97_p1
    -rw-r----- 1 oracle oinstall    327680 Jan 20 08:05 DB_INC_ORCL_20160120_s99_p1

    And
    RMAN> list backup summary;
    List of Backups
    ===============
    Key     TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
    ------- -- -- - ----------- --------------- ------- ------- ---------- ---
    80      B  0  A DISK        20-JAN-16       1       1       YES        DB_FULL
    81      B  0  A DISK        20-JAN-16       1       1       YES        DB_FULL
    82      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_FULL
    83      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_FULL
    84      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_FULL
    85      B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T072332
    86      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    87      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    88      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC
    89      B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T080440
    90      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    91      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    92      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC
    93      B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T080545
    94      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    95      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    96      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC
    97      B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T080657
    98      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    99      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    100     B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC
    101     B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T080801
    102     B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    103     B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    104     B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC
    105     B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T080844
    106     B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    107     B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    108     B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC

    My configuration of rman:
    RMAN> show all;
    RMAN configuration parameters for database with db_unique_name ORCL are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u01/backup/%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   '/u01/backup/backup_df%t_s%s_s%p';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome/dbs/snapcf_orcl.f'; # default

    - Thirdly, i removed all file in /u01/app/oracle/oradata/orcl/*. then restore control file from the newest backup control file (saturday backup) + restore database. Seem nothing's wrong here.
    RMAN> restore controlfile from '/u01/backup/c-1428943247-20160120-08';
    Starting restore at 20-JAN-16
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=18 device type=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: SID=20 device type=DISK
    channel ORA_DISK_2: skipped, AUTOBACKUP already found
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:09
    output file name=/u01/app/oracle/oradata/orcl/control01.ctl
    output file name=/u01/app/oracle/flash_recovery_area/orcl/control02.ctl
    Finished restore at 20-JAN-16

    RMAN> alter database mount;
    database mounted
    released channel: ORA_DISK_1
    released channel: ORA_DISK_2

    RMAN> restore database;
    Starting restore at 20-JAN-16
    Starting implicit crosscheck backup at 20-JAN-16
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=20 device type=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: SID=18 device type=DISK
    Crosschecked 29 objects
    Finished implicit crosscheck backup at 20-JAN-16

    Starting implicit crosscheck copy at 20-JAN-16
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    Finished implicit crosscheck copy at 20-JAN-16

    searching for all files in the recovery area
    cataloging files...
    no files cataloged

    using channel ORA_DISK_1
    using channel ORA_DISK_2

    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00001 to /u01/app/oracle/oradata/orcl/system01.dbf
    channel ORA_DISK_1: restoring datafile 00002 to /u01/app/oracle/oradata/orcl/sysaux01.dbf
    channel ORA_DISK_1: restoring datafile 00003 to /u01/app/oracle/oradata/orcl/undotbs01.dbf
    channel ORA_DISK_1: restoring datafile 00004 to /u01/app/oracle/oradata/orcl/users01.dbf
    channel ORA_DISK_1: restoring datafile 00005 to /u01/app/oracle/oradata/orcl/example01.dbf
    channel ORA_DISK_1: reading from backup piece /u01/backup/DB_FULL_ORCL_20160120_s89_p1
    channel ORA_DISK_1: piece handle=/u01/backup/DB_FULL_ORCL_20160120_s89_p1 tag=DB_FULL
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:15
    Finished restore at 20-JAN-16

    -Fourth, the problem here, I got the database;
    .. .every oky until this line...
    starting media recovery

    channel ORA_DISK_1: starting archived log restore to default destination
    channel ORA_DISK_1: restoring archived log
    archived log thread=1 sequence=15
    channel ORA_DISK_1: reading from backup piece /u01/backup/DB_INC_ORCL_20160120_s117_p1
    channel ORA_DISK_1: piece handle=/u01/backup/DB_INC_ORCL_20160120_s117_p1 tag=ARCL_BKP_INC
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    archived log file name=/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2016_01_20/o1_mf_1_15_c9xsyx9k_.arc thread=1 sequence=15
    unable to find archived log
    archived log thread=1 sequence=1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 01/20/2016 08:50:22
    RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 1 and starting SCN of 1205841

    The error said that it is impossible to find the archived log thread = 1 sequence = 1. Then I check it with this command always there (oh, I'm wrong?)
    RMAN> list backup of archivelog all;
    List of Backup Sets
    ===================
    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    82      2.16M      DISK        00:00:00     20-JAN-16     
            BP Key: 82   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_FULL
            Piece Name: /u01/backup/DB_FULL_ORCL_20160120_s91_p1

      List of Archived Logs in backup set 82
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
    1    1       1154833    20-JAN-16 1177422    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    83      3.88M      DISK        00:00:00     20-JAN-16     
            BP Key: 83   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_FULL
            Piece Name: /u01/backup/DB_FULL_ORCL_20160120_s92_p1

      List of Archived Logs in backup set 83
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
    1    1       1162729    20-JAN-16 1188784    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    84      10.68M     DISK        00:00:01     20-JAN-16     
            BP Key: 84   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_FULL
            Piece Name: /u01/backup/DB_FULL_ORCL_20160120_s93_p1

      List of Archived Logs in backup set 84
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    2       1177422    20-JAN-16 1201833    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    88      1.81M      DISK        00:00:01     20-JAN-16     
            BP Key: 88   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s97_p1

      List of Archived Logs in backup set 88
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    3       1201833    20-JAN-16 1204844    20-JAN-16
      1    4       1204844    20-JAN-16 1204893    20-JAN-16
      1    5       1204893    20-JAN-16 1204958    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    92      143.00K    DISK        00:00:00     20-JAN-16     
            BP Key: 92   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s101_p1

      List of Archived Logs in backup set 92
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    6       1204958    20-JAN-16 1205034    20-JAN-16
      1    7       1205034    20-JAN-16 1205253    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    96      80.00K     DISK        00:00:00     20-JAN-16     
            BP Key: 96   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s105_p1

      List of Archived Logs in backup set 96
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    8       1205253    20-JAN-16 1205354    20-JAN-16
      1    9       1205354    20-JAN-16 1205433    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    100     18.00K     DISK        00:00:00     20-JAN-16     
            BP Key: 100   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s109_p1

      List of Archived Logs in backup set 100
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    10      1205433    20-JAN-16 1205519    20-JAN-16
      1    11      1205519    20-JAN-16 1205559    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    104     128.00K    DISK        00:00:00     20-JAN-16     
            BP Key: 104   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s113_p1

      List of Archived Logs in backup set 104
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    12      1205559    20-JAN-16 1205624    20-JAN-16
      1    13      1205624    20-JAN-16 1205739    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    108     8.00K      DISK        00:00:00     20-JAN-16     
            BP Key: 108   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s117_p1

      List of Archived Logs in backup set 108
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    14      1205739    20-JAN-16 1205796    20-JAN-16
      1    15      1205796    20-JAN-16 1205840    20-JAN-16


    If i ignore it and open the database, just my table in full backup come back but rows was not restored. I'm sure the problem is my archive log backup but i don't know how to solve it. Plz help me.

    Sorry for a long post.

    > 1 and from the 1205841 SNA sequence

    The SCN that indicates Oracle is above the range of SNA that you have in the ArchiveLog backups for sequence 1 to 15 (15 sequence ends at 1205840).

    The message

    channel ORA_DISK_1: restoring archives Journal

    Archives journal thread = 1 sequence = 15

    channel ORA_DISK_1: backup/u01/backup/DB_INC_ORCL_20160120_s117_p1 piece reading

    channel ORA_DISK_1: piece handle = / u01/backup/DB_INC_ORCL_20160120_s117_p1 tag = ARCL_BKP_INC

    indicates that he has restored the sequence up to 15

    You can check the log file alert database instance for messages on the fact of recovery.

    He is now asking sequence #1 it seems you did a RESETLOGS after sequence #15.

    Note: If you have NOT issued a COMMIT after the line is INSERTED in the table 'Day', the recovery of the database will have no * transactions * to retrieve.  An uncomitted transaction is cancelled.

    Hemant K Collette

  • DataGuard slowed db: generating the archive logs?

    Hello

    I have a 11.2.0.4 db using Data Guard to play with. I just set up and could do a failover and vice versa.

    However I have noticed there are great number of generated archive logs, one every minute. As it is an empty database, I wonder why?

    No recovery is generated by sessions:

    Select v$ session.sid, username, value/1024/1024 redo_size_MB
    v $ sesstat, v$ statname of v$ session
    where v$ sesstat. STATISTICS of # = v$ statname. STATISTICS FROM #.
    and v$ v = session.sid $sesstat.sid
    and name = "redo size."
    and > 0
    and username is not null
    2 3 4 5 6 7 8 value order;

    no selected line

    Logs are generated on the disc:

    -rw - r - 1 oracle oinstall K 77, 30 Nov 12:06 o1_mf_1_1119_c5rcg7b1_.arc

    -rw - r - 1 oracle oinstall 35K 30 Nov 12:07 o1_mf_1_1120_c5rcj3gh_.arc

    -rw - r - 1 oracle oinstall 103K 30 Nov 12:08 o1_mf_1_1121_c5rckzo0_.arc

    -rw - r - 1 oracle oinstall 36K 30 Nov 12:09 o1_mf_1_1122_c5rcmvo2_.arc

    -rw - r - 1 oracle oinstall 35K 30 Nov 12:10 o1_mf_1_1123_c5rcoqry_.arc

    -rw - r - 1 oracle oinstall 35K 30 Nov 12:11 o1_mf_1_1124_c5rcqmxm_.arc

    -rw - r - 1 oracle oinstall 35K 30 Nov 12:12 o1_mf_1_1125_c5rcsj2j_.arc

    -rw - r - 1 oracle oinstall 35K 30 Nov 12:13 o1_mf_1_1126_c5rcvd3t_.arc

    Someone has an idea of what to check?

    Concerning

    3

    Something abnormal. If this a test box, are you allowed to bounce the DB?

    If so, give it a shot and try.

    -Jonathan Rolland

  • Data Guard - RMAN removing archive log

    Hello

    I ' v DataGuard with physical standby.

    I do a backup only on the primaries. Both sites have ther separate backup systems.

    I ' v FRA and configured archivelog deletion with RMAN configuration:

    on primary: CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;

    standby: CONFIGURE ARCHIVELOG DELETION POLICY to APPLY ON STANDBY;

    It works fine but I think what if scenarios and I'v qestion on best practices for backup after the transition of role management. Let's say that for some reason, as i'v in switch mode sleep for a few days and the backup will be posible to watch (now primary) database. What would be the steps/reconfiguration appropriate to do?

    1 should I reconfigure RMAN?

    change of new primary to: CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;

    change back to sleep again: CONFIGURE ARCHIVELOG DELETION POLICY to APPLY ON STANDBY;

    2. make full backup

    Hello

    1. you can refer to the oracle documentation: http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmconfb.htm#CHDCFHBG

    section: "all archived Redo Log deletion policy."

    Document provides the best algorithm to analysis of work

    You can use the CONFIGURE ARCHIVELOG DELETION POLICY BACKED UP integer TIMES TO DEVICE TYPE command to allow a policy of removal of archived newspaper. This configuration specifies that archived newspapers are eligible for deletion only when the specified number of archived log backups exist on the specified device type.


    If the deletion policy is configured with the BACKED UP integer TIMES clause, then a BACKUP ARCHIVELOG , the command copy newspapers, unless integer already exist on the specified device type backups. If integer are backups of logs, then the BACKUP ARCHIVELOG command ignores the newspapers. In this way, the deletion of archived newspaper policy works as a default NOT BACKED UP integer TIMES clause on the BACKUP ARCHIVELOG command. Note that you can override the deletion policy by specifying the FORCE option on the BACKUP command.

    The deletion of archived newspaper policy has also options specific to an environment Data Guard. , then RMAN can delete logs after they have been applied to all destinations remote mandatory. If you specify SHIPPED TO STANDBY , for example, then RMAN can remove log files when they were transferred to all destinations of mandatory relief.

    2. the paper provides good information, just to check and decide easily based on the functionality of the database role you can configure.

    It will be useful.

    -Thank you

    Pavan Kumar N

  • Need help in the migration of windows 2003 server Oracle database server 2012

    Hello

    My environment is oracle database 9i in windows server 2003, we want to move to Windows 2012 since the end of support for windows 2003.

    Please give me a plan, what no need to make the first database upgrade or upgrade of windows, what are the things will have to be considered at the level of Oracle database?

    Any help would be appreciated.

    Thank you

    Lherault

    Hello

    Given the version of your database is 9.2.0.8 and you want to upgrade to 11.2.0.4 and 9i database is running with log mode archive

    I have plan.

    (1) your database 9i working with the log mode archive Server 2003

    (2) you can take backup of Database 9i with RMAN

    (3) you can restore the backup to the base in 2008 (by using 11.2.0.4 software)

    (4) when the recovery is complete, you can open the database with resetlogs option upgrade.

    change the upgrade of open database resetlog.

    (5) once the database is open, you can run 'Upgrade PROCESS'

    (6) it should complete your upgrade in 2008

    If you think, restoration and recovery will take time, so you can install physics Eve with 11.2.0.4 version in 2008 for the Database 9i.

    During failover, you can recreate the controlfile and open the database ' change the upgrade of database open resetlog. "

    you will need to check the compatibility with the help from under documents

    Reference list Oracle database upgrade (Doc ID 730365.1)

    Note 551141.1 : Server Upgrade/Downgrade Compatibility matrix data base

  • Multiplex Archived Logs

    With the help of 11.2.0.4.0

    I am trying to mux the newspapers archived (duplicate); However, do not know if I'm doing things.

    I followed this http://docs.oracle.com/cd/B28359_01/server.111/b28310/archredo004.htm and made the following

    LOG_ARCHIVE_DEST_1 = 'LOCATION=Z:\FlashRecoveryArea\archlogs\'

    LOG_ARCHIVE_DEST_2 = 'LOCATION=\\backupserver\archlogs_location'

    I thought I was doing the right thing with handwritten copies in both places when I run

    "alter newspaper archive of the current system. However, to take a closer look, looks like maybe it's different.

    Z:\FlashRecoveryArea\archlogs has the logs archived LOG_1_68_xxxx. ARC and LOG_1_71_xxxx. ARC

    \\backupserver\archlogs_location archived LOG_1_69_xxxx newspapers. ARC, LOG_1_70_xxxx. ARC and LOG_1_71_xxxx. ARC

    I misunderstood the document? This is not duplication of archived newspapers?

    Thank you

    I think your problem is the backup archivelog and remove that happens at the same time as the journal was cheating (i.e. newspaper is too slow).

    Just do this - see crossouts and "BOLD" text 'everything '...

    RUN

    {

    SQL "alter session set nls_date_format = 'MON-DD-YYYY HH24:MI:SS' ';"

    overlap archivelog all;

    cross-checking of backup;

    SQL 'alter system archive log current';

    SQL 'alter system archive log current';

    backup

    (database FORMAT '\backupserver\full\FULLBKUP_%d.DBID%I.%T.%s.%p.rman')

    more all archivelog delete all input FORMAT '\\backupserver\full\ARCHLOGBKUP_%d.%e.DBID%I.%T.%s.%p.rman' TAG = "FULLBKUP_PLUS_ARCHLOG";

    window recovery obsolete report of 5 days;

    delete noprompt obsolete recovery window of 5 days;

    SPFile FORMAT '\\backupserver\full\SPFILE_BKUP_%d.DBID%I.%T.%s.%p.rman' label backup = "BKUP_SPFILE";

    SQL 'alter controlfile backup database path as "\\backupserver\full\ctlfilePROD.txt" RE-USE";

    SQL "' create pfile =" \\backupserver\full\pfile_PROD.ora "of spfile"; "

    SQL 'alter system archive log current';

    SQL 'alter system archive log current';

    backup FORMAT '\\backupserver\full\ARCHLOGBKUP_%d.%e.DBID%I.%T.%s.%p.rman' archivelog delete all all the entries TAG = "BKUP_ARCHLOG";

    backup current controlfile FORMAT '\\backupserver\full\CTLFILE_BKUP_%d.DBID%I.%T.%s.%p.rman' TAG = "BKUP_CTLFILE";

    }

Maybe you are looking for

  • Beautiful Widgets free download

    http://www.droid-life.com/2011/10/01/beautiful-widgets-is-free-right-now-from-GetJar/ I just download this widget for free on getjar. It's my favorite price!

  • My new ip8750 pixma gives prints dark compared to what's on the monitor

    I have a new ip8750 pixma. The impressions are more tha dark which is on my moitor. I downloaded the new drivers and garden Image without result. Previously, I had a HP photo printer that gave good prints but he died. Have you tried various driver se

  • When I make a video call, the image and sound frequently burst

    Original title: I.M video calls When I make a video call the image and audio break-up often so that the link falls down and I have to again open the link that can be very frustrating

  • Access control password manager

    Some time ago, I created a password control content advisor, I need to change the Access Manager, but don't remember the password. I have windows XP and uninstalled reinstalled and internet Explorer but not has not allowed me to remove the password.

  • Keyboard delay problem

    Each keystroke must be pressed for about two seconds before this character will appear.  How to return to normal operation?  Wireless Desktop keyboard.