Recovery in archive mode, but no archived logs

Hi,
I hope someone can help me with the following question.
I have a 9.2 database in archive mode. Suppose on t=t0 I make an online backup. At the end of this run, I will do an "alter system switch logfile" statement to capture the latest transactions (more or less also at t=t0). Later, at t=t1 we do some transaction and more archived redologs are created. At t-t2 I need to restore the complete database, but I have LOST all the archive files as from t=t0. Now the question is, is it still possible to recover (even it means to go back to t=t0)? I have tried it, but always the system suggests to apply the (missing) archived redo's, and it seems I cannot escape this. But, Is it possible to get back to t=t0?
Thanks a lot, for any clue or pointer !

If you take a hot backup and you lose the redo logs, you have a fundamentally inconsistent backup. Each tablespace will be internally consistent, but they probably won't have the same SCN as the control files, so you'll get this message.
Do you have an earlier hot backup and the archived logs that would restore that backup to the point in time (t=0) where you took the latest hot backup? Personally, I generally like to keep at least 2 or 3 old backups, with archived log files, just in case something goes wrong with the most recent backup.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Chane archive mode to non archive mode

    hi
    how can i change a an archived database to n on_archive database

    Issue the following commands to put a database into ARCHVELOG mode:
    1) Take Back up of Present SPfile by creating pfile " pfile path " from present spfile.
    2) Shutdown the database by SUTDOWN IMMEDIATE.
    3) Take Cold backup of the database in repsective place .
    4) Change the parameter in the pfile.
    log_archive_start = FALSE
    log_archive_dest_1 = 'LOCATION=F:\Backup\Archive'
    log_archive_dest_state_1 = DISABLE
    log_archive_format = %d_%t_%s.arc
    5) And make a spfile from the modified pfile in default location .
    6) Start the database with spfile.
    SQL> CONNECT sys AS SYSDBA
    SQL> STARTUP MOUNT ;
    SQL> ALTER DATABASE NOARCHIVELOG;
    SQL> ARCHIVE LOG STOP;
    SQL> ALTER DATABASE OPEN;
    NOTE 1: Remember to take a baseline database backup right after enabling archivelog mode. Without it one would not be able to recover.
    Also, implement an archivelog backup to prevent the archive log directory from filling-up.

  • Converting DB in archive mode

    hi buddies;
    I got, three DBs with ASM in Oracle RAC (2 nodes). Two of these DBs are in archive mode, but one of them, no. So, I'm going to convert this one (DATABASE3) in archivemode now. I got the instructions to do this, but still I have some doubts, So I need your 'inputs' to be sure that I'm right.
    These are the steps I understand I should follow.
    1. Login to one of the nodes (i.e. linux1) and disable the cluster instance parameter by setting
    cluster_database to FALSE from the current instance:
    2. $sqlplus "/ as sysdba"
    SQL> alter system set cluster_database=false scope=spfile sid='DATABASE3_1';
    3. Shutdown all instances accessing the clustered database:
    $ srvctl stop database -d DATABASE3
    Using the local instance, MOUNT the database:
    $ sqlplus "/ as sysdba"
    SQL> startup mount
    Enable archiving:
    SQL> alter database archivelog;
    Re-enable support for clustering by modifying the instance parameter cluster_database to TRUE from the current instance:
    •     SQL> alter system set cluster_database=true scope=spfile sid='DATABASE3_1';
    •     Shutdown the local instance:
    •     SQL> shutdown immediate
    •     Bring all instance back up using srvctl:
    •     $ srvctl start database -d DATABASE3
    My databases are:
    +ASM
    DATABASE1
    DATABASE2
    DATABASE3 --- This is the DB in noarchivemode.
    My doubts are:
    In step 3, says 'shutdown all instances', means all instances in both nodes, except the instance I'm going to change and ASM in that node?
    Any recomendation, or suggestions, you understand I should be alert?
    Regards;
    ANG

    Hi,
    You do not need to shutdown any other database than the database which you want to change to archive log. The target database needs to be shutdown on all nodes to folow your instruction. All other database running in archivelog will stay up.
    Regards

  • Error after Restoring Datafiles in Archivelog but missing archive log files

    Hi all,
    I have taken backup yesterday monrning in Archive log mode but have lost all the archive log files. Yesterday night i have restored my DB .
    I m happy to have my datafile contents till yesterday morning.
    But after restoring when i try to open th DB, i m facing the following errors:
    SQL>          Startup open;
    Oracle instance started but in mounted stagell
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL>         alter database open resetlogs;
    Error: ORA-01113: file 1 needs media recovery
              ORA-01110: data file 1: 'E:\oracle\'<SID>\sapdata1\SYSTEM_1\SYSTEM.DATA1'
    SQL>         recover database using backup controlfile until cancel;
    ORA-00279 : change 26627919 generated at DATE TIMEneeded for thread 1
    ORA-00289 : Suggestion E:\ORACLE\<SID>\ORAARCH\<SID>ARCHARC03020_0683715008.001
    ORA-00280: change 266277189 for thread 1 is in sequence #3020
    ORA - 01112: media recovery not started
    SQL>   recover;
    ORA-00283: recovery session cancelled due to errors
    ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
    Alert Log File:
    Starting up ORACLE RDBMS Version: 10.2.0.2.0.
    System parameters with non-default values:
      processes                = 80
      sessions                 = 96
      event                    = 10191 trace name context forever, level 1
      sga_max_size             = 633339904
      shared_pool_size         = 301989888
      shared_pool_reserved_size= 30183260
      filesystemio_options     = setall
      control_files            = E:\ORACLE\IE6\ORIGLOGA\CNTRL\CNTRLIE6.DBF, E:\ORACLE\IE6\ORIGLOGB\CNTRL\CNTRLIE6.DBF, E:\ORACLE\IE6\SAPDATA1\CNTRL\CNTRLIE6.DBF
      control_file_record_keep_time= 30
      db_block_size            = 8192
      db_cache_size            = 301989888
      compatible               = 10.2.0
      log_archive_dest         = E:\oracle\IE6\oraarch\IE6arch
      log_buffer               = 2854912
      log_checkpoint_interval  = 0
      db_files                 = 254
      log_checkpoints_to_alert = TRUE
      dml_locks                = 4000
      undo_management          = AUTO
      undo_tablespace          = PSAPUNDO
      undo_retention           = 43200
      recyclebin               = off
      remote_os_authent        = TRUE
      remote_login_passwordfile= EXCLUSIVE
      job_queue_processes      = 1
      background_dump_dest     = E:\ORACLE\IE6\SAPTRACE\BACKGROUND
      user_dump_dest           = E:\ORACLE\IE6\SAPTRACE\USERTRACE
      core_dump_dest           = E:\ORACLE\IE6\SAPTRACE\BACKGROUND
      optimizer_features_enable= 10.2.0.1
      sort_area_size           = 2097152
      sort_area_retained_size  = 0
      db_name                  = IE6
      open_cursors             = 800
      optimpeek_user_binds   = FALSE
      pga_aggregate_target     = 402443468
      workarea_size_policy     = AUTO
      statistics_level         = typical
    PMON started with pid=2, OS id=804
    PSP0 started with pid=3, OS id=9580
    MMAN started with pid=4, OS id=5840
    DBW0 started with pid=5, OS id=8136
    LGWR started with pid=6, OS id=8712
    CKPT started with pid=7, OS id=1620
    SMON started with pid=8, OS id=7084
    RECO started with pid=9, OS id=9576
    CJQ0 started with pid=10, OS id=9156
    MMON started with pid=11, OS id=6000
    MMNL started with pid=12, OS id=2856
    Sat Apr 18 04:01:29 2009
    ALTER DATABASE   MOUNT
    Sat Apr 18 04:01:33 2009
    Setting recovery target incarnation to 1
    Sat Apr 18 04:01:33 2009
    Successful mount of redo thread 1, with mount id 1124466585
    Sat Apr 18 04:01:33 2009
    Database mounted in Exclusive Mode
    Completed: ALTER DATABASE   MOUNT
    Sat Apr 18 04:01:34 2009
    ALTER DATABASE OPEN
    ORA-1589 signalled during: ALTER DATABASE OPEN...
    Sat Apr 18 04:02:13 2009
    alter database open resetlogs
    Sat Apr 18 04:02:13 2009
    ORA-1245 signalled during: alter database open resetlogs...
    Sat Apr 18 04:11:05 2009
    ALTER DATABASE RECOVER DATABASE UNTIL CANCEL
    Sat Apr 18 04:11:05 2009
    Media Recovery Start
    Sat Apr 18 04:11:06 2009
    Media Recovery failed with error 1610
    ORA-283 signalled during: ALTER DATABASE RECOVER DATABASE UNTIL CANCEL...
    Sat Apr 18 04:11:28 2009
    ALTER DATABASE RECOVER DATABASE USING BACKUP CONTROLFILE
    Sat Apr 18 04:11:28 2009
    Media Recovery Start
    parallel recovery started with 3 processes
    ORA-279 signalled during: ALTER DATABASE RECOVER DATABASE USING BACKUP CONTROLFILE...
    Sat Apr 18 04:17:23 2009
    ALTER DATABASE RECOVER  database using backup controlfile until cancel 
    Sat Apr 18 04:17:23 2009
    Media Recovery Start
    ORA-275 signalled during: ALTER DATABASE RECOVER  database using backup controlfile until cancel  ...
    Any suggestions pls..............
    Thanks & Regards,
    Subbu

    Hello Subbu,
    > I have taken backup yesterday monrning in Archive log mode but have lost all the archive log files.
    You mean you have taken an online backup and lost all your archive log files after that online backup?
    SQL> alter database open resetlogs;
    Error: ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: 'E:\oracle\'<SID>\sapdata1\SYSTEM_1\SYSTEM.DATA1'
    SQL> recover database using backup controlfile until cancel;
    ORA-00279 : change 26627919 generated at DATE TIMEneeded for thread 1
    ORA-00289 : Suggestion E:\ORACLE\<SID>\ORAARCH\<SID>ARCHARC03020_0683715008.001
    ORA-00280: change 266277189 for thread 1 is in sequence #3020
    To perform a recovery with an online backup you will need all archive log files until the end of the online backup. If you have lost them you are not able to recover (or open) your database in a consistent state.
    So the only suggestion we can do is:
    You need the archive log files that were created during the online backup to perform an incomplete recovery ... if they are gone you can not restore your database.
    Regards
    Stefan

  • Db restore non archive mode lost redo log file..restore from controlfile tr

    i have a db 11g I had taken non archive backup but failed to take redo log files backup...
    so while i restored the db ... after formatting the machine ..the oracle instance wont start.
    I create a controlfile trace but when i run it i get errors.
    since i dont have the older log files.. how do i get around with this issue
    Thanks
    Following is the sample of control file trace ..Note i cannot create the redo log file
    since db wont be mounted at most it shall be in nonmount mode
    and below is my created controlfile ....
    CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS NOARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1
    'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_80L7C259_.LOG'
    SIZE 50M BLOCKSIZE 512,
    GROUP 2
    'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_80L7C375_.LOG'
    SIZE 50M BLOCKSIZE 512
    -- STANDBY LOGFILE
    DATAFILE
    'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSTEM.DBF',
    'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\UNDOTBS1.DBF',
    'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX.DBF',
    'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\USERS.DBF'
    CHARACTER SET AL32UTF8
    I dont have these 2 files ..what do i do to get around this situation
    'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_80L7C259_.LOG'
    SIZE 50M BLOCKSIZE 512,
    GROUP 2
    'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_80L7C375_.LOG'
    SIZE 50M BLOCKSIZE 512
    -- STANDBY LOGFILE
    DATAFILE
    Edited by: zycoz100 on Feb 27, 2013 10:57 PM

    If you have a cold backup (database shutdown properly) without the redo logs, change this :
    CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS NOARCHIVELOGto
    CREATE CONTROLFILE REUSE DATABASE "XE" RESETLOGS NOARCHIVELOGYou have to change the NORESETLOGS to RESETLOGS for Oracle to recreate the online redo logs.
    Hemant K Chitale

  • Incomplete Recovery Fails using Full hot backup & Archive logs !!

    Hello DBA's !!
    I am doing on Recovery scenario where I have taken One full hot backup of my Portal Database (EPR) and Restored it on New Test Server. Also I restored Archive logs from last full hot backup for next 6 days. Also I restored the latest Control file (binary) to their original locations. Now, I started the recovery scenario as follows....
    1) Installed Oracle 10.2.0.2 compatible with restored version of oracle.
    2) Configured tnsnames.ora, listener.ora, sqlnet.ora with hostname of Test server.
    3) Restored all Hot backup files from Tape to Test Server.
    4) Restored all archive logs from tape to Test server.
    5) Restored Latest Binary Control file from Tape to Test Server.
    6) Now, Started recovery using following command from SQL prompt.
    SQL> recover database until cancel using backup controlfile;
    7) Open database after Recovery Completion using RESETLOGS option.
    Now in Above scenario I completed steps upto 5) successfully. But when I execute the step 6) the recovery completes with Warning : Recovery completed but OPEN RESETLOGS may throw error " system file needs more recovery to be consistent " . Please find the following snapshot ....
    ORA-00279: change 7001816252 generated at 01/13/2008 12:53:05 needed for thread
    1
    ORA-00289: suggestion : /oracle/EPR/oraarch/1_9624_601570270.dbf
    ORA-00280: change 7001816252 for thread 1 is in sequence #9624
    ORA-00278: log file '/oracle/EPR/oraarch/1_9623_601570270.dbf' no longer needed
    for this recovery
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00308: cannot open archived log '/oracle/EPR/oraarch/1_9624_601570270.dbf'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/oracle/EPR/sapdata1/system_1/system.data1'
    SQL> SQL> SQL> SQL> SQL> SQL> SQL>
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/oracle/EPR/sapdata1/system_1/system.data1'
    Let me know What should be the reason behind recovery failure !
    Note : I tried to Open the database using Last Full Hot Backup only & not applying any archives. Then Database Opens successfully. It means my Database Installation & Configuration is OK !
    Please Let me know why my Incomplete Recovery using Archive logs Goes Fail ?
    Atul Patil.

    oh you made up a new thread so here again:
    there is nothing wrong.
    You restored your backup, archives etc.
    you started your recovery and oracle applyed all archives but the archive
    '/oracle/EPR/oraarch/1_9624_601570270.dbf'
    does not exist because it represents your current online redo log file and that is not present.
    the recovery process cancels by itself.
    the solution is:
    restart your recovery process with:
    recover database until cancel using backup controlfile
    and when oracle suggests you '/oracle/EPR/oraarch/1_9624_601570270.dbf'
    type cancel!
    now you should be able to open your database with open resetlogs.

  • Database in log archive mode and redo log file in mode not archive

    Hello,
    I have a dabatabase running in archive log mode, recently changed, I have 5 redo log groups and one of them (the current one) shows in the v$log view, that ARC: NO, I mean, no archiving. All redo logs except it shows ARC:Yes
    What does it mean?
    Am I going to have problems with this redo log file?
    Thanks

    If you do describe on v$log, you'll find that the full column name is Archived (meaning is it archived yet?).
    You could try alter system switch logfile and then check v$log again a few times after.
    Use the docu for finding out more about v$ views and so on
    http://www.oracle.com/pls/db102/print_hit_summary?search_string=v%24log

  • CONFIGURE DATABASE  IN ARCHIVE MODE

    Hai
    I am just trying to change the database to archive mode.As part of this I need to set the parameter LOG_ARCHIVE_START to TRUE in the init.ora file.But I am not able to find this parameter in the init.ora file(any of the archive parameter for that matter).Please advise where can I find and set LOG_ARCHIVE_START parameter.
    Thanks
    Jay

    LOG_ARCHIVE_DEST
    Parameter type
    String
    Syntax
    LOG_ARCHIVE_DEST = filespec
    Default value
    Null
    Parameter class
    Dynamic: ALTER SYSTEM
    Range of values
    Any valid path or device name, except raw partitions
    Real Application Clusters
    Multiple instances can have different values.
    Note:
    For Enterprise Edition users, this parameter has been deprecated in favor of the LOG_ARCHIVE_DEST_n parameters. If Oracle Enterprise Edition is not installed or it is installed, but you have not specified any LOG_ARCHIVE_DEST_n parameters, this parameter is valid.
    LOG_ARCHIVE_DEST is applicable only if you are running the database in ARCHIVELOG mode or are recovering a database from archived redo logs. LOG_ARCHIVE_DEST is incompatible with the LOG_ARCHIVE_DEST_n parameters, and must be defined as the null string ("") or (' ') when any LOG_ARCHIVE_DEST_n parameter has a value other than a null string. Use a text string to specify the default location and root of the disk file or tape device when archiving redo log files. (Archiving to tape is not supported on all operating systems.) The value cannot be a raw partition.
    If LOG_ARCHIVE_DEST is not explicitly defined and all the LOG_ARCHIVE_DEST_n parameters have null string values, LOG_ARCHIVE_DEST is set to an operating system-specific default value on instance startup.
    To override the destination that this parameter specifies, either specify a different destination for manual archiving or use the SQL*Plus statement ARCHIVE LOG START filespec for automatic archiving, where filespec is the new archive destination. To permanently change the destination, use the statement ALTER SYSTEM SET LOG_ARCHIVE_DEST = filespec, where filespec is the new archive destination.
    Neither LOG_ARCHIVE_DEST nor LOG_ARCHIVE_FORMAT have to be complete file or directory specifiers themselves; they only need to form a valid file path after the variables are substituted into LOG_ARCHIVE_FORMAT and the two parameters are concatenated together.
    See Also:
    Oracle9i User-Managed Backup and Recovery Guide
    "LOG_ARCHIVE_DUPLEX_DEST", "LOG_ARCHIVE_MIN_SUCCEED_DEST", and "V$ARCHIVE_DEST" for more information on setting this parameter
    Your Oracle operating system-specific documentation for the default value and for an example of how to specify the destination path or filename using LOG_ARCHIVE_DEST
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96536/ch191.htm#REFRN10085
    Joel Pérez

  • RMAN in non-archive mode

    All,
    My database is running in NOArchive log mode. Few major tablespaces are created with NOLOGGING option. We run ETL process.
    My question is can I use RMAN though my tablespaces are created with NOLOGGING and DB is running in non-archive mode?
    if Yes how?
    Thanks

    user2486753 wrote:
    But as per the document it says I can do the incremental backup also but i have shutdown the DB to do that, is that correct?correct., however, you really need to understand what that means (incremental) and how you would do recovery...
    Again, read the docs and TEST, TEST, TEST, TEST, TEST, TEST, TEST, TEST, TEST, TEST, TEST!!!!

  • Test cold backup database in archive mode

    Hello,
    We doing every week a cold backup from Oracle database, us database is in archive mode.
    We would like to test us cold backup in other server but the drive where we have to copy
    the datafiles and logs and rollback are different on this server.
    In the production server the oracle_home and the oracle_sid:
    ORACLE_HOME=E:\oracle\product\10.2.0\db_1
    ORACLE_SID=ENCY
    and on the other server to test the backup are:
    ORACLE_HOME=I:\oracle\product\10.2.0\db_2
    ORACLE_SID=ENCY
    Can somebody help me saying please the steps that I have to follow to restore the database in other server
    to test if the last cold backup is fine?
    My understand is copy the files(datafiles, log files, control files, pfile,...) in the new server, when everything is copied into new server,
    I have to:
    Modify the parameter CONTROL_FILES in the pfile
    Mount the database and rename the datafiles and redolog files
    Thanks.

    user641364 wrote:
    Hello,
    We doing every week a cold backup from Oracle database, us database is in archive mode.
    We would like to test us cold backup in other server but the drive where we have to copy
    the datafiles and logs and rollback are different on this server.
    In the production server the oracle_home and the oracle_sid:
    ORACLE_HOME=E:\oracle\product\10.2.0\db_1
    ORACLE_SID=ENCY
    and on the other server to test the backup are:
    ORACLE_HOME=I:\oracle\product\10.2.0\db_2
    ORACLE_SID=ENCYThe only difference between servers is different ORACLE_HOME path?
    All other directories are the same?
    >
    Can somebody help me saying please the steps that I have to follow to restore the database in other server
    to test if the last cold backup is fine?
    My understand is copy the files(datafiles, log files, control files, pfile,...) in the new server, when everything is copied into new server,
    I have to:
    Modify the parameter CONTROL_FILES in the pfile
    Mount the database and rename the datafiles and redolog filesYou shoud modify and rename only in case if path to datafiles, redologs, controlfiles, dump, archive log directories is different on test server.
    If that will be the same, then no need to rename.
    If it is different, then modify pfile in order to meet correct one paths.

  • Cloning 10g Database in archive mode - How add new created archive files

    Deat all
    I want to clone oracle 10g database using hot backup. database in archive mode.
    Database is running user data entry contifue, during hot backup there are aproximatly 3 to 5 new archive log created. Please guide me how add these new created archive log in cloning process.
    Thanks
    Alter system switch logfile;
    SQL> select max(first_change#) scn from v$archived_log;
    SCN
    8592924
    alter tablespace tablespace1 begin backup;
    alter tablespace tablespace2 begin backup;
    alter tablespace tablespace3 begin backup;
    alter tablespace tablespace1 end backup;
    alter tablespace tablespace2 end backup;
    alter tablespace tablespace3 end backup;
    select name from v$archived_log where first_change# >= 8592924 order by name
    NAME
    F:\ARCHIVELOGS\ARC00390_0664080689.001
    F:\ARCHIVELOGS\ARC00391_0664080689.001
    F:\ARCHIVELOGS\ARC00392_0664080689.001
    create pfile='init<new database sid>.ora' from spfile;
    alter database backup controlfile to trace as '/home/oracle/cr_<new sid>.sql'
    STARTUP NOMOUNT
    CREATE CONTROLFILE SET DATABASE "ORCL" RESETLOGS FORCE LOGGING NOARCHIVELOG
    MAXLOGFILES 50
    MAXLOGMEMBERS 5
    MAXDATAFILES 100
    MAXINSTANCES 1
    MAXLOGHISTORY 453
    LOGFILE
    GROUP 1 'E:\oracle/oradata/dg9a/redo01.log' SIZE 100M,
    DATAFILE
    Edited by: Naeem Sheeraz on Nov 15, 2008 12:54 PM

    When you attempt to startup the cloned database on the new server you will find that it needs recovery -- because it was taken in hot backup mode.
    That is why you need to copy the archivelogs that are generated from the first archivelog after the first "alter tablespace begin backup" to the first archivelog after the last "alter tablespace end backup".
    I see that you are also including a CREATE CONTROLFILE script.
    You would run that at the cloned environment.
    Then you would issue the RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL command to make the clone consistent.
    You can, of course, use the same method to copy these archivelogs as you use to copy database files -- tar, cpio, tape, etc.

  • Looking for an advice in changing to archive mode my DB

    Hello buddies!
    I'm going to change a DB from no archive mode to archive mode. It's a RAc with ASM, 2 nodes.
    What I need that somebody verify these steps and give me suggestions.
    1. Login to one of the nodes (i.e. linux1) and disable the cluster instance parameter by setting
    cluster_database to FALSE from the current instance:
    ORACLE_HOME=/home/oracle/product/10.2.0/db
    export ORACLE_HOME
    ORACLE_SID=YAWIDB1
    export ORACLE_SID
    2. sqlplus "/ as sysdba"
    SQL> alter system set cluster_database=false scope=spfile sid='YAWIDB1';
    3. Shutdown all instances accessing the clustered database:
    $ srvctl stop database -d YAWIDB
    Using the local instance, MOUNT the database:
    $ sqlplus "/ as sysdba"
    SQL> startup mount
    Enable archiving:
    SQL> alter database archivelog;
    Re-enable support for clustering by modifying the instance parameter cluster_database to TRUE from the current instance:
    •     SQL> alter system set cluster_database=true scope=spfile sid=’YAWIDB1’;
    •     Shutdown the local instance:
    •     SQL> shutdown immediate
    •     Bring all instance back up using srvctl:
    •     $ srvctl start database -d YAWIDB
    Since the archive destination is pointing to this path: Archive destination /home/oracle/product/10.2.0/db/dbs/arch
    I think I should do the next steps to change that to ASM disk group, but in these steps I'm not sure. Please let me know If I'm wrong or correct? Or if I need to add something else.
    ALTER SYSTEM SET LOG_ARCHIVE_DEST_1='+DG_DB1_ASM' SID='yawidb';
    ALTER SYSTEM SWITCH LOGFILE;
    The order of the complete steps, are correct or shoud be different?
    Thanks for your comments and suggestions ;
    Al

    You do not need to change cluster parameter, see steps below:
    On node1:
    $ srvctl stop database -d <db_name>
    $ srvctl status database -d <db_name>
    Instance <instance1> is not running on node <node1>
    Instance <instance2> is not running on node <node2>
    $ srvctl start instance -d <db_name> -i <instance1> -o mount
    $ srvctl status database -d <db_name>
    Instance <instance1> is running on node <node1>
    Instance <instance2> is not running on node <node2>
    SQL> conn / as sysdba
    Connected.
    SQL> alter database archivelog;
    Database altered.
    SQL> archive log list;
    Database log mode              Archive Mode
    Automatic archival             Enabled
    Archive destination            <arch_dest>
    Oldest online log sequence     67
    Next log sequence to archive   68
    Current log sequence           68
    SQL> alter database open;
    Database altered.
    $ srvctl start instance -d <db_name> -i <instance2> -o open
    $ srvctl status database -d <db_name>
    Instance <instance1> is running on node <node1>
    Instance <instance2> is running on node <node2>
    SQL> conn / as sysdba
    Connected.
    SQL> select inst_id, log_mode from gv$database;
       INST_ID LOG_MODE
             1 ARCHIVELOG
             2 ARCHIVELOGArchive log destination could be change any time.
    Regards.

  • Noarchive mode to archive mode

    Hi,
    I'm trying to backup my database in online mode. I've 2 instances: BDPROD and BDPROD2. BDPROD is already in archive mode. I'm trying to change BDPROD2, but when I shutdown the database and run startup mount, I received the error:  ORA-12514: TNS:listener does not currently know of service requested in connect descriptor. After trying again, I received 2 new errors: ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    Anyone have any ideia for help me?
    Thanks

    11abcd94-7f56-4836-a39d-63d0d0de41d9 wrote:
    Hi,
    My Oracle runs in Linux.
    My ORACLE_SID = BDPROD
    My ORACLE_HOME = /usr/local/oracle/product/10.2.0/db_1
    I've to change the ORACLE_SID?
    It depends on how you are connecting to the database to do the shutdown/startup.
    You should be doing it as a local connection.  Log on to the linux server using the os account that owns the oracle installation, probably 'oracle'
    set your environment variables correctly by using the oraenv utility as this:
    oracle: . oraenv
    That's "dot" "space" "oraenv"
    You will be prompted for the correct ORACLE_SID.
    After that you should be able to connect with a simple
    oracle: sqlplus / as sysdba

  • False alarming for Archive mode status

    Hi Friends,
         In one of our development system(DB node) we are getting alerts as 'the Archive mode is in OFF state', but when i checked in DB level I can able to see the state as ON. Don't know what the problem is? Can anyone help me to resolve this issue?
    Regards,
    Palaniappan

    Hi Palaniappan,
    Please check the output of below command
    SQL> SELECT LOG_MODE FROM V$DATABASE;
    => Output should be "NOARCHIVELOG"
    SQL> ARCHIVE LOG LIST
    => output should have "DISABLED" under Automatic archival.
    Regards,
    Deepak Kori

  • JSF 1.2 app is deployed only in exploded archive mode if JSF 2.0 facet used

    Hi.
    I'm developing JSF 1.2 + facelets application. The only way to configure eclipse WTP editors to properly handle xhtml pages is to install JSF 2.0 facet (there was facelets plugin before, but it was superseded by JSF 2.0 facet if I'm not mistaken). When application is deployed on WL, OEPE show message that JSF 2.0 applications can be deployed only in exploded archive mode.
    Is there any way to make OEPE to believe that this application is based on JSF 1.2 (as really is)?
    Regards,
    Vadim.

    Hi, Ian.
    You are stating that it's a JSF 2.0 app by selecting that facet - the tooling relies on your facet selection to determine what features are available.Thought as much. Determining which JSF implementation will be active at deployment time looks like very complicated task and facet version is a reliable source of such kind info. Sadly :)
    What "eclipse WTP editors" are you trying to configure?"HTML editor". Without JSF 2.0 facet it doesn't handle JSF taglibs' namespaces and EL expressions content assist/navigation.
    The other option is to install JBoss Tools richfaces support, but for various reasons I'd like not to.
    After using exploded deployment for a week now I see that it is not that slow as I initially thought (at least for a small project): JSP/XHTML changes picked up, class methods reloaded. Manual republishing is still not as fast as in case of the splitsource deployment, but it don't call it often.
    Thanks.
    Edited by: user3269289 on Apr 8, 2011 2:34 AM

Maybe you are looking for

  • Rebuilding Site with Modal Windows in Muse

    My portfolio site uses JavaScript to create a modal window with a width based on the size of the visitor's browser window. I'd like to recreate the site with Muse, but I'm not sure how to recreate this function. How do I incorporate the current JavaS

  • BD79 Idoc Conversion Rule

    Hi, I have a requirement where I have a Inbound Idoc which has two segments say E1EDP03 and E1EDP20. Both are date fields. now I want to map date from E1EDP03 if Qualif is Z01 to E1EDP20 using conversion rule. E1EDP03 (Qualif. Z01) - DATUM  - >>> E1E

  • HP Recovery Manager for Windows 8 Pro

    HP Envy Sleekbook 4-1080ee Came with Windows 7, 64 bit & downloaded Windows 8 Pro upgrade from Microsoft I just got this machine as new and straight away upgraded to Windows 8 Pro without creating any backup media for the Original Windows 7 that came

  • I use quickbooks online and now that I have firefox 5 pdf doesnt work

    I have updated to Firefox 5 and now my Adobe PDF's don't print and has caused all my invoices to be out of line using another print source. Very frustrating, what is you alternative solution, I see many people are having this issue???This is the mess

  • I officially lost my hope, or why I hate the broadcom 4312 chip

    After countless days during the last two years I officially give up and salute all of you that got this chip working. I tried broadcom-wl, I tried b43, I tried compat-wireless (always the bleeding edge), I tried all the wiki's directions and in the e