[Backup and recovery] creates a backup set.

Source: Internet
Author: User
This exercise uses RMAN to create backup sets for various database objects. (1) Use RMAN to connect to the database through operating system authentication in the default NOCATALOG mode. In operation

This exercise uses RMAN to create backup sets for various database objects. (1) Use RMAN to connect to the database through operating system authentication in the default NOCATALOG mode. In operation

This exercise uses RMAN to create backup sets for various database objects.
(1) Use RMAN to connect to the database through operating system authentication in the default NOCATALOG mode. Enter the following command at the operating system prompt:
Rman target/nocatalog
(2) Use the report schema command to display the physical structure of the database.
(3) as shown in the following figure, select a data file represented by numbers (the following example uses file 6, which is part of the USERS tablespace ), then, a channel is used to back up the file as a compressed disk backup set to an appropriate directory, and the backup slices in the backup set use hard-coded names.
RMAN> run {
Allocate channel d1 type disk;
Backup as compressed backupset
Format 'C: \ Oracle \ PRODUCT \ 10.1.0 \ BACKUPS \ OCP10G \ file6.bus'
Datafile 6 ;}
(4) Perform a tablespace-level backup operation on the tablespace where the file is a member, as shown below. The backup slice uses the name generated by the operating system, and the size of each backup slice is limited to 50 MB.
RMAN> run {
Allocate channel d1 type disk
Maxpiecesize 50 m;
Backup as compressed backupset
Format 'C: \ ORACLE \ PRODUCT \ 10.1.0 \ BACKUPS \ OCP10G \ % U. dbf'
Tablespace users ;}
(5) use the LIST command to confirm that the file has been backed up twice, and carefully check the output after executing the command.
(6) back up the current control file to a backup set.
RMAN> run {allocate channel d1 type disk;
Backup as backupset format 'C: \ ORACLE \ PRODUCT \ 10.1.0 \ BACKUPS \ OCP10G \ % U. ctl'
Current controlfile ;}
(7) use the LIST command to confirm that the backup is created.
RMAN> list backup of controlfile;

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.