Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
RMAN in simple lines

RMAN in simple lines

Ratings: (0)|Views: 13 |Likes:
Published by Sandip Timsina
RMAN with Oracle
RMAN with Oracle

More info:

Published by: Sandip Timsina on Jun 28, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

06/28/2011

pdf

text

original

 
Creating RMAN User
y
 
CONNECT system/manager@dbs4rman AS SYSDBA
 
y
 
CREATE TABLESPACE rman_tablespaceDATAFILE 'c:/newfolder/rman_tablespace_01.dbf' SIZE 50MAUTOEXTEND ON
 
y
 
CREATE USER rman IDENTIFIED BY passwordDEFAULT TABLESPACE rman_tablespaceQUOTA UNLIMITED ON rman_tablespace
 
y
 
G
RANT CONNECT, RECOVERY_CATALO
G
 _OWNER, SYSDBA TO rman
 
Table Commands to Configure the Default Device Type Command ExplanationCONFI
G
URE DEFAULTDEVICE TYPE TO DISKSpecifies that backups should go to diskby default. If a recovery area is enabled,then the backup location defaults to theflash recovery area. Otherwise, thebackup location defaults to an operatingsystem-specific directory on disk.When backing up to disk, the logicalblock size of the database file must be aneven multiple of the physical block size of the destination device. For example, adevice of type DISK with a block size of 2KB can only be used as a destination forbackups of database files with logicalblock sizes of 2 KB, 4 KB, 6 KB, and so on.Most disk drives have physical block sizesof 512 bytes, so this limitation rarelyaffects backup to disk drives.Nevertheless, you can encounter thislimitation when backing up to a writableDVD or a device that has a larger physicalblock size.CONFI
G
URE DEFAULTDEVICE TYPE TO sbtSpecifies that backups should go to tapeby default.
 
After RMAN is able to communicate withthe media manager, you can configureRMAN to make backups to tape andspecify SBT as the default device type.
CHANNEL
The RMAN client directs database server sessions to perform all backup and recoverytasks. What constitutes a session depends on the operating system. For example, onLinux, a server session corresponds to a server process, whereas on Windows itcorresponds 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 serversessions on the target instance and directs them to perform the operations.An RMAN channel represents one stream of data to a device, and corresponds toone database server session. The channel reads data into memory, processes it, andwrites 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
B
ackup
 
1.
 
G
o to cmd2.
 
Type followingRMAN3.
 
CONNECT TAR
G
ET user/password;4.
 
BACKUP DATABASE;*Note: If the database is in noarchivelog state, first go to SQL and carry out following command beforecarrying out step 4 aboveShutdown immediate;

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->