ARCHIVELOG MODE --- Please assist

dear experts,
I have this doubt in my mind and would like you guys to advise on.
Is it true that when a database is in ARCHIVELOG MODE, database recovery using archived logs & hotbackup is possible to the last commit?
probably using the command: recover database using backup controlfile until cancel; (to apply all the arhive logs to last hotbackup)
From my point of view, i feel that the database recovery using the ARCHIVED LOGS and hotbackup is possible only up to the last redo log switch. In order to recover the database to the last commit, I have to recover the database using both the ARCHIVED LOGS as well as the last ACTIVE REDO LOG.
It is because the most recent commited transactions on the current redo log might not be written to archive log (as the active log is not full and no alter system switch logfile performed) at the point of time when the db crashed.
Please advise.
thanks all!

Also, by using RMAN you can approach more to the last commit with RMAN parameters like SCN, etc.
It's quite easy!

Similar Messages

  • Restore database in archivelog mode

    Hello everyone.
    I've been looking on google, how to restore my database on archivelog mode, but i did not succeed.
    I made my backup using this mode, and now i need to know what is the command need to use to restore this.
    Somebody can write the command here please ?
    Thanks for help.
    Regards,
    Dan
    ps: Using Oracle 10g XE on Win XP.

    user8973191 wrote:
    Oh, ok Vijayaraghavan K.
    Thx for u help.
    And about the users ?
    i need to create the "same" user in another machine ?
    For example:
    In this machine i using the "system" user, where i have my tables.
    Another machine, when i restore, my tables will go to the "system" user too? or i can choice? or i need to create one?A true backup is a copy of the data files at the file/block level. The restore is therefore a restore of the data files/blocks. Applying the redo (archive logs) is also done at the block level. None of that knows or cares (or needs to know or care) about logical objects (such as users, tablespaces, tables, rows, etc) within the database. so if you do a proper restore, you are restoring files to a consistent state and thus everything that was defined within those files will be there when restored.

  • Database crashes when placed in Archivelog mode

    My production database continues to crash when I place it in Archivelog mode. This happen especially during the period most of the heavy jobs is running. On the other hand, I created a clone of this very same database on another server in Archivelog mode and it is running great. It’s also honest to say the jobs that run on the production are not running in the clone.
    Any advice will be appreciated.
    Edited by: Albert Zaza on Apr 27, 2010 8:24 AM

    >
    Please post last 50 lines of the alert log (there should be a very readable error message).
    Sun Jan 17 10:35:29 2010
    Thread 1 advanced to log sequence 12834
    Current log# 2 seq# 12834 mem# 0: J:\ORA_TPISG64A\TPISG64A\REDO02.LOG
    Sun Jan 17 18:21:12 2010
    Thread 1 advanced to log sequence 12835
    Current log# 3 seq# 12835 mem# 0: J:\ORA_TPISG64A\TPISG64A\REDO03.LOG
    Sun Jan 17 23:01:01 2010
    Thread 1 advanced to log sequence 12836
    Current log# 1 seq# 12836 mem# 0: J:\ORA_TPISG64A\TPISG64A\REDO01.LOG
    Mon Jan 18 07:54:55 2010
    Thread 1 advanced to log sequence 12837
    Current log# 2 seq# 12837 mem# 0: J:\ORA_TPISG64A\TPISG64A\REDO02.LOG
    Mon Jan 18 13:03:59 2010
    KCF: write/open error block=0x22f online=1
    file=2 J:\ORA_TPISG64A\TPISG64A\UNDOTBS01.DBF
    error=27072 txt: 'OSD-04008: WriteFile() failure, unable to write to file
    O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.'
    Mon Jan 18 13:03:59 2010
    Errors in file j:\oracle\product\10.2.0\admin\tpisg64a\bdump\tpisg64a_dbw0_4136.trc:
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01114: IO error writing block to file 2 (block # 559)
    ORA-01110: data file 2: 'J:\ORA_TPISG64A\TPISG64A\UNDOTBS01.DBF'
    ORA-27072: File I/O error
    OSD-04008: WriteFile() failure, unable to write to file
    O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.
    DBW0: terminating instance due to error 1242
    Mon Jan 18 13:03:59 2010
    Errors in file j:\oracle\product\10.2.0\admin\tpisg64a\bdump\tpisg64a_pmon_4588.trc:
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    Mon Jan 18 13:04:00 2010
    Errors in file j:\oracle\product\10.2.0\admin\tpisg64a\bdump\tpisg64a_lgwr_5068.trc:
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    Mon Jan 18 13:04:00 2010
    Errors in file j:\oracle\product\10.2.0\admin\tpisg64a\bdump\tpisg64a_j000_728.trc:
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    Mon Jan 18 13:04:01 2010
    Errors in file j:\oracle\product\10.2.0\admin\tpisg64a\bdump\tpisg64a_reco_4824.trc:
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    Mon Jan 18 13:04:01 2010
    Errors in file j:\oracle\product\10.2.0\admin\tpisg64a\bdump\tpisg64a_ckpt_4964.trc:
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    Mon Jan 18 13:04:01 2010
    Errors in file j:\oracle\product\10.2.0\admin\tpisg64a\bdump\tpisg64a_smon_4976.trc:
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    Mon Jan 18 13:04:01 2010
    Errors in file j:\oracle\product\10.2.0\admin\tpisg64a\bdump\tpisg64a_psp0_1584.trc:
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    Mon Jan 18 13:04:02 2010
    Errors in file j:\oracle\product\10.2.0\admin\tpisg64a\bdump\tpisg64a_mman_4364.trc:
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    Mon Jan 18 13:04:13 2010
    Instance terminated by DBW0, pid = 4136
    Tue Jan 19 07:31:47 2010
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 3
    Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =18
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.3.0.
    System parameters with non-default values:
    processes = 150
    __shared_pool_size = 251658240
    __large_pool_size = 16777216
    __java_pool_size = 16777216
    __streams_pool_size = 50331648
    streams_pool_size = 50331648
    nls_length_semantics = BYTE
    resource_manager_plan =
    sga_target = 5133828096
    control_files = J:\ORA_TPISG64A\TPISG64A\CONTROL01.CTL, J:\ORA_TPISG64A\TPISG64A\CONTROL02.CTL, J:\ORA_TPISG64A\TPISG64A\CONTROL03.CTL
    db_block_size = 8192
    __db_cache_size = 4781506560
    compatible = 10.2.0.2.0

  • Put database in archivelog mode

    I know how to do it.
    using oracle 9.2.0.8 on AIX 5.3
    My question is that can I mention a different location
    my database installed in /opt/oracle/product/9.2
    datafiles/control files and redolof files
    in /var/data/oracle/product/9.2/orcl
    I want archive to be in
    /var/data/oracle/product/9.2
    How can I do this
    please suggest

    Is this standard or enterprise edition?
    On the enterprise edition you can use the log_archive_dest_N (n=1..10) instance parameter file to configure up to ten different locations. As an example, you would configure: log_archive_dest_1="location=/var/data/oracle/product/9.2 mandatory" You have to configure log_archive_format as well (unless you want the default format mask); log_archive_format=arch%S.arc and the log_archive_start parameter to true.
    Shutdown normal or immediate your database. Once it is shutdown start it up to the mount state:
    startup mount
    and issue the alter command:
    ALTER DATABASE ARCHIVELOG
    open your database and you will be working on archivelog mode.
    If you are on a standard edition, just proceed as previously indicated, the difference is that log_archive_dest_N parameter is not available, and you can define up to two different file locations, parameters are:
    LOG_ARCHIVE_DEST, LOG_ARCHIVE_DUPLEX_DEST
    and to indicate mandatory or optional, you'll have to use the LOG_ARCHIVE_MIN_SUCCEED_DEST instance parameter.
    ~ Madrid

  • How to use OEM grid control to find any database not in archivelog mode?

    Hello,
    currently we have 130 databases, say, if I want to pick out any database currently NOT in archivelog mode, is there a quick way to find out ?
    by using OEM grid control
    or
    some trick similar,
    but really don't need to check each database manually.
    thank you very much!

    This query works in 12c - please run as SYSMAN.
    It is based on undocumented assumptions though +( AND key_value = 'NOARCHIVELOG')+.
      SELECT *
      FROM SYSMAN.MGMT$GROUP_DERIVED_MEMBERSHIPS O ,
        SYSMAN.MGMT$TARGET T ,
        sysman.MGMT$AVAILABILITY_CURRENT st
      WHERE
      o.member_target_type     IN ('oracle_database', 'rac_database')
      AND ( t.target_type           ='rac_database'
      OR (t.target_type             ='oracle_database'
      AND t.type_qualifier3        != 'RACINST'))
      AND o. member_target_guid     = t.target_guid
      AND t.target_guid             = st.target_guid
      AND st.availability_status    = 'Target Up'
      AND ( EXISTS
        (SELECT *
        FROM sysman.mgmt$metric_current i
        WHERE I.TARGET_GUID = O.MEMBER_TARGET_GUID
        AND metric_name     = 'archFull'
        AND Metric_Column   = 'archTotal'
        AND metric_label    = 'Archive Area'
        AND column_label    = 'Total Archive Area (KB)'
        AND key_value       = 'NOARCHIVELOG'
        ));Another way to achieve the goal is to push extended metrics (SELECT LOG_MODE FROM V$DATABASE) on each DB, and monitor the values they return to the repository. This is an example for a (slightly) different problem - http://iiotzov.wordpress.com/2012/08/08/how-to-use-the-new-oem-12c-metric-extensions-to-enforce-enterprise-wide-custom-policies .
    OEM Repository has many other great uses as well - http://iiotzov.files.wordpress.com/2012/05/oem-repository-a-second-look.doc , http://iiotzov.files.wordpress.com/2011/08/iotzov_oem_repository.pdf
    Iordan Iotzov
    http://iiotzov.wordpress.com/

  • RMAN backup in no archivelog mode

    what are possible ways to backup the database which is in no archivelog mode using RMAN
    regards,
    Sakthivel
    Edited by: SAKTHIVEL on Jul 22, 2011 1:02 AM

    Hi;
    Please check:
    backup in noarchivelog mode using RMAN
    backup in noarchivelog mode using RMAN
    Regard
    Helios

  • Alter database into Archivelog mode.

    HI Team,
    I am using ORACLE 9i.
    I want to convert database into archivelog mode from noarchivelog mode.
    Using the following SQL Commands I can able to convert my database into the Archivelog.
    SQL> connect sys as sysdba
    Enter password: *****************
    Connected.
    SQL> alter database archivelog;
    alter database archivelog
    ERROR at line 1:
    ORA-01126: database must be mounted EXCLUSIVE and not open for this operation
    SQL> startup mount;
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 252779340 bytes
    Fixed Size 453452 bytes
    Variable Size 125829120 bytes
    Database Buffers 125829120 bytes
    Redo Buffers 667648 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    My problem is that I had to shutdown the database before converting it in to the archivelog mode...
    Is there any way that without shuting down the database i can switch to archivelog mode.
    Please comments...
    Shatrughan

    if we shutdown immediate one's database..do
    it's listener terminated too???The database registration with the listener yes, the listener itself no. That is, if you execute a command like "lsnrctl stat" you won't see the database anymore, but the listener is still active. Example :
    [ora102 ~ db102]$ lsnrctl stat
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 05-MAY-2007 18:57:51
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                05-MAY-2007 18:27:34
    Uptime                    0 days 0 hr. 30 min. 16 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /home/ora102/OraHome1/network/admin/listener.ora
    Listener Log File         /home/ora102/OraHome1/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "db102" has 1 instance(s).
    Instance "db102", status READY, has 2 handler(s) for this service...
    The command completed successfully
    [ora102 ~ db102]$ sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat May 5 18:58:03 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SYS@db102 SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SYS@db102 SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [ora102 ~ db102]$ lsnrctl stat
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 05-MAY-2007 18:58:33
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                05-MAY-2007 18:27:34
    Uptime                    0 days 0 hr. 30 min. 58 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /home/ora102/OraHome1/network/admin/listener.ora
    Listener Log File         /home/ora102/OraHome1/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [ora102 ~ db102]$                                                                                 

  • Archivelog mode during upgrade

    HI All,
    During upgrading the database from 10g to 11g... I will put my database from noarchivelog mode to archivelog mode to save the disk space.
    Does this task improves or speedsup the process of upgradation or any impact.
    Suggestions please.
    regards,
    TEJAS

    when DB is archivelog mode and you put DB in startup upgrade mode.. and execute catupgrd.sql script it starts updating dictionary objects and generates archivelogs ..
    Hence i put the DB in noarchive log mode..
    Any performance impact by putting the upgrade process in noarchivelog mode in terms of time duration the backup is performed.No performance impact, But recommended to put in Archivelog mode, even though if you have good backup.
    Also apart from this thread, have a question, The catupgrd.sql script execution duration depends upon the data disctionary contents right not on the DB size ? i am having this question. plz answer.The upgrade script creates and alters certain data dictionary tables. It also upgrades or installs the following database components in the new Oracle Database 11g Release 2 (11.2) database:
    Source:-
    Answer is here in detail.. http://docs.oracle.com/cd/E11882_01/server.112/e10819/upgrade.htm#sthref184

  • Estimating the Database Size using Archivelog mode

    Dear OTN Forum,
    I need to find guidelines to estimate the additional space needed for a database in order to operate in archivelog mode.
    I've estimated the size of a database (Tables + indexes= 450 GB + 270 GB) operating in nonarchivelog mode, but I didn't know how to estimate the additional space needed to operate the database in archivelog mode.
    Please any kind of information will be well received!
    (paper, technical bulletins, metalink, etc.)
    Best regards,
    Alfredo

    The space required for archive logs does not depend on the size of your database. It is dependent on 3 factors.
    1. The size of your redo log members. Each archive log will be the same size as a redo log file.
    2. The number of transactions you do in the database. Each transaction writes information to the redo logs, and each redo log is archived when it is full.
    3. How laong a period you want to keep the archive logs available on disk for.
    For example, one of our systems is a very active OLTP system with about 500 users at peak times and around 100 fairly constantly. The database is about 40Gb, but it spins 15 - 20 64Mb archive logs each day. Typically, we keep 2 days worth of logs on-line at any given time. so, this system requires between 1.8 and 2.5 GB for archive logs.
    Another system, used mostly for reporting purposes, is over 100GB, but typically generates 5 - 6 32MB archive logs each week. So, it requires less than 200Mb for archive logs.
    HTH
    John

  • No archivelog mode and logging option

    hi i am having a database 9i on windows 2000 adv server. my database is in no archivelog mode. i am creating a table with logging option as follows
    create table x(no number(1))
    logging;
    table created
    please let me know where the information will be logged? whether into trace files because database is in no archivelog mode.

    Logging information is always recorded in your redolog files, irrespective whether your database is in ARCHIVELOG mode or NOARCHIVELOG mode.
    By default a table is created in LOGGING mode, you don't have to explicitly specify it.
    Here is an example:
    SQL> archive log list
    Database log mode              No Archive Mode
    Automatic archival             Disabled
    Archive destination            /u10/app/oracle/product/oracle10g/dbs/arch
    Oldest online log sequence     11
    Current log sequence           13
    SQL> create table t(a number);
    Table created.
    SQL> select logging from user_tables where table_name = 'T';
    LOG
    YES

  • Archivelog mode - online backup

    i'm trying to do an online backup in archivelog mode (user managed backup)
    1. for that i've put the db in backup mode by
    sql> alter database begin backup
    2.copied the datafiles to the backup location in o.s
    using cp command
    3.tried to copy controlfile to the o.s location using
    sql>alter database backup controlfile to '/u01/oracle/product/10.2.0/hotbk'
    Here i get an error: ORA-01580: error creating control backup file
    and ORA-27038: created file already exists .
    I've checked if the control file already exists in the location but there's no controlfile there.
    Please help in regards to this error!
    Thanks!

    This is wrong path for backup try as
    alter database backup controlfile to '/u01/oracle/product/10.2.0/hotbk/control.bk'

  • Setting Archivelog mode

    In order to use RMAN y need to alter my database into archivelog mode. I found some info abuot how to do that, however, I am not sure about the procedure.
    These are the commands I have to write for make the modification:
    shutdown immediate;
    starup mount;
    alter database archivelog;
    alter database open;
    But it looks very simple and I don´t think I'm in the correct way. There is a parameter that confuse me because the oracle page's examples don't show anythig about it:
    USE_DB_RECOVERY_FILE_DEST
    Can anybody helpme??

    Hi,
    You need to set the archive destination in the pfile/spfile before placing the database to archivelog mode.
    In your database pfile/spfile:
    db_recovery_file_dest_size=2G #space size can be specified according to your requirement
    db_recovery_file_dest='<destination where you want to store the archives>'Once done, mount the database using the modified spfile/pfile and place the database in archive mode. Finally open the database.
    If you do not want to use FRA (flash recovery area) and just want to place the database in archive mode, then in your pfile/spfile, add:
    log_archive_dest='<location where you want to store the archives>'Once done, mount the database using the modified spfile/pfile and place the database in archive mode. Finally open the database.
    If you feel that your questions have been answered, then please consider closing the threads by marking it as answered and providing appropriate points.

  • Archivelog mode features

    Hello,
    Can I get a complete list of the tasks which can not be performed in noarchive log mode ? I mean in which tasks / features in different Oracle versions i.e. enterprise/standard and version numbers 10.2.0.1 to 11.2.0.1; db must be in archivelog mode.
    i.e.
    I can not do in noarchive log mode :
    1.standby db
    2.tablespace in begin backup mode
    3.tablespace PITR
    4.rman catalog
    Can you add more please? or please correct above list ?
    One more last question :
    From which Oracle Version, Oracle introduced archive log mode.
    Thank you.

    I would like to add below tasks/features :
    ALTER DATABASE DATAFILE '/u02/oracle/rbdb1/stuff01.dbf' OFFLINE;
    The database must be in ARCHIVELOG mode if you are creating a guaranteed restore point.
    Oracle Error: ORA-01239 : Database must be in ARCHIVELOG mode to use external cache
    For LogMiner the database must be in archivelog mode with supplemental logging enabled.
    To use RMAN recover ... block command, because RMAN need the archivelog to perfom block recovery.
    Asynchronous Distributed Change Data Capture (CDC) requires archivelogs.
    Hot cloning.
    @ Sybrand :
    Thank you Sybrand for the historical information.
    Regards
    Girish Sharma

  • Archivelog Mode Deleting archive files

    Hey,
    I have been reading about archivelog mode for a while and understand the concept and how it works. The one thing that is still alluding me is the removal/deleting of old archivelog files and how long I need to keep the files.
    I hear people saying "backup your archive files", how long do I need to keep the backed up archive files?
    What this sounds like to me is "you better keep every archive file ever created by your database in order to restore". This sounds silly to me but thats how I am interpreting this. Can someone please help me understand this a bit better?
    Thank

    Archive logs are normally backed up when a database backup is done. Some shops might backup archive logs more or less frequently. You need to keep the backuped archive logs for as long a necessary to meet the recovery policies set forth by the business.
    For example, for some database that I manage the business decision is to retain backups for an entire year. Other database have a smaller time frame of 2 to 6 months and some are only a week. So you can see that I do not keep every archive log ever created, I just keep the ones necessary to fulfil the recovery policies set by the business.

  • Strange vlan configuration problem. Please assist.

    We created a new IC to our building that I installed two 2950_48 that are stacked together. Off from one of the 2950 is a fiber that runs back to a 3548XL switch for our trunk connection. I configured trunk on both ends and set vlan 2 as our native vlan. However when I look at interface vlan 2 on the 2950_48 it is showing Vlan up and line protocol down. Now here comes the strange part- on the 2950_48, I able to configure each port for different vlan that we have in our infrastructure but only one vlan can be carried over the trunk. None of the other vlan seems to be working at all. The traffic of the working vlan has no problem at all with network communication. The other thing is that I can't get to my 2950s switch for management from telnet or SSH only console works. Obviously because my VLAN 2 is down. Please assist. Thanks.

    Hello,
    looking at your configurations, I think you need to add the native VLAN statement to the trunk ports on your 3548:
    interface GigabitEthernet0/1
    switchport trunk encapsulation dot1q
    switchport trunk native vlan 2
    switchport trunk pruning vlan none
    switchport mode trunk
    interface GigabitEthernet0/2
    switchport trunk encapsulation dot1q
    switchport trunk native vlan 2
    switchport trunk pruning vlan none
    switchport mode trunk
    If that does not help, can you post the output of ´show vtp status´ of both switches ? When you look at the output, make sure that the VTP version, domain name (case-sensitive) and password match.
    Regards,
    GP

Maybe you are looking for