Machine:Select instance_name from v $ instance;Select name from v $ database;Select name from v $ datafile;Log query mode:Archive log list;Shutdown immediate;Startup mount;Change the log archive mode:Alter database archivelog;Alter database open;Alter system archive log current;Select name from v $ archived_log;Open Control file tracking:Alter database backup controlfile to trace;View the location of the trail file:Show parameter user_dump_destCmd:Set
(I) First query the CPU and IO usage at the system level: Top, iostat, Sar...(Ii) exec dbms_workload_repository.create_snapshot ();(Iii) RMAN target/debug trace =/tmp/rmandebug.txt log =/tmp/rman_log20130727.txtExecute backup(Iv) exec dbms_workload_repository.create_snapshot ();
(V) query v $ backup_datafile
Set markup HTML onset echo onset pages 80 set lines 180 set numformat 99999999999999999 spool
I have paid a lot of effort to improve it ........ You only need to define the following basic variables in the batch processing to generate clone instances of any Sid to any directory.
Set oracle_base = D: \ Oracle10g \ app \ oracle \ product \ 10.2.0Set oracle_sid = tempSet syspwd = OracleSet data_base = D: \ data
Not blow: study my scripts and you will get a lot!
Known problems: you must understand the
we have deleted the two tables, we can demonstrate the use of a cumulative incremental backup to recover the two tables, and then observe the process of cumulative incremental recovery:2.2 Cumulative Incremental RecoveryTo see if the table has been restored:3 differences between the twoVariance Increment:Cumulative increment:From the above experiment, differential incremental and cumulative incremental backups are not significantly different, and the
RMAN-03002, RMAN-06059, ORA-19625 and ORA-27037 When Running RMAN Backup of Archivelogs, rman-03002rman
When RMAN backs up the database, the following error message is displayed:
Starting back
different using this parameter to convert#SET Log_file_name_convert ', '----if the log file path is different using this parameter to convert#SET sga_max_size 200M----Set the SGA size#SET Sga_target 125MSET "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 primary"Nofilenamecheck;Keyword Explanation:Dorecover: Automatic recover operation after restore is completeNof
One, backup operations
Standby set
1. Set up a backup tag
Backup Database tag= ' full_bak1′;
Note: Each tag must be unique, and the same token can be used for multiple backups to restore only the most recent backup.
2. Set the backup set size (all the results of one
bytes
Database mounted.
Ora-01157:cannot identify/lock data file 10-see DBWR trace file
This column more highlights: http://www.bianceng.cn/database/Oracle/
Ora-01110:data file: '/u01/app/oracle/oradata/prod/lx01.dbf '
07:54:15 sql> Select File#,error from V$recover_file;
file# ERROR
---------- -----------------------------------------------------------------
Ten FILE not FOUND
07:54:25 sql>
3) R
more than 7000 archive logs are "failed" (physically deleted). The command is as follows: RMAN> crosscheck archivelog all;Then, delete RMAN> delete noprompt expired archivelog all from the control file;Then run the script again, and the backup will be smooth. First, the archiving log is backed up, then the database is backed up, and finally the control file and
, you must first set the data file to backup mode: Alter datafile (tablespace) xx begin backup; then execute a similar OS command: copy D: \ oracle \ users01.dbf to E: \ backup. When the data file is in backup mode, the database writes the image of the data block to the log
1. Check the database mode:Sqlplus/nologConn/As sysdbaArchive log list (check whether the database is in archive Mode)
If not, the database archive mode is modified.Startup MountAlter database archivelogAlter database open
2. connect to the target database
Command: connect target/(connect target system/Oracle @ ora10g. If the database does not exist, run the RMAN command to start the database using startup)
initiates the Oracle server process on the database for backup or restore. Backup, restore, and recovery are driven by these processes.
Rman can be controlled by the OEM's backup Manager GUI, but this article does not focus on the discussion.
2. Terminology Professional Vo
RMAN cold Backup Recovery from different machines and rman recovery
1. Prepare the environment
Install the ORACLE instance on the new server. During the installation process, ensure that the ORACLE_SID of the source server is consistent with that of the target server, and ensure that the installation path is consisten
Validate command --- rman for backup and reply verification, validate --- rman
As an oracle backup and recovery tool, rman provides us with powerful functions, including physical and logical detection of data files and validity de
obsoleteThe DELETE command is used to DELETE the backup files and their records in the control files and recovery directories.1. Delete expired backupsDelete expired backup2. Delete expired copiesDelete expired copy3. Delete expired backup control filesDelete expired backup of controlfile4. Delete expired backup fragm
RMAN backup scheme RMAN backup archive mode damages (loss) multiple data files, restores the entire database 1. connects to the database, creates a test table, and inserts records
SQL * Plus: Release 8.1.6.0.0-Production on Tue May 6 13:46:32 2003 oracle training (c) Copyrig
initiates the Oracle server process on the database for backup or restore. Backup, restore, and recovery are driven by these processes.
Rman can be controlled by the OEM's backup Manager GUI, but this article does not focus on the discussion.
2. Terminology Professional Vo
1. Back up the database
RMAN> show all;
RMAN configuration parameters are:
Configure retention policy to redundancy 1; # default
Configure backup optimization off; # default
Configure Default device type to disk; # default
Configure controlfile autobackup off; # default
Configure controlfile autobackup format for device type disk to '% F'; # de
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.