Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: restore/recovery

RE: restore/recovery

From: Ruth Gramolini <rgramolini_at_tax.state.vt.us>
Date: Fri, 12 Mar 2004 11:57:53 -0500
Message-ID: <010a01c40853$28ae5d00$8459699f@vttaxnet.tax.state.vt.us>


Hot or cold, you still have to apply the necessary archivelogs to bring it back to the correct point in time. If it is not in noarchivelog then a point in time recovery is not possible. All you can do is restore it to the time the cold backup was done.

Ruth
  -----Original Message-----
  From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of
Paula_Stankus_at_doh.state.fl.us
  Sent: Wednesday, March 10, 2004 2:56 PM   To: oracle-l_at_freelists.org
  Subject: RE: restore/recovery

  Thanks so much for replying.

  I also discovered it is a database that was backed up - running in archivelog mode - hot backup and not what I thought - a database running in noarchivelog mode with a cold backup so.....don't I also have to use the recover database command so that it brings forward all archivelogs it needs to make put database into a consistent state as in:

  run {

  execute script alloc_all_tapes;

  restore controlfile to '/data/oradata/CSTAT/ctrl/control01.ctl';

  allocate channel d1 type disk;

  replicate controlfile from '/data/oradata/CSTAT/ctrl/control01.ctl';

  sql 'alter database mount';

  restore database until time

  "to_date('JAN 27 2004 12:00:00','MON DD YYYY HH24:MI:SS')";

  recover database;

  sql 'alter database open resetlogs';

  execute script rel_all_tapes;

  }

  EOD   ~

    -----Original Message-----
    From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Ruth Gramolini

    Sent: Wednesday, March 10, 2004 2:40 PM     To: oracle-l_at_freelists.org
    Subject: RE: restore/recovery

    Paula,

    You must set the until time at the beginning of the restore so it will be in place during the entire process.

    HTH,
    Ruth

      -----Original Message-----
      From: oracle-l-bounce_at_freelists.org

[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of
Paula_Stankus_at_doh.state.fl.us
      Sent: Wednesday, March 10, 2004 2:16 PM
      To: oracle-l_at_freelists.org
      Subject: RE: restore/recovery


      -Solaris 2.8
      -Oracle 8.0.6

      Restoring - restore says it is complete but recovery keeps failing or
hanging:

      connect target $TARGET@$DBNAME

      run {

      execute script alloc_all_tapes;

      restore controlfile to '/data/oradata/CSTAT/ctrl/control01.ctl';

      allocate channel d1 type disk;

      replicate controlfile from '/data/oradata/CSTAT/ctrl/control01.ctl';

      sql 'alter database mount';

      restore database until time

      "to_date('JAN 27 2004 12:00:00','MON DD YYYY HH24:MI:SS')";

      sql 'alter database open resetlogs';

      execute script rel_all_tapes;

      }

      EOD



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Fri Mar 12 2004 - 10:54:07 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US