DELETE MILLIONS OF RECORDS;;;PLZ HELP ME

Hi all;
On my database I have an Unnecessary table ;
This table contains 38 millions of records; I want to purge this table but I afraid to destroy my database ;
this's the structure of my table :
-- Create table
create table MANAGEMENT.MC_COMPUTERS
GUID VARCHAR2(24),
GROUPID NUMBER(5),
QUOVACOUNTRY VARCHAR2(30),
CONNECTIONTYPE VARCHAR2(255),
CREA_MONTH VARCHAR2(10) not null,
ANTIVIRUS VARCHAR2(100),
WINVERSION VARCHAR2(100),
ACTF_1_DAY NUMBER,
ACTF_7_DAY NUMBER,
ACTF_14_DAY NUMBER,
ACTF_21_DAY NUMBER,
ACTF_28_DAY NUMBER,
INSTALL NUMBER,
DATE_CONSO VARCHAR2(24)
partition by (CREA_MONTH)
partition MC200701
tablespace DATA
pctfree 10
initrans 1
maxtrans 255
storage
initial 64K
minextents 1
maxextents unlimited
partition MC200702
tablespace DATA
pctfree 10
initrans 1
maxtrans 255
storage
initial 64K
minextents 1
maxextents unlimited
partition MC200703
tablespace DATA
pctfree 10
initrans 1
maxtrans 255
storage
initial 64K
minextents 1
maxextents unlimited
partition MC200704
tablespace DATA
pctfree 10
initrans 1
maxtrans 255
storage
initial 64K
minextents 1
maxextents unlimited
partition MC200705
tablespace DATA
pctfree 10
initrans 1
maxtrans 255
storage
initial 64K
minextents 1
maxextents unlimited
partition MC200706
tablespace DATA
pctfree 10
initrans 1
maxtrans 255
storage
initial 64K
minextents 1
maxextents unlimited
partition MC200707
tablespace DATA
pctfree 10
initrans 1
maxtrans 255
storage
initial 64K
minextents 1
maxextents unlimited
partition MC200708
tablespace DATA
pctfree 10
initrans 1
maxtrans 255
storage
initial 64K
minextents 1
maxextents unlimited
partition MC200709
tablespace DATA
pctfree 10
initrans 1
maxtrans 255
storage
initial 64K
minextents 1
maxextents unlimited
partition MC200710
tablespace DATA
pctfree 10
initrans 1
maxtrans 255
storage
initial 64K
minextents 1
maxextents unlimited
-- Create/Recreate indexes
create index MANAGEMENT.INX_MC_MONTH on MANAGEMENT.MC_COMPUTERS (CREA_MONTH)
tablespace INDX
pctfree 10
initrans 2
maxtrans 255
storage
initial 64K
minextents 1
maxextents unlimited
Should I use this command truncate table ...; or delete from ... where CREA_MONTH ='' or maybe other sql statement ?

Well, you may not need to worry about destroy your database but you might find out if truncate this table will destroy your application.
A truncate statement is a regular DDL of Oracle, runing it will certainly not crush your database. However you need to talk to application user to figure out if this table is really unnecessary.
Before you do the truncate, better make a backup.

Similar Messages

  • Need help / Advice ; manage daily millions of records;;plz help me:)

    Hi all,
    I've only 2 years of experience in Oracle DBA. I need advice from Experts:)
    To begin, the company I work for, decide to daily save in our Oracle database about 40 millions of records in our only table (User tables). These records should be daily imported from csv or xml feeds into one table.
    This 's a project that need :
    - Study the performance
    - Study What is required in terms of hardware
    As a leader in the market, Oracle 's the only DBMS that could support this size of data, but what's the limit of Oracle in this case? can Oracle support and manage perfectly daily 40 millions of records and for many years, ie We need all data of this table, we can't consider after a period that we don't need history: we need to save all data and without purge the history and this for many years i suppose!!! you can imagine 40 daily millions of records and for many years!!!
    Then we need to consolidate from this table different views (or maybe materalized view) for each department and business inside the company, one other project that need study!
    My questions 're :Using Oracle Database 10g Enterprise Edition Release 10.2.0.1.0:
    1-Can Oracle support and perfectly manage daily 40 millions of records and for many years?
    2-Study the performance ; which solutions, technics could I use to improve the performance of :
    - Daily Loading 40 millions of records from csv or xml file/files?
    - Daily Consolidate / managing different views/ materalized view from this big table?
    3- What is required in terms of hardware? features / Technologies( maybe clusters...)
    Hope that experts help me and advice me! thank you very much for your atention :)

    1-Can Oracle support and perfectly manage daily 40 millions of records and for many years?Yes
    2-Study the performance ; which solutions, technics could I use to improve >>>the performance of :Send me your email, and I can send you a Performance tuning metodology pdf.
    You can see my email on my profile.
    Daily Loading 40 millions of records from csv or xml file/files?DIrect Load
    - Daily Consolidate / managing different views/ materalized view from this big table?You can use table partitions, one partition for each day.
    Regards,
    Francisco Munoz Alvarez

  • My iCloud passward forgat . How to delete old id ? Plz Help me..

    My iCloud passward forgat . How to delete old id ? Plz Help me..

    Hi Subrata,
    Unfortunately, you cannot delete it. You would have to enter the password in order to delete the old Apple ID from your device. If you do not remember the password, please visit: https://iforgot.apple.com/ If this doesn't work, please directly contact Apple.
    With kind regards,
    David

  • How to DELETE millions of records. How to make it fast.

    Hi
    I need to delete near abt 134 millions of records from tables.
    How to make it faster? any trick , any settings.
    I am using Oracle 9i on Linux box.
    If suppose i use TRUNCATE . does it deletes all objects defined over tables like constraint, indexes etc.
    Thanks,
    Kuldeep

    hi
    SQL> create table te as select * from all_objects;
    Table created.
    SQL> create index te_ind on te ( owner);
    Index created.
    SQL> truncate table te;
    Table truncated.
    SQL> select index_name , status from user_indexes where table_name = 'TE';
    INDEX_NAME                     STATUS
    TE_IND                         VALID
    SQL> create table ti as select * from all_objects;
    Table created.
    SQL> create index ti_ind on ti ( owner);
    Index created.
    SQL> drop table ti;
    Table dropped.
    SQL> select index_name , status from user_indexes where table_name = 'TI';
    no rows selected
    SQL>regards
    Taj

  • Inserting Millions of records-Please Help!

    Hi All,
    I have a scenario where I hvae to query MARA and filter out some articles and then query WLK1 table(Article/Site Combination) and insert the records to a Custom (z) table.the result maybe millions of records,
    can anyone tell me a efficient way to insert large number of records? This is urgent.Please help.
    Warm Regards,
    Sandeep Shenoy

    This is a sample code i am using in one of my programs. You can try similar way and insert into custom table with every loop pass.
    I am considering 2000 records at a time. You can decide the no and code accordingly.
      if not tb_bkpf[] is initial.
    fetching the data from BSEG for each 1000 entries in BKPF to
    reduce the overhead of database extraction.
        clear l_lines .
        describe table tb_bkpf lines l_lines.
        if l_lines >= 1.
          clear: l_start, l_end.
          do.
            l_start = l_end + 1.
            l_end = l_end + 2000.
            if l_end > l_lines.
              l_end = l_lines.
            endif.
            append lines of tb_bkpf from l_start to l_end to tb_bkpf_temp.
    Populating the tb_bseg_tmp in the order of the database table
            select bukrs
                   belnr
                   gjahr
                   buzei
                   shkzg
                   dmbtr
                   hkont
                   matnr
                   werks
              from bseg
              appending table tb_bseg_tmp
              for all entries in tb_bkpf_temp
              where bukrs = tb_bkpf_temp-bukrs and
                    belnr = tb_bkpf_temp-belnr and
                    gjahr = tb_bkpf_temp-gjahr and
                    hkont in s_hkont.
            refresh tb_bkpf_temp.
            if l_end >= l_lines.
              exit.
            endif.
          enddo.
        endif.

  • How to get the previous record value in the current record plz help me...

    In my sql how to get the previous record value...
    in table i m having the field called Date i want find the difference b/w 2nd record date value with first record date... plz any one help me to know this i m waiting for ur reply....
    Thanx in Advance
    with regards
    kotresh

    First of this not hte mysql or database forum so don;t repeate again.
    to get diff between two date in mysql use date_format() to convert them to date if they r not date type
    then use - (minus)to get diff.

  • So when I first got my phone I had kik and tumblr on it but when I tried to update it my phone just deleted the apps . Now when I try to re install them it won't let me and has a box in the corner that says 17  Ireset my phone,deleted all my apps plz help

    I reset my phone , made a new account even deleted all my apps but nothing works . How do I remove the restrictions if any for the 17+ apps ? Pleasee help !

    It's set in Settings/General/Restrictions. You will need the Restrictions passcode to access the setting. Presumably someone placed the restriction on your phone. You need to talk to whomever set the restriction if it wasn't you.

  • How to Delete a Pattern? Plz Help.

    Hello:
    OS: Windows 8 64bit  Photoshop CC
    I made a few patterns and went to Edit > Define Pattern and named it.
    Then I made a new document window and made a shape and then used the Layer Styles to try out my new pattern as an overlay.
    The pattern was there which was great. (Excpet I'm uncertain of how exactly it saved).
    I made some more variations of the pattern.
    Now, there are a few within the set that I don't like at all and would very much like to delete them. But, everything I have tried to delete them hasn't worked out.
    The oddest thing to me is that when I go to Program Files > Presets > Patterns the pattern isn't there and It's not in Program Files (x86) either.
    I have tried the Preset Manager. I have tried every possible way in which one can access the patterns but nothing is working out.
    When I Delete from the Layer Styles panel and then load a new set and then return to the set I made the individual patterns I want gone, and have Deleted, return every time. The Preset Manager won't seem to let me delete the pats either.
    I do not want to lose the entire set just a few individual pats.
    Also, I have made some new patterns which I would like to save but now when I try to save them I am told that i do not have permission to save in that location - of which is program files > presets >patters and that i need administration permission and then it asks if i want to save in: Kara which is the name of my computer. ()
    (why isn't this more intuitive?)
    Yes, I have read the manual ... that is what said to do it the way that's not working.
    Can someone please help me? It's all driving me quite NUTS.
    Thank you in advance for your time!! Much appreciated!!

    hi chris
    thank you for your time.
    i have read what little i can find about the preset manager. i cannot find any info on how to Delete.
    was just returning to say i figured out the save thing from the manual ... which oddly... is hard to find b/c when i click on Photoshop CC manual ... nothing about Patterns is listed.

  • HELP SET MY PASSWORD AND NOW IT WON'T RECOGNIZE. WILL DELETE ALL MY DATA PLZ HELP!!!

    Hi there,
    Unfortunately I made the very foolish error of setting up a password on my Blackberry this evening. I typed in (WHAT I THOUGHT) was an extremely easy password. After trying 9 times to type it in (I am on 10th of 10 tries!) I can't figure out what I typed in. I know what I thought I typed in, but apparently it's not working.
    Any help here? Or am I severely screwed?
    The password is three letters long. Does it usually automatically capitalize the first letter?
    HELPP!!

    Hi and Welcome to the Forums!
    With only one attempt left, it is unlikely that we will be able to be of any help. The next time it is entered wrong, your BB will wipe itself clean of all of your data. There is no way to stop it. None. You must get the password correct on the next attempt. There's no way for us to know what password you used...so you must try to see if you can get it right. Don't do what you've already tried...you already know it does not work. Sorry, but it looks like you will be restoring from your most recent backup.
    Best.
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • HT204150 I have 2 iphones registered under same account, but both phones had different contacts in them, somehow icloud duplicated, exchanged them. and deleted could not restore the contacts, how do I restore it? plz help

    I have 2 iphones registered under same account, but both phones had different contacts in them, somehow icloud duplicated, exchanged them, and I turned off the icloud on one of them, while doing that it asked me if I want to keep them on my phone or not. I pressed the one saying not to keep them. I deleted all of them and could not restore the contacts, how do I restore it? when I sign in to my icloud account online it only shows the contacts that were on the other phone. plz help

    I access a personal iPhone and iPad, and a business iPhone with the same Apple ID.
    The iPhone's passcode lock feature is completely separate from another iPhone or iOS device.
    All apps, all paid and free apps include DRM protection which is tied to the Apple ID that was used to download the apps. If some apps were downloaded with one Apple ID and then a new Apple ID is created, in order to download an app update that was installed with the original Apple ID requires using that Apple ID and password.

  • RECORDING WITH F-32 .......ITS URGENT PLZ HELP ME

    HI GUYS
    HERE IS MY REQUIREMENT
    I WANT TO DO A RECORDING USING F-32 AND I HAVE TO DO THE FOLLOWING WAYS
    1- ENTER ACCOUNT
    2-COMPANY CODE
    3-CLEARING DATE
    4-OPENITEM SELETION
    5-I HAVE TO SELECT THE REFERENCE RADIO BUTTON
    HERE IS MY ERROR , I DONT KNOW WHAT ARE THE VALUE I HAVE TO ENTER IN THE REFERENCE FIELD AND HOW TO PROCEED ,PLZ HELP ME IT IS VERY VERY URGENT FOR ME.
    THANKS A LOT
    MRUTYUN

    This should get you started:
    FORM clearing USING    p_purch_order
                           p_cus
                           p_ven.
      DATA: okcode(3).
      CLEAR bdcdata.
      CLEAR messtab.
      REFRESH bdcdata.
      REFRESH messtab.
      MESSAGE s205 WITH 'Clearing A/R Invoice to Invoice Receipt.'.
      PERFORM dynpro USING:
       'X' 'SAPMF05A'        '0131',       "Clear Customer: Header Data
       ' ' 'RF05A-AGKON'      bill_to,
       ' ' 'BKPF-BUDAT'       today_ch,
       ' ' 'BKPF-BUKRS'      'UOFT',
       ' ' 'BKPF-WAERS'      'CAD',
       ' ' 'RF05A-XNOPS'     'X',
       ' ' 'RF05A-XPOS1(2)'  'X',
       ' ' 'BDC_OKCODE'      '/16'.        "Process Open Items
      PERFORM dynpro USING:
       'X' 'SAPMF05A'        '0730',       "Amount popup
       ' ' 'BDC_OKCODE'      '/16'.        "Process Open Items
      PERFORM dynpro USING:
       'X' 'SAPMF05A'        '0730'.       "Press enter
      PERFORM dynpro USING:
       'X' 'SAPMF05A'        '0710',"Clear Customer: Enter selection criteri
       ' ' 'RF05A-AGBUK'     'UOFT',
       ' ' 'RF05A-AGKON'      bill_to,
       ' ' 'RF05A-AGKOA'     'D',
       ' ' 'RF05A-XNOPS'     'X',
       ' ' 'RF05A-XMULK'     'X',
       ' ' 'RF05A-XPOS1(1)'  'X',
       ' ' 'BDC_OKCODE'      '/16'.        "Process Open Items
      PERFORM dynpro USING:
       'X' 'SAPMF05A'        '0609',       "Additional Accounts popup
       ' ' 'RF05A-AGKON(1)'   p_ven,
       ' ' 'RF05A-AGKOA(1)'  'K',
       ' ' 'RF05A-XNOPS(1)'  'X'.
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '1102',       "Clear Customer: Select open item
       ' ' 'BDC_OKCODE'      'OMX'.        "Select all
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '1102',       "Clear Customer: Select open item
       ' ' 'BDC_OKCODE'      '/6'.         "Inactive
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '1102',       "Clear Customer: Select open item
       ' ' 'BDC_OKCODE'      '/6'.         "Find
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '2000',       "Select search criteria popup
       ' ' 'BDC_OKCODE'      '/24'.        "Next page
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '2000',       "Select search criteria popup
       ' ' 'RF05A-XPOS1(10)' 'X'.          "Allocation
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '0731',       "Search for Allocation
       ' ' 'RF05A-SEL01(1)'   p_purch_order.                    "PO
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '1102',       "Clear Customer: Select open item
       ' ' 'BDC_OKCODE'      'OMX'.        "Select all
      PERFORM dynpro USING:
    'X' 'SAPDF05X'        '1102',         "Clear Customer: Select open item
       ' ' 'BDC_OKCODE'    '/05'.          "Active
      IF p_test = space.
        okcode = '/11'.                    "save
      ELSE.
        okcode = 'BS'.                     "simulate
      ENDIF.
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '1102',
       ' ' 'BDC_OKCODE'       okcode.      " save or check
      IF p_test NE space.                  "exit from screen after check
        PERFORM dynpro USING:
         'X' 'SAPMF05A'        '0700',
         ' ' 'BDC_OKCODE'       '/15'.     "Save or check
        PERFORM dynpro USING:              "popup
         'X' 'SAPLSPO1'        '0200',
         ' ' 'BDC_CURSOR'      'SPOP-OPTION1'.       "choose yes
      ENDIF.
      CALL TRANSACTION 'F-32' USING bdcdata MODE u_mode UPDATE 'S'
                                            MESSAGES INTO messtab.
      PERFORM get_message TABLES messtab USING text 'CL'.
      IF text IS INITIAL.
        PERFORM batch_input USING 'F-32'.
      ENDIF.
    ENDFORM.                               " CLEARING
    Rob

  • I deleted my download folder by accident  i waz moving it and it just deleted it and showed this smoke. i found it in my trash so put it on my dock then clicked on it and it shows preview?! plz help how do i get it back!!!

    i deleted my download folder by accident  i waz moving it and it just deleted it and showed this smoke. i found it in my trash so put it on my dock then clicked on it and it shows preview?! plz help how do i get it back!!!

    You need to restore the folder using the (Put back) selection (CTRL click).

  • I accidentally deleted my old fb app on my iPhone 3g. Now i cant download new fb app as it requires ios 4.3. How can i get old app that will work on my old phone. Any suggestions???  plz help!!!

    i accidentally deleted my old fb app on my iPhone 3g. Now i cant download new fb app as it requires ios 4.3. How can i get old app that will work on my old phone. Any suggestions??? plz help

    As already provided, if you don't have such in your iTunes library, on your computer, then there is no way to put it back on your phone. Apps are DRM protected, so even if you found a copy somewhere, you wouldn't be able to use it.

  • What's the best way to delete 2.4 million of records from table?

    We are having two tables one is production one and another is temp table which data we want to insert into production table. temp table having 2.5 million of records and on the other side production table is having billions of records. the thing which we want to do just simple delete already existed records from production table and then insert the remaining records from temp to production table.
    Can anyone guide what's the best way to do this?
    Thanks,
    Waheed.

    Waheed Azhar wrote:
    production table is live and data is appending in this table on random basis. if i go insert data from temp to prod table a pk voilation exception occured bcoz already a record is exist in prod table which we are going to insert from temp to prod
    If you really just want to insert the records and don't want to update the matching ones and you're already on 10g you could use the "DML error logging" facility of the INSERT command, which would log all failed records but succeeds for the remaining ones.
    You can create a suitable exception table using the DBMS_ERRLOG.CREATE_ERROR_LOG procedure and then use the "LOG ERRORS INTO" clause of the INSERT command. Note that you can't use the "direct-path" insert mode (APPEND hint) if you expect to encounter UNIQUE CONSTRAINT violations, because this can't be logged and cause the direct-path insert to fail. Since this is a "live" table you probably don't want to use the direct-path insert anyway.
    See the manuals for more information: http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9014.htm#BGBEIACB
    Sample taken from 10g manuals:
    CREATE TABLE raises (emp_id NUMBER, sal NUMBER
       CONSTRAINT check_sal CHECK(sal > 8000));
    EXECUTE DBMS_ERRLOG.CREATE_ERROR_LOG('raises', 'errlog');
    INSERT INTO raises
       SELECT employee_id, salary*1.1 FROM employees
       WHERE commission_pct > .2
       LOG ERRORS INTO errlog ('my_bad') REJECT LIMIT 10;
    SELECT ORA_ERR_MESG$, ORA_ERR_TAG$, emp_id, sal FROM errlog;
    ORA_ERR_MESG$               ORA_ERR_TAG$         EMP_ID SAL
    ORA-02290: check constraint my_bad               161    7700
    (HR.SYS_C004266) violatedIf the number of rows in the temp table is not too large and you have a suitable index on the large table for the lookup you could also try to use a NOT EXISTS clause in the insert command:
    INSERT INTO <large_table>
    SELECT ...
    FROM TEMP A
    WHERE NOT EXISTS (
    SELECT NULL
    FROM <large_table> B
    WHERE B.<lookup> = A.<key>
    );But you need to check the execution plan, because a hash join using a full table scan on the <large_table> is probably something you want to avoid.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • I recently deleted imovie 9 .and i don't have a cd and i have not made backup from time machine ..i want it back.plz help me..

    i recently deleted imovie 9 .and i don't have a cd and i have not made backup from time machine ..i want it back.plz help me..

    It depends how you installed it.
    If you installed from your iLife 11 DVD, then you can insert the DVD and install it again.
    If you purchased it from the Mac App Store, you can open the Mac App Store, go to the Purchases tab, and reinstall from there.

Maybe you are looking for