How to archive and purge enormous tables

Hi,
I have two tables A and B
A has 28 028 808 lines
B has 70 000 000 lines
I would like to archive about 96% of each of the two tables.
So, I would like to copy the selected lines into new tables A2 and B2 and delete the corresponding lines from tables A and B.
What would be the best method to do this since tables A and B are enormous.

Hi
I'm not quite sure what you mean by archiving but if you mean normal backup I guess one easy way after taking it would be (if there isn't any restriction from the system point of view for this) ->
1) Select kept rows to new tables A2 and B2
2) Truncate tables A and B or drop and recreate
3) Move kept rows back to table A and B

Similar Messages

  • How to Archive and Purge SLA data?

    We are looking for a solution to archive and purge SLA tables. I have opened an SR with Oracle and they suggested to work with third party who specialized in archiving and purging data. I would like to see if any of the clients have developed a custom solution for this and if so what is the criteria that has been used for this
    Thanks in advance,
    Prathibha

    Hi,
    Thanks for the information.
    But this traditional way of doing is archiving is for maintenance and backup operations.
    We want to have this process online, without taking db offline. In this case will this approach work?
    In our case, the rules can be like -
    1. For table 'A', if rows exceed 10Million, then start archiving of the data for that table.
    2. For table 'B', if data is older than 6 motnhs start archiving of the data for that table.
    3. Archiving should be on for 15 minutes only after that should pause, and should resume whenever user wants to resume.
    4. Archiving should start on specified days only... ETC...

  • How to archive and Purge in Oracle 10g based on data

    Hi,
    Our requirement is that based on some rules stored in static tables we want to perform Archiving, purging and compression of data in Oracle 10g.
    Can anyone guide me to proper information material for how to go about this?
    Thanks!
    Avinash.

    Hi,
    Thanks for the information.
    But this traditional way of doing is archiving is for maintenance and backup operations.
    We want to have this process online, without taking db offline. In this case will this approach work?
    In our case, the rules can be like -
    1. For table 'A', if rows exceed 10Million, then start archiving of the data for that table.
    2. For table 'B', if data is older than 6 motnhs start archiving of the data for that table.
    3. Archiving should be on for 15 minutes only after that should pause, and should resume whenever user wants to resume.
    4. Archiving should start on specified days only... ETC...

  • Archive and Purge in Oracle Financials (verions 11.0.3, database 8.0.5)

    Hi all,
    I am going to purge balances and journals data by using function 'Archive and Purge' in Oracle Financials.
    I want to calculate the space that can free up finally.
    i.e. calculate the difference before and after data purging.
    How to get this information?
    Thanks for your kind response.

    Assuming you have the source data in access97.
    Create tables in Oracle exactly the same as access tables.
    Create links from access ODBC drivers to Oracle tables.
    Export the data from access.
    If you want to keep the sources data in access and update the data everyday, you can use append queries.
    YOu can refresh the data by truncating the destination tables and export fresh.
    Another option is sql*loader. It depends what your situation is.
    null

  • Data archival and purging for OLTP database

    Hi All,
    Need your suggestion regarding data archival and purging solution for OLTP db.
    currently, we are planning to generate flat files from table..before purging the inactive data and move them to tapes/disks for archiving then purge the data from system. we have many retention requirements and conditions before archival of data. so partition alone is not sufficient.
    Is there any better approach for archival and purging other than this flat file approach..
    thank you.
    regards,
    vara

    user11261773 wrote:
    Hi All,
    Need your suggestion regarding data archival and purging solution for OLTP db.
    currently, we are planning to generate flat files from table..before purging the inactive data and move them to tapes/disks for archiving then purge the data from system. we have many retention requirements and conditions before archival of data. so partition alone is not sufficient.
    Is there any better approach for archival and purging other than this flat file approach..
    thank you.
    regards,
    varaFBDA is the better option option .Check the below link :
    http://www.oracle.com/pls/db111/search?remark=quick_search&word=flashback+data+archive
    Good luck
    --neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Archival and Purge for Workflow Approvals

    I am looking for a way to archive at least 10 years worth of Workflow Approvals for Oracle R12 EBS Financials environment. I cannot find any good notes on My Oracle Support or whitepapers other than a basic paper on general archival and purge programs for Oracle R12 EBS. Any tips on how to setup an archival process for Oracle R12 EBS Workflow approvals would be appreciated.
    Thanks
    Ben

    1. SHould have automatic schedules that run to purge/archivePlease see this link -- https://forums.oracle.com/forums/search.jspa?threadID=&q=data+AND+archival+AND+tool&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    2. Keep log of data that is archived/PurgedPlease see this link -- https://forums.oracle.com/forums/search.jspa?threadID=&q=data+AND+archival&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to archive and delete messages in SXMB_MONI

    Hi all,
    We are working on SAP XI Development environment wherein we have File to IDoc scenario running twice daily and creating many messages.
    How to archive and then delete these messages ?
    Does accumalation of past messages affect the speed and performance of the system?
    Thanks in advance.
    Ajay

    Ajay,
    For step by step procedure of how to archieve and delete messages in XI go through the urls:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/402fae48-0601-0010-3088-85c46a236f50
    Delete Messages SXMB_MONI
    http://help.sap.com/saphelp_nw04/helpdata/en/0e/80553b4d53273de10000000a114084/frameset.htm
    Too many questions on Archive/Delete messages.
    ---Satish

  • Recommended Third Party Archive and Purging Software for Oracle Database (Oracle CC&B)

    Hi,
    We are currently exploring third party archive and purging software for Oracle Database specifically used by an Oracle Customer Care and Billing implementation. Our current data is growing that we think archiving and purging is a now a viable option. Thanks.
    Regards,
    Dennis

    According to the fine Oracle® Utilities Application Framework Administration Guide Chapter 17, "Archiving and Purging" is readily available to CC&B.

  • CC&B Archiving and Purging

    Hello,
    Our project is currently exploring the implementation of CC&B's Archiving and Purging Functionality. I have some questions regarding this functionality.
    1. Is there any company or organization that has successfully implemented CC&B’s Archiving and Purging solution?
         a. Was the solution able to effectively control/manage the growth of information (database size)?
         b. Was it able to improve the performance of the production environment?
    2. What are the common challenges when implementing CC&B’s archiving and purging solution?
    3. What is the difference between configuring the archive database to be in the same Oracle instance or separate Oracle instance? Which one is recommended?
         c. If the archived database is configured in the same Oracle instance, does the environment registration utility only creates a schema? During archive, can this reduce the production database size?
    4. What is the impact to ETL (Extract, Transform, Load – Data Warehousing)? (currently using OWB – Oracle Warehouse Builder)
    Thank you,
    Dennis

    http://docs.oracle.com/cd/E18001_02/pdf/E17991_02.pdf

  • How to create and edit anomalous tables in DIAdem? Such as the example list.

    How to create and edit anomalous tables in DIAdem?
    Can the tables  be edited as in MS Word?
    帖子被yangafreet在08-21-2007 10:28 PM时编辑过了
    Attachments:
    table example.doc ‏26 KB

    Hi yangafreet,
    There is no way I know of to create a DIAdem table that looks like the table in your Word document.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How to find and remove obsolete table entries from /SAPAPO/MATKEY table in EWM System.

    Hello,
    How to find and remove obsolete table entries from below tables in EWM System.
    /SAPAPO/MATKEY
    /SAPAPO/MATMAP
    /SAPAPO/MARM
    /SAPAPO/MATLOC
    /SAPAPO/MATMOD
    /SAPAPO/MATRQ
    /SAPAPO/MATLOTSZ
    Thank you,
    Pravin

    Pravin,
    First, tell me how you determine that these entries are 'obsolete'.
    Removing master data from SCM can usually be done using transaction WUF; however, you have to ensure that it is not re-sent to the SCM system, or you are just wasting your time.
    Best Regards,
    DB49

  • Teleservices - Archive and Purge Closed SR,SR Related Tasks and Notes

    Hi All,
    The business wants to archive and purge..
    1) All the closed Service Requests which are older than an year.
    2) SR Related Tasks which are older than an year
    3) SR Related Notes which are older than an year
    Is there any API or way to archive and purge the above three requirements in Oracle Teleservices.
    We are on 11.5.10.2 and database version is 10.2.0.4.0.
    Thanks in Advance,
    S

    Hi,
    11.5.10.2 does not have any API/utilities for any of these. In R12, Service Requests data can be purged using SERVICE REQUEST DATA PURGE program.
    Check Metalink Note#454515.1 for details.
    Regards,
    Sujoy

  • Archive and Purge provisions in GRC suite

    Hi,
    I'm trying to understand the Archive and Purge options provided / offered by GRC suite but have very skeletal information. Can somebody help me on that front?
    Balaji K

    In a nutshell,purging is removal of data from a system or storage device with the intent that the data can not be reconstructed by any known technique. In GRC Suite purging has similar concept to purge incident stored after a long period of tie and storage (AACG). You can also purge snapshop or change tracking definitions in CCG. General rule of thumb, ensure you follow your company policies with regards to data archive and purging and access to these functionalities within the GRC Control Suite should be restricted.

  • How to export and import dependent tables from 2 different schema

    I have a setup where schema1 has table 1 and schema 2 has table2. And table 1 from schema1 depends upon table 2 from schema 2.
    I would like to export and import these tables only and not any other tables from these 2 schemas with all information like grants,constraints.
    Also will there be same method for Oracle 10g R1,R2 and Oracle 11G.
    http://download.oracle.com/docs/cd/B12037_01/server.101/b10825/dp_export.htm#i1007514
    Looking at this For table mode it says
    Also, as in schema exports, cross-schema references are not exported
    Not sure what this means.
    As I am interested in only 2 tables I think I need to use table mode. But if I try to run export with both tables names, it says table mode support only one schema at a time. Not sure then How would the constraints would get exported in that case.
    -Rohit

    worked for my 1st time I tried
    exp file=table2.dmp tables="dbadmin.temp1,scott.emp"
    Export: Release 10.2.0.1.0 - Production on Mon Mar 1 16:32:07 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Username: / as sysdba
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    Current user changed to DBADMIN
    . . exporting table                          TEMP1         10 rows exported
    EXP-00091: Exporting questionable statistics.
    Current user changed to SCOTT
    . . exporting table                            EMP         14 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    Export terminated successfully with warnings.

  • How to copy and paste a table and pictures from pdf files to word using MacBook pro 10.5.8

    Hi Guys,
    I want to copy tables out of a PDF document onto a word document. I only get the text and not the table when I copy and paste. I would also like to know how I can do the same with pictures or diagrams in PDF to word.
    Regards,
    Craig

    You can take picture of anyhting from any document using Command + Shift + 4. Hold all three at the same time and your mouse will turn into a little plus sign where you can then drag across anything you'd like to take picture of it. The picture will be placed on your desktop.
    See if that works for you.

Maybe you are looking for

  • Get all groups from an AD Server

    Hi everyone, I'm trying to get all groups from and AD server. Here's how I'm doing it: DirContext ctx = new InitialDirContext( (Hashtable<String,String>) env);           Name n2 = new CompositeName().add(groupsContainer);           NamingEnumeration<

  • PO-header text(urgent)

    Hi all, I had written the report program to update the heder text of PO.It is working fine but my problem is when i give the new text it gets replacing with old text,but the new text should have to append with old next.The following is the code for w

  • DB_BUFFER_CACHE is static or not in Oracle10g v.2....?????

    Hi , I would like you to confirm if the database's buffer size area in SGA is static or dynamic according to the system needs.... I have somehow been blocked as : SQL> select * from v$sga; NAME                      VALUE Fixed Size              12486

  • Webclient UI login

    Hi Experts       We are facing problem in logging into WebClient UI. The actual problem is that we are unable to get the framework when we click our profile. The display is blank. We have already maintained PFCG roles, Authorization roles, Business r

  • Snapshot Error When Adding Article to Transactional Replication

    I am trying to add an table articles to my transactional replication setup.   When I do, the snapshot error fails with the following message: Source: Microsoft.SqlServer.Smo Target Site: Microsoft.SqlServer.Management.Smo.SqlSmoObject GetSmoObject(Mi