oracle database 12c oracle rman backup and recovery
oracle database 12c oracle rman backup and recovery
Learn about oracle database 12c oracle rman backup and recovery, we have the largest and most updated oracle database 12c oracle rman backup and recovery information on alibabacloud.com
I. Cold backup1. When the database is shut down normally, you must know the name and path of the backup file before performing the cold backup.Copy codeThe Code is as follows:SQL> select name from v $ datefile;SQL> select name from v $ controlfile;SQL> select member from v $ logfile;
2. files to be backed up for cold backup include:All data files, all control fil
The recovery of a missing database file depends to a large extent on the backup strategy used. Based on the flexibility of recovery, this paper discusses the backup and recovery strategy of Oracle8
/rman_bak DB2 (Rw,no_root_squash)2. Node2 Configuration, Node 2 is mounted as an NFS client, and the two directories remain consistent.# manual Mount# mount-t NFS Db1:/data/rman_bak/data/rman_bak# Configure boot Auto mount# Cat/etc/fstabDb1:/data/rman_bak/data/rman_bak NFS Defaults 0 0Third, Oracle 11g RAC database parameter modification 1. To modify the save backup
Yesterday at the customer did an Rman recovery, the production library to get a copy to the test library, the total library of about 80G, a total of 2 hours, when the customer's environment is Windows 11.2.0.3, this morning under Linux re-test a bit, recorded for everyone referenceEnvironment:All operations are distinguished by host nameSOURCE Library:Host name Bre1 instance named Bre1 data file directory u
Rman backup recovery test 1, Open Database new test data $ sqlplus/nolog SQL> conn/as sysdba SQL> startup SQL> create table cds (id number (1 ), name varchar2 (20); SQL> insert into cds (id, name) values ('1', 'litao'); 2, start to archive mode $ sqlplus/nolog SQL> conn/as sysdba SQL> alter
not need to back up the Data= ' tail-1 $filename ' if[ $data "== "$comparedata" ];then echo "' Date ' rmanbackupsucess" >>/ops/tarlog else echo "' Date ' Rmanbackup Fail "NBSP;AMP;GT;GT;NBSp;/ops/tarlog exit2 fi #tarbackupfileandmoveto Backupserver #将当天的备份集压缩备份出来并move至对应nfs提供的文件夹, my 300GB backup compressed as long as 30 g, compression ratio is still very amazing/usr/bin/find/mnt/rman- name ' oradb1* ' >/
use the optional auxiliary destination to indicate where Rman and Oracle should create files associated with the secondary database. Use this parameter to make this recovery a custom Tspitr with an Automation instance. If this parameter is not used, TSPITR is called a fully automatic tspitr
The purpose of this test is to export the Rman backup from the production database and then restore it in the test database1, copy Backup to the appropriate directory2, enter RmanRman target \3. Close the databaseShutdown4, start the database in Nomount modeStartup Nomount5,
the table from the Recycle Bin after the table is deleted.if the Recycle Bin is cleared, or if the user deletes the table using the Purge option, the deleted table can still be recovered by using point-in-time recovery (PITR) If the database is configured correctly.
Flash Back Technology
Using Flash back technology:? View the previous state of the data? Read data back and forth? Assist users
target = rman/rman @ mydb (start recovery Manager)RMAN> startup pfile =/oracle/admin/mydb/pfile/initmydb. ora (specify the initialization parameter file to start the database)RMAN> res
Database version
The code is as follows
Copy Code
BANNER con_id-------------------------------------------------------------------------------- ----------Oracle Database 12c Enterprise Edition release 12.1.0.1.0-64bit Production 0Pl/sql Release 12.1.0.1.0-production 0CORE 12.1.0.1.0 Product
can use Alter database clear logfile group n to create A new log file. If the log is not archived, you need to use Alter database clear unarchived logfile group n2. If the current log is corrupted and cannot be clear, it may mean that if data is lost and backed up, you can use backup for Incomplete recovery. If there
RMAN-04015 error reported when rman cannot be enabled after manual Oracle database creation
The solution is as follows:SQL> shutdown immediate;SQL> startup upgrade;SQL> @? /Rdbms/admin/utlirp. SQLSQL> @? /Rdbms/admin/utlrp. SQLSQL> shutdown immediate;SQL> startup;Where:Utlirp. SQL is used to compile all relevant conten
STANDBYDORECOVERSPFILE# SET DB_FILE_NAME_CONVERT '','' ---- use this parameter for conversion if the data file path is different.# SET LOG_FILE_NAME_CONVERT '','' ---- use this parameter for conversion if the log file path is different.# SET SGA_MAX_SIZE 200 M ---- SET the SGA size# SET SGA_TARGET 125 MSET "db_unique_name" = "foou" COMMENT ''Is a duplicate''SET LOG_ARCHIVE_DEST_2 = "service = inst3 ASYNC REGISTERVALID_FOR = (online_logfile, primary_role )"SET FAL_SERVER = "inst1" COMMENT "Is pr
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.