Regarding deletion of archivelogs.
Hello,
my database is in archivelog mode and i am taking hot backup of datafile everyday.now because of disk space i have to delete some archivelog files.
so till which date i can delete archivelogs???
thanks in advance...
Assuming you're using RMAN, you can set a retention period and just tell RMAN to delete the obsolete archived logs as part of the backup.
In general, you can delete archive logs whose maximum SCN is earlier than the earliest hot backup you want to be able to restore and roll forward. Depending on the organization and the database, different folks have very different retention periods-- some folks keep archived logs for months, others for a couple days. Of course, if you've backed up the archived logs already, you can likely delete them on disk, depending on how many copies of any particular log your recovery plan requires you to have.
Justin
Hans beat me to it.
I should also note that I'm assuming that archived logs in your environment are being used exclusively for backup & recovery purposes. You may need to keep them longer because they're required for auditing purposes, for Streams or other replication technologies, etc.
Message was edited by:
Justin Cave
Similar Messages
-
Using RMAN to delete unwanted archivelog files..??
Hi All,
How can i remove the unwanted archivelog files from the disk, to manage the disk space usage, using RMAN?
My 10g database is in ARCHIVELOG mode and the OS is RHEL ES Release 3
when i tried with 'delete expired archivelog all;', i got the result as follows:
RMAN> delete expired archivelog all;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=363 devtype=DISK
specification does not match any archive log in the recovery catalog
Please update...
Many Thanks in advance.....!!!with the delete all input, can i assume that the archivelog files has been got deleted...Don't you trust Oracle ? :-)
You should see two series of messages, like below
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=73 recid=1 stamp=599697994
input archive log thread=1 sequence=74 recid=2 stamp=599698064
input archive log thread=1 sequence=75 recid=3 stamp=599698103
input archive log thread=1 sequence=76 recid=4 stamp=599698138
input archive log thread=1 sequence=116 recid=44 stamp=600271740
input archive log thread=1 sequence=117 recid=45 stamp=600271859
input archive log thread=1 sequence=118 recid=46 stamp=600277637
channel ORA_DISK_1: starting piece 1 at 04-SEP-06
channel ORA_DISK_1: finished piece 1 at 04-SEP-06
piece handle=/home/ora102/flash_recovery_area/DB102/backupset/2006_09_04/o1_mf_annnn_TAG20060904T154722_2hrcmh13_.bkp tag=TAG20060904T154722 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:37
channel ORA_DISK_1: deleting archive log(s)
archive log filename=/home/ora102/flash_recovery_area/DB102/archivelog/2006_08_28/o1_mf_1_73_2h6ok83j_.arc recid=1 stamp=599697994
archive log filename=/home/ora102/flash_recovery_area/DB102/archivelog/2006_08_28/o1_mf_1_74_2h6omjb9_.arc recid=2 stamp=599698064
archive log filename=/home/ora102/flash_recovery_area/DB102/archivelog/2006_08_28/o1_mf_1_75_2h6onq39_.arc recid=3 stamp=599698103
archive log filename=/home/ora102/flash_recovery_area/DB102/archivelog/2006_08_28/o1_mf_1_76_2h6oosvn_.arc recid=4 stamp=599698138
archive log filename=/home/ora102/flash_recovery_area/DB102/archivelog/2006_09_04/o1_mf_1_116_2hr5tw8c_.arc recid=44 stamp=600271740
archive log filename=/home/ora102/flash_recovery_area/DB102/archivelog/2006_09_04/o1_mf_1_117_2hr5ym80_.arc recid=45 stamp=600271859
archive log filename=/home/ora102/flash_recovery_area/DB102/archivelog/2006_09_04/o1_mf_1_118_2hrcm58z_.arc recid=46 stamp=600277637
Finished backup at 04-SEP-06 -
Regarding deletion of archives from asm
Dear Gurus
I want to delete archivelogs from ASM and want to schedule a script for same in crontab.Please tell me the way for same.
Also i removed archives manually from asmcmd.But when i runned below command,i didn't observed any change in the free_space.
select total_mb,free_mb,(total_mb-free_mb) used from v$asm_diskgroup;
RegardsFirst of all: always, always include your four digit Oracle version and platform information,
Moreover, crontab is a paleolithic tool, which you don't need as there is a more powerful scheduler in both database control and the database itself.
But more importantly: One doesn't remove archivelogs using OS commands, as that will make RMAN backups don't function correctly anymore.
You need
delete obsolete archivelog all
in RMAN
Doing so, the RMAN catalog in your controlfile and the OS will be consistent.
Sybrand Bakker
Senior Oracle DBA -
Regarding "Delete Index" process in the process chain.
Hi Gurus
In the process chain, I have Delete Index -> Load Info pacakge -> Create Index process in the above order.
I am loading few records, so no need to delete indexes everytime. Can i remove the "Delete Index" process from the Chain without deleting the Create Index process. Or do I have to delete both.
Could you please clarify my doubt if possible in detail.
Thanks,
Regards,
aarthiWith the numbers you provided, you probably don't need to have the steps. With Oracle (not sure about all the other DB flavors) there are some other considerations:
Not having the indexes when loading the data can improve the load time since the bitmap indexes are not very efficient with respect to inserts/updates. The more dimensions you have, the more indexes there will be and the more noticable the impact of having the indexes present when loading.
The drop index process only drops the F fact table indexes. If you compress your cubes regularly so that you don't have many uncompressed requests, the index rebuild time will remain small, but if you have many uncompressed requests in your cube, the index rebuild time can begin to exceed whatever time you might save on the load with indexes deleted.
With bitmap indexes present, you can also occasionally receive a ORA-0600 deadlock error during the load process, and that can be prevented by dropping the indexes before loading or chose the load option packet by packet so that two packets are not trying to update the same index block at the same time.
Another concern in shops where reporting on the cube might occur during the load process - if you drop indexes prior to a load, any one trying to run a query on teh cube could have poor query performance since all the indexes will be missing onthe F fact table, this agina becomes more apparent the more data you have in the uncompressed fact table.
So it really comes down to your environment, but certainly drop the indexes any time you have large loads. -
Hi Friends,
If I delete the whole content of an Infocube and then do the reload,is it require to delete the index seperately.
If I don't delete the index how is it going to impact the load?
Regards,
Debjani...It doesn't mean that Indexes will delete permanently .. Structure will remain same!
When you delete data from cube it also deletes the generated indexes which are existed .. there is no point of having indexes on deleted records .. it's logical
even it doesn't hold any data it allows you to create index and generate stats(ex. create a dummy cube and try to generate)
For the moment I don't have any document for it.. I will let know
For your 2nd ques.
Only for huge loads droping index will be usefull which will improve the loading performance!
For daily delta load with less volume of data you need not to drop Indexes .. if you do so it will take lot of time to rebuild the indexes(on whole data) -
Little help please regarding deleting files and folders...
My wife has a MBP and has accumulated some old items in her documents folder that she'd like to delete. She has a USB mouse but the "right click" doesn't appear to work. She's running 10.4.11 and can't reveal the files in icon mode to facilitate dragging to trash. Certainly there is a sequence of keystroke commands that will allow these files to be effectively trashed, but our "control/delete", or "apple/delete", or "option/delete" doesn't do the trick after highlighting the subject file. Help please! TIA!
To delete a file or folder, high light it then using the keyboard type Command Delete and that will delete it. If you have multiple files and/or folders the same keyboard commands apply.
Regards,
Roger -
HI FRIENDS,
HAVE A LOOK ON THIS PROGRAM.
HERE THE HAD NOT SORTED BEFORE USING DELETE ADJACENT STATEMENT.BUT EVENTHOUGH IT IS WORKING
WHY....PLEASE TELL ME THE REASON .
DATA OFF TYPE I.
DATA: BEGIN OF LINE,
COL1 TYPE I,
COL2 TYPE C,
END OF LINE.
DATA ITAB LIKE STANDARD TABLE OF LINE
WITH NON-UNIQUE KEY COL2.
LINE-COL1 = 1. LINE-COL2 = 'A'. APPEND LINE TO ITAB.
LINE-COL1 = 1. LINE-COL2 = 'A'. APPEND LINE TO ITAB.
LINE-COL1 = 1. LINE-COL2 = 'B'. APPEND LINE TO ITAB.
LINE-COL1 = 2. LINE-COL2 = 'B'. APPEND LINE TO ITAB.
LINE-COL1 = 3. LINE-COL2 = 'B'. APPEND LINE TO ITAB.
LINE-COL1 = 4. LINE-COL2 = 'B'. APPEND LINE TO ITAB.
LINE-COL1 = 5. LINE-COL2 = 'A'. APPEND LINE TO ITAB.
OFF = 0. PERFORM LIST.
DELETE ADJACENT DUPLICATES FROM ITAB COMPARING ALL FIELDS.
OFF = 14. PERFORM LIST.
DELETE ADJACENT DUPLICATES FROM ITAB COMPARING COL1.
OFF = 28. PERFORM LIST.
DELETE ADJACENT DUPLICATES FROM ITAB.Hi,
Now try this
DATA OFF TYPE I.
DATA: BEGIN OF LINE,
COL1 TYPE I,
COL2 TYPE C,
END OF LINE.
DATA ITAB LIKE STANDARD TABLE OF LINE
WITH NON-UNIQUE KEY COL2.
LINE-COL1 = 1. LINE-COL2 = 'A'. APPEND LINE TO ITAB.
LINE-COL1 = 1. LINE-COL2 = 'B'. APPEND LINE TO ITAB.
LINE-COL1 = 2. LINE-COL2 = 'B'. APPEND LINE TO ITAB.
LINE-COL1 = 1. LINE-COL2 = 'A'. APPEND LINE TO ITAB.
LINE-COL1 = 3. LINE-COL2 = 'B'. APPEND LINE TO ITAB.
LINE-COL1 = 4. LINE-COL2 = 'B'. APPEND LINE TO ITAB.
LINE-COL1 = 5. LINE-COL2 = 'A'. APPEND LINE TO ITAB.
OFF = 0. PERFORM LIST.
DELETE ADJACENT DUPLICATES FROM ITAB COMPARING ALL FIELDS.
OFF = 14. PERFORM LIST.
DELETE ADJACENT DUPLICATES FROM ITAB COMPARING COL1.
OFF = 28. PERFORM LIST.
DELETE ADJACENT DUPLICATES FROM ITAB
It will not work. The program you written was already sorted thats why it was working.
Regards,
Atish -
Delete of archivelogs after backup
rman 9.2.0.4.0
aix 5.2.0.0
we have the following problem:
when rman backups and deletes archivelogs, the disk-space in the arch-dest remains occupied for a while.
our arch-dest went full, so we did a backup with delete all input. but as we could see in the alert-file, after rman ended, there was still a write-problem to this arch-dest. df-k . showed 100%. but later (we don't know exactly when) the space was free.
is this a normal behavior of rman / aix?You can backup the archives and delete them once you back them up.
RMAN>backup archivelog all not backed up 1 times delete input;If you have archives that have been backed up and still existing on the disk, then you can try as:
RMAN>delete archivelog all completed before 'SYSDATE-5';This deletes archives that were generated 5 days back but make sure that they have been backed up before deleting. -
B04 - Best practice with regards delete privilege and folders
Hi,
Many depts sales, finance etc.
Sales Dept as example
Just installed BO4 and want to give Sales Dept their own folder and allow users full control over their own documents within Sales Flder but ensuer they don't have permission to delete other Sales users reports in this folder nor delete Sales folder itself.
Would defined schedule access privilege achieve this.
Want to ensure delete privilege tight and users can only delete their own reports and can't delete folders.
Many ThanksHi Philip,
You can achieve this by creating your own Access Level where you can include the right "Delete object that the user owns".
For the requirement: Sales Group should only be able to see Sales Folder:
Assign View Object right to Sales Group first on the Public Folder keeping the option "Apply to sub-objects" unchecked. Then you can assign the custom Access Level to the Sales Folder which includes the right as per your requirement.
Regards,
Nakul Mehta -
RMAN job not deleting old archivelogs
I've setup an rman backup via dbconsole to backup db and archivelogs, for a retention period of 7 days, then delete obsolete. The database is 10GR2, running on windows 2008. For as yet unknown reasons, the cursed dbconsole quit working, and I haven't rebuilt it yet because I can't put this database in quiesce mode without pissing a lot of people off, so am using rman command line to check on backups etc.
I checked today, no obsolete backups found after running crosscheck database, and no obsolete logs after running crosscheck archivelog all;
Double checked recovery window and it is indeed 7 days, but there are archivelogs older than 7 days. When I run delete obsolete they dont get deleted, so I run delete archivelog all completed before 'sysdate - 7' and it deletes 314 old logs.
Why is rman not seeing these old logs? I believe I have the backups and archivelogs set to the same criteria, yet backups are being deleted over 7 days.
What am I missing here?
ps. for all the trouble dbconsole gives me, I'm tempted to go with rman scripts in windows scheduled tasks and just forget about it.. </end rant>Hi,
How many old those archvies are?
did those archives are in your RMAN repository?
might it may be old when you have not configured retention policy..
or
delete those old archive logs once, crosscheck them all and lets see if you face any issues. still.
Thanks -
Regarding deletion of data in Table
hi
how to delete the values in a particular record from the Database table.
thanks,
Sivagopal RHi,
THIS IS ILLEGAL...
But for your curiosity...
NOTE: Do it at ur own risk.
Run the transaction SE16, and select the record you want to delete/modify.
Double click on the record so that this is the only record displayed on the screen
Now activate debugger ( /H )
Hit enter
and u would find that there wud be field 'CODE'.
The value of it would be SHOW.
Change it to DELE or EDIT.
Note: Its not necessary that the field would always be CODE.
Reward if this was usefull..
Thanks and Regards
Manish -
Regarding delete messages in inbox
HI gurus,
in swbp how to delete all inbox and outbox messages.
regards
vijayCheck this link
Mass deletion of SAP Inbox messages
http://wiki.sdn.sap.com/wiki/display/Snippets/DeletemailinSAPInbox+Folder
Thanks
Arghadip -
Regarding deletion of objects under one package
Hi All,
I have an obselete Z package under which there are more than 15 objects( 10 tables, views, FM). Please suggest is there any method in which i can delete all objects in one go.
Thanks,
ShobhitHi,
Goto SE80 transaction. Choose Package from the Dropdown. It will list all the objects attached to the package. From there, you can delete all.
Regards
Srini -
HI folks,
I created include in a program then when i want to delete the include it gives an error like this
"Include cannot be deleted because references exist"
waiting for ur reply,
regards,Hi
Maybe you are using a field declared in the Include and that is why it is not allowing you to delete.
Comment the Include line and check your syntax. It might show a few fields aren't declared and maybe those fields are in the include.
Hope this helps
Regards,
Jayanthi.K -
Regarding Delete duplicates adjacent in internal table
hey
In my report i tried to delete the adjacent datas as
below from table itab_rbusa.but it is not deleting. why
code------
append lines of itab_glt0[] to itab_rbusa.
delete adjacent duplicates from itab_rbusa comparing all fields.
endof code----
if internal table has below values
011F
316A
789B
789B
131B
132B
302B
i get the same values as output after using the delete statement why?(789B-Business Area is not deleting)
could you please guide me.
ambichan.Hi,
You can use the addition FOR ALL ENTRIES rather than issuing SELECT in a loop. Try something like:
SELECT [DISTINCT] rbusa
FROM glt0
INTO TABLE itab_glt0
FOR ALL ENTRIES IN TABLE itab_t001
WHERE bukrs EQ itab_t001-bukrs
AND <other fields>...
APPEND LINES OF itab_t001[] TO itab_rbusa....
If DISTINCT does not serve the purpose, then you will need:
SORT itab_rbusa.
DELETE ADJACENT DUPLICATES FROM...
Regards
Message was edited by: Shehryar Khan
Maybe you are looking for
-
How do I see photos in iCloud to make sure they are backed up?
How do I see photos in iCloud to make sure they are backed up?
-
Hello everyone, i am using nokia 2700c..It has ovi map pre-installed in it. But the problem is whenever i search a place it shows no result. And if luckily it shows result then it doesnt shows the place means it just shows the blanck page with no are
-
Project Lite License for Team Members not giving access to the PWA
Hi there - So here is my issue I am having with Project Online 2013. I am new to project server ( I mean project online) & really having fun with it but MSFT can make it a bit easier to the Users. So we brought the following 2 licenses 1) Project Li
-
Premiere Elements 9 - unable to select a "poster frame" for DVD Menu - Scene Selection
I've tried a number of different DVD menu themes and the problem is the same for all. The Scene Selections don't seem to provide any way to include a graphic for the poster frame. Have been able to provide a menu background with no problem. Intere
-
How do I rid the default facebook email to my google address.?
How dan I delete my Facebook email address that appears every time I start to type my gmail address