You are on page 1of 3

Creating RMAN User y y

CONNECT system/manager@dbs4rman AS SYSDBA CREATE TABLESPACE rman_tablespace DATAFILE 'c:/newfolder/rman_tablespace_01.dbf' SIZE 50M AUTOEXTEND ON y CREATE USER rman IDENTIFIED BY password DEFAULT TABLESPACE rman_tablespace QUOTA UNLIMITED ON rman_tablespace y GRANT CONNECT, RECOVERY_CATALOG_OWNER, SYSDBA TO rman

Table Commands to Configure the Default Device Type Command Explanation CONFIGURE DEFAULT DEVICE TYPE TO DISK Specifies that backups should go to disk by default. If a recovery area is enabled, then the backup location defaults to the flash recovery area. Otherwise, the backup location defaults to an operating system-specific directory on disk. When backing up to disk, the logical block size of the database file must be an even multiple of the physical block size of the destination device. For example, a device of type DISK with a block size of 2 KB can only be used as a destination for backups of database files with logical block sizes of 2 KB, 4 KB, 6 KB, and so on. Most disk drives have physical block sizes of 512 bytes, so this limitation rarely affects backup to disk drives. Nevertheless, you can encounter this limitation when backing up to a writable DVD or a device that has a larger physical block size. Specifies that backups should go to tape by default.

CONFIGURE DEFAULT DEVICE TYPE TO sbt

After RMAN is able to communicate with the media manager, you can configure RMAN to make backups to tape and specify SBT as the default device type.

CHANNEL The RMAN client directs database server sessions to perform all backup and recovery tasks. What constitutes a session depends on the operating system. For example, on Linux, a server session corresponds to a server process, whereas on Windows it corresponds to a thread within the database server.
The RMAN client itself does not perform backup, restore, or recovery operations. When you connect the RMAN client to a target database, RMAN allocates server sessions on the target instance and directs them to perform the operations. An RMAN channel represents one stream of data to a device, and corresponds to one database server session. The channel reads data into memory, processes it, and writes it to the output device. Configuring Channel for Disk
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/disk1/ora_df%t_s%s_s%p;

RMAN automatically replaces the format specifier %t with a four byte time stamp, %s with the backup set number, and %p with the backup piece number.

Taking Backup
1. Go to cmd 2. Type following RMAN 3. CONNECT TARGET user/password; 4. BACKUP DATABASE; *Note: If the database is in noarchivelog state, first go to SQL and carry out following command before carrying out step 4 above Shutdown immediate;

Startup mount; Now carry Step 4 and after it finishes write following line Alter database open;

You might also like