Difference in these two statements
DELETE BACKUP COMPLETED BEFORE 'SYSDATE-7' DEVICE TYPE DISK;
DELETE OBSOLETE;
Both of these are actually deleting files but I don't understand the difference. The retention policy is set for 7 days. Why is it necessary to run the first statement?
BTW, the first statement is run before performing an incremental level 1 database cumulative, if that makes any difference.
The DELETE OBSOLETE statement take care of the retention policy. The other statement will delete the backup without evaluate the retention policy that you setted up. If you try to execute:
DELETE BACKUP COMPLETED BEFORE 'sysdate'
you will remove all backups (archivelog, datafile, spfile ...).
RMAN> list backup of database summary;
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Tag
3360 B F A DISK 23-JAN-06 1 1 TAG20060123T172135
3450 B 0 A DISK 01-FEB-06 1 1 TAG20060201T164725
3451 B 0 A DISK 01-FEB-06 1 1 TAG20060201T164725
3547 B F A DISK 08-FEB-06 1 1 TAG20060208T200214
3563 B 1 A DISK 09-FEB-06 1 1 TAG20051024T163622
3583 B 0 A DISK 10-FEB-06 1 1 TAG20060210T100840
3584 B 0 A DISK 10-FEB-06 1 1 TAG20060210T100840
3606 B 0 A DISK 10-FEB-06 1 2 TAG20060210T134450
RMAN> delete backup completed before 'sysdate' device type disk;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=13 devtype=DISK
List of Backup Pieces
BP Key BS Key Pc# Cp# Status Device Type Piece Name
3361 3360 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_580497695_228_1_74h9jc8v_1_1.bck
3375 3374 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_580506186_229_1_75h9jkia_1_1.bck
3398 3397 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_580506438_230_1_76h9jkq6_1_1.bck
3405 3404 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_580506464_231_1_77h9jkr0_1_1.bck
3445 3443 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_581273242_233_1_79hab1kq_1_1.bck
3446 3444 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_581273242_234_1_7ahab1kq_1_1.bck
3452 3450 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_581273246_236_1_7chab1ku_1_1.bck
3453 3451 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_581273246_235_1_7bhab1ku_1_1.bck
3465 3464 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_581273291_237_1_7dhab1mb_1_1.bck
3469 3468 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_581273294_238_1_7ehab1me_1_1.bck
3473 3472 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_581273297_239_1_7fhab1mh_1_1.bck
3525 3524 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_581778174_240_1_7ghaqenu_1_1.bck
3544 3543 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_581889729_241_1_7hhatrm1_1_1.bck
3548 3547 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_581889734_242_1_7ihatrm6_1_1.bck
3560 3559 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_581889783_243_1_7jhatrnn_1_1.bck
3564 3563 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_581937112_244_1_7khav9uo_1_1.bck
3585 3583 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_582026921_245_1_7lhb21l9_1_1.bck
3586 3584 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_582026947_246_1_7mhb21m3_1_1.bck
3598 3597 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_582027040_247_1_7nhb21p0_1_1.bck
3607 3606 1 1 AVAILABLE DISK /db/ARON/BACKUP/RMAN/backup_ARON_582039891_248_1_7ohb2eaj_1_1.bck
3694 3606 1 2 AVAILABLE DISK /tmp/backup_ARON_582039891_248_1_7ohb2eaj_1_2.bck
Do you really want to delete the above objects (enter YES or NO)? y
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_580497695_228_1_74h9jc8v_1_1.bck recid=207 stamp=580497697
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_580506186_229_1_75h9jkia_1_1.bck recid=208 stamp=580506187
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_580506438_230_1_76h9jkq6_1_1.bck recid=209 stamp=580506439
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_580506464_231_1_77h9jkr0_1_1.bck recid=210 stamp=580506465
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_581273242_233_1_79hab1kq_1_1.bck recid=212 stamp=581273243
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_581273242_234_1_7ahab1kq_1_1.bck recid=213 stamp=581273243
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_581273246_236_1_7chab1ku_1_1.bck recid=214 stamp=581273246
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_581273246_235_1_7bhab1ku_1_1.bck recid=215 stamp=581273249
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_581273291_237_1_7dhab1mb_1_1.bck recid=216 stamp=581273292
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_581273294_238_1_7ehab1me_1_1.bck recid=217 stamp=581273295
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_581273297_239_1_7fhab1mh_1_1.bck recid=218 stamp=581273297
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_581778174_240_1_7ghaqenu_1_1.bck recid=219 stamp=581778175
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_581889729_241_1_7hhatrm1_1_1.bck recid=220 stamp=581889730
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_581889734_242_1_7ihatrm6_1_1.bck recid=221 stamp=581889736
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_581889783_243_1_7jhatrnn_1_1.bck recid=222 stamp=581889784
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_581937112_244_1_7khav9uo_1_1.bck recid=223 stamp=581937114
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_582026921_245_1_7lhb21l9_1_1.bck recid=224 stamp=582026922
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_582026947_246_1_7mhb21m3_1_1.bck recid=225 stamp=582026948
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_582027040_247_1_7nhb21p0_1_1.bck recid=226 stamp=582027041
deleted backup piece
backup piece handle=/db/ARON/BACKUP/RMAN/backup_ARON_582039891_248_1_7ohb2eaj_1_1.bck recid=227 stamp=582039892
deleted backup piece
backup piece handle=/tmp/backup_ARON_582039891_248_1_7ohb2eaj_1_2.bck recid=240 stamp=582286836
Deleted 21 objects
RMAN> list backup of database summary;Bye, Aron
Similar Messages
-
Whats the difference between these two queries ? - for tuning purpose
Whats the difference between these two queries ?
I have huge amount of data for each table. its takeing such a long time (>5-6hrs).
here whice one is fast / do we have any other option there apart from listed here....
QUERY 1:
SELECT --<< USING INDEX >>
field1, field2, field3, sum( case when field4 in (1,2) then 1 when field4 in (3,4) then -1 else 0 end)
FROM
tab1 inner join tab2 on condition1 inner join tab3 on condition2 inner join tab4 on conditon3
WHERE
condition4..10 and
GROUP BY
field1, field2,field3
HAVING
sum( case when field4 in (1,2) then 1 when field4 in (3,4) then -1 else 0 end) <> 0;
QUERY 2:
SELECT --<< USING INDEX >>
field1, field2, field3, sum( decode(field4, 1, 1, 2, 1, 3, -1, 4, -1 ,0))
FROM
tab1, tab2, tab3, tab4
WHERE
condition1 and
condition2 and
condition3 and
condition4..10
GROUP BY
field1, field2,field3
HAVING
sum( decode(field4, 1, 1, 2, 1, 3, -1, 4, -1 ,0)) <> 0;
[pre]My feeling here is that simply changing join syntax and case vs decode issues is not going to give any significant improvement in performance, and as Tubby points out, there is not a lot to go on. I think you are going to have to investigate things along the line of parallel query and index vs full table scans as well any number of performance tuning methods before you will see any significant gains. I would start with the Performance Manual as a start and then follow that up with the hard yards of query plans and stats.
Alternatively, you could just set the gofast parameter to TRUE and everything will be all right.
Andre -
What is the Difference Between these IF statements
Hello
Can someone tell me the difference between these two IF statements.
-- IF STATEMENT 1--
IF v_transcode not in ('A','C','D') THEN
raise_application_error (-20000, 'Error Invalid Transcation Code');
END IF;
-- IF STATEMENT 2 --
IF v_transcode <> 'A' AND v_transcode <> 'C' AND v_transcode <> 'D' THEN
raise_application_error (-20000, 'Error Invalid Transcation Code');
END IF;
ThanksYour if condition wherein you do
v_transcode <> 'A' and v_transcode <> 'C' and v_transcode <> 'D'.
I would think this is more better in terms of performance, because if the first clause (v_transcode <> 'A') fails nothing else needs to be evaluated, and it can skip the if condition there itself,
but in case of
v_transcode not in ('A', 'C','D'),
it has to scan through the entire list.
On the other side, if you have just 2 or 3 values to compare this makes sense, otherwise we may have to use the in operator.
--Bhargavi -
What is the difference between these two reports MC.1 and MB5L
Hi
what is the difference between these two reports MC.1 and MB5L?
what is the Purpose of each report?
Material ledger is activated for this plant, we found some amount difference between these two reports, my client accounting department used to compare these two reports while year end/month end closing
Thanks
RajuMC.1 will give you the report for plant analysis as per plant .
MB5L report will give you list of stock value as per G/L account wise. -
Color differences between these two files?
Could someone please tell me the color differences between these two files? What are the differences in general of these two files and how do I make a file identical to the blue cancel button?
I am working with signature pads and the BLUE CANCEL image works, but the other GREEN image does not. Both are 8-bit .bmp files... HELP!#1, obviously, would be to connect a mic that doesn't require phantom power.
And #2 comes with a 6 ft. USB cable, so you may not need a bunch more cables. Maybe just one standard XLR to connect a mic to it.
Message was edited by: p o'flynn -
How to get the difference between these two dates
Hello Friends,
I need to get the difference between these two fields which store dates but with varchar2 data types
SELECT pac.segment1, pac.segment2 emp_no, pac.segment3 NAME,
pac.segment4 POSITION, pac.segment5 start_date, pac.segment6,
pac.segment7
FROM per_analysis_criteria pac, fnd_id_flex_structures_vl ffs
WHERE ffs.id_flex_structure_code = 'Employee Rejoin'
AND ffs.id_flex_num = pac.id_flex_num
AND TO_CHAR (TO_DATE (pac.segment7, 'YYYY/MM/DD HH24:MI:SS'))
- TO_CHAR (TO_DATE (pac.segment6, 'YYYY/MM/DD HH24:MI:SS')) > 1;
my query is something like this...
am trying to find the difference between the last two columns but with not much luck..
can some one suggest me a solution pleaseSELECT pac.segment1, pac.segment2 person_id, pac.segment3 NAME,
papf.employee_number, paaf.supervisor_id, pac.segment4 POSITION,
pac.segment5 start_date, pac.segment6, pac.segment7,
papf2.email_address,
( TO_DATE (TO_CHAR (pac.segment7), 'DD-MON-YYYY HH:MI:SS AM')
- TO_DATE (pac.segment6, 'DD-MON-YYYY HH:MI:SS AM')
+ 1
) difference,
POST.email_address
FROM per_analysis_criteria pac,
apps.fnd_id_flex_structures_vl ffs,
per_all_people_f papf,
per_all_assignments_f paaf,
per_all_people_f papf2,
(SELECT email_address, person_id
FROM per_all_people_f
WHERE person_id IN (
SELECT person_id
FROM per_all_assignments_f
WHERE position_id IN (SELECT position_id
FROM per_positions
WHERE NAME LIKE 'HR Manager.704.')
AND TRUNC (SYSDATE) BETWEEN effective_start_date
AND effective_end_date)
AND TRUNC (SYSDATE) BETWEEN effective_start_date AND effective_end_date
AND business_group_id = fnd_profile.VALUE ('PER_BUSINESS_GROUP_ID')) POST
WHERE ffs.id_flex_structure_code = 'Employee Rejoin'
AND TO_CHAR (papf.person_id) = pac.segment2
AND ffs.id_flex_num = pac.id_flex_num
AND TRUNC (SYSDATE) BETWEEN papf.effective_start_date
AND papf.effective_end_date
AND papf.current_employee_flag = 'Y'
AND papf.person_id = paaf.person_id
AND TRUNC (SYSDATE) BETWEEN paaf.effective_start_date
AND paaf.effective_end_date
AND papf.person_id = paaf.person_id
AND papf2.person_id = paaf.supervisor_id
AND paaf.primary_flag = 'Y'
AND TRUNC (SYSDATE) BETWEEN papf2.effective_start_date
AND papf2.effective_end_date
AND papf2.current_employee_flag = 'Y'
and ( TO_DATE(to_char(pac.segment7), 'DD-MON-YYYY HH:MI:SS AM')-TO_DATE (pac.segment6, 'DD-MON-YYYY HH:MI:SS AM')+1) >1
last line is giving me the error pls suggest a solution -
What is the difference between these two instant ink printers?
Looking to get one of the HP instant ink printers from Best Buy. Either the Envy 4500 or the Envy 5530. There is a $20 diference and I did a side-by-side comparison of them on the Best Buy site, but the only difference I can notice is the 5530 seems to have more memory than the 4500 (128MB vs 32MB).
Print speeds and resolutions seem to be the same. The cheaper one (4500) also seems to be able to do two-sided printing & reduction/enlargement (which I would have thought to be on the more expensive mode). So are there any other real differences between these two or have I pretty much covered them all?HI - great question, you identified a few of the differences. Some additional differences are:
4500 has a monochome display that is not touch enabled (you have to use scroll buttons on the side of the screen)
5300 has a touch enabled color display
Both printers can do duplexing (printing on both sides) and both have wireless.
We are excited about Instant Ink and hope you enjoy the service & whichever printer you chose!
Although I am an HP employee, I am speaking for myself and not for HP -
What is the difference of these two Coherence client command?
What is the difference of these two Coherence client command? Kill and destroy
Are they same command?
Thank youHi,
The Kill command shuts down the current com.tangosol.net.CacheService. This does not affect other service members if they are in a cluster.
The Destroy command will remove the NamedCache completely from the cluster, causing other cluster members to receive an IllegalStateException if they are holding on to a reference to the same cache and try to do any operation on that cache.
you can try using this command and check.
Thanks,
Mitraa SP -
What is the Difference between these Two?
Hi All,
In Oracle University site i saw 2 Courses for Oracle Webcenter sites. Just i would like to know the difference between these two. Based on your input i can decide which one to take.
*1. Oracle Webcenter Sites for Developers*
http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=609&p_org_id=1001&lang=US&get_params=dc:D73886GC10,p_preview:N
*2. Oracle Webcenter Sites 11g for Developers*
http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=609&p_org_id=1001&lang=US&get_params=dc:D78300GC10,p_preview:N
Is the 1st one is Fatwire and the 2nd one is Fatwire+Oracle latest implmentation ? Is my understanding is right?
regards
SriIt's the same lens, just different sellers. The higher one is the MSRP, or close to it. But since they use this lens in a kit it goes for less. I have no idea who Celltime Inc is, but it's fullfilled by Amazon, so I'd feel reasonably safe. Just look into their return policy.
With the recent release of the 6D and somewhat recent 5d3, the market is flooded with these lenses from kits; I wouldn't pay more than 800 something for it. Getting it through Amazon is a bonus over eBay. If the seller checks out I'd go for it.
Edit: DH beat me to it. -
What is the difference between these two sticks of RAM?
I am upgrading my Macbook 2.2 GHz Intel Core 2 duo from 2GB of ram to 4GB
What is the difference between these two kits?
4GB Kit (2 x 2GB) 200 Pin DDR2-667 PC2-5300 256x64 CL5 1.8V SODIMM ($102.00)
4GB Kit (2 x 2GB) eRam 200 Pin DDR2-667 PC2-5300 CL5 1.8V SODIMM ($88.00)Probably nothing of any consequence. Some places can just negotiate better deals with suppliers. Or one of a million other factors that can affect price is in play here.
When buying RAM, I generally find it's better to pay a little extra to get a brand that's known for quality. I usually stick to Crucial myself. If you look around, you can probably find some real steals out there, but I don't know... With stories of people who literally go dumpster diving, salvaging stuff that was slated for disposal, then turning around and selling it... I prefer not to take chances. If you are, by all means, go for the cheaper one. -
What is the difference between these two portalapps folders on the Server?
Hello,
On the Server there are two portalapps folder:
1. Under: C:\usr\sap\JXX\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps
2. Under: C:\usr\sap\JXX\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps
Can someone please explain me what is the difference between these two portalapps folders and under which case will I turn to which folder?Hi Roy,
The one at this location
Under: C:\usr\sap\JXX\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps
has all the files from the WEB-INF folder i.e. these are the non-web resources and cannot be accessed via HTTP(S) examples would be imgaes, CSS etc that you want only your application to access
those under
Under: C:\usr\sap\JXX\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps
they have all the .JAR files, portalapp.xml, config properties etc. these are web resources and can be accessed via HTTP(S)
Hope this is of help.
Akhilesh -
What is the difference between these two commands?
What is the difference between these two commands?
DROP TABLESPACE users INCLUDING CONTENTS;
DROP TABLESPACE users INCLUDING CONTENTS AND DATAFILES;
--------No.202http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9004.htm#i2133717
-
Timestamp: difference between these two time ?
hello all, how can I calculate the difference between these two time acquired as strings?
Thanks
Attachments:
Difference.jpg 59 KBHi duglia,
one way:
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
What is the main difference between these two api
Hi
I am using portal 3.0.9.8.1 under NT environment.
I am planning to change the user's password programmatically.
Could someone advise me about the difference between these two
api:
wwsso_api_user_admin.change_password and
wwsso_api_user_mgr.change_password
Are these api the same?Are they affecting the same table?
Thanks in advance for any clarification
RegardsMichelle1892773 wrote:
What is the main difference between LOCAL VARIABLE, REFERENCE, PROPERTY NODE and INVOC. NODE?
Can u show this with an example in a VI using all these?
Basic overview. Someone can go into more depth if they want.
Local Variable - Correlates to some location in memory that holds information. Based on the data type, it looks at that location and interprets the 1's and 0's as either a double, integer, string, structure(cluster), etc.
Reference - ill leave the details of this to someone else I can't give a decent explanation.
Property node- sets different "properties" of a control/indicator etc. One of the properties is value so that works similar to a local variable. However, you can set much more than that. For example, with controls you can set the property of visible, not visible, color, etc etc.
Invoke node - invokes some "method." i.e. calls some function to act on something
These may not be the best explanations, or even 100% correct. But it should get you started. I'm sure someone else will build on this.
CLA, LabVIEW Versions 2010-2013 -
What's the difference between these two networks?
Have searched a lot but can not find a clear answer to the difference between these two networks.
(I'm using these as examples only)
Using Airport utility
* sometimes theres a dotted line "......"
*And sometimes there's a solid line like a " } "
I chose these as an example because ours is just like the first example above.
However sometimes our presents similar to the above example only with two devices, not three.Dotted line is wireless.. Solid line is ethernet..
Normally all ethernet should show as your lower picture since all are directly wired..
Wireless should show which Airport is the main base and which extend using wireless.
But it is 50% science and 80% voodoo (voodoo cannot count even!!)
Maybe you are looking for
-
Internationalisation in WD ABAP
hi, i am new in Wd ABAP, i need to use internationalisation with OTR texts. plz suggest and also give some dummy program if possible.
-
Macbook Pro running slower and making more noise.
Problem description: Hey everyone, I have noticed that my macbook pro has been running slowly. Sometimes firefox freezes and never unfreezes and whenever I play videos my computer runs slower than usual. I have started turning off my laptop whenever
-
How make Swing app Rotated 90 Deg? i.e. On its side
I want to make my entire swing app (including buttons, JTextArea, etc) rotated 90 deg to the right. I know this sounds weird, but I want to do it for a PDA. I can use swing on a PDA (check on google for swing personal java) and I want to be able to h
-
I just bought a new iPhone. When i plug it into my computer the only thing that happens is getting pop up saying its found a camera. Apparently this is normal. But iTunes does not open at all, and when I open iTunes, no matter what I do, my iPhone is
-
A feature request for more accepted navigation keystrokes.
On Mac, the standard buttons for forward and backward navigation seem to be Command+{ and Command+]. Safari accepts this as well as Command+arrows. Finder accepts only the first; bridge accepts only the second. This is only a small feature request. T