How to speed up the deletion of 11million records from the table

Hi,
How to speed up the deletion of 11million records from the table.
I need expiditious reply. Please do the needfull in advising
Regards

Please try to understand the question.Well it would help if you would answer some of the questions you have been asked as your question is not complete and clear and no matter how hard we try, we really need you to try and ask the question properly.
So as previously asked
Which simply supports the idea that we need:
1) better definition of the business purpose (why)
2) oracle version
3) operating system
4) hardware configuration
to give a moderately accurate answer.
I would like to add
5) How many rows in total in the table to begin with.
6) What is your delete statement
7) Is this a one time operation or will it happen regularly
8) Can you use partitioning.

Similar Messages

  • I used time machine to restore on a formatted MAC. Now the HDD space has reduced by 100GB but I cannot see any of the files. How do I find and delete those 100GB data from the HDD?

    I used time machine to restore on a formatted MAC. Now the HDD space has reduced by 100GB but I cannot see any of the files. How do I find and delete those 100GB data from the HDD?

    dglenn9000 wrote:
    I created a new user account just to see if it was my user Library or if there was something wrong with my system. And the new user account is doing most of the same things so I will need to do a full restore anyway.
    Not necessarily. I'd suggest downloading and installing the "combo" update. That's a combination (thus the clever name) of all the updates to Leopard since it was first released, so installing it should fix anything that's gone wrong since then, such as with one of the normal "point" updates. Info and download available at: http://support.apple.com/downloads/MacOS_X_10_5_8_ComboUpdate Be sure to do a +Repair Permissions+ via Disk Utility (in your Applications/Utilities folder) afterwards.

  • How to delete some of records from wf_notifications table any API Name?

    Hi All,
    I want to delete some of records from wf_notifications table , can any one tell API' name and Back end delete process.
    Thanks,
    Ramu
    Edited by: Ramu on Mar 20, 2013 5:42 AM

    Hi ,
    I hv done below script, now it's working fine.
    DECLARE
    CURSOR csr_transaction_id IS
    SELECT   hat.transaction_id,
             hat.item_type,
             hat.item_key,
             ppx.employee_number,
             hat.section_display_name
      FROM   hr_api_transactions hat, per_people_x ppx
    WHERE   hat.process_name = 'HR_PERSONAL_INFO_JSP_PRC'
             AND hat.selected_person_id = ppx.person_id
             AND ppx.employee_number IN
                      ('100024773',
                       '100024820',
                       '100024859',
                       '100024879',
                       '100024902',
                       '100024937',
                       '100025137',
                       '100026470',
                       '610014755',
                       '610017039')
    order by  ppx.employee_number;
    BEGIN
      dbms_output.put_line('***Deleted all Transactions  and Notifications of below Employee Personals Tranactions ***');
       FOR my_cur_v IN csr_transaction_id
       LOOP
       /*Delete all Transaction_id's in hr_api_transactions,hr_api_transaction_steps,hr_api_transaction_values and hr_api_transaction_steps_bk tables */
        hr_transaction_swi.delete_transaction
                              p_transaction_id =>my_cur_v.transaction_id,
                              p_validate => hr_api.g_false_num
        wf_engine.abortprocess  (
                                  itemtype => my_cur_v.item_type,
                                 itemkey => my_cur_v.item_key
         /* Deleted all Notification_id's and item_key's in wf_item_activity_statuses,wf_items,wf_item_attribute_values,wf_notifications     Table */                     
         wf_purge.items (
                          itemtype => my_cur_v.item_type,
                         itemkey => my_cur_v.item_key
        dbms_output.put_line('Emp No --'||my_cur_v.employee_number||'Transaction_id :'||my_cur_v.transaction_id||'Emp Personal Info :'||my_cur_v.section_display_name||
                              'Item Type :'||my_cur_v.item_type|| 'Item Key :'||my_cur_v.item_key); 
       END LOOP;
       commit;
    EXCEPTION
    WHEN OTHERS THEN
      dbms_output.put_line('hr_transaction_swi.delete_transaction api goest to exception block'    ||sqlcode|| '  '||sqlerrm);
    END;  
    /thanks,
    Ramu

  • Delete 50 Million records from a table with 60 Million records

    Hi,
    I'm using oracle9.2.0.7 on win2k3 32bit.
    I need to delete 50M rows from a table that contains 60M records. This db was just passed on to me. I tried to use the delete statement but it takes too long. After reading the articles and forums, the best way to delete that many records from a table is to create a temp table, transfer the data needed to the temp table, drop the big table then rename temp table to big table. But the key here is in creating an exact replica of the big table.I have gotten the create table, indexes and constraints script in the export file from my production DB. But in the forums I read, I noticed that I haven't gotten the create grant script, is there a view I could use to get this? Can dbms.metadata get this?
    When I need to create an exact replica of my big table, I only need:
    create table, indexes, constraints, and grants script right? Did I miss anything?
    I just want to make sure that I haven't left anything out. Kindly help.
    Thanks and Best Regards

    Can dbms.metadata get this?
    Yes, dbms_metadata can get the grants.
    YAS@10GR2 > select dbms_metadata.GET_DEPENDENT_DDL('OBJECT_GRANT','TEST') from dual;
    DBMS_METADATA.GET_DEPENDENT_DDL('OBJECT_GRANT','TEST')
      GRANT SELECT ON "YAS"."TEST" TO "SYS"
    When I need to create an exact replica of my big table, I only need:
    create table, indexes, constraints, and grants script right? Did I miss anything?
    There are triggers, foreign keys referencing this table (which will not permit you to drop the table if you do not take care of them), snapshot logs on the table, snapshots based on the table, etc...

  • How to check at what time the extractor has picked records from r3 tables

    Hi experts ,
    If we want to know exactly at what time the Extractor has picked up the records from r/3 tables .
    or if we want to know the time stamp of extractor picking the records from r3 tables after r3 entries
    Regards ,
    Subash Balakrishnan

    Hi,
    The following are few function modules which will give you the information you need based upon the area you are working in.
    SD Billing: LOG_CONTENT_BILLING
       Delivery: LOG_CONTENT_DELIVERY
    Purchasing: LOG_CONTENT_PURCHASING etc...
    See if the above FMs help you in any way...

  • How to speed up insertion of 10,000 records into a table

    Hi,
    I have one table with 40 fields in which have several not null, 6/7 randomly generated (through trigger) fields and 8/9 indexes including pk and uk. Now i have to insert 10,000 records at a time through a procedure using loop. But it takes time => 00:01:05.25. I need the task within 2/3sec. Can anyone help me in this regard urgently ....

    below is my code:
    =>
    CREATE OR REPLACE PROCEDURE sp_batch (v_batchid     batch.batch_id%TYPE)
    IS
         batch_rec           batch%ROWTYPE;
         batchdesc_rec          batch_desc%ROWTYPE;
         v_acctid          user.acct_id%TYPE := 0;
         v_companyname          user.company_name%TYPE;
         v_masteracctconfdefid master_acct_conf_def.master_acct_conf_def_id%TYPE;
         v_timezoneid          time_zone.time_zone_id%TYPE;
         v_ispostpaid          sys_conf.is_post_paid%TYPE;
         v_isacctactive          sys_conf.is_acct_active%TYPE;
         v_maxcalllimit          sys_conf.max_call_limit%TYPE;
         v_maxcalltime          sys_conf.max_call_time%TYPE;
    BEGIN
         SELECT *                                   
         INTO batch_rec
         FROM batch
         WHERE batch_id = v_batchid;
         SELECT * INTO batchdesc_rec                          
         FROM batch_desc
         WHERE batch_desc_id = batch_rec.batch_desc_id;
         SELECT a.company_name, m.master_acct_conf_def_id
         INTO v_companyname, v_masteracctconfdefid
         FROM master_acct_conf_def m, user a
         WHERE a.acct_id = batchdesc_rec.master_id
         AND a.acct_id = m.master_id;
         SELECT time_zone_id
         INTO v_timezoneid
         FROM time_zone
         WHERE acct_id = batchdesc_rec.master_id;
         SELECT is_post_paid, is_acct_active, max_call_limit, max_call_time
         INTO v_ispostpaid, v_isacctactive, v_maxcalllimit, v_maxcalltime
         FROM sys_conf;
         v_acctid := batch_rec.start_acct_id;
         FOR i IN 1..batch_rec.num_of_acct LOOP
              INSERT INTO user(acct_id, master_id, batch_id, add1, auth_type_id, acct_type_id, acct_status, rate_def_id,
                   route_def_id, max_call_limit, max_call_time, is_post_paid, company_name, is_vm_enabled)
              VALUES(v_acctid, batchdesc_rec.master_id, v_batchid, 'Address', batch_rec.auth_type_id, 1, v_isacctactive, batch_rec.rate_def_id,
                   batch_rec.route_def_id, v_maxcalllimit, v_maxcalltime, v_ispostpaid, v_companyname,batch_rec.is_vm_enabled);
              INSERT INTO account
              VALUES (v_acctid, batch_rec.batch_face_value, 0, localtimestamp, null, batch_rec.exp_days, 1,localtimestamp);
              INSERT INTO master_acct_conf
              VALUES (masteracctconf_seq.NEXTVAL, v_masteracctconfdefid, v_acctid, DEFAULT, DEFAULT);
              INSERT INTO time_zone
              VALUES(v_timezoneid, v_acctid, DEFAULT, NULL);
              v_acctid := v_acctid + 1;
         END LOOP;
         UPDATE batch SET batch_status_id = 2 WHERE batch_id = v_batchid;
         commit;
    EXCEPTION
         WHEN OTHERS THEN
         RAISE_APPLICATION_ERROR(-20001,'The error from sp_batch => '||sqlerrm);
    END;
    Now tell me how can i speed up this insertion for 10,000 records?

  • How to get first 10 records from the database using JSP

    i want ot get first 10 records from the database and then after clicking the next button in the page,it must show the next precceding 10 records from the database.i am getting the first 10 records .but how to post to the same page to get another preceeding 10 record.

    Search the forums - this has been asked a lot. I usually recommend experimenting with tops and order bys until you're satisfied.
    Kind regards,
      Levi

  • Delete a user record from oracle db

    Hi,
    Can anybody share me a custom workflow which deletes a user record from the oracle db.The user does exist in SUN IDM.
    Please help me.
    Thanks in advance.

    You can use a Trigger and UTL_FILE to write to a file (on the server).
    Example:
    create or replace trigger test_file
      after insert or delete or update on test_case 
      for each row
    declare
    v_logfile utl_file.file_type;
    begin
      v_logfile := utl_file.fopen('\myfiles','test_file.log','a');
      if inserting then
         utl_file.put_line(v_logfile,'Inserting to table');
      elsif deleting then
         utl_file.put_line(v_logfile,'Deleting to table');
      else
         utl_file.put_line(v_logfile,'Updating to table');
      end if;
      utl_file.fclose(v_logfile);
    end test_file;
    I want to generate a log file in which i want to dump some useful messages, when anyone does a dml operation on a table, and also, i want to have a switch like YES or NO (may be an environment variable,,) if i switch it to YES the log file should get generated, if NO then, no log file will be generated..
    can anyone help, how can you do this task ?
    thanks a lot in advance..
    srini

  • How do I get my deleted emails to go to the deleted items in Outlook and not the archived folder?

    How do I get my deleted emails to go to the deleted items in Outlook and not the archived folder?

    Who is the email account provider?
    With an Apple iCloud account, there is a preference setting with the account settings on the iPhone to archive messages - save deleted messages in your Archive folder.
    I believe the same is available with a Gmail account.

  • I have a game in the game center(clash of clans) and i have more than one apple mobile on the same account and i dont know how to delete the game(clash of clans) from the game center

    i have a game in the game center(clash of clans) and i have more than one apple mobile on the same account and i dont know how to delete the  game(clash of clans) from the game center.

    Hello ayhamnaser,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    Using Game Center
    http://support.apple.com/kb/ht4314
    If in Game Center > Me > Games > my iOS Games > swipe to the left on the game > Remove.
    Have a nice day,
    Mario

  • How to delete same name records from datagrid,while i am selecting one of the record and delete

    hi friends,
    i am working in flex 4 mxml web application with action script....i am using a data grid and one delete button outside the gird.
    i have two records in the same name in grid, when i click one record from the grid and click delete means that time ,both records will delete from that grid
    which record having the same name..
    how to do this?
    any useful suggesssion or snippets code for this..
    Thanks in advance,
    B.venkatesan.

    hello,
    first get the length of the datagrid.
    suppose your datagrid id is db and you want to delete the the row which have same name .....
    first get the selected row and from that name of the selcted row.
    supoose selected name is
    var index:int=db.selectedindex;
    var selname:string =bd.dataprovide.getItemAt(index).name;(name id datafield of the column).
    now you got the selected name search for the same rows in datagrid.
    var totallen:int=(db.dataprovider).length;
    for(var i:int=0;i<totallen;i++)
        var  checkduplicate:string=bd.dataprovide.getItemAt(i).name;
       if(checkduplicate==selname)
         db.dataProvider.removeItemAt(i);
    this will delete all the row which are with same name with selected row name...
    Gajanan Hiroji | [email protected] | www.isacglobal.com

  • How to delete the child record from the database

    how to delete a parent and child record from the database can we do it in the servlet and my database is oracle

    I'm not sure I understand the question but you could certainly use the JDBC API from within your servlet to access and modify a DB. You could also use an EJB layer to access your DB and accomplish the same tasks.

  • How to delete the single record from the  ODS

    HI,
       I want to DELETE  the particular record from ODS.. how to delete that..
    plz give me the solution.. it's urgent..
    with regards
    @jay

    Hi Prakash,
        You can delete a particular record from ODS by specifying the key field name in Selective deletion button available in Contents tab in the manage screen of ODS. But it will only delete the record from the active data table and not from the Change log and new data table . You should be very carefull if you are doing in Production system as there is chance of deleting other records accidentally.
    Go to Selective deletion button - > Click on delete selection -> Enter the key field values of the record you want to delete-> Press save button to save as Variant -> Go back and click on selection button -> Chosse the background job type -> Click on start button.
    Regards,
    Prakash

  • Hello, How can I edit or delete a custom label in the contacts list on iOS 7.0.3 on iPhone 4S ?

    Hello, How can I edit or delete a custom label in the contacts list on iOS 7.0.3 on iPhone 4S ?
    i need it so muchhh!

    Sort of depend on what you are trying to do precisely. In Edit mode, if you tap on any label, you will be given a list of options, plus an Add Custom Label option near the bottom of the list

  • How can I edit or delete a custom label in the contacts list on iOS 7 on iPhone 4S ?

    How can I edit or delete a custom label in the contacts list on iOS 7 on iPhone 4S ?

    Alfre311 wrote:
    I've been trying to find a way to do this since I updated to IOS 7, and I've just found the solution/explanation, even tho is a bit heavy to carry out.
    IOS 6 creates custom labels and save them giving you the option to delete them.
    IOS 7 creates custom labels but don't save them, so there is no need to have the option to delete them.
    But here comes the problem, if you have some custom labes saved in you Iphone / Ipad with IOS 6 and you update it to IOS 7, the device will keep those labels saved, but you wont be able to delete them.
    I realized this by going to contacts on Icloud. There those labels that I had on my devices weren't there. So simply restoring your device and configuring it as a new one to later sync your Icloud Contacts, will solve the problem.
    I know this post is old, but I might just try this with iOS 8. I have outdated custom labels that annoy me, because I still seem them in the list as options. If I get desperate enough, I may try your solution.

Maybe you are looking for

  • NVidia Powermizer for Linux

    Hi there! I have been looking around the internet for the past few hours trying to find a pendent for powermizer under Linux, but I haven't really found an answer! So my question is: how to save power with an nvidia 7600go under Linux? thx armin

  • Movies play in low resolution ... ?

    Just got the ATV2, and set it up. Movies stored in iTunes on the iMac upstairs were listed and played just fine, but noticed that the resolution of the movie itself was very low. I started off playing some of the Pixar animation movies and saw notice

  • ORA 28817 PLSQL function returned an error . when Access instance apex 4 2

    Hello, I have just upgraded from apex 4.1 to apex 4.2. Everything is fine except for this error that I get when I try to access Instance Setting on the Admin App (localhost/apex/apex_admin) ORA-28817: PL/SQL function returned an errorWhat could be th

  • Photoshop CS6 freezes everytime I try to open a file?

    it happens every once in a while but this time it wont open any of my files. I tried restarting the computer. As soon as i click on File >Open. Photoshop freezes. Anyway to resolve this?

  • Code Inspector/ATC checks for VKOS/VKOI object types

    Dear Experts, I found a strange behavior while executing CI checks on a transport request. TR contained only IMG Activity objects (Object Type VKOS/VKOI). After CI checks it gave errors "Recognized dead code". There is no coding for these kind of obj