Discover restore archivelog from backup piece, include the articles, news, trends, analysis and practical advice about restore archivelog from backup piece on alibabacloud.com
1. Back up all archived log filesrman> Backup Archivelog all delete input;Second: Various options for restore Archivelog0. According to the RAC thread, restore Archivelog from Logseq 6160 thread 2;1.restore
: ========================================================== ==============================RMAN-03002: failure of recover command at 02/22/2010 12:44:56RMAN-06094: datafile 34 must be restoredon primary:-- Check the newly created datafile.SQL> SELECT FILE #, name from V $ datafile where creation_change #> = 28178572277879; -- orSQL gt; Set line 200SQL> set pagesize 9999SQL> Col name format A60SQL> SELECT FILE #, status, name from V $ datafile order by 1; file # status name----------------------
RMAN not always use incremental backup if it has archivelog backup too Refer: metalink 134214.1 if there is an archive log backup set, then RMAN will not necessarily select an incremental backup set. Let's use the following RECOVER command as an example: [SQL] RMAN> run {2>
Restore | original
Prerequisite: The deleted table space is created when the database is in Archivelog mode
Restore the specific actions as follows:
sql> archive log list;
Database Log Mode Archive mode
Automatic Archival Enabled
Archive Destination F:\oracle\ora92\RDBMS
Oldest online log sequence 23
Next Log sequence to archive 25
Current log Sequence 25
sql>
;connect target Sys/[email protected]Rman>register database;Rman>report schema;Using Storage scripts1. Create a storage scriptC:\>rman catalog Rman/[email protected] target Sys/[email protected]Rman>create script Bak_database {Backup format= ' C:\temp\%d_%s.bak 'Database include current ControlfilePlus archivelog;SQL ' alter system archive log current ';}2. Run the script(1), run the storage script at the R
dbid = Restore Controlfile from Autobackup;ALTER DATABASE Mount;Restore database;Recover database Noredo;ALTER DATABASE open resetlogs;ALTER DATABASE open;In this example there is a dbid this can beSELECT * from V$database. But a database in the control file is broken can not open how to see it is in peacetime to write down this dbid.This is the simplest example of bac
From the above recovery process, we can see that all logs are applied, including online logs, archived logs to sequence9, but sequence is restored to 10. 10 as the current log. 8,
From the above recovery process, we can see that all logs are applied, including online logs, archived logs to sequence9, but sequence is restored to 10. 10 as the current log. 8,
1. Full database backupRMAN> run {Allocate channel c1 type disk maxpiecesize = 500 m;Backup
filesStartup Nomount;Set dbid = Restore Controlfile from Autobackup;ALTER DATABASE Mount;Restore database;Recover database Noredo;ALTER DATABASE open resetlogs;ALTER DATABASE open;In this example there is a dbid this can beSELECT * from V$database. But a database in the control file is broken can not open how to see it is in peacetime to write down this dbid.This is the simplest example of
/[email protected] Catalog Rman/rmanrman> Register database;If you want to re-register, query the data dictionary db to get Db_key and db_id execute dbms_rcvat. The Unregisterdatabase command cancels the registration. Re-enroll.Sql> Conn Rman/rmanSql> select * from DB;sql> exec dbms_rcvcat.unregisterdatabase (db_key,db_id);rman> Resync Catalog;Make a full backup of the database every six months (including read-only tablespace)Do a 0-level
;allocate channel C2 type Disk;sql'alter system archive log current'; backup Archivelog all Format'/opt/oracle/backup/arch_%d_%t_%s_%p'Delete input;backup current controlfile format'/opt/oracle/backup/ctl_%d_%t_%s_%p'; crosscheck backup
(D)Friday: Cumulative Export (E)Saturday: Incremental Export (F)Sunday: Incremental Export (G)If, in Sunday, the database was accidentally compromised, the database administrator could follow the steps to reply to the database:The first step: Create database with the command to regenerate the data structure;Step Two: Create an additional rollback that is large enough.Step Three: Fully incremental import a:Imp System/manager inctype=restore full=y fil
; or rman> SQL ' alter system switch logfile ';View archive Log:rman> list archivelog all;View Backup archive Log:rman> list backup of Archivelog all;Recover archive Log:rman> restore Archivelog sequence between 1 and 9; Determine
Tags: support restore step target create corrupt mode strong invalidTransferred from blueskys567 original Oracle database backup and recovery of three ways , 2006-10. There are deletions. The Oracle database has three standard backup methods, namely Export/import (exp/imp), hot and cold backup . Exporting a spare is a
The backup control file is used to restore the control file with backup in the database. However, after I perform the ddl operation, the current control file is newer than the backup file, and all the control files are lost, how to restore the database using the
connect to the backup database.
RMAN> backup database include current controlfile for standby plus archivelog; // note that the standby control file is created while the database is backed up, and archive logs are included. It can also be split into backup database; copy current controlfile for standby to '/tmp/st. ct
copy can)
3, easy to restore to a point in time (just copy the file back)
4, can be combined with the archiving method, do the database "best state" recovery.
5, low maintenance, high safety.
However, cold backup also has the following disadvantages:
1, when used alone, can only provide to "a point in time" recovery.
2, the implementation of the entire process of
the steps to reply to the database:Step one: Use the command create database to regenerate the databases structure;Step Two: Create an additional rollback that is large enough.Step three: Full incremental import a:Imp System/manager inctype=restore full=y file=aStep Fourth: Cumulative incremental import E:Imp System/manager inctype=restore full=y file=eFifth Step: Recent incremental import F:Imp System/man
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.