Transferring data from one to another table

I am getting delayed in transffering data from one table to another for the purpose of
making archieve of a transaction table.
The number of records in question are about five million and the time taking is
about 3 to 5 hours in Oracle 10g database in Sun SOLARIS config.
can any one help me in reducing this time

>> I am getting delayed in transffering data from one table to another for the purpose of making archieve of a transaction table.
How you are trying to transferring the data? i.e. What commands you are using for this?
Regards,
Sabdar Syed.

Similar Messages

  • Help for transfering data from one user' all tables to another

    Hello guys,
    I have trim the extra sizes of columns in almost all tables of my database. Before doing this, I saved the data of tables by creating another user "User1" with the same objects and importing dmp file in it. After this I cleared my original objects and reduced the extra sizes of columns alomost in all tables.
    Now I want to transfer data from backup user "User1" into my original user's "User" tables.
    Can any one guid me with the way of doing so, so that I could do it just through 3 or 4 lines of code instead of individualy table wise transfering the data...??
    regards
    Kashif

    SQL> select 'insert into '||table_name||' as select * from user1.'||table_name ||' ;' from user_tables where table_name in ('EMP', 'DEPT') ;
    'INSERTINTO'||TABLE_NAME||'ASSELECT*FROMUSER1.'||TABLE_NAME||';'
    insert into DEPT as select * from user1.DEPT ;
    insert into EMP as select * from user1.EMP ;
    2 rows selected.
    SQL>You could spool the output of the query above to a .SQL script file and then just run it within the same script using @@script_name.SQL.

  • Performance issue while transferring data from one itab to another itab

    hi experts,
    i have stored all the general material details in one internal table and description, valuation details of the meterial is stored in another internal table which is of standard table. now i need to tranfer all the data from these two internal tables into one final internal table but it is taking lot of time as it has to transfer lacs of data.
    i have declared the output table as shown below
    DATA:
      t_output TYPE standard TABLE
               OF type_output
               INITIAL SIZE 0
               WITH HEADER LINE.
    (according to the standard i have to declare like this and the two internal tables are declared similar to the above one)
    could somebody suggest me how shall I procced through this...
    thanks in advance....
    ragerds,
    Deepu

    Have a look at the following article which you may find useful:
      <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40729734-3668-2910-deba-fa0e95e2c541">Improving performance in nested loops</a>
    good luck, damian

  • Fatal error while transferring data from one bb to another

    I was trying to transfer data from one bb to a different bb using the bb desktop manager tool.  It collected all the data from the first bb fine and then while transferring data to the new one it said a fatal error occured to try again.  That bb will not even turn on now.  No white screen or anything.  Its like there is no operating system.  I don't know what to do.  I tried to connect it and just update the software but that isnt working either.  Says it is not responding during initialization! I think I killed it.... any ideas what to do???

    You can try to reload the OS in one of the following ways
    http://www.blackberry.com/btsc/KB03485
    http://blackberryfaq.net/index.php/How_do_I_wipe_the_BlackBerry_using_Jl_Cmder%3F
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

  • BADI for transfering data from one modal to another modal within single appset

    Hallo Experts,
    My Business Requirement is Transfer of data from one modal to another in same environment and did this taking reference from below document.(How to custom badi for replicating destination app)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e04b5d24-085f-2c10-d5a2-c1153a9f9346?QuickLink=index&…
    Document contains TR for implementing BADI, but this document supports bpc version 7.0 and we are using is bpc 10.0.
    So i make all compatible changes in BADI implementation and activate it. Now i am testing using transaction UJKT using following script.
    and the result is records successfully written back to application MIS, but when i check data is not moved to target application MIS.
    I am facing stuck situation in my project work. Please Suggest. Hope for positive reply.
    Script:
    *XDIM_MEMBERSET WM_ACCOUNT = WM_041,
    *XDIM_MEMBERSET WM_UOM_02 = UOM_004
    *XDIM_MEMBERSET WM_UD_2 = WM_07
    *XDIM_MEMBERSET WD_EXT_MAT_GRP =CHALK-PH-I,CHALK-PH-II,CHAVN-PH-I,CHAVN-PH-II,NASHIK-WM,RAJASTHAN-WM,TAMILNADU-WM
    *XDIM_MEMBERSET CATEGORY= Plan
    *XDIM_MEMBERSET AUDITTRAIL=Input
    *XDIM_MEMBERSET P_ENTITY = SIL
    *XDIM_MEMBERSET RPTCURRENCY = LC
    *START_BADI DAPP
       DESTINATION_APP ="MIS"
       RENAME_DIM ="WD_EXT_MAT_GRP= PRODUCT"
       ADD_DIM ="PLANT=NO_PLANT","MIS_ACCOUNTS=CAIN0058040008","COST_CENTER=NO_COST_CENTER","FLOW=Opening","UOM=AMT","CUSTOMER_SALES_2=NO_CUSTOMER","CATEGORY=Plan","AUDITTRAIL=Input"             
       DEBUG = ON
       WRITE = OFF
       QUERY = ON
    *END_BADI
    Please find attached result.
    Regards,
    Dipesh Mudras.

    Hello,
    Here is the manual to copy data between apps (it works with BPC NW75):
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0480970-894f-2d10-f9a5-d4b1160be203?quicklink=index&overridelayout=true
    It works me, but now I need to modify the Script Logic to make that a "property" from the origin dimension has to be copied to the destination dimension as "id", like follow:
    //*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
    //*XDIM_MEMBERSET TIME = %TIME_SET%
    //*XDIM_MEMBERSET ENTITY = %ENTITY_SET%
    //*XDIM_MEMBERSET RPTCURRENCY =  %RPTCURRENCY_SET%
    *START_BADI FiltroPD
         WRITE = OFF
         APPL = $APPLICATION$
         ADD_DIM = "ORIGEN = APPVENTAS"
         ADD_DIM ="O_COSTE = no_input"
         ADD_DIM="CECO = no_input"
         RENAME_DIM="P_ACCT = RATIOS.P_ACCT "
    *END_BADI

  • Transferring data from one PRD to other PRD server

    HI All,
    I have read weblogs in transferring scenarios from Dev to Qual to Prod.
    But I have a different requirement in which I have to transfer data from one production server to another production server.
    Say A and B are two production servers, I wanted to transfer data from A to B.
    Please give me some ideas on this....
    rgds,
    ravindra.

    HI
    /people/sap.india5/blog/2005/11/03/xi-software-logistics-1-sld-preparation
    with reference to the above weblog, while I am trying to transfer SLD objects from Dev to Prod I couldnt able to find the buttons Remove and Export in Software Catalog.
    But the same buttons are there in Technical and Business Systems.  If I export from Business system, the related TS, Product and SWCV gets exported or not.
    Plz suggest me how to go ahead.
    Thanks in advance.
    Ravindra.

  • Transferring data from one table to another table using a Keycolumn using SSIS row by row dynamically

    Hi All,
    I have a Store Procedure(SP) which has a output variable name "AcivityID" which is the key column. In this SP, transformation  of data is done from one table to insert data into other table. I have to execute the SP and insert row by row data
    using the output variable "ActivityID"  whose value will keep on changing. How can I do it?
    Thanks,
    Kallu

    Value changing on a row by row basis? Not quite sure what you mean, but it seems that you want to use the results of an insert into one table as input for another. If so then SSIS is not needed, inside the stored proc use the SQL that will do that and for
    all records as
    INSERT A INTO dbo.table1
    OUTPUT INSERTED.A INTO MyTable;
    Arthur My Blog

  • Transferring data from one table to another

    I have two tables.i have some information existing in one of the tables.this information is defined at the broadest possible level e.g. Level A has one row.
    I have to transfer this information to the other table when asked to by the user, but the problem is that the other table needs to have 64 rows created corresponding to the single row in the first table,i.e the other table will have 64 rows corresponding to a single row in the first table.
    This needs to be done as quickly as possible so that the system does not hang and the other processing logic continues.
    Moreover the first table can have more rows and each row may have 64 instances created in the other table when asked to by the user.
    Please help if anyone has answer to this query.Any kind of algorithm will help.

    Walk through the fist table, and for each row make 64 inserts.
    Do it in one transaction (i.e. without autocommit) to speed it up a bit and improve data consistency. Don't forget to commit at the end. If that seems to be too slow, you can always make a stored procedure to do the same to avoid round trip time for each insert statement if the database is on another machine...

  • Transferring data from one internal table to another

    Hi,
    I have two internal tables it_acct and it_acct1 as below.
    data: begin of it_acct occurs 0,
          belnr like bkpf-belnr,
          bldat like bkpf-bldat,
          augcp like bseg-augcp,
          vbeln like bseg-vbeln,
          end of it_acct.
    data: begin of it_acct1 occurs 0,
          belnr like bkpf-belnr,
          cpudt like bsad-cpudt,
          vbeln like bseg-vbeln,
          end of it_acct1.
    select belnr cpudt vbeln into corresponding fields of table it_acct1
                  from bsad where cpudt in s_cpudt.
    Now I want to move the data from it_acct1 to it_acct . I have no data in it_acct now.
    i want to move it_acct1-belnr to it_acct-belnr,
              move it_acct1-cpudt to it_acct-augcp,
              move it_acct1-vbeln to it_acct-vbeln.
    Can someone help me how to code to move the data from it_acct1 to it_acct.
    Regards,
    D

    Hi Dev,
    Just add an additional line in Naren's code to get proper results at any time.
    LOOP AT IT_ACCT1.
    IT_ACCT-BELNR = IT_ACCT1-BELNR.
    IT_ACCT-VBELN = IT_ACCT1-VBELN.
    it_acct-augcp = it_acct1-cpudt.
    APPEND IT_ACCT.
    <b>CLEAR IT_ACCT.</b>
    ENDLOOP.
    If you didnt include CLEAR statement, even if IT_ACCT1 doesnt have any values for all fields or few fields in the next record, it will take values of previous one and it may lead to improper results.So it is a good practise to have CLEAR statement after APPEND statement in LOOP...ENDLOOP.
    Thanks,
    Vinay

  • Transfering Data from One table to another

    Hi all,
    Can we transfer data from Cluster Table to ZTABLE (Transparent Table)?
    if Yes, How can we do that?
    Thanks
    Devinder

    Hi,
    Generating a (surrogate) primary key value is usually done using:
    A) an Oracle sequence to generate a number
    B1) refer to the NEXVAL of the sequence in your insert statements
    or
    B2) a trigger on your agents table that populates agent_id by referring to the NEXTVAL of the sequence.
    Both approaches have pro's and con's, see what best fits your requirement.
    See this explanation (including examples):
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:6575961912937#tom6583848685931
    Also, since you're new to SQL, check the [Oracle docs|http://www.oracle.com/pls/db102/homepage].
    (Or http://www.oracle.com/pls/db112/homepage if you're on 11G)
    Especially the Concepts and Fundamentals.

  • Help transferring data from one account to another

    I bought my computer in August 2008 and had previously had an iBook. When transferring my data from my old computer to the new one, I guess I did it wrong so instead of it transferring all to the same place it created two accounts.
    Is there way to transfer my music/pics etc to my main account?
    Also, my iphone is backed up the other account because thats where all my music is, is there a way to also keep all this data once I am using only the main account?

    When you use Migraine Assistant, it transfers the account of the older machine to the newer because the users name is involved in everything, like iTunes playlists etc.,
    Since to run Migraine Assistant you need to have gone through setup on the Mac and created the main Admin account, when you Migrate, you transfer the other account so you wind up with two accounts on the new machine.
    All you have to do is log into the Admin account of the first user you created, then change the acount status of the Migrained account to Admin and reboot, check it out well, then delete the first Admin account at your own leaisure. However it's best to leave two accounts on the machine, just in case your locked out for some reason.
    If you rather transfer your files from one account to another use the Shared Drop Box
    If you have three accounts on the machine (original admin and two migrained migrateda accounts), you'll just have to monkey around and clean up the mess.

  • Transferring data from one mac pro to another with firewire

    I have owned an ibook G4 and a Macbook pro 17 in. The Macbook Pro 17 in was a 2006 and the video went out on it/conveniently 1 mo after Applecare expired!. I took it in and the genius bar sent it out to the depot but they determined it was damaged and refused to fix it (it had a tiny dent on the lid that I do not know how it got there unless the mag adapter did it while in the case). So I lost a $3k laptop. I now have a new Macbook Pro 15 in just purchased and I transferred all the data from the ibook G4 and the 17 in. by firewire using migration assistant. The problem is I have about 5 accounts now because it would not let me transfer things under the same name so I had to rename accounts and create new ones in order to transfer stuff. My question is, how do I go about incorporating all the accounts into one on this new 15 inch MBPro?

    Target disk mode may be what you're looking for. Hold down the "T" key while booting. See the Apple support article for more information.
    http://support.apple.com/kb/HT1661

  • Help transferring data from one computer to another

    My aunt uses Palm Desktop as her calendar but does not have a palm pda or phone.
    Her computer at home recently died but she was able to get the palm installation folder from the old hard drive.
    She has Palm Desktop installed at work but the information in it is totally different than what she had at home.  She wants to import the data from her home installation into the installation she has at work.
    It used to be really easy to transfer settings from one Palm installation to another.  Side note: My wife has a Palm Treo 650 and I recently formatted her computer and tried to copy her old installation folder from a backup to the new install directory.  Well, it didn't work like it used to.  I don't know if the software has changed or what.  But, she didn't get everything.  It's been a while, I can't remember if she didn't get ANY of it, or just some.  I remember at one point it only showed her contacts for A-M...N-Z were just plain gone.  Really strange.
    But, back on topic, I tried creating a new user in Palm Desktop and then copy the files under her old username folder to the new username folder in the Palm install directory.  But, Palm Desktop doesn't show anything for the new username.
    How should I go about doing this for her?
    Thanks!
    Post relates to: Treo 650 (Alltel)

    The user on her home install was also Trisha.  So, I created a new user on the work computer, "Trisha2".  Then I closed Palm and copied the contents of her backed-up Trisha user folder from home into the new Trisha2 folder on the work install.  Then I started Palm and flipped to the Trisha2 user.  Nothing showed up.  So, I've pretty much done the exact process from the link already.  Which is exactly the way I thought it should work and have had it work in the past.
    I'll try it again without using numbers in the username and see what happens.
    Thanks!
    Post relates to: Treo 650 (Alltel)

  • Transferring data from one schem to another

    Hi:
    I am looking for an efficient way to transfer all the records from one table in a certain schema to it's identical counterpart in another schema. Both schemas are in the same Instance. The tables are "identical" in that they have the same columns as metadata. Any suggestions?
    I would like this to be as quick a transfer as possible, so, if it would speed things up, I would like to consider deferring update of indexes of the receiving table until after the records have moved. Is that sort of thing possible? A less attractive approach would be to drop all the indexes, then transfer the records, then recreate all the indexes.
    The receiving table will be truncated just prior to the transfer, so perhaps all forms of journaling/undo can be shut off (no need to recover if the transfer failed)
    Thanks for any help

    You could certainly drop and recreate the indexes as another part of the answer, but the fastest transfer would be a direct-path insert:
    insert /*+ append */ into target
      select * from source;

  • Transferring data from one DB to another DB

    Hi Experts,
    In production database 30 tables are there in different schemas.
    In some tables data is existed for 5 years
    in some tables data is existed 8 years
    in some tables data is existed for 6 years.
    And all these tables are having billions and millions of records.
    Let us assume the tables in the production database are
    Table1 -- 8 years data -- No. Of Records 3538969000
    Table2 -- 6 years data -- No. Of Records  592844435
    Table3 -- 3 years data -- No. Of Records   33224993
    Table4 -- 4 years data -- No. Of Records   52361756
    Table5 -- 5 years data -- No. Of Records    8948567
    Table15 -- 6 years data -- No. Of Records 308476987Now I want to trnasfer these 15 tables data to test database.
    Based on the following conditions.
    For Table1 I want to transfer 6 years data to test database, keeep 2 years data in production
    and delete all 6 years data from production databse.
    For Table2 I want to transfer 4 years data to test database, keeep 2 years data in production
    and delete all 4 years data from production databse.
    For Table3 I want to transfer 2 years data to test database keeep 1 years data in production
    and delete all 2 years data from production databse.This will be done periodically.
    I.e. suppose if we run the script now and transfer the requested data to test database,
    again after one year the data got increased in production then again we have to run the
    script and transfer data to test database based on some conditions,so it should work for
    long time.
    Please help me what is the good and fast process to transfer the data.
    Thanks in advance.

    Thanks for your information.
    Hi ,
    To make the process dynamic why we want to make it dynamic in future any tables needs to e archived
    only one script should execute.
    I have created the below control table to pass ID, TABLE_NAME, ARCHIVE_TABLE_NAME, WHERE_CONDITION dynamically.
    ID  TABLE_NAME ARCHIVE_TABLE_NAME  WHERE_CONDITION
    1   Table1     archive_table1       created_date< MONTHS_BETWEEN(SYSDATE,-24)
    1   Table2     archive_table2    Accepted_date< MONTHS_BETWEEN(SYSDATE,-24)
    1   Table3     archive_table3    last_proposal_date< MONTHS_BETWEEN(SYSDATE,-24)
    1   Table4     archive_table4    lat_modified_date< MONTHS_BETWEEN(SYSDATE,-24)
    2   Table5     archive_table5       changed_date< MONTHS_BETWEEN(SYSDATE,-24)
    2   Table6     archive_table6    received_date< MONTHS_BETWEEN(SYSDATE,-24)
    3   Table7     archive_table7       send_date< MONTHS_BETWEEN(SYSDATE,-24)
    3   Table8     archive_table8       exact_date< MONTHS_BETWEEN(SYSDATE,-24)I want to pass ID from the JOB then the procedure should execute for all the tables with respective ID.
    this is my job
    DECLARE
      X NUMBER;
    BEGIN
      SYS.DBMS_JOB.SUBMIT
      ( job       => X
       ,what      => 'APPS.myprocedure(1);'
       ,next_date => to_date('24/12/2012 00:00:00','dd/mm/yyyy hh24:mi:ss')
       ,interval  => 'TRUNC(SYSDATE+1)'
       ,no_parse  => FALSE
      SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
    COMMIT;
    END;
    For example if I pass the ID as '1' through job,then the procedure should execute for
    1   Table1     archive_table1       created_date< MONTHS_BETWEEN(SYSDATE,-24)
    1   Table2     archive_table2    Accepted_date< MONTHS_BETWEEN(SYSDATE,-24)
    1   Table3     archive_table3    last_proposal_date< MONTHS_BETWEEN(SYSDATE,-24)
    INSERT INTO archive_table1
    (SELECT * FROM Table1 WHERE created_date< MONTHS_BETWEEN(SYSDATE,-24));
    DELETE FROM Table1 WHERE created_date< MONTHS_BETWEEN(SYSDATE,-24));
    INSERT INTO archive_table2
    (SELECT * FROM Table2 WHERE created_date< MONTHS_BETWEEN(SYSDATE,-24));
    DELETE FROM Table2 WHERE created_date< MONTHS_BETWEEN(SYSDATE,-24));
    INSERT INTO archive_table3
    (SELECT * FROM Table3 WHERE created_date< MONTHS_BETWEEN(SYSDATE,-24));
    DELETE FROM Table3 WHERE created_date< MONTHS_BETWEEN(SYSDATE,-24));If I pass ID as 2 through job,then the procedure should execute for respective table names and where conditions.
    I have written the following code but it's not giving expected result.
    CREATE OR REPLACE PROCEDURE myprocedure (P_ID IN NUMBER)
    IS
       CURSOR C IS
          SELECT id, table_name,archive_table_name,where_condition FROM apps_global.control_ram WHERE id=p_id
          ORDER BY id,table_name;
    BEGIN
       FOR I IN C
       LOOP
    EXECUTE IMMEDIATE 'INSERT INTO '|| I.ARCHIVE_TABLE_NAME || '
    (SELECT * FROM '|| I.TABLE_NAME ||' WHERE '||I.WHERE_CONDITION||)';
    EXECUTE IMMEDIATE 'DELETE FROM ' ||I.TABLE_NAME|| ' WHERE '||I.WHERE_CONDITION||' ;
       END LOOP;
    END;
    END myprocedure;Please help me.
    Thanks in advance.

Maybe you are looking for

  • The power cord to my hp photosmart plus printer b209a does not work. what can i do?

    The warranty for my computer's printer is up, but the printer has not turned on for quite a while. After going through the HP troubleshooting - nothing seems to work. When the power cord is plugged in, the green indicator light does not light up and

  • Can't delete folder

    Hi folks. I've got a 5th generation ipod, fat32 fomatted. I often use my ipod to bring some data from a to b, so i created a folder called "data". But now there always remains a file of 0Kb in the folder. Though this file actually can be deleted usin

  • Outbound EDI IDOCs for G/L document posting

    Hi All, I'm trying to generate outbound IDOCs from G/L documents (FB70, FB75 transactions). Of course INVOIC IDOC type does not work for this. Does anybody know which is the IDOC type for G/L documents? Really appreciated any help. Thanks and regards

  • 2 recordsets: 2 file need to be created.

    Hi Experts, I've a message type with 2 record sets. For each recordset, one file needs to be created. For Ex: MT ...RecordSet_1 ..........ID ..........FirstName ..........LastName ...RecordSet_2 .........Country At a certain point of time, I am requi

  • IPlanet Web Proxy Server 3.6 and emptying out the cache.

    Hello. I'm wanting to empty out our proxy server's cache in an attempt to resolve one of our users help desk problems - a web site they are accessing is not loading correctly when going through the proxy server, bypassing the proxy server works. The