Solved

Backup path in RMAN

Posted on 2007-04-09
5
1,005 Views
Last Modified: 2012-06-27
How can you specify the path of backup file in RMAN?
Let's say if you want to back up files to F:\backup folder, how can  you tell RMAN?
0
Comment
Question by:jung1975
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 200 total points
ID: 18880382
you have to configure the channel, for example:
ALLOCATE CHANNEL dev1 DEVICE TYPE DISK FORMAT 'F:\backup\%U';
0
 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 200 total points
ID: 18880383
0
 
LVL 11

Assisted Solution

by:mohammadzahid
mohammadzahid earned 100 total points
ID: 18880403
Here you go.

Please goto this site and try out RMAN backup examples/demo

http://www.psoug.org/reference/rman.html
0
 
LVL 7

Assisted Solution

by:Fayyaz
Fayyaz earned 100 total points
ID: 18881414

Here is the script to take level 0 backup
 
run
 {
  shutdown immediate ;
  startup mount ;
  allocate channel d1 type disk format 'd:\da_%d_s%s_U%U';
  allocate channel d2 type disk format 'd:\backup\da_%d_s%s_U%U';
  allocate channel d3 type disk format 'c:\da_%d_s%s_U%U';
  allocate channel d4 type disk format 'c:\backup\da_%d_s%s_U%U';
  backup INCREMENTAL LEVEL = 0 database;
  alter database open ;
  release channel d1 ;
  release channel d2 ;
  release channel d3 ;
  release channel d4 ;
}

if you want to take full backup then replace below line
backup INCREMENTAL LEVEL = 0 database;
with
backup database;

0
 
LVL 7

Assisted Solution

by:gattu007
gattu007 earned 100 total points
ID: 18882024
You can also configure the default channels as below

CONFIGURE CHANNEL 1 DEVICE TYPE DISK MAXPIECESIZE 10000 M MAXOPENFILES 4 FORMAT   '/orabackup/ora_backup_dest/LCDXPRD/RMAN/LCDXPRD_CH1_df%t_s%s_s%p';
CONFIGURE CHANNEL 2 DEVICE TYPE DISK MAXPIECESIZE 10000 M MAXOPENFILES 4 FORMAT   '/orabackup/ora_backup_dest/LCDXPRD/RMAN/LCDXPRD_CH2_df%t_s%s_s%p';
CONFIGURE CHANNEL 3 DEVICE TYPE DISK MAXPIECESIZE 10000 M MAXOPENFILES 4 FORMAT   '/orabackup/ora_backup_dest/LCDXPRD/RMAN/LCDXPRD_CH3_df%t_s%s_s%p';
CONFIGURE CHANNEL 4 DEVICE TYPE DISK MAXPIECESIZE 10000 M MAXOPENFILES 4 FORMAT   '/orabackup/ora_backup_dest/LCDXPRD/RMAN/LCDXPRD_CH4_df%t_s%s_s%p';
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
Suggested Courses

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question