Before restoring the control file, you must know the dbid of the target database. As a DBA, you must back up the dbid of the database when taking over the database!
1) backup control file
RMAN> list backup of controlfile;
2) Test Data
hr@ORCL>
Not all data file loss can be directly restored, such as system. Not all data file loss needs to be restored, such as temp tablespace.
A business table is simulated below.
1. Create a demo Environment
sys@ORCL> archive log list;Database log mode
What do you think of when talking about the cat club or the CAT Software?Known as three colors of silver, water, Zhu-aka -)?Bullet ball soda lamune?120 yen series?Shioka?Or... The end of 2006?
I think everyone knows that ggm has moved the 120 yen
For how recovery works, see the first blog on the Restoration topic:Http://fly1116.blog.51cto.com/8301004/1337681For a brief introduction to the fly. sh script used in the restoration process and other scripts, see the second blog on the Restoration
As a database administrator, I always try to give a complete look at the code submitted to the development environment before I can migrate the code. However, I have to admit that I cannot guarantee that there will be no damage to the development
I have divided into two major classes of host hardware and application information classes as required. Host classes mainly show the main machine-related monitoring diagrams such as network, hard disk, CPU load, memory and so on. Application
(1) View database Redolog situation:
Sql> Conn/as SYSDBA
Sql> select * from V$log;
(2) View Flash_recovery_area space usage:
Sql> select * from V$recovery_file_dest;
(3) Calculate the space already occupied by the Flash recovery area:
sql>
what is archiving.
When should you apply it? What is the best way to implement it. These are the problems that CIOs are facing right now, and these are the issues that this article is going to look at.
what is archiving.
Data archiving is the storage of inactive data on level two storage devices, such as online disks. These data are information that may be ne
; set oracle_sid = dupdb
C: \> RMAN target sys/orcl @ demo auxiliary sys/Oracle
Recovery MANAGER: Release 10.2.0.1.0-production on Wednesday February 4 14:59:04 2009
Copyright (c) 1982,200 5, Oracle. All rights reserved.
Connect to the target database: Demo (dbid = 3411805505)Connected to secondary Database: dupdb (not loaded)
RMAN> backup database format = 'd: \ demo \ Bak \ % d _ % S. Bak'2> include current controlfile3> plus archivelog format = 'd: \ demo \ Bak \ % d _ % S. Bak ';
Start ba
. This directory is called the archive directory, and the copied file is called the archive redo log. You can perform catastrophic recovery only when the database is running in archive mode. 1. the difference between the archive log mode and the non-archive log mode is that only cold backup can be performed in non-archive mode, and only full backup can be performed during recovery. data during the last full backup to system error cannot be recovered. archive mode supports hot backup, Incremental
database to archive mode) 5) SQL> alter database open; (Open the database) 6) SQL> alter system archive log sta Rt; (enable automatic archiving) 7) SQL> exit (exit) make a full backup, because the backup logs generated in non-archive log mode are no longer available in archive mode. this step is not very important! 2. change archive mode to non-archive mode: 1) SQL> shutdown normal/IMMEDIATE; 2) SQL> startup mount; 3) SQL> alter database noarchivelog
Oracle Archive Log configuration query Archive Log is a non-active redo Log backup. archive logs can be used to keep all redo history records. When the database is in ARCHIVELOG mode and the log is switched, the background process ARCH will save the redo log content to the archive log. when a media failure occurs in the database, you can use data file backup, archive logs and redo logs to completely restore the database. log operation mode: archivelog noarchivelog 1. Change log operation mode: C
necessary.Ii. Archive process ARCH.
There are two modes for managing redo log files: Archive and non-archive. When switching logs, if you do not archive the original log files but directly overwrite them, it is called non-archive mode. On the contrary, when writing the next log file, the target log file will be archived first, which is called the archive mode. The archive process ARCH is responsible for copying the fully-filled redo log files to the archive log files after switching the redo lo
the redo log file to restore relevant data when necessary.
Ii. Archive process ARCH
There are two modes for managing redo log files: Archive and non-archive. When switching logs, if you do not archive the original log files but directly overwrite them, it is called non-archive mode. On the contrary, when writing the next log file, the target log file will be archived first, which is called the archive mode. The archive process ARCH is responsible for copying the fully-filled redo log files to t
, and % R are required. Because the initialization parameter log_archive_format is a static parameter, you must restart the database after modification. If the archived log is stored in the quick recovery area, the file name of the archived log is not in the format of log_archive_format.
SQL> alter system set log_archive_format = '% S _ % T _ % R. log' scope = spfile;
The system has been changed.
SQL> ShutdownThe database has been closed.The database has been detached.The Oracle routine has been
(1) Create an OS directory for storing backup database-Related Files
(2) create a routine service
(3) configure the listener and Network Service name
(4) Prepare the parameter file of the primary database
(5) Prepare backup database parameter files
(6) copy relevant files to the backup host
(7) Enable the backup routine and create a backup database
(8) Start the backup database
Back up the database:
C: \> RMAN target sys/orcl @ demo nocatalog
Recovery MANAGER: Release 10.2.0.1.0-production on T
does not affect data recovery when the routine is abnormally closed.
That is, even if this parameter is set to 0, you can use the record in the redo log file to restore relevant data when necessary.
Ii. Archive process ARCH
There are two modes for managing redo log files: Archive and non-archive. When switching logs, if you do not archive the original log files but directly overwrite them, it is called non-archive mode. On the contrary, when writing the next log file, the target log file will b
redo log file group to noarchivelog mode (non-archive mode) 4. SQL> alter database open 5. back up the database completely and change the archive mode of the database to archivelo. Specific operations of G mode (archive mode): 1. to start a database in Windows, you must first start the corresponding service, such as oracleservicedb2 2. d:/lab10g> set oracle_sid = DB2 // set the environment variable 3. d:/lab10g> sqlplus/nolog 4. SQL> connect sys/ora123 as sysdba 5. SQL> archive log list checks
to move a portionThe buffer to disk. A larger log buffer can temporarily mask the effect of slower DisksIn this situation. Alternatively, you can do one of the following:
In some systems, there are fast processors and relatively slow disks, and these processes may be able to put information in redo lgwr
When writing data to a disk, fill up the remaining buffer. Therefore, a larger log buffer will temporarily mask
Disks are slow. In addition, you can choose one of the following operations:
■ Imp
archiving ModeDisable automatic archivingArchive end point D: oracleora81rdbms // note: this is the default archive if the archive path is not specified in the initialization parameter file.PathThe earliest log sequence of summary information 64Next archive log sequence 66Current Log sequence 66
B. My current display is:
SQL> archive log list;
Database Log mode archiving ModeDisable automatic archivin
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.