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;