Label:Small and medium-sized databases are characterized by less database concurrency, smaller database capacity, limited version functionality, and more than one instance of N. However, the loss level of the database can also be lost in 0 cases. Enterprises do not want to spend too much money and to ensure the reliable stability of the database, but the bitter evil I do these db. Next to an article, the small and medium database RMAN CATALOG
In the first two articles, we described the backup and recovery solutions for Small and Medium databases using RMAN catalog, all related scripts are provided to simulate Oracle Data Guard to a certain extent in a car to reduce database losses on the Prod Server caused by hardware faults. This article mainly describes how to restore the changes of the Prod databas
instance name
Fourth, the launch of plsql into RMAN for recovery and cross validation.
Crosscheck backup; backup Verification
Crosscheck copy; copy Verification
Delete noprompt expired backup; delete existing backups of the original database that have expired
Delete nopromp
If the backup is not recoverable, then it is useless. RMAN provides a way to check database restore capabilities without having to restore the database, and provides several check options for the user.
1. Restore Preview command
This command lets you see which backup set the Rman uses to perform a specific
Rman Learning Summary as follows, has been tested run, no problem.
1. Set the database as the archive mode
Check Archive mode
Select Log_mode from V$database;
If noarchivelog, it needs to be set to archive mode
Shutdown immediate;
Startup Mount;
Alter database Archivelog;
2, create the table space needed to restore the directory
Create tablespace Rman_ts
DataFile ' E:oracleproduct10.1.0oradataoraclerman_ts. DBF '
Size 1G autoextend on next
About Recovery with a Backup Control FileIf All copies of the current control file is lost or damaged, then you must restore and mount a backup control file. You must then run the RECOVER command, even if no data files has been restored, and open the database with the Resetlogs option. If Some copies of the current control file is usable, however, then can follow
complete, you need to go to slplus again
SQL> conn/as sysdba
SQL> create spfile from pile;
Then start the database to the mount status,
An error occurs when the database is not modified due to the log file in the log file.
My solution was to kill all oracle processes,
Ps-ef | grep ora _ Find all the processes and then kill-9 PID
Then, modify the path of the trace log file of the text parameter file to the path that you want to store on your local machine, and then start the database to the moun
The UNDO tablespace is used to store UNDO data. When you perform DML operations (INSERT, UPDATE, DELETE), ORACLE writes the old data of these operations to the UNDO segment. UNDO count
The UNDO tablespace is used to store UNDO data. When you perform DML operations (INSERT, UPDATE, DELETE), ORACLE writes the old data of these operations to the UNDO segment. UNDO count
UNDO tablespace description
In the previous article (RMAN
.dbf ';Set newname for datafile 5 to '/u01/oracle/oradata/hanmi/bjhanmi01.dbf ';Set newname for datafile 6 to '/u01/oracle/oradata/hanmi/gsp01.dbf ';Set newname for datafile 7 to '/u01/oracle/oradata/hanmi/unia01.dbf ';Set newname for datafile 8 to '/u01/oracle/oradata/hanmi/sfa01.dbf ';Set newname for datafile 9 to '/u01/oracle/oradata/hanmi/rmkunia01.dbf ';Set newname for datafile 10 to '/u01/oracle/oradata/hanmi/hmp01.dbf ';Set newname for datafile 11 to '/u01/oracle/oradata/hanmi/test01.dbf
The Archiving mode of the rman experiment involves backup, normal shutdown, and recovery of lost data files. 1. Create a backup [SQL] RMAN> backup database plus archivelog; [SQL] hr @ ORCL> create table tt (name varchar2 (20); Tab
Rman> Backup current controlfile tag= ' bak_ctlfile ' format= '/home/oracle/backup/bak_ctl_%u_%t ';alter system switch logfile;alter system switch logfile;alter system switch logfile;Switch multiple times, cut out several archivelog files, delete one of themRM O1_mf_1_3_cpk5wloy_.arcThen delete the control fileRm/u01/app/oracle/oradata/orcl/control01.ctlRm/u01/ap
RMAN to back up the database. Here I only backed up the data files that are prepared to create bad blocks for quick experiments.
[Oracle @ bys001 ~] $ Rman target/Recovery Manager: Release 11.2.0.1.0-Production on Fri Sep 13 13:28:36 2013Copyright (c) 1982,200 9, Oracle and/or its affiliates. All rights reserved.Connected to target database: BYS1 (DBID = 395752
1. Ranking explanation:Restore: RestoreRecover: RecoveryBackup set: similar to tablespaceBackup slice: a data file can be used across multiple backup slices, but in a backup set2. Principles:A. When a file is restored, the file cannot be used by the database instance.B. Only if the incremental level is 0 or full backup, the image copy can be restored. Other level
has been busy writing shell scripts, ignoring Oracle's basic review, just did an rman recovery, record a deeper impression.
Oracle Full-Library backup is ideal for the mount, so there is no need to consider consistency issues. Just an ideal.
To open the database in archive mode, complete the script as follows
Log_file=/paic/hq/bk/restore/home/op11202/xionglang/in
before the database. Before creating the first consistent backup after RESETLOGS, you must not delete the consistent Database Backup created before RESETLOGS.
If you have enough space, we recommend that you keep the consistent Database Backup created before RESETLOGS.
Experiment ideas and steps:
1. Shut down the database for
to copy the backup set on the original library to the directory/u02/ftp/of the destination library (specific operation omitted)
4. Create the following directory on the new machine
Mkdir/u02/mydb
Mkdir-p/u02/mydb/oracl/{adump,bdump,cdump,dpdump,udump,pfile}
Mkdir-p/u02/mydb/oradata/oracl
Mkdir-p/u02/mydb/flash_recovery_area
5. Create a password file
Orapwd File=/u01/app/oracle/product/10.2.0/db_1/dbs/orapworacl.ora password=oracle
6.
the control file is lost. Therefore, you have not set many custom settings for RMAN in the past, including automatic backup.
RMAN> set DBID=1316499950executing command: SET DBIDRMAN> restore controlfile from '/u01/app/oracle/flash_recovery_area/ORCL/backupset/2012_08_08/o1_mf_ncnnf_TAG20120808T101321_823lt24m_.bkp';Starting restore at 08-AUG-12using target datab
datafile 6; Starting recover at 18-jun-16Using channel Ora_disk_1 Starting Media recovery Archived log for thread 1 with sequence, already on disk as file/u01/app/oracle/flash_recovery_area/orcl/archivelog/ 2016_06_18/o1_mf_1_13_cpb35zgs_.arcArchived log for thread 1 with sequence are already on disk as file/u01/app/oracle/flash_recovery_area/orcl/archivelog/ 2016_06_18/o1_mf_1_15_cpb37ff2_.arcRMAN-00571: =============================================
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.