Massive delete
Hi ,
My scnerion is like this ,the tagte table called tab a with different load sources i.e 'BS','FI' ,'CC' but load source with CC has huge volume of data in the target table when run the consecutive i.e. 2nd run delete existing records based on load source and re insert into taget with respective load source.when executing the below procedure in production ,it takes 5 to 6 hours to delete 5million records and insert with 6 million records for CC.Is there anyway to optimize below code to improve the performance.
cannot do the following
can't use temp table to hold the data and truncate the base table because client will not allow that.
CREATE OR REPLACE PROCEDURE P11(LOAD_SRC IN VARCHAR2)IS
I_COUNT NUMBER;
CUSOR C1 IS SELECT ROWID FROM TAB A WHERE LOADSRC=LOAD_SRC;
BEGIN
FOR REC IN C1
LOOP DELETE FROM TAB A WHERE A.ROWID=REC.ROW_ID;
IF (MOD(I_COUNT ,10000)=0) THEN
COMMIT;
END IF;
END LOOP;
END;
Thanks and Regards,
MM
Hi Nicolas
Please give me the example of truncate a partition (for a LOADSRC value) instead of use any delete statement.I know that combination of huge selects and frequent commits could lead to take long long time and Instead of select whole set of records ,Is it possible to select only once of one record when time of cursor opening because the code I posted keep on using since long and did not get any issues because they dealt with less volume of data.
Cheers
MM
Similar Messages
-
Massive Deleting of Users in BO 5.1 Sun
Hi everybody,
Is it possibile in my environment (Business Objects 5.1 on Sun Solaris) to massively delete a list of users?
I know that in Windows Environment it can be done from the Supervisor using the Import functionality (On the File menu, I click Import Users and Groups), I couldn't find a similiar feature for Sun.
Any help would be appreciated.
GiuseppeWrong forum. Please mnove or reporst to Legacy forum:
SAP BusinessObjects BI Legacy Products
Ludek -
Anyway to massively delete objects in a change request?
Under Object List of Request of the change request, there are so many entries that we find we can only delete one by one manually, is there massive deletion of all the object in the list?
Hi Kevin,
Talk to ur security person , he can add that .
Apart from that 3 options before the cancel relocation transport u will have unlock objects option.
Try this thing I am not sure it will work but
goto se01 > there is the Tools button in the second line under the menu bar > click on that .
It will also take u to the same screen but sometimes it may bypass the security and take u to the original se03 screen
Try this and lemme know
and talk to security person to add that option to ur role
Thanks
Regards
Majeed -
Massive Deletion of Open Sales Orders/Deliveries
Hi, I was wondering if anyone knows a massive transaction to delete open sales orders and deliveries.
I try using de MASS transaccion but here I can only reject the items (in sales orders) but the thing is that the customer wants the open orders and deliveries to be deleted.
Could anyone help me please?
Thanks and regards!
LoreHi,
You can only delete a complete sales document or delivery if there are no subsequent documents. For example, you could not delete a complete sales document if items had already been delivered and therefore, delivery documents had been created.
If you want to delete a sales document, you effectively remove it from the database which means that it is no longer possible to analyze it. Therefore, its recommend that you work with reasons for rejection. Being the case it can be considered to reject the items rather.
Hope it helps.
Thanks & Regards
Sadhu Kishore -
Massive deletion of planned orders
Hi everyone,
I would be very grateful if someone could tell me how to delete massively planned orders.
Thanks and best regards,
BenHi,
If you delete the PIR or demand in MD61 and run MRP in MD02 planning mode -3, all the planned order will get delete.
If you have firmed planned order assign Roll forward period.
This is you can do in tcode OPPR, define MRP group.Define consumption mode & Roll forward period.
If you put 2 days in roll forward means, all the old firmed planned orders created before 2 days will get delete.
Regards,
Dharma -
I have 5.8 GB of free space on my 3rd gen 64 GB itouch. I have recently deleted well over 10 GB on the device, but I still only have 5.8 GB of free space. In fact, I have recently added some media, and I have 5.6 GB of free space according to my itunes and itouch. In trying to fix this problem, I have: 1) reset my itouch settings, 2) restarting my itouch and 3) updating my software. This has not done anything. What should I do try next?
Connect the iPod to your computer and look at the storage used by the various categories as shown in the colored bargarph in iTunes.
An "other" larger than about 1 1/2 GB usually indicates that the "other" includes corrupted files. Usually restoring from backup eliminated the corrupted files. However, sometimes restoring to factory settings/new iPod is required.
To restore from backup see:
iOS: How to back up
To restore to factory settings/new iPod see:
iTunes: Restoring iOS software -
Massive deleting rows not performant
The goal of our DataFlow is to delete a lot of rows from a table on a criteria (primary key for example)
It takes too much time.
When we look at the queries on the oracle database it seems that DI works line by line.
It is possible to improve the method without using a sql transform?
ThanksSQL Transform no, but sql() function.
But in your case you want to have a dataflow that deletes the rows, its optimizations are described here:
https://wiki.sdn.sap.com:443/wiki/pages/viewpage.action?pageId=49414394 -
Is it possible to do massive Delete of Revisions with Repository Manager
Hi,
I use UCM 11g.
I am planing to delete all the revisions that have the ContentType "DataSheet". That is about 10.000 revisions. I did start the Repository Manager and filtered all the content for ContentType "DataSheet".
My problem is that I can delete only 200 items at a time, cause Repository Manager is showing me only the first 200 revisions. This is very time consuming.
Is there another way to do this?
Thx
TobiUse Archiver...
Define your export query to cath all the 'Data Sheet' items
make sue that you choose the option for All Revisions
Then when you choose Export from the Actions menu tick the checkbox to delete items after export
This way they will all be deleted and you will still have a handy back up of them in Archive on the file system - so if you need to you can restore.
Tim -
Hi gurus,
I would like to delete some purchase orders in SRM. As they are many, is there a way to massively delete them?
It would be really time consuming delete one PO at a time.
Thank you for your helpHello Sarah ,
Firstly I am curious to know , why you want to delete the PO's . Are they already deleted at line item and you want to remove it from the Purchaser view or those are old PO's.
Thanks
Gaurav Gautam -
How do I delete a large file without my computer crashing?
I am playing around with HD video and have a very large Quicktime File (12.5GB) that froze my computer while rendering. I need to delete it. (CRASH: screen freezes and dark line slowly comes from top to bottom and once entire screen is slightly darker, a post in the middle pops up and tells me to turn off computer by holding power button).
After a lot of trial and error, it seems the problem is that the computer can't handle the massive deletion. Unlike a lot of other similar issues on this forum, this is a single file and not hundreds, so i can't delete portions at a time and be done with it. I have run through all my ideas and need help on how to delete this file from my computer and have come up with two possible ways:
1 - Split this video into smaller files. I dont know how to do this: I have SPLIT-CONCAT but that duplicates (then splits) and does not actually split the original. I tried "replacing" the video with the same-named smaller file and it crashed the computer.
2 - Change preferences on this computer somehow to allow this massive deletion. I tried a force empty through terminal and it did the same crash. I dont know if there is a preference (disk manager) or otherwise to get rid of this file.
I am on a 2006 Intel iMac running 10.7.4Sun May 13 21:33:15 2012
panic(cpu 0 caller 0xffffff80003224be): "jnl: transaction too big (1831424 >= 1834496 bytes, bufsize 4096, tr 0xffffff800b327f48 bp 0xffffff807a5b20e0)\n"@/SourceCache/xnu/xnu-1699.26.8/bsd/vfs/vfs_journal.c:262 3
Backtrace (CPU 0), Frame : Return Address
0xffffff807ee632b0 : 0xffffff8000220792
0xffffff807ee63330 : 0xffffff80003224be
0xffffff807ee63370 : 0xffffff80004d56a3
0xffffff807ee63390 : 0xffffff800050dc0d
0xffffff807ee63460 : 0xffffff800050926c
0xffffff807ee63540 : 0xffffff80005101da
0xffffff807ee637a0 : 0xffffff8000510294
0xffffff807ee63860 : 0xffffff8000510d6c
0xffffff807ee63930 : 0xffffff80004e9d74
0xffffff807ee639e0 : 0xffffff80004e9fe0
0xffffff807ee63a40 : 0xffffff80004de46c
0xffffff807ee63ad0 : 0xffffff80004dea22
0xffffff807ee63b10 : 0xffffff8000319b82
0xffffff807ee63b50 : 0xffffff80002ffb53
0xffffff807ee63b80 : 0xffffff80002ffc3c
0xffffff807ee63ba0 : 0xffffff800030bc67
0xffffff807ee63d90 : 0xffffff800030bd20
0xffffff807ee63f50 : 0xffffff80005cd61b
0xffffff807ee63fb0 : 0xffffff80002daa13
BSD process name corresponding to current thread: Finder
Mac OS version:
11E53
Kernel version:
Darwin Kernel Version 11.4.0: Mon Apr 9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64
Kernel UUID: A8ED611D-FB0F-3729-8392-E7A32C5E7D74
System model name: iMac8,1 (Mac-F227BEC8)
System uptime in nanoseconds: 2062336604249
last loaded kext at 46331332223: com.apple.filesystems.msdosfs 1.7.1 (addr 0xffffff7f8137a000, size 57344)
loaded kexts:
com.seagate.driver.PowSecLeafDriver_10_5 5.1.1
com.Logitech.Control Center.HID Driver 3.4.0
com.seagate.driver.PowSecDriverCore 5.1.1
com.apple.filesystems.msdosfs 1.7.1
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.driver.AppleTyMCEDriver 1.0.2d2
com.apple.driver.AudioAUUC 1.59
com.apple.driver.AppleHDAHardwareConfigDriver 2.2.0f3
com.apple.driver.AppleHDA 2.2.0f3
com.apple.driver.AppleUpstreamUserClient 3.5.9
com.apple.driver.AppleMCCSControl 1.0.26
com.apple.GeForce 7.1.8
com.apple.filesystems.autofs 3.0
com.apple.driver.AppleSMCPDRC 5.0.0d0
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.iokit.IOBluetoothSerialManager 4.0.5f11
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AudioIPCDriver 1.2.2
com.apple.driver.ACPI_SMC_PlatformPlugin 5.0.0d0
com.apple.driver.AppleMuxControl 3.0.16
com.apple.driver.AppleBacklight 170.1.9
com.apple.driver.AppleLPC 1.5.8
com.apple.driver.BroadcomUSBBluetoothHCIController 4.0.5f11
com.apple.driver.AppleIRController 312
com.apple.driver.AppleFireWireStorage 3.0.1
com.apple.driver.initioFWBridge 3.0.1
com.apple.driver.IOFireWireSerialBusProtocolSansPhysicalUnit 3.0.1
com.apple.driver.LSI_FW_500 3.0.1
com.apple.driver.Oxford_Semi 3.0.1
com.apple.driver.StorageLynx 3.0.1
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 33
com.apple.iokit.SCSITaskUserClient 3.2.0
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCIBlockStorage 2.0.3
com.apple.driver.AppleFWOHCI 4.8.9
com.apple.iokit.AppleYukon2 3.2.2b1
com.apple.driver.AppleUSBHub 4.5.0
com.apple.driver.AirPortBrcm43224 501.36.15
com.apple.driver.AppleEFINVRAM 1.5.0
com.apple.driver.AppleAHCIPort 2.3.0
com.apple.driver.AppleIntelPIIXATA 2.5.1
com.apple.driver.AppleUSBEHCI 4.5.8
com.apple.driver.AppleUSBUHCI 4.4.5
com.apple.driver.AppleHPET 1.6
com.apple.driver.AppleACPIButtons 1.5
com.apple.driver.AppleRTC 1.5
com.apple.driver.AppleSMBIOS 1.8
com.apple.driver.AppleACPIEC 1.5
com.apple.driver.AppleAPIC 1.5
com.apple.driver.AppleIntelCPUPowerManagementClient 193.0.0
com.apple.nke.applicationfirewall 3.2.30
com.apple.security.quarantine 1.3
com.apple.driver.AppleIntelCPUPowerManagement 193.0.0
com.apple.driver.DspFuncLib 2.2.0f3
com.apple.nvidia.nv50hal 7.1.8
com.apple.NVDAResman 7.1.8
com.apple.kext.triggers 1.0
com.apple.iokit.IOFireWireIP 2.2.4
com.apple.driver.AppleHDAController 2.2.0f3
com.apple.iokit.IOHDAFamily 2.2.0f3
com.apple.iokit.IOSurface 80.0.2
com.apple.iokit.IOSerialFamily 10.0.5
com.apple.iokit.IOAudioFamily 1.8.6fc17
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.ApplePolicyControl 3.0.16
com.apple.driver.AppleSMC 3.1.3d8
com.apple.driver.IOPlatformPluginLegacy 5.0.0d0
com.apple.driver.AppleGraphicsControl 3.0.16
com.apple.driver.AppleBacklightExpert 1.0.3
com.apple.iokit.IONDRVSupport 2.3.2
com.apple.iokit.IOGraphicsFamily 2.3.2
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.driver.IOPlatformPluginFamily 5.1.0d17
com.apple.driver.AppleFileSystemDriver 13
com.apple.driver.AppleUSBHIDKeyboard 160.7
com.apple.driver.AppleHIDKeyboard 160.7
com.apple.driver.AppleUSBBluetoothHCIController 4.0.5f11
com.apple.iokit.IOBluetoothFamily 4.0.5f11
com.apple.iokit.IOUSBMassStorageClass 3.0.1
com.apple.iokit.IOFireWireSerialBusProtocolTransport 2.1.0
com.apple.iokit.IOUSBHIDDriver 4.4.5
com.apple.driver.AppleUSBMergeNub 4.5.3
com.apple.driver.AppleUSBComposite 4.5.8
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.2.0
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.7
com.apple.iokit.IOCDStorageFamily 1.7
com.apple.iokit.IOATAPIProtocolTransport 3.0.0
com.apple.iokit.IOFireWireSBP2 4.2.0
com.apple.iokit.IOSCSIBlockCommandsDevice 3.2.0
com.apple.iokit.IOSCSIArchitectureModelFamily 3.2.0
com.apple.iokit.IOFireWireFamily 4.4.5
com.apple.iokit.IOUSBUserClient 4.5.8
com.apple.iokit.IO80211Family 420.3
com.apple.iokit.IONetworkingFamily 2.1
com.apple.iokit.IOAHCIFamily 2.0.8
com.apple.iokit.IOATAFamily 2.5.1
com.apple.iokit.IOUSBFamily 4.5.8
com.apple.driver.AppleEFIRuntime 1.5.0
com.apple.iokit.IOHIDFamily 1.7.1
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 177.5
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.DiskImages 331.6
com.apple.iokit.IOStorageFamily 1.7.1
com.apple.driver.AppleKeyStore 28.18
com.apple.driver.AppleACPIPlatform 1.5
com.apple.iokit.IOPCIFamily 2.6.8
com.apple.iokit.IOACPIFamily 1.4 -
Dear experts,
I would like to delete about 100 accounts in BCS (we don't use them anymore). I know how to do it account by account (T code ucwb > context menu : delete), but this process is very long for 100 accounts.
Maybe does anyone know a hint to do a "massive deletion" and thus gain some time ?
Thanx very much for your helpIf there is any data for historical periods in these accounts it is necessary to keep these accounts. However, they may be blocked from posting.
I am not aware of a means for mass deletion of master data in BCS. -
OK - tried searching for this but can't find a specific answer.
My 2009 MacBook Pro has Mountain Lion 10.6.8 running it, with iPhoto 8.1.2 installed.
I am trying to clean up my MacBook in preparation for installing Mavericks 10.8. But I barely have room left for the Mavericks download of 5GB.
Am researching how to remove apps in this forum and on the web to regain space, but my biggest issue for HDD space is the iPhoto library (I used 'Disk Inventory X' to find the biggest hogs, it was recommended elsewhere in the Apple discussions section).
Anyway, the library is just *awfully* huge. Like a quarter to third of the 500GB drive! Price I pay for having two little kids that I over-document, I guess.
I have copied the "originals" and "modified" folders from within the library to an external drive, so I can now safely erase the copies on the MacBook without data loss.
So, here's what I need to know:
1) Can I just delete the entire library? I know it will make iPhoto mad, but won't iPhoto just automatically rebuild it's needed file structure on a reboot and relaunch?, Since it won't find any images to load it would just create an empty library? Don't quite know how 'smart' iPhoto would be if it's library got removed...
2) If that won't work, what will? The thing's just too big to stay on the laptop - gotta go.
and last but not too critical 3) If anyone knows of a good mid-level summary of how iPhoto does it's thing regarding the library files setup it has, please post a link - I'd like to understand it, but the info I find is scattered and most often either too basic or *way* to deep.
Thanks, all.
Hoping for a reply....I have copied the "originals" and "modified" folders from within the library to an external drive, so I can now safely erase the copies on the MacBook without data loss.
Make a current backup of your mac, before you start such a massive delete. You will not want to risk the photos of your kids.
Then copy your complete iPhoto Library to the external drive, not just the originals and modified folder. Otherwise you will no longer have the references to the albums, books, your descriptions, keywords, you will have lost all work you invested into your photos.
Then launch iPhoto with the options-key ⌥ held down and select to open the iPhoto library on the external drive. Give it a test run, to see, if it is working.
Only if this succeeds, delete the library from your internal drive.
3) I'll look for a tutorial, but right now I don't know of any. But actually, you do not really need to know, how iPhoto organizes the library. Only iPhoto need to be able to find files inside. For the users are many different ways provided, to access the photos inside. Just keep the library intact as an entity. To access the photos, see Terence Devlin's User Tips: How to Access Files in iPhoto
This most recent user Tip explains how iPhoto stores the photos and how to backup the Library and to keep it safe: iPhoto and File Management. -
Why do I delete records so slow ?
Dear experts :
there is a long long runing problem of delete recoreds on a table,
one day, there is job goes creazy... i have to delete those uncessary rows ( abt 300000 recds)
this table has almost hundreds of fields ,and many constraints(almost 80)...
delete 10000 rows nearly 30 min...
how do i increase the speed of delete action ??
my Oracle DB version is 10.2.0.4.0
help pls ~~Hi ,
Can you please perform delete as insert this operation is usaully called direct-load insert.I'm sure you will be able to do it fast.The details of this operation is provided in my link given below.
http://rafioracledba.blogspot.com/2010/03/how-do-i-complete-massive-delete.html
Best regards,
Rafi.
http://rafioracledba.blogspot.com/ -
Deleting iphoto photos from iPad
When backing up my ipad to my macbook before updating to IOS 7 somehow I managed to sync all the photos from my mac which were in Iphoto to my ipad - all 10 GB of photos. Now I don't have enough space to update to IOS7 or indeed download any more apps.
How do I undo this operation? I tried resyncing my ipad to the mac book but I'm not getting any option to do with photos. If I delete the photos individually from the ipad will they still be on iphotos when I sync again to the macbook?
All suggestions welcome and thank you in advance.You haven't told us anything about your iPad's environment: Which model? Whici iOS version?
But perhaps the most important question is how much free space you have? Look at Settings > General > Usage and note the available space. It needs to be absolutely no less than 10% of the iPad's total storage space.
If space is tight, you might try deleting other things first.
Whether space is tight or not, you might try deleting fewer photos at a time. The feeling I get is you're trying to do one massive delete. Try some smaller ones first. -
Good morning guys,
i need to delete all planned prices stored on material masters.
I'm referring to fields:
- MBEW-ZPLP1
- MBEW-ZPLP2
- MBEW-ZPLP3
I checked Tcode MASS and it seems that fields MBEW-ZPLP* are not available.
I checked Tcode CKR1 as well and it seems that only standard prices (both planned and current) can be deleted. They are:
- MBEW-ZPLPR
- MBEW-LPLPR
- MBEW-VPLPR
- MBEW-STPRS
and they are not what i need to delete.
Please, does anybody know how can i easily and massively delete planned prices?
Thanks for your help.
Regards,
EnricoHI,
I tried MASS but was not able to change the planned price as well. This exists in Costing 2 tab of material master data.
I have seen customers before who created custom programs to update planned price field.
As planned price is entered as one of the criteria for material valuation in the valuation variant, make sure that this change is rightfully impacted in standard cost estimate updates.
Thanks,
Ram
Maybe you are looking for
-
Iphoto library won't open since external drive unplugged by mistake
Hi, my photos are on an external drive, I had iphoto open on my laptop and my husband unplugged the hard drive - he didn't realise. now when I open the library it is registering no photos, even though the file is 10gb. is there any way that I can acc
-
Mail 2.1 / Entourage/ MS Exchange
I've searched all over the forums and Google but couldn't find the answer I needed. My company uses Exchange and I successfully setup Entourage. Public folders work, email works, calendars works, etc. The only issue I have with it still is setting up
-
Creative Cloud Acrobat XI error 16 remove/reinstall popup
I have upgraded from Creative Suite 6 to Creative Cloud and since I did I am getting a message everytime I open a PDF where Acrobat gives me a popup that tells me to remove and then reinstall Acrobat. Trouble is...In the Creative Cloud control panel
-
Capturing fileio script errors
Howdy, I need a little help getting these pesky "script errors" to keep from popping up. I am using fileio to save preferences. Everything works fine unless there is a permission problem. In this case, Director just pops up a "script error". Instead
-
How to compare the same array?
Hello, The question not how to compare arrays. I have a method that gives results of an array type int. for(......){ int [] arrayFunc(int [] input) return arrayOut; }I want to compare those arrayOut arrays. I need to find a way to save the first outp