backup with rman
Hello, I have several questions about rman.I have an Oracle RAC with 3 knots in Suse Linux Enterprise Server 10 on IBM's PowerPC, and I want a script for the backup of this database.
My database is in archivelog and I multiplex that it again online connects two diferent locations
Location 1 = >/u01/redo_log
Site 2 = >/u02/redo_log
Also, I have MUX logs oracle archived in two different places:
Location 1 = >/u01/archive_log
Site 2 = >/u02/archive_log
I want a full backup of my database, for that, I think I have to configure somethings in Oracle rman like this:
-Configure the backup to a disc (AREA of RECOVERY FLASH)
DATABASE BACKUP AS BACKUPSET DEVICE TYPE DISK;
-Backup of database and archivelog and delete all archive logs after backup. is true?
DATABASE BACKUP AS BACKUPSET MORE ARCHIVELOG DELETE ALL ENTRIES;
-Implementation of a strategy for retention of 7 days (I'm going to recovery all data from my database in 7 days)
CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;
-Save our backup controlfile
CONFIGURE CONTROLFILE AUTOBACKUP ON;
OK, I want archivelogs auto removal in slot 1 (/ u01/archive_log) and 2 (archive_log/u02 /) when I have a backup of it, because I don't have a lot of space on the disk.
My AREA of RECOVERY FLASH did not have a lot of space and I put a 7 day recovery window, then oracle delete backups obsolete or expired, IS TRUE?
Well, I have the peripheral band but connect directly to any of my 3 knots, because I do not have the drivers for IBM PowePC, so I want to periodically copy to another server, and then copy the FRA in this new server Ribbon. I need before Oracle removes the obsolete backupset, is true?
If I save all my backupsets to Ribbon I will be can restore all data to 3 months ago?
Thank you very much
PD: Excuseme, but I'm Spanish and my English is terrible, horrible!
The RECOVERY WINDOW is part of the RETENTION STRATEGY.
If you have defined a RECOVERY WINDOW of 5 days and you daily full backups or full backups every 2/3 days, over 5 days of backups would be OBSOLETE.
However, if you perform only full weekly backups, full backup of last Sunday is not obsolete (even if it seems to be beyond the 5 day window). Oracle expects that the backup is available.
However, if you moved it off disc then you have to manually restore this backup to disk first before the DATABASE RESTORE is on it.
Therefore, to answer your question: even if the RECOVERY WINDOW is 5 days, if my last (or 'later') full backup is 6 or 7 days ago, that the backup is NOT deprecated by Oracle and is used for the RESTORATION. Of course, Oracle then, in my example above, apply to an incremental backup on Friday and then updated by ArchiveLogs on Friday has left.
(Similarly for the full backup being restrained, ArchiveLogs are also retained by Oracle and not obsolete, because they are needed for the revival of this full backup)
Tags: Database
Similar Questions
-
Hi experts. I know about backup of backup without rman example sets but I want to know is there a way to backup with rman backup sets.
Perhaps it works for your condition.
RMAN > backupset backup is complete before ' sysdate-1';
Kind regards
Shivananda
-
ORA-25408: can not read the appeal during a duplicate backup with rman catalog database safely
Hello
I did a database duplicate backup with rman catalog connection and got the ORA-25408: cannot read error call safely.
The catalog database is running in a Data Guard environment.
During the double process database failover occurred because of a server restart.
The restore of the data files was successful:
RMAN-08023: channel t1: restored the backup part 1
RMAN-08180: channel t1: restoration complete, duration: 00:01:15
RMAN-03091: finished the restoration at 27.08.2014 09:27:10
During execution of script memory:
RMAN-08161: content of the Script from memory:
{
switch from clone datafile;
}
RMAN-08162: execution of Script memory
I got this error:
RMAN-08162: execution of Script memory
RMAN-08031: output channel: t1
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of Db in dual at 27/08/2014 09:27:10
RMAN-05501: abandonment of duplicate target database
RMAN-03015: an error has occurred in the script stored memory Script
RMAN-06004: ORACLE recovery catalog database error: ORA-25408: cannot read safely call
Dual boot time: 16:00
Failover time: 18:00
Error time: 09:00 the next day
DB version: 11.2.0.4.0, not the RAC environment, single instances
That's happened? My My db catalog rman session did not survive? Why the error happened at 09:00 (and not 17:00)? Why the session called the catalog rman during switching of the data files?
Can someone explain it to me?
Thank you!
Hello
The connection of the RMAN catalog remains inactive during the backup/restore process, once rman completes the task and try to activate the connection it gets error.
What is expected as you said the rebooted server. If this happens because of the expiration time, we went with the parameter net expire_time to maintain the connection.
Thank you
Bigot
-
Unable to cold backup with rman
Dear all
I am trying to perform cold backup with rman and my script follows
Run {}
stop immediately;
bootable media;
allocate channel dup1 device type disk;
allocate channel dup2 device type disk;
backup format ' / home/oracle/ORACLEBACKUP/%U' database;
output channel dup1;
output channel dup2;
ALTER database open;
}
When I run this script in rman it shows errord
database closed
dismounted database
Instance Oracle to close
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the boot command at 14/01/2011 14:31:30
ORA-12514: TNS:listener is not currently of service requested in connect descriptor
RMAN >
There is no error in my script or other
Thanks in advance
Shaikh Abdul AnthonyYou connect through an earpiece.
The listener becomes aware of the database when you turn it off.You run RMAN from the same server as the database? You need not connect through an earpiece.
Hemant K Collette
-
I have some problems to make a backup with RMAN LV0.
Mi database is Oracle 11gR2U4 and mi OS is Oracle Linux 6.5, is a two-node CCR environment.
I always do my backups with a personal script and I've never had any problems, but it is the function with the RMAN command.
function Backup_Level0
{
Path_Config
FileLog = $DIR_BACKUP / $PROVINCIA "_LV0_" $FecTime.log
FileError = $DIR_BACKUP / $PROVINCIA "_ERROR_LV0_" $FecTime.log
FileBack=$DIR_BACKUP/$PROVINCIA"_LV0_"%s
echo $DIR_TERMINAL >/tmp/entry
mkdir Pei $DIR_BACKUP
$ORACLE_HOME/bin/rman LOG = $FileLog < < EOF >/dev/null
connection TARGET;
backup as compressed backupset incremental of level 0 format '$FileBack' TAG 'RMAN_LV0' database includes current controlfile more entered archivelog delete;
EXPRESSIONS OF FOLKLORE
}
It's the log RMAN backup
channel ORA_DISK_2: from part 2 to 21 August 15
RMAN-03009: failure of the backup command on the ORA_DISK_2 channel at 21/08/2015-07:00:56
ORA-19504: cannot create the file ' / salva_rman/BD/190815/BD_LV0_453.
ORA-27038: created file already exists
Additional information: 1
channel ORA_DISK_2 disabled, job failed on it will run on another channel
channel ORA_DISK_1: starting from compressed backup set incremental level 0 datafile
channel ORA_DISK_1: specifying datafile (s) in the backup set
I do not know why this error.
I appreciate any help!
Hello
change:
"$FileBack" TAG "RMAN_LV0".
for:
"$FileBack" TAG "RMAN_LV0" %u
Please read the doc format rman on oracle:
http://docs.Oracle.com/CD/B28359_01/backup.111/b28273/rcmsubcl010.htm
-
restore user managed with RMAN backup hot
Is it possible to restore hot backup with RMAN user managed and recover the database?
What is use of command RMAN CATALOG?
Oracle doc said: [http://docs.oracle.com/cd/B14117_01/server.101/b10770/rcmsynta11.htm#79814]
(1) order catalog added a copy of the data file information, archived redo log or copy of control in the repository files.
(2) add metadata to a copy of the data file managed by users, copy of control files, archived log or backup piece to the RMAN Repository.
After using the 'CATALOGUE' to add metadata to managed backup in the catalog of recovery and after having made "RESYNC CATALOG", I still don't see my backup listed in the output of
RMAN > list backup
Published by: Gaurav Mhatre on April 23, 2013 10:35Gaurav Mhatre says:
After using the 'CATALOGUE' to add metadata to managed backup in the catalog of recovery and after having made "RESYNC CATALOG", I still don't see my backup listed in the output ofRMAN > list backup
backup of the list won't show you the results.your not done backup with rman directly taken by data copy.so file
RMAN > list copy;
above cmd will show that you have desired results check it out.
-
Dear all,
db_version: 10.2.0.4
OS_Version:window 2003 Server
Environment: Test
I want to perform cold backup with RMAN for the same thing I want to know the following:
1. What is the script / command?
2. how to completely restore a cold backup (ex:-if I lost all my data, redo and archive)
3. is it compulsory to open the database in mode RESETLOG after recovery (since I was a backup to cold)?
Thanks in advanceA backup 'Cold' is called a 'Cohérent' backup
See http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup003.htm#sthref297Backup:
From the RMAN command line:SHUTDOWN IMMEDIATE STARTUP MOUNT BACKUP DATABASE BACKUP CURRENT CONTROLFILE -- to get the controlfile in a separate backupset
Restoration:
STARTUP MOUNT RESTORE DATABASE ALTER DATABASE OPEN
If you use a SPFILE, you can have a backup SPFILE included automatically with the backupset controlfile with CONFIGURE CONTROLFILE AUTOBACKUP on and CONFIGURE CONTROLFILE AUTOBACKUP FORMAT...
Read the documentation.
Hemant K Collette
-
Backup of the file pfile with RMAN
Dear all,
How can we save pfile with RMAN? Please don't tell using this SQL > create spfile from pfile; then RMAN > backup spfile;
Can we directly files pfile and password backup with RMAN?
Thank youRMAN backup impossible pfile but only spfile. RMAN cannot backup password files. See http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup001.htm#sthref280
Edited by: P. Forstmann on April 2, 2009 08:53
-
Is it possible backup 11g r1 DB and Recover to12c r1 with RMAN?
I'm trying to save the old server to the new.
Is it compatible to migrate Database 11.1.0.6 to 12.1.0.2 with RMAN?
RMAN restore and recover a previous version of backups. See the compatibility matrix RMAN to https://docs.oracle.com/database/121/RCMRF/compat.htm#RCMRF1949
All output data base Oracle can restore backup sets and copies created by any prior release of Oracle Database.
However, in order to open a database, the data must match the version of the Oracle binaries. If you restore and recover a previous version of the database, you will need to update database permission to open it.
RMAN cannot upgrade and migrate a database, but you can use the wizard for DBUA do. I suggest that you only consider this document showing your upgrade options:
http://www.Oracle.com/technetwork/database/upgrade/upgrading-Oracle-database-WP-12C-1896123.PDF
Unfortunately, there is no way to upgrade direct 11.1.0.6 12.1 and you must upgrade the database to 11.1.0.7 first before restoring it. Other options, see the link above.
-
Is it possible backup backupset with rman sbt on disk
Hello
We backup data base of sbt with rman and nmda library (networker).
We want to copy the disk sbt backupset. Is this possible?
Kind regards
William
I remember that this is not possible. It was perhaps possible to redraw the rman backup and restore concepts, but there is probably no real business applications. Remember that a band or an sbt (series tape backup) is a streaming device. You can read from tape or write about a band, but you can't read and write in the same band at the same time. What syntax would you choose to perform an rman backup from tape to disk or tape to tape? Rman backup you can specify a peripheral channel of exit and entry for the use of the restore command. As far as I know, the rman backup source is the database control file and it reads no Ribbon.
-
Hello.
Version of the database is 11.2.0.4
I implement RMAN. I'm setting up FRA and I have a general question.
I understand that the DB_RECOVERY_FILE_DEST is necessary for FRA - this is where the logs archive saved will be stored?
The location of archive records however (which must be separated from the FRA) - this still can be set according to the LOG_ARCHIVE_DEST parameter?
Thank you
DA.
What I managed to do runs than incremental backups with block change tracking.
It was surprising speed backups then connected - 25 minutes to a little more than 1 minute!
-
How to make a backup of the database with RMAN Oracle Single Instance
People,
Hello. I use the server of Oracle 11 GR 1 material with operating system Oracle Linux 5.10 database.
I understand how to back up the database instance in SQL Server with Windows. But do not really understand how to back up the database instance in Oracle on Linux.
I did it cold and hot backup for the database HRCS90 instance, but both receive the same error message.
Cold backup is below:SQL > startup
ORACLE instance started.Total System Global Area 538677248 bytes
Bytes of size 2146024 fixed
528482584 variable size bytes
4194304 buffers of data bytes
Redo buffers 3854336 bytes
Mounted database.
Open database.
SQL > shutdown immediate
The database is closed.
The database is dismounted.
ORACLE instance stops.
RMAN > backup database;From backup 25 November 13
using the control file of the target instead of recovery catalog database
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the backup command to the 25/11/2013 14:26:52
RMAN-06171: not connected to the target database
RMAN > backup HRCS90RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-00558: error occurred during parsing of order entry
RMAN-01009: syntax error: found 'distinctive sign': expected an of: ' archivelog, auxiliary, as, backup backupset, blocks, channel, check, copy, copies, controlfilecopy, cumulative, current, basic data, datafile, datafilecopy, device, diskratio, db_recovery_file_dest, db_file_name_convert, duration, filesperset, for, format, from, full, strength, file, incremental, keep, (, maxsetsize nochecksum, noexclude, nokeep, not, proxy, pool, re-use, recovery, section, skip). ', spfile, skip readonly, setsize, tablespace, tag to validate.
RMAN-01008: the identifier of the AfDB was: HRCS90
RMAN-01007: line 1 column 8 file: entry standard
RMAN > backup database HRCS90RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-00558: error occurred during parsing of order entry
RMAN-01009: syntax error: found 'distinctive sign': expected an of: ' archivelog, auxiliary, backupset channel, copy, controlfilecopy, backup, common, base data, data file, datafilecopy, remove, diskratio, db_recovery_file_dest, filesperset, format, force, file, include, keep, (, maxsetsize, noexclude, nokeep, not, pool, more reuse, recovery, section, skip, spfile, pass readonly, setsize, tablespace, tag, to).
RMAN-01008: the identifier of the AfDB was: HRCS90
RMAN-01007: line 1 column 17 file: entry standardWhile the instance of database HRCS90 is starting, I do hot backup by using the same commands and get the same error message with above cold backup.
My question is:
Can any folk tell me specific steps (order by order) to back up a single instance of the database in Oracle with RMAN?
Thank you.Yes, you can restore and recover the backup, but not at the moment. You will only be able to restore and recover at the time of your backup.
For example.
If you take backup (mount point with no mode of journal archive) at 06:00 and your grave database crashes at 21:00, you will be able to restore and recover until 06:00. You will find all the changes made to the database between 06:00 and 21:00.
If you want your database to recover until 9 PM or until a point in time, then you must put your database in log mode archive, and then save the archives.
-
Creating a new controlfile with RMAN backup data files
Hello
I use oracle 10g (10.2.0.1) in RHEL5 server. I am trying to restore a RMAN backup from one server to another server again with the new name of the comic. I took on the RMAN backup spfile and created her pfile and edited the file pfile with new dbname and directory structure and launched the db in nomount with new pfile. Today I restored the backup controfile RMAN has tried to put the database in State of Mount. But it failed due to the error below
RMAN-03002: failure of alter db command at 21:44:56 05/11/2012
ORA-01103: name "ORADB" in the control of the database file is not 'DEVDB '.
So I stop the database and started the db in nomount with new pfile and tried to create the controlfile with new db name, but he didn't like it is looking for the data files.
ORA-01503: CREATE CONTROLFILE failed
ORA-01565: error in file identification
' / u01/app/oracle/oradata/DEVDB/datafile/o1_mf_system_80jq0kfw_.dbf'
ORA-27037: unable to get file status
Linux error: 2: no such file or directory
Additional information: 3
All my data files in my RMAN backup. How to get the data files of RMAN backup in the above scenario?
Kind regards
007restaurer restore as ORADB, then rename the database with DBNEWID
http://docs.Oracle.com/CD/B19306_01/server.102/b14215/dbnewid.htmor use duplicate instead of restore
-
With RMAN for backup, but not with the archive logs
We run a 10.2.0.4 database and the rest 11.2.0.3. All databases are on RHEL 5.7.
Our backups are via RMAN, with the data files, controlfiles and spfile saved to disk, then each day, it is copied off site to a backup server.
My question is around logs archiving and RMAN.
Our current situation is:
-We do not save the logs to archive via RMAN. for example: backup of the list of the archivelog all; gives "specification does not match backups in the repository.
-We set the archive_lag_target so archiving logs is produced every 30 minutes.
-a cron job running on a remote server runs periodically to synchronize data (rsync server) the directory of archives with a remote control.
-daily archive logs on the server host are bzip. Purge of these newspapers is scheduled for more than 3 days rman 'window of recovery '.
I'm interested in feedback as to if our strategy around archiving logs is correct or not.
Should we be backup logs archiving via RMAN? Are there potential problems with our approach?
We just kept our backups in this way the DBA in the past want to see newspapers archived as opposed to it while a backupset.
Curious to know what others are doing.Hello
Welcome to OTN!
Archivelogs with RMAN backup is a better option. When the archives are supported by RMAN, RMAN would be aware of the backup items which are required at the time of the recovery archives. You don't have to do it manually.
On the disk space, you can delete the archives once they were saved by RMAN.
RMAN > delete any backup archivelog entry;
This supports the archivelogs and then remove the archives from the disk.
If you have a dataguard configured, you can set the deletion policy 'applied on Eve', which removes the archives as and when they are applied to the database ensures there by the management of disk space again.
RMAN > configure archivelog political of deletion to applied pending;
-
RMAN backup with the smallest size of backup
Oralce 11g 2 on Redhat 5. Disk space is our the tighter resource, and we want an incremental backup with Level0 Sunday and level 1 every day of the week and on Saturdays. I'm using the comamnds to do the job
I don't think that it is the best practice or produce smaller backup files.--Sunday backup incremental level 0 tag 'level_0' database plus archivelog; --Other days backup incremental level 1 database plus archivelog delete all input;
What are you comments and opinions. Thank youRMAN backup except for the backup copy will only backup blocks used, which is quite efficient. Backup incremental level 1 are set by default and the smallest of the incremental backup.
However, you can enable compression reduce the size of the backupset (Oracle 10 g and more). You can also enable the block track the changes in the database only once, so that backup incremental level 1 do not need to analyze the data files for the changes - this allows saving a lot of time and IO.
SQL > ALTER DATABASE ENABLE BLOCK CHANGE TRACKING;
RMAN > run {sql 'alter system switch logfile' ;}}
RMAN > BACKUP AS BACKUPSET INCREMENTAL LEVEL 0 COMPRESSED DATABASE MORE ARCHIVELOG DELETE ALL ENTRIES;
RMAN > ACE COMPRESSED BACKUPSET INCREMENTAL LEVEL 1 DATA BACKUP MORE ARCHIVELOG;I would prefer not to delete the archivelogs after each incremental backup of level 1 in order to make a point in time recovery without the need to restore the archivelogs.
And don't forget to:
CONFIGURE CONTROLFILE AUTOBACKUP ON;I hope this helps.
Maybe you are looking for
-
If I don't remember my master password, is there anything short of a full reset I can do to get it back? As a matter of security, etc?I use Firefox V 5.0 with win 7/64
-
fan stays on too long and the battery level decreases rapidly: any problem identified?
Fan stays on too long and the battery level decreases rapidly: all identified cause problem or possible? MacBook Air mid-2013 OS 10.11.13 Processor 1.7 GHz Intel Core i7 8 GB of DDR3 memory at 1600 MHz Thank you, Paolo
-
Hello guys, are there differences between money and black motorola xoom? Find a black buy in UK?
-
HP Officejet Pro 8600 to JetPack 4 G - LTE Verizon connection
Hi, as you can probably guess I am trying to connect my HP Officejet Pro 8600 to my Verizon Wi - Fi hotspot. I tried to use the "Wireless Setup Wizard. When prompted I chose the correct network and entered the password. After a while the printer i
-
If Firefox blocks a page, I can't click on the allow button appears because the pointer of the mouse is disabled...