Archive files and rman backup
Hi Experts,
For testing, I creates a testing DB. after that, I delete some archive file from physical side.
testing DB works well.
However, I tyr to back up thsi testing DB. I got below error message
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=142 devtype=DISK
new RMAN configuration parameters:
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'D:\Oraclebackup\CLS\exports\RMAN\%U
new RMAN configuration parameters are successfully stored
released channel: ORA_DISK_1
Starting backup at 15-JAN-09
current log archived
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=142 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup plus archivelog command at 01/15/2009 15:18:13
RMAN-06059: expected archived log not found, lost of archived log compromises re
coverability
ORA-19625: error identifying file D:\test\ARC00001_0675529905.001
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
So How to fix this issue?
That means we can not delete any archive log files that we do not need it.
Otherwise there are a problemwhen we try to backup later
JIm
Hi Jim,
change archivelog all crosscheck ;
will do the trick.
You can purge archive files but do it within rman.
Add a line in your rman backup script which makes backup your database and archive files like this.
delete noprompt copy of archivelog all completed before 'SYSDATE-3';
Regards,
Tycho
Similar Messages
-
Archivelog files and Rman backup
Hi all,
Please somebody guide me regarding the following concept.
We have the oracle server version 10.2.0.1.0, working with Windows OS,
I had set the parameter log_archive_dest_1 for locating archivelog files, then I had changed the archivelog files to the flash recovery area(located in another disk) by using the parameters db_recovery_file_dest_size and db_recovery_file_dest.
Now the archivelog files are being located at two different location. At this point, If I take backup for archivelog files with the aid of RMAN, then ,
How will the RMAN take backup from those two different locations?
Thanks&Regards,
Jai.PROBLEM :
I have archivelogs duplexed - when running RMAN - rman backups up the archivelogs from both duplexed destinations - from the user manual - this should not be the case, any ideas?
Details:
I have archivelogs duplexed
I have the following set in rman :
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 2 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backup/rman/WPPMD/control_%F';
CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 10 BACKUP TYPE TO BACKUPSET;
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 '/backup/rman/WPPMD/backup_%d_%T_%U' MAXPIECESIZE 10 G;
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'LOW' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;
CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 1 TIMES TO DISK;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_WPPMD.f'; # default
When I run backups via a script :
backup incremental level=$RMAN_LEVEL database plus archivelog;
($RMAN_LEVEL changes between 0 and 1 depending on the day of the week)
It backs both duplex copies of the same archivelog
From the document :
Oracle10g / 11g - Getting Started with Recovery Manager (RMAN) [ID 360416.1]
It says :
Even if your redo logs are being archived to multiple destinations and you use RMAN to back up archived redo logs,
RMAN selects only one copy of the archived redo log file to include in the backup set. (Since logs with the same log sequence number are identical, there is no need to include more than one copy.)
But this is not the case ie
RMAN> list archivelog sequence 2445;
using target database control file instead of recovery catalog
List of Archived Log Copies for database with db_unique_name WPPMD
=====================================================================
Key Thrd Seq S Low Time
4640 1 2445 A 17-DEC-10
Name: /log/recovery_area/WPPMD/archivelog2/1_2445_735315419.dbf
4639 1 2445 A 17-DEC-10
Name: /log/recovery_area/WPPMD/archivelog/2010_12_17/o1_mf_1_2445_6jpx9n7c_.arc
So it still backing up both copies of the archive log.
Any ideas? is this a bug?
Thanks
Luca
Edited by: user4599449 on 17-Dec-2010 07:05
Edited by: user4599449 on 17-Dec-2010 07:06 -
Implications of losing ArchivedLogs and RMAN Backup directory.
DB version:10gR2
We have a test database which is important since it is a pre-production DB used by the application team for their final testing .
Currently this DB is not in Archivelog mode. Every night a cronjob runs to create the expdp datapump dump of the schemas in this DB.
We want to test online RMAN backups in this DB. So we are going to put this db in ARCHIVELOG mode for a week.
The RMAN backup pieces will be stored in +/u03/data1/orabkp+ and the Archived logs will be stored in +/u04/ach_logs+ directory.
We want to know the impact of /u04/ach_logs , the archived logs directory getting accidently deleted. I know that the accidental deletion of RMAN backup directory shouldn't impact the normal running of the database. But we want to know the if the accidental deletion of Archived redo logs directory will impact the DB.
Edited by: user10633418 on Sep 25, 2009 2:53 AMNO, it will not impact in the database. If you delete any archive log files database will run normally. But you won't restore your database in point in time. For recovery you need your full backup of all datafiles + archivelogs + online redo log files.
For a backup policy of any production database where you don't want to lose any transaction you must reserve your archive logs files by rman backup.
Regards
Asif Kabir -
How to calculate storage space for archive log files and database backups?
Hi all,
I have a 1.8 terabyte Oracle 9i database and need to plan for how much additional disk space I will need to perform nightly backups and for archivelog files. Is there a script or formula available that can help me estimate how much required disk space I will need to hold a days worth of archived logs as well as a nightly export dump file and a full hot RMAN backup on disk?
Thanks!I'm not sure how to estimate the size of your backups, especially if you use incrementals. However, the space required for archive logs will be equal to the amount of REDO your DB generates. I would count the number of log switches per day with a query like the following:
select trunc(first_time), count(*)
from v$log_history
group by trunc(first_time)
I would then take the average and multiply this count by the size of your redo log files (assuming they are all the same size). -
When the archive disk group and RMAN backup location is full
11.2.0.2 on Solaris 10
2-Node RAC
Sometimes I am faced with a situation where the disk group meant for storing archivelogs is full and the Disk based
RMAN backup location is full as well. What would you do in such a situation ?
This usually happens with our QA/UAT DBs during apps testing of certain type which causes huge amount of redo is generated.
We don't directly backup to tape. The disk based backups are moved to tape every two weeks by our SysAdmin.Thank you Hemant, Tsharma, Asahideo
If I have free space left in my local filesystem in any of the nodes in my 2-node RAC, I can run something like
-- Untested
BACKUP AS COMPRESSED BACKUPSET ARCHIVELOG ALL DELETE INPUT format '/localNode_pATH/ora_Arch%t_s%s_s%p';and later when the space is freed up in the original RMAN backup location , I can move it there and use CATALOG command to catalog this backup . Right ? -
Automatic deletion of old archive files and trace files
I've got a database that must run 24x7 without being monitored by a DBA.
Two questions:
1. Is it possible to get Oracle to automatically delete and uncatalog old archive files?
2. Is it possible to get Oracle to automatically delete old trace files located in udump and bdump?
Thanks in advance1. When you say 'uncatalog old archives do you mean that your database is backed up using RMAN and a catalog? If this is the case then RMAN can delete the backed up archives for you. Just add 'delete input' to the end of the 'backup archive log...' line in your backup script.
2. Oracle can't delete the trace files. Best way is to write a script that delete all files older than X days and schedule it to run every night. -
Archives missing in rman backup
Hi all,
I am able to backup few archives using rman. But its taking some archivelogs in the same directory. Can anybody tell me the reason.
After registering the archivelog using catalog command am able to take the backup of all the files.
Can anybody tell me the exact reason behind this.
many thanx in advance. . .BALAKRIS005 wrote:
Hi all,
I am able to backup few archives using rman. But its taking some archivelogs in the same directory. Can anybody tell me the reason.
After registering the archivelog using catalog command am able to take the backup of all the files.
Can anybody tell me the exact reason behind this.Hi, there are no problems.Consider you have two archive destinations,then you want bakup archivelogs,in during backup operation rman read information from repository(controlfile or catalog) and backup each log(get only one copy).Rman see one destination and continue backup if there something fails(some logs missing or corrupted) then read other locations and will backup all archivelogs.This is normal situation. -
Restore cold backup and RMAN backup
Hi,
I have cold backup as well as RMAN backup. But i don't know how to restore the backup.
Please anybody send, steps or links for restoring both backups.
Regs,
BrijeshThe "script" would depend on how the backup was done.
A cold backup should be a backup of controlfiles and datafiles.
Was it done using RMAN ? Or done using an OS command (e.g. "cp" or "tar" or "cpio") ?
A non-RMAN cold backup can be restored with the same command that was used to create the backup. If the backup did not include the Online Redo Log files, you need to simulate a dummy recovery from the SQL command line (RECOVER DATABASE UNTIL CANCEL ; then CANCEL) and ALTER DATABASE OPEN RESETLOGS.
If the backup was done using RMAN, you need to
1. RESTORE CONTROLFILE FROM '/location_of_backuppiece'
2. ALTER DATABASE MOUNT
3. RESTORE DATABASE
4. ALTER DATABASE OPEN
Hemant K Chitale -
How can I get back a pages file and its backup if I did not save them to my documents?
Hallo community!
My mac got stock on a website because of a java update so I was forced to shut down the computer using the on-botton. Upon restarting my work on Pages I clicked on the file I was working on so as to open both the file and pages but the file wouldnt open. I checked if I had also saved the file on my documents to try to restart it from there. But this file comes originally from a USB which I dont have at this moment although I could kee on working on this file without the usb. The file is not my documents yet it shows on the last files-list of pages.
I cant open this file anymore, maybe because I did not save it to my files. Although this is strange because I even named another file I worked on along this first document. Enfin, the first file even has a backup according to the list but the backup wont open either. I don't know how to get this file back I am in big trouble If I dont get to open it soon! I hope somebody can help me. Anyone knows a trick or something!?What version of Pages?
It sounds like it may be damaged.
You do not have to save to Documents.
Peter -
AS400 - File adapter not archiving File and Member
Hi Gents,
Specific problem for the archiving of file/members on the AS400 system. When the file adapter is archiving the AS400 member to an AS400 archive file it is leaving an empty file structure in the origin directory. So at the end of the day we have a lot of AS400 Files with no members.
AS400 Technical folks are looking for the FTP 'script' that is being executed on the AS400 to pick up the file and archive it.
Has anyone else encountered this AS400 problem, were you able to solve it?
Also how can I see the exact commands being executed on the AS400 from XI?
Thanks in advance and regards.
MarkExtend the trace file to Debug in Visual Admin, and re run:
 Services
 Log Configurator
 Locations
 Choose the location (Java package) and the tracing level (severity)
(for example, com.sap.aii.adapter.file)
 Root Location > com > sap > aii > File
 Set the severity and choose Copy Severity to Subtree.
Check the log file which will give you the details.
Don't forget to switch this back afterwards.
There are also quite a few OSS Notes relating to problems with Adapter Framework and AS/400... -
Archived file and have now lost tracks in original
Since I have archived a song I have gone to open it again in my normal file and the vocal tracks aren't there (visually they are, but I can't hear them). Is there a plausible explanation for this, or am I losing my mind? Oh yeah, I did try and send it to another user as a zip file through 'You send It' as well, and that didn't work-said it would take two centuries or thereabouts...........Is it possible that my original file has been corrupted? If so, what can I do about it?
You'll have to tell us:
• How did you "archive" the song? "Save as Archive" in GB, "archive" in the Finder (creating a compressed zip file) or just archived in the sense of "putting it away somewhere"?
• You say the tracks are "visually there" - so you can see the waveforms? Do the track meters show any activity? Does the general meter indicate something?
• Since the waveforms are there, I don't think the files have been corrupted. To make sure, go to your song in the Finder, ctrl-click it and select "Show Package Content". The package should contain a "Media" folder that contains your audio files. DON'T MESS WITH THIS FOLDER, just look inside to see if your recordings are there. -
Hello,
I have 2 disctinct servers.
oracle 10gr2 in each one with the same linux red hat 4 version.
the second server is just to TEST if the backup create with the first one, works fine.
So the install in each server is exactlly the same...
same files, same path etc.
Scenario:
1 from srv one I execute a full backup with RMAN
2 I copy the file in server 2
3 I move a datafile in order to create an error
4 I test : restore database in server 2...
I get the followin error:
RMAN-03002: failure of restore command at 02/24/2008 21:15:37
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 8 found to restore
and this command return no result:
RMAN> list backupset;
RMAN>
the file created with server 1 have been copied in the declared path into server 2...
I have execute a crosscheck backup too
RMAN> crosscheck backup;
using channel ORA_DISK_1
RMAN>
Must I copy the controle file too? in this case will I have an inconsistent error?
Thanks to help
CheersYou must have
controlfile autobackup on
(If you don't change the format it will be in $ORACLE_HOME/dbs, and the format will be c-<database id>-<yyyymmdd>_<piece>.ctl).
You must copy that file, as it has information about your most recent backup, the backup you just made.
Hth
Sybrand Bakker
Senior Oracle DBA -
HVX Files and Media Backup. Raw or converted are keepers?
I am in Russia shooting a documentary and I'm starting to rack up the footage with the HVX200.
I am archiving all those crazy files that the HVX producess but I'm wondering if I really need to do that. I have to download this stuff because the camera is rolling a lot and I have to clear cards to keep shooting.
Questions is, do I keep all these crazy files, which I can't preview or work with at all on a Mac or do I dump them once I've imported the footage to FCP and made workable copies that I can actually view and rename.
FCP dumps all the clips into one huge capture bin so it gets really confusing. If I rename these and in the future have to reimport from the crazy HVX file structure, I'll lose all the unique names I created and then FCP won't know what to look for.
If I rename the clips in FCP, looking for raw clips on the HD could be a bit of a nightmare. Just wondering the best approach. Whatever happens the resulting media will be backed up twice. This creates a further problem. If I keep the crazy HVX files (on two drives) AND the converted files, I'm taking up twice as much space. I'm in Russia and don't want to run around trying to find drives.
Thanks in advance. Looking forward to some good answers.Hi,
Thank you for the replies, sorry for the delayed repsonse, I've been in an "Edge Network" area for 2 days. I am going to check ou the Publish services and see if this will meet my needs.
You are correct that this is simply my "hell in a handbasket" back-up solution. I have a very robust local backup, that includes raid along with on and offsite versioned back-ups, so this is simply there just in case. If I lost everything but these photo's I'd still be okay, it's only 20% of so of my catalog so it's more practical to back up 400 or 500 gb though uploads. Backing up the whole catalog might be an option, but it's a lot of extra time and bandwidth. Perhaps it will become more practical in the coming months and years.
Having said all of that, I would prefer to simply back-up the 3-5 star photo's in their original folders rather than duplicate them though an export. I get the impression that the Publish services acts like a real-time dynamic filter that throws the 3-5 star photo's in a separate location that I will tag as a cloud back-up. If I have to do it that way I will, but it's just more storage and complication. Still it does provide a solution that I don't currently have.
Thanks for the suggestions! -
IPod 30G 5th gen as file and photo backup?
Is it possible to use my new 30G iPod for basic file backup for word and photo files? Make it work like a basic external HD and still enjoy all the iPod music features, etc?
G5 dual 2 Mac OS X (10.4.8)Of course if your main hard drive crashes you can also lose everything. Never trust strictly a hard drive back up solution. Every so often I back up everything that is real important to a dvd-RW disc set.
Using the iPod is great because you can use it as a drive to move files around with and as a secondary back up.
Mort -
How to restore backup archived files
hi folks
i have backup the archived files ,now just for educational purpose i want to back up/restore database from these archived files what steps i will take,i read that control files should also be back up is it true if it is then why control files should be backed up..
if i have archive files and control files then what i will take step to restore the database after failure please tell me some steps.
umaisi
tks & regardsNow I'm eager to know also,if I have my weekly cold
backup,which is the datafiles,controlfiles and
redologs, and I do export bckup for my data
daily.and if the db crashes, what r the steps for me
to restore my data.will I be able to restore it upto
the date I took the last export? we dnt have archive
on and the RMAN is not working for past 10 months.You can use the colde backup to restore your database,
then truncate or drop user tables,
then use your daily export data to get the newest data.
HTH
Maybe you are looking for
-
When I bought my Macbook Air in 2011, ( leopard on purchase - now mountain lion) I discovered how to close open Finder windows by double clicking at the top of the window. I have just bought an iMac (mountain lion) and for the life of me cant find ou
-
How to see which perners are rejected/skipped in Time Run
Hi! We Run Time in background for all employee everyday and then can see no of employee get rejected/processing has not completed for in Time Run Statistics.My Question is How to get to know which employee (employee ID)got rejected/skipped. PT_ERL00
-
iI'm thinking about buying the app, but I NEED to know if it's gonna work for me
-
Help on Value Contract - Pricing Procedure.
Hi, I am trying to create value contract. I have created a contract for specific material (WK2) with the target value. The pricing procedure is WK00Z with only one Ctype WK00. Condition Records are maintained for WK00 for customer / material. When I
-
OEM PARTITION IS NOT VISIBLE ON GPT DISK
sir ,my oem partiton on windows 8 is hidden it is under gpt disk also indicating "*" mark on gpt ,what is the command in diskpart to unhide it as m using a command - SET ID=07 OVERRIDE ,but a error is shown up -THIS COMMAND DOESNOT WORK ON DYNAMIC D