archivelogs with RMAN backup
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!
Tags: Database
Similar Questions
-
Remove the archivelogs with RMAN
Hello
I usually remove archivelogs with RMAN with command as ' ARCHIVELOG DELETE ALL COMPLETED BEFORE ' SYSDATE - 1' if I have to erase the archivelogs to free the space of FRA.»»
My question is if I delete the archivelogs will it deletes the records in the catalog also (I think) so backed up on tape. In this case the catalogue is not information for these records even if they are on cassettes, correct?
So in the case of collection how can I restore them?
Thank you
Published by: 822424 on May 15, 2011 19:28The catalogue contains information about the backups.
Before you remove the archivelogs, I assume that you have done a BACKUP ARCHIVELOG (or with the database as a BACKUP database PLUS ARCHIVELOG DATA). Therefore, backups are in the BackupSets that are in the catalog.
Hemant K Collette
-
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
-
Two questions relating to the archive redo logs with RMAN backup
DB version: 11g
I am new to RMAN.
My database is in ARCHIVELOG mode. I intend to make a weekly backup for my db (02:00 every Monday). There will be all the incremental backups between these windows(Monday-to-Monday) of backup that I have would function for retrieving archived redo logs.
Question1.
I want to save the archived logs every day (for example at 23:00). How can I configure that?
These are the configuration setting, that I intend to implement. I don't know how to set up the archive log backup
Question2.configure default device type to disk; configure retention policy to redundancy; configure device type disk parallelism 1; configure channel 1 device type disk clear; configure channel 2 device type disk clear; configure channel 1 device type disk format '/u05/rman1/datafiles/rmnabackup1_%U'; configure channel 2 device type disk format '/u05/rman2/datafiles/rmnabackup2_%U'; configure controlfile autobackup on; configure controlfile autobackup format for device type disk to '/u05/rman1/control_files/rmnabackup1_%U';
After that a new full backup is taken at 02:00 on Mondays, the archived redo logs accumulated since the last 7 days become unnecessary. How can I automate the removal of the archive redo logs with RMAN?Archive the log delete them all input command will take the destination of the log archiving log backup archive and delete this destination.
In the log archive destination he has archived log in the sequence 1 to 100 then will he take the backup and delete any of the destination (Monday 23:00).
In the log archive destination he has archived sequence journal 101 to 150 then will he take the backup and remove those in the destination (Tuesday 23:00).
In the log archive destination he has archived log in the sequence from 151 to 180 so will he take the backup and delete any of the destination (Wednesday 10:00).
It will continue like that.
Concerning
Asif Kabir-If you help brand the response as correct/useful.
-
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.
-
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
-
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
-
How to create the new database with rman backup
Hello
I took an rman backup with nocatelog. can I make a new database with the rman backup.
If so, how? I m using oracle 9i.
thxsIf it is useful, see the following:
http://www.shutdownabort.com/QuickGuides/clone_rman.php
-
Hi gurus
I want to know what is the reason that we need to make a backup of all the ways to instacnes why rman needs to create a channel for all instances while performing a backup? Since CARS use a shared storage, then we can take a backup of an instance of one is enough right? Clarfiy me please.
Concerning
BathrinathYou must backup all archive log threads one instance.
If all your redologs archived for all threads are on the shared storage, AFAIK you don't need multiple channels.
If these wires are on local storage, you need to allocate a channel instance or you won't have a full backup.-----------------------
Sybrand Bakker
Senior Oracle DBA -
We can schedule with rman backup in the windows platform?
My question is about the backup settings of my
the idea is to all on the windows platform
a weekly full backup (compressed backupset level 0)
daily incremental backup of (cumulative) (even, level 1)
an incremental backup every hour (bonus) (level 1)
could you please tell me if the following examples will be adapted to my needs
Thanks to you allI think you would need to do a .cmd file plan and then using the Windows Task Scheduler. I suggest you do a cmd simple backup file, try to plan and see how it goes.
HTH
Aman... -
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;
-
Duplicate RMAN with specific backup location
Hello
I explain here my architecture:
-Server Oracle 11.2.0.4 production: prod db with the instance name PROD with RMAN backups on the F: drive
-Test the Oracle 11.2.0.4 Server: test-db with the instance name TEST with RMAN backups on the F: drive and production available on the G: drive backup drive
-Customer name: customer
My goal is to reproduce the production server to the test server instance and I can't achieve this goal. The connection is client-side.
I do it like this:
-startup nomount TEST
-On the client, run the following "rman target sys/pass@PROD auxiliary sys/pass@TEST.
Then in RMAN, I run the following:
RUN{
CHANNEL AUXILIARY ALLOCATE ch01 DEVICE TYPE DISK;
CHANNEL AUXILIARY ALLOCATE ch02 DEVICE TYPE DISK;
DUPLICATE THE DATABASE TO THE LOCATION OF THE BACKUP TEST "G:\RMAN";
}
RMAN does not see my "LOCATION of BACKUP" command because it tries to reproduce the F: drive and can't find the backup files.
I have the thing like this:
CH01 channel: reading of the element of backup F:\RMAN\CTRLFILES\CTRL-PROD-C-2267984545-20150826-00CH01 channel: ORA-19870: error when restoring full backup, F:\RMAN\CTRLFILES\CTRL-PROD-C-2267984545-20150826-00ORA-19505: impossible to identify the file "F:\RMAN\CTRLFILES\CTRL-PROD-C-2267984545-20150826-00 'ORA-27041: could not open the file04002 - OSD: could not open the fileS/O-error: (OS 2) the system cannot find the file specified.Single quote, double quote, tried almost everything and RMAN always look for the backup in the F: drive. Can you help me to use the G: drive?
And at the beginning of this thread someone told me not to connect to the target database.
You use the clauses unwanted duplicating without connecting to the target database. SPFILE clause is not necessary, but you seem to use it in the block of the RACE.
Create a simple PFILE with all the parameters required for the auxiliary instance, startup nomount and run the duplicate.
Also worth db_file_name_convert log_file_name_convert parameters in the PFILE to the auxiliary instance file, run the duplicate.
run
{
CHANNEL AUXILIARY ALLOCATE ch01 DEVICE TYPE DISK;
CHANNEL AUXILIARY ALLOCATE ch02 DEVICE TYPE DISK;
DUPLICATE THE DATABASE TO THE LOCATION OF THE BACKUP TEST "G:\RMAN";
output channel ch01.
output channel ch02;
}
HTH
-Jonathan Rolland
-
Copies of images on tape with RMAN
Colleagues dbas,
is it possible to create copies of the image of the archivelogs with rman, and store them on tape by specifying the string that is used by RMAN?
AFAIK, it is possible to create copies of the image on disk only. I need these files stored on tape, however and want to avoid backupsets.
If you have an idea as to if it will work, please let me know!
Kind regards
SEBHello;
AS a BACKUP COPY can be done on the disc.
Backup of the COPY of the IMAGE cannot be made to the disk. You have no backup copy image on tape.
http://docs.Oracle.com/CD/E11882_01/backup.112/e10643/rcmsynta007.htm#CHDEHBEJ
A copy of the image is an identical copy of the byte to byte in the original file. Copy the image files may not exist on disk.
See - 4.1.2.1 on Copies of the Image - (Oracle 10)
http://docs.Oracle.com/CD/B19306_01/backup.102/b14192/bkup001.htm#i1034275
http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/rcmcncpt.htm#i1006661
See Chapter 5 of the E10642-03 - Sub - "configure the default Type for backups: sets or backup Copies.
Exact quote:
Note: because RMAN can write a copy of only the disk image, the type of backup to tape can be a backup set.
Thus, you can perform the copy and it then backs up to the band as an option.
Best regards
mseberg
-
Problem creating a Standby physical database with RMAN
Hi all
I am learning oracle dataguard and as part of the learning process of creation of database on hold.
Platform: V250-fire-Sun Sparc, Solaris 10
Version of database - Oracle 11R2
I create standby database on the same server, so the directory structure is different.
By following the instructions on the site of Oracle, I managed to create a functional physical standby database. But I'm not able to create a database with RMAN backup. Here are the steps that I follow-
1 configure all the required settings on the primary database as done in creating physical standby database manually, for example implementation force of logging, the creation of newspapers ensure etc..
2. settings edited on the primary database file as does everything in manual creation of physical database backup. Some of these changes are –
On the primary database:
*. FAL_CLIENT = "orcl11020" #Primary database unique name
*. FAL_SERVER = "stdby_11" #Standby database unique name
db_file_name_convert ='/ < dir >/oradata/stdby_11 ',' / < dir >/oradata/orcl11020 '
log_file_name_convert ='/ < dir >/oradata/stdby_11 ',' / < dir >/oradata/orcl11020 ',' / < dir > / oradata/stdby_11/redo_mem ',' / < dir > / oradata/orcl11020/redo_mem '
standby_file_management = auto
* .log_archive_config = 'DG_CONFIG = (orcl11020, stdby_11)'
* .log_archive_dest_1 = "LOCATION = / < dir > / flash_recovery_area/ORCL11020/archivelog"
VALID_FOR = (ALL_LOGFILES, ALL_ROLES) db_unique_name = orcl11020'
* .log_archive_dest_2 = "SERVICE = db_unique_name LGWR ASYNC = (ONLINE_LOGFILES, PRIMARY_ROLE) stdby_11 = stdby_11 VALID_FOR'"
*. LOG_ARCHIVE_DEST_STATE_1 = 'ENABLE '.
*. LOG_ARCHIVE_DEST_STATE_2 = 'ENABLE '.
*. LOG_ARCHIVE_FORMAT='%t_%s_%r.arc'
*. LOG_ARCHIVE_MAX_PROCESSES = 30
Copied same pfile standby database and set to date follows.
"* .control_files ='/ < dir > /oradata/stdby_11/stdby_11.ctl','/ < dir > / fra_stdby/stdby_11/stdby_11.ctl".
* .db_name = "orcl1102".
* .db_unique_name = "stdby_11".
*. FAL_CLIENT = "stdby_11."
*. FAL_SERVER = "orcl11020."
db_file_name_convert ='/ < dir >/oradata/orcl11020 ',' / < dir >/oradata/stdby_11 '
log_file_name_convert ='/ < dir >/oradata/orcl11020 ',' / < dir >/oradata/stdby_11 ',' / < dir > / oradata/orcl11020/redo_mem ',' / < dir > / oradata/stdby_11/redo_mem '
standby_file_management = auto
* .log_archive_dest_1 = "LOCATION = / < dir > / fra_stdby/STDBY_11/archivelog"
VALID_FOR = (ALL_LOGFILES, ALL_ROLES) db_unique_name = stdby_11'
* .log_archive_dest_2 = "SERVICE = orcl11020 LGWR ASYNC VALID_FOR = (ONLINE_LOGFILES, PRIMARY_ROLE)
db_unique_name = orcl11020'
3. Add the relevant information in tnsnames.ora and listener.ora files and restart the listener.
3 created the file password with the same credentials as database primary.
4.up - to-date RMAN backup primary database available.
5. create controlfile standby with rman
While the primary database s open (I tried with a primary database in montage mode as well).
$> rman/paswd@rman for catalog rman target /.
RMAN > BACKUP CURRENT CONTROLFILE TO SLEEP;
6. open a new terminal standby base and start in nomount mode using the settings created - file
$> ORACLE_SID = stdby_11
$> export ORACLE_SID
$> sqlplus / as sysdba
SQL > STARTUP NOMOUNT pfile =' < rental/initfilename.ora '
SQL > quit
$> rman AUXILIARY / target sys/passwd@orcl11020 catalog rman/passwd@rman
RMAN > duplicate TARGET DATABASE ENSURES DORECOVER;
RMAN ends without error but the archive logs is not eliminated. Looking at the newspaper, following caught my eye.
Logging of 1017 errors received on the eve
------------------------------------------------------------
Verify that the primary and standby use a password file
and remote_login_passwordfile shared or EXCLUSIVE.
and the SYS password is the same password files.
error ORA-16191
------------------------------------------------------------
FAL [client, ARC2]: error 16191 connection at orcl11020 for the extraction of the gap sequence
Errors in file /<>dir > / diag/rdbms/stdby_11/stdby_11/trace/stdby_11_arc2_24321.trc:
ORA-16191: customer main newspaper not connected waiting for shipment
Errors in file / < dir > / diag/rdbms/stdby_11/stdby_11/trace/stdby_11_arc2_24321.trc:
ORA-16191: customer main newspaper not connected waiting for shipment
Thus on primary and standby I confirmed
SQL > show parameter remote_login_passwordfile
VALUE OF TYPE NAME
------------------------------------ ----------- ------------
Remote_login_passwordfile string EXCLUSIVE
Make double sure that the password files are the same, I stop databases, delete the password and recreated with the same credentials.
Password files are called - orapworcl11020 and orapwstdby_11
Can someone guide me where thisngs wrong here please.How did you create your file of passwords on the rescue system?
I will consider your entire post and see what jumps.
* 3. Created the file password with the same credentials as primary database.*
You cannot create the password on the eve of 11.1 from file. You must COPY the password from the primary to the wait for passwords to match. What I do, is copy and rename.
E.g.
I copy orapwPRIMARY to the standby server and rename it orapwSTANDBY
(Your names varies)
It could start to work if you do this with a stop and restart of recovery on the day before. Newspapers make up probably just.
If you find this helpful please mark as well.
Best regards
mseberg
Published by: mseberg on July 7, 2011 07:16
A few things about the parameters (they can make no difference)
This
Log_archive_dest_1 =' LOCATION = /
/flash_recovery_area/ORCL11020/archivelog VALID_FOR = (ALL_LOGFILES, ALL_ROLES) db_unique_name = orcl11020' Would it be
Log_archive_dest_1 =' LOCATION = USE_DB_RECOVERY_FILE_DEST VALID_FOR = (ALL_LOGFILES, ALL_ROLES) db_unique_name = orcl11020'
Not sure that you need.
LOG_ARCHIVE_FORMAT='%t_%s_%r.arc'
-
Set - up physical Standby with RMAN
Hello
I took a database, including the archivelogs with RMAN. After 5-6 hours after the end of the backup, I created the primary as on DB standby control file:
rman target $ /.
RMAN > BACKUP CURRENT CONTROLFILE to STANDBY;
Can I use the FULL existing backup to create a standby DB when the standby control file was created several hours later the backup is complete, or do I need to create a new FULL backup?
Concerning
AingleYes,
My experience on Unix is sooner or later, in the absence of a tape library, you find yourself using NFS.
Be aware that this should be the buffer of NFS 3 + and with a reading and writing of 32767octets.Apart from this, the procedure seems OK.
-----------
Sybrand Bakker
Senior Oracle DBA
Maybe you are looking for
-
Need drivers for Windows XP Home edition on the Russian language for Satellite M35x-s149
Help, please. Can not find the drivers for windows XP SP3 or SP2 on the Russian language for TOSHIBA Satellite M35X-S149.
-
Disconnected radio on map Wifi mini-PCI in Satellite Pro A40.
I installed a card Atheros Wifi Mini-PCI (marked Toshiba, model AR5004G) in my Satellite Pro A40. Pilots of the section of downloads on the A40 Toshiba support site installed fine, and everything seemed to work. But the card could not find my wifi ne
-
Satellite X 200: WLan driver does not work with Windows XP Home edition
Hello I'm trying to get WIFI on my Satellite X 200 XP. I downloaded the drivers of these 'wlan-intel-1244-7147"but still no luck, also after installing these drivers, I get an error when I stopped saying" sample program does not. This is a new instal
-
When a computer XP starts, the following errors occur. Can't find Mac addresses, can't find DHCP at startup. PC is not connected to a network. Why would it gives this error at startup?
-
BlackBerry Smartphones Masseges
I would like to know if I can separte my messages. I would like to have my email go to the mailbox for the mail and my SMS or MMs to go in their boxes of owen