Rman (lower), rman (

Source: Internet
Author: User

Rman (lower), rman (
Backup Control File
 
Method 1: automatic backup using the RMAN Control File
Configure controlfile autobackup on;
Configure controlfile autobackup off;
 
Method 2: Use user-managed backup
Alter database backup controlfile to 'xxx/XXX/XXX'; -- binary file
Alter database backup controlfile to trace; -- file File
 
Method 3: manually back up the control file using RMAN
Backup current controlfile format 'xxx/XXX/XXX ';
 
Method 4: Back up the control file together when performing other backups
Backup datafile 5 include current controlfile;
Backup SPFILE
Backup spfile format 'xxx/XXX/SPFILEback _ % s % T ';
 
Write the result of RMAN command execution to a log file.
 
Method 1: (1) spool log to 'xxx/XXX/log1.txt 'append;
(2) execute the RMAN command
(3) spool log off;
 
Method 2: (1) rman log 'xxx/XXX/log1.txt'
 
Run {
Allocate channel c1 type disk;
SQL 'alter system archive log current ';
Backup
Format 'd: \ backup \ pitt _ % U'
Archivelog all delete input;
Release channel c1;
}
 
How do I manually delete archive log files? (If RMNA is used for backup, you do not need to delete it manually)
1. manually delete archived log files
Ii. Use RMAN to delete the archive list of database records
1) Enter rman of the database, enter "rman target/" in command line mode, enter rman, check the prompt, and check whether the database is connected?
2) view the status of the archived log file:
RMAN> list archivelog all;
3) Delete the log files in the operating system (manually delete the log files at the operating system level can also be the first step;
4) Update the archived log information;
RMAN> crosscheck archivelog all;
RMAN> delete expired archivelog all; (type "yes" when confirming ")
RMAN> exit
What is the running statement in oracle RMAN?

Simply put, archive logs are backed up.

The details are as follows:
RMAN> run -- start a group of commands
2> {
3> allocate channel category type disk format = 'e: \ oracle \ orabak \ penny % t. arc'; -- backup destination: disk, path
4> backup archivelog all delete all input; -- backup archiving logs and delete the backed up logs.
5> release channel release; -- release resources
6>}

What files are backed up in backup databases under oracle 10 Gb RMAN?

Backup database backup files include data files, control files, log files, and parameter files. Add the plus archivelog keyword to back up archived logs.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.