Help - Search - Members - Calendar
Full Version: wrong RMAN backup location with CONFIGURE
Oracle DBA Forums > Oracle > Oracle Forum
eyecycas
Hello,

my RMAN-Backups are always listed in $ORACLE_HOME/dbs (see output filename).
I don't use a Flash Recovery Area, and won't use it in the future.

My RMAN logfile looks like this:
Starting backup at 01-JUL-08
channel d1: starting datafile copy
input datafile fno=00001 name=...
output filename=/global/ora-dg/oracle-vol/product/10.2.0/dbs/data_D-TECRBR_I-935235287_TS-SYSTEM_FNO-1_9ajkd53s tag=TAG

As you can see, my backups are listed in $ORALCE_HOME/dbs. But I want to give RMAN a new location (storage place) , where he can write to.

The RMAN script is startet out of another script.
With the command "backup format" in my RMAN cmd-file, RMAN writes it's output to my given storage place. Unfortunately this would have the disadvantage that, because of 8 instances, I have to create and execute my cmd-file for each instance dynamically, because every instance has another storage place for it's backups.
My intention is to configure RMAN through the instance with CONFIGURE!

Unfortunately the command below doesn't work

CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/global/<another_storage_place>/%U.bkp';

At the moment my cmd-File looks like this (with backup format):

run {
allocate channel d1 type disk;
allocate channel d2 type disk;
backup
format '/global/.../%U.bkp'
database plus archivelog;
release channel d1;
release channel d2;
}

My RMAN settings are:

RMAN> show all;

RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/global/<another_storage_place>/%F.bck';
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO COPY;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/global/<another_storage_place>/%U';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/global/<another_storage_place>/snap_tecrbr.f';

How can I achieve through the instance !! (Default Permanent Settings mit CONFIGURE), that RMAN would write to the new storage place.

What am I doing wrong?
Can s.o. help me please?
Steve
It's because you're manually allocating channels. Instead of manually allocating d1 and d2, just let Oracle use your default channel with parallelism:

CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO COPY;

When you manually allocate, it overrides the default channel and the FORMAT command and allocates in the default location. So here's your two options:

CODE
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO COPY;


then

CODE
BACKUP DATABASE;


Or:

CODE
run {
allocate channel d1 type disk format '/global/.../%U.bkp';
allocate channel d2 type disk format '/global/.../%U.bkp';
backup database plus archivelog;
release channel d1;
release channel d2;
}
eyecycas
Hello Steve,

thanks for answering me.
Your so right. Now it works!
I had sth like that in mind, but I didn't come to that solution.
So thanks that much.

Best regards from Germany!

eyecycas
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.