Urgent Archiving tables in ORACLE

Hello Every body,
Any body having experince in archving records using oracle please help me...
My client need a way to archieve the history records but Oracle documentation does not provide the exact procedure as how to archive the records so that it can be restored later......
If anybody is aware of it ...Please go forward and shared your experirnce as what is the exact procedure....
Also if the exact procedure is not provided by Oracle is there any third party software avaliable that would help.....
Regards
Mahesh

I don't know of any third party software, though that doesn't mean none exists. If we're talking just 1 or 2 tables, though, it's a pretty easy script to write yourself.
1) Call SQL*Plus and have it
- truncate table <yourArchiveTable>
- insert into <yourArchiveTable> (<select rows you want to archive>)
- delete rows you want to archive from table
2) Call exp to export the data from <yourArchiveTable> to a flat file.
3) Move this flat file wherever you'd like
On the restore side,
1) Call imp to insert data back into <yourArchiveTable> (you might choose to have both an incoming & outgoing archive table)
2) inset into <yourTable> (select * from <yourArchiveTable>
If you partition the table and are able to limit the archive & restore to a single partition, it's even easier. For individual tables, it shouldn't take more than a day or two to roll the code.
If you need more complicated logic, i.e. some rows that you archive aren't removed from the database, resolving collisions if you try to insert rows back into a table where they might have changed, that increases the complexity significantly. Since dealing with these sort of cases requires very particular business logic, though, there's no tool in the world that would be able to handle it-- you'd have to roll your own.
Justin

Similar Messages

  • Urgent Need for creating 100 tables in Oracle.

    Hello All,
    I need to create 100 tables in oracle using a loop.
    Please suggest . Advance thanks for your efforts.
    ANto

    I am getting the foll error at run time when executing the procedure ..
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "ORAUSER.CREATE_100_TABLE", line 9
    ORA-06512: at line 1
    The script goes here ...
    create or replace procedure create_100_table
    is
    v_sql_string varchar2(200);
    begin
    for i in 1..100
    loop
    v_sql_string := 'create table ajames' || i || ' as select * from emp';
    execute immediate v_sql_string;
    end loop;
    end;
    ------------------------

  • What are the cleanup opportunities in term of Temporary tables,Archive tabl

    what are the cleanup opportunities in term of Temporary tables,Archive tables etc...
    can you provide any scripts which will give storage by environment and by Oracle ID.(to check size in terms of GB)
    Example:
    =========
    APPS : xxxGB

    for archiving and purging, take a look at the documents below.
    Reducing Your Oracle E-Business Suite Data Footprint using Archiving, Purging, and Information Lifecycle Management [ID 752322.1]
    Edited by: Erman Arslan on 31.Ara.2012 03:35
    Edited by: Erman Arslan on 31.Ara.2012 03:37

  • What are the different types of tables in oracle --plz help

    I want to know the different types of tables in orcle...Please help me

    There are seven types of tables in Oracle.
    1.Heap organized tables
    2.Index organized tables
    3.Index clustered tables
    4.Hash clustered tables
    5.Nested tables
    6.Global temporary tables
    7.Object tables
    Source:http://www.adp-gmbh.ch/ora/concepts/tables.html
    But if you are asking table types in the uses senses then they are n types :
    1.Stage tables
    2.Operational tables
    3.Functional tables
    4.Disposition tables
    5.Archive tables
    6.Other tables
    Source:http://www.databasejournal.com/features/oracle/article.php/3616476/Types-of-Tables-in-Oracle.htm
    And yes of course, the complete detail can be found in documentation.
    HTH
    Girish Sharma

  • How to programmatically connect to MS Access linked tables to oracle ?

    Hi,
    I have database in MS Access which has linked table in oracle database.
    But I am not able to connect to that linked table through java program .
    It gives me java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] ODBC--connection to 'servername' failed.
    Can anybody suggest me how to tackle this problem?

    This blog post should have most (if not all) of what you need:
    http://blogs.technet.com/b/heyscriptingguy/archive/2009/02/16/how-can-i-use-windows-powershell-to-create-an-office-access-database.aspx
    One thing to watch out for is the db provider for the connection string.  The "Jet Engine" has been superseded by
    ACE.

  • Archiving Standards for Oracle 9i/10g

    Does any know know if there is any official archiving standards for Oracle 9i/10g?
    If yes, would you give the hyperlinks to their documents. Thanks.

    1) Archive logging and archiving old data records are two radically different concepts. Archive logging is something the database does in ARCHIVELOG mode where an archiver process copies the online redo logs to separate files (archive logs) that are used for backup and recovery purposes. Normally, archive logs are retained just long enough to be useful in recovering the last N backups that have been taken, where N depends on the organization, the criticality of the database, the backup strategy, etc.
    2) For archiving old data records, the approach is going to be driven based on the organization's particular requirements and the type of data we're talking about. Among the options
    - An ETL process that moves data from an OLTP system to a data warehouse of some description for historical reporting.
    - Writing old records to flat files that can be compressed and stored on cheap media (i.e. DVDs) and writing loader applications that can restore the old data to the database.
    - Using partitioning and ILM (Information Lifecycle Management) to do things like moving older partitions of a table to less and less expensive media over time, compressing older partitions, dropping the oldest partitions, etc.
    Justin

  • Options to Archive Tables in 10g

    Hi
    I just want to archive one table in oracle 10g data base. Can any on tell me the options to do that?
    I have 65M records in that table. Also Do I need to rebuild indexes after archiving the tables?

    What do you mean with archiving ??
    We e.g. purge data from tables every three months.
    This data then is stored in a history database, with an identical schema and identical tables.
    To access this historical data an overall history view is created in the source database, that accesses the local real-time table and - through a database link - the history table
    After purging data from a table it is smart to shrink (oracle 10g and above ) or rebuild the table and the indexes

  • Insert /delete data from SAP Z table to Oracle table and opposite

    Hi,
    Can u help me write this FM from the SAP side?
    So, I have two tables ZTABLE in SAP and Oracle table ORAC.
    Let's put three columns in each of them, for example
    TEL1
    TEL2
    ADRESS
    NAME
    where TEL field is primary from ZTABLE to ORAC...
    (in FM there shoud be abap code for writing data in ZTABLE after we press some pushbutton made in sap screen painter..)
    for example, when we write new record in ZTABLE
    00
    112233
    Street 4
    Name1
    this data shoud be inserted in Oracle table ORAC.
    when we write new record in Oracle table for example
    01
    445566
    New Street
    Name2
    this data shoud be inserted in ZTABLE.
    Field TEL1 can be only of two values 01 or 02, other combination is not valid...
    I must have all data from Oracle table ORAC in ZTABLE and opposite.
    It should be the same scenario for DELETE...
    And this communication should be online between sap and table in oracle database...
    Can u help me from sap side? and give idea how to configure on oracle side??
    Thanks a lot,
    Nihad

    I dont know if we can directly connect to a oracle database ( wait for the answers from others on this )
    but in XI we have the JDBC adaptor to insert and retrieve data.
    so for the outbound from SAP the flow can be something like this (with XI in landscape):
    1) You have a screen to maintain a new entry / delete an entry
    2) On save , this record gets saved or deleted from the Ztable in SAP
    3)) In the same screen you can call a proxy class-method (generated using SPROXY transaction ) to send the record to XI.
    4) XI to format it and insert into the oracle table
    Mathews

  • How to hide the data in particular table in oracle 10g

    How to hide the data in particular table in oracle 10g
    i want steps

    If its on Report u can  always hide the column - Keyfigure or Selection - Display - Hide......y do u want to have it on the report if it is to be hided in the first place?

  • How to disable a table in oracle?

    Hi,
    Can anyone tell me if its possible to disable table in oracle>
    Thanks and Regards

    user598986 wrote:
    Hi,
    There is a scenario where :
    Schema A has A_ and B_ tables
    If I login to Schema A only A_ will have the access rights tables with B_ will not have access to the user.
    If Schema A owns both the tables than there is no way to do what you have mentioned. An owner can do whatever he wants to do with his objects. If the table B has been "given" to the user A than from the grantor, revoke the privs of this table and it won't be accessible to the user A, the same what Laura has mentioned to do already. You can't "switch off" a table from the user AFAIK.
    HTH
    Aman....

  • How to tune a table in oracle

    hi
    can anyone please help me in tunning a particular table in oracle which has millions of Record
    kindly help me for the procedure to tune the table...
    thanks
    Regards
    Misin

    What's the Oracle version?
    Does this table have LOB column ?
    Make sure it's on locally managed tablespace.
    Collect stats on the table and indexes if there is massive updates on the table.
    Actually it's not about tuning the particular table but tuning the queries that your application use to access the table.
    That in turn raise the question what's the nature of your application, is it DDS or OLTP application?
    Do you experience any performance issue related to this table at all?

  • How to create a table in Oracle Lite database?

    Hi,
    I have installed SOA 10.1.3 on my laptop. Now I am trying to create a table in the database to do some own examples. I have problem in installing oracle database. So I am trying to create a table in Oracle Lite database which comes with SOA suite. I am not able to do it, can some body suggest me please?
    Regards
    Khaleel

    HI James,
    Thank you so much. I am able to create table and insert rows and able to select them too. However I am not able to use these tables in my BPEL process for my practice. The DB adapter is throwing some error, any idea?
    --khaleel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to get all tables in oracle sql developer with MS SQLServer

    Hi All,
    I am using microsoft SQL server 2000. For displaying the tables and other stuff i am using oracle SQL developer tool. The problem is when i connect to sql developer with oracle database i can see all the tables in that database. But when i connect to MS SQL server database it is not showing all the tables in that database. I don't know why?.
    i tried doing the samething using another tool called Aqua Data Studio , there i can able to see all the tables in microsoft SQL server 2000.
    do you have any knowledge regarding this, why i am not getting all the tables in oracle sql developer when i connect to microsoft SQL server 2000.

    Same issue here. Haven't found the answer yet..

  • Retrieve data from a large table from ORACLE 10g

    I am working with a Microsoft Visual Studio Project that requires to retrieve data from a large table from Oracle 10g database and export the data into the hard drive.
    The problem here is that I am not able to connect to the database directly because of license issue but I can use a third party API to retrieve data from the database. This API has sufficient previllege/license permission on to the database to perform retrieval of data. So, I am not able to use DTS/SSIS or other tool to import data from the database directly connecting to it.
    Here my approach is...first retrieve the data using the API into a .net DataTable and then dump the records from it into the hard drive in a specific format (might be in Excel file/ another SQL server database).
    When I try to retrieve the data from a large table having over 13 lacs records (3-4 GB) in a data table using the visual studio project, I get an Out of memory exception.
    But is there any better way to retrieve the records chunk by chunk and do the export without loosing the state of the data in the table?
    Any help on this problem will be highly appriciated.
    Thanks in advance...
    -Jahedur Rahman
    Edited by: Jahedur on May 16, 2010 11:42 PM

    Girish...Thanks for your reply...But I am sorry for the confusions. Let me explain that...
    1."export the data into another media into the hard drive."
    What does it mean by this line i.e. another media into hard drive???
    ANS: Sorry...I just want to write the data in a file or in a table in SQL server database.
    2."I am not able to connect to the database directly because of license issue"
    huh?? I never heard this question that a user is not able to connect the db because of license. What error / message you are getting?
    ANS: My company uses a 3rd party application that uses ORACLE 10g. And my compnay is licensed to use the 3rd party application (APP+Database is a package) and did not purchased ORACLE license to use directly. So I will not connect to the database directly.
    3.I am not sure which API is you are talking about, but i am running an application of the visual studio data grid or similar kind of controls; in which i can select (select query) as many rows as i needed; no issue.
    ANS: This API is provided by the 3rd party application vendor. I can pass a query to it and it returns a datatable.
    4."better way to retrieve the records chunk by chunk and do the export without loosing the state of the data in the table?"
    ANS: As I get a system error (out of memory) when I select all rows in a datatable at a time, I wanted to retrieve the data in multiple phases.
    E.g: 1 to 20,000 records in 1st phase
    20,001 to 40,000 records in 2nd phase
    40,001 to ...... records in 3nd phase
    and so on...
    Please let me know if this does not clarify your confusions... :)
    Thanks...
    -Jahedur Rahman
    Edited by: user13114507 on May 12, 2010 11:28 PM

  • Unable to retrieve data from a nested table in Oracle 8i from JSP

    How do i retrieve data from a nested table in Oracle 8i from my JSP code?
    When i try to execute the query , a general error is thrown.
    Kindly advice as soon as possible.

    How do i retrieve data from a nested table in Oracle 8i from my JSP code?
    When i try to execute the query , a general error is thrown.
    Kindly advice as soon as possible.

Maybe you are looking for

  • 2008.007 Security Update Will Not Boot - 2 different MacBooks

    I installed the 2008.007 update on a 15" first gen MacBook Pro and an 11 month old 17" Santa Rosa 2.4ghz MacBook Pro today. Both rebooted successfully the first time and we could login but on a reboot or second user login we got a peculiar blank blue

  • 3D options not working in CS6 extended

    Trying to get the 3D option to work but only have  "Get More Content" available in the menu. Using CS 6 13.0.6 x64 Extended on a new mac with NVIDIA GeForce GTX 675MX 1024 MB graphics card. Set the file up in RGB in 8, 16 and 32 bit but no luck. What

  • 8350i address download to car not working

    3 day old 8350i on Nextel network will not download contacts to my 2009 BMW.  It tries to transfer contacts but fails.  BMW site says it does not support 8350i.  Bluetooth to car is not dependable. My 7100i Blackberry (6 years old worked fine).  Blac

  • How to limit the records in the query output

    Hi Experts, I have key figures A,B, and C. I want to get the output which shows the key figures B and C values, where values for key figures A is equal to zero. Any help is much appreciated. Thanks,

  • Transfer rate with USB 5102 is very slow (8 updates/sec). Any possible way to increase it??

    Taking 100 microsec data from 32 sensors we want to monitor results in real time. Because of slow data transfer protocol (niScope_InitiateAcquisition - niScope_FetchBinary8 loop) for USB NI5102 (~125ms) we can update only every 4 sec. Any way to spee