Merging data from 2 schemas with same object structure into one schema

Hi
I want to merge data from 2 schemas in different environments ( say test1 and test 2) into 1 schema ( say Test_final) for testing. Both these schemas are having same structure, the data can be same or different.
What I did is that I took an export of schema on Test1 and then import it into Test_final. Now I need to merge/append data from Test2 into Test_final.
I can not merge the data with import due to primary key constraints and also import doesnt support this feature, so I tried SQL*Loader to "append" the data by using sequence to generate Primary key.
But my worries are that since new primary keys are generated so foreign keys will become invalidated and the data will not be consistent.
Is there any other way to do this task..
Regards
Raman

This approach might be better...
create table test_final
as
select *
from schema1.test1
insert into test_final
select t2.* from schema2.test1 ,  test_final tf
where t2.pk != tf.pk
/...assuming duplicate primary keys mean duplicate records. If that assumption is not the case then you have a more complex data migration exercise on your hands and you need to figure out some rules to determine which version of the data takes precedence.
Cheers, APC

Similar Messages

  • Two albums with same name combined into one

    I have two greatest hits albums by different artists. Both albums are called 'greatest hits'. In iTunes on my Mac they appear as two different albums. I've just synched my music from my Mac to my iPhone (iOS8 I think). The albums have been merged into one greatest hits album (artists X songs have been added to artists Y a. How do I stop this?
    On my Mac I've renamed one album 'hits' and then resynched. There are now two albums: Hits by artist Y and Greatest Hits by artist Y (with no album artwork and the songs are actually by artist X).
    Thanks for any helps

    iTunes identifies an album by its name. If there is more than one album with the same name then iTunes will see it as one album. As you have found you have to give them different names.

  • How to get the data from 2 out ports (tables) of BAPI into one table

    I have a BAPI that has two out ports (header and detail). How do I display this data in one table.
    Thanks,
    Subba

    Hi,
    you have the Union operator to merge multiple datasets into one dataset
    regards Tobias

  • Collating PDFs with similar table structure into one excel / text file

    Hi, I'm using Adobe Acrobat X v10.1.1.  I have multiple PDFs which aswell as containing pictures, contain the same table of data in each one.  This is in the same format in each one and I want to extract each table's data and collate into one text file(This is a small table of data, 3 x 3).  I explored the option of exporting FDF data and then using a 3rd party tool to convert all into an excel file, however, the forms option in my tools menu won't expand.  I am possible making this more difficult for myself than is necessary.  Has anyone attempted something similar before and what would recommendations of approach be?
    Thanks for any help.
    Al.

    use logical database SDF, nodes ska1 and  skc1c
    A.

  • Retrieving Data from different Tables with same tuple name

    Hi,
    I am made the following query from different tables. A tuple "name" is appearing in some tables. So when I run the qiery in a Java class, it delivers the same result of c.name, bpl.name and p.name. The result of c.name is correct, but the other 2 names are overwritten. It works perfect in a postgreSql query tool. How can I correct it, plz?
    SELECT c.ad_client_id, c.name, o.c_order_id, o.ref_order_id, bp.name, bpl.name, o.dateordered, o.datepromised, od.c_orderline_id,p.m_product_id,p.name, cur.iso_code, od.qtyordered
    FROM adempiere.ad_client c, adempiere.c_order o, adempiere.c_orderline od, adempiere.c_bpartner bp, adempiere.m_product p, adempiere.c_bpartner_location bpl, adempiere.c_currency cur
    WHERE c.ad_client_id =11 and c.ad_client_id = o.ad_client_id and bp.c_bpartner_id=o.c_bpartner_id and o.c_order_id = od.c_order_id and od.m_product_id = p.m_product_id and o.c_bpartner_location_id =bpl.c_bpartner_location_id and o.c_currency_id=cur.c_currency_id;
    Cheers

    Hi,
    create alias, if u have similar field names as below. Use the alias name (rs.getString("cname") and rs.getString("bpname") and so on ) to retrive data.
    SELECT c.ad_client_id, c.name as cname, o.c_order_id, o.ref_order_id, bp.name as bpname, bpl.name as bplname, o.dateordered, o.datepromised, od.c_orderline_id,p.m_product_id,p.name as pname, cur.iso_code, od.qtyordered
    FROM adempiere.ad_client c, adempiere.c_order o, adempiere.c_orderline od, adempiere.c_bpartner bp, adempiere.m_product p, adempiere.c_bpartner_location bpl, adempiere.c_currency cur
    WHERE c.ad_client_id =11 and c.ad_client_id = o.ad_client_id and bp.c_bpartner_id=o.c_bpartner_id and o.c_order_id = od.c_order_id and od.m_product_id = p.m_product_id and o.c_bpartner_location_id =bpl.c_bpartner_location_id and o.c_currency_id=cur.c_currency_id;Regards,
    Ram

  • Why has mail on the ipad grouped several emails from different people with different subject matter into one thread?

    This is really annoying.
    The email initially started with me sending to one person. Which we then conversed several times without any issues.
    I then sent a separate email completely unrelated to someone on a completely different email address, but when they replied back somehow their reply joined the same thread as this other email i sent initially.
    Thinking that it might be a one of... I ignored it.
    However, just now, an email i created through the LinkedIn app, which i sent from LinkedIn to a contact, somehow joined that first thread, when the person on linked in replied back to me.
    Obviously i receive an email to my Mail account whenever someone messages me on linked in... But why on earth would that reply automatically get grouped into the completely different thread of emails?
    I NOW have emails to three different people who are completely unrelated with three completely unrelated subjects, that are appearing in one thread with no obvious way to separate these.
    Any solutions or suggestions? I've tried to move them, but it will only let me move the the messages into different folders, and not my inbox as separate messages.

    Hi Anya!
    Thanks for the response. Regarding your question, Yes, I have confirmed that people were receiving multiple copies.
    I've confirmed this as I had left a Gmail message open on my browser window and opened that same message from Mail: As I was writing the response from Mail, without sending anything, new notifications started to appear over the same message in the browser window, notifying me there were new messages from Myself! So when I started to open those "new replies", I came to the conclusion that as I was typing, a draft was being saved and sent as a new message at the same time, therefore sending a lot of emails until I finished to write the message without knowing...
    Hard to explain but hope I've made my point.
    Thanks!
    D

  • Merging data from SAP BEx queries with SQL - Keys are details not Dimension

    I have a challenge when trying to merge data from a BEx query and a relational source in SQL Server.
    I have a characteristic for Material, with an associated Material key that is a attribute of Material in the BEx query.  On the SQL side I have a Material ID which is they unique identifier.
    So when you Merge Dimensions in a WebI report, it is exactly that merging dimensions,  so you link Material from BEx and Material ID from SQL.   However, on the Bex side Material displays a long text field which will never join to the data from SQL which is an ID.  The like for like objects are Material Key in BEx and Material ID in SQL, however, as Material Key from BEx is an attribute to manifests itself in WebI via a universe as a Detail object, which makes it unavailable for merging.
    I have tried to set the Material characteristic to display as KEY in the BEx query design, but alas it still comes through as a long text, hence still not able to merge data sets.
    Any workarounds ??
    Andrew

    Hi Andrew,
    In universe designer, edit the material key detail object. Copy the text that refers to the characteristic attribute in your BEx query. Create a new dimension (say, 'Material Key') and paste this text as the definition.
    Essentially you're turning a detail object into a dimension, which (in my limited experience) works just fine.
    Let me know how you go.
    DG

  • How do I merge data from table1 on server 1 to final table on server 2 with a stored procedure to execute every so many hours.

    How do I merge data from table1 on server 1 to final table on server 2 with a stored procedure to execute every so
    many hours.

    How big is the table on server B? Is that possible to bring the all data into a server A and merge the data locally?
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How do I merge data from table1 on server 1 to final table on server 2 with a stored procedure to execute every 4 hours.

    How do I merge data from table1 on server 1 to final table on server 2 with a stored procedure to execute every so many hours.

    Hello,
    If you had configure server2 as
    linked server on the server1, you can run the following statement inside stored proceduce to copy table data. And then create a job to the run stored proceduce every 4 hours.
    Insert Into Server2.Database2.dbo.Table2
    (Cols)
    Select Cols From Server1.Database1.dbo.Table1
    Or you can use the SQL Server Import and Export Wizard to export the data from server1 to server2, save the SSIS package created by the wizard on the SQL Server, create a job to run the SSIS package. 
    Reference:http://technet.microsoft.com/en-us/library/ms141209.aspx
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • How does iCloud manage app data like whatsapp ? Does it overwrite the data everytime I backup to I cloud with the data on the phone or it merges the data from previous backups with the new data?

    How does iCloud manage app data( like whatsapp) ? Does it overwrite the data everytime I backup to I cloud with the data on the phone when i backup or it merges the data from previous backups with the new data?

    You need to subscribe to iTunes Match to store your music on iCloud:
    http://www.apple.com/itunes/itunes-match/
    To transfer iTunes Store purchases made on your phone to your computer, connect your phone then choose "Transfer purchases..." from the File menu in iTunes.
    Photostream transfers photos taken on your iOS devices to other devices and your computer. For troubleshooting Photostream see: http://support.apple.com/kb/TS3989

  • Reading Data from a Table With an Expert

    Hi all - I'm trying to write an Expert in OWB that would read data from a table and create a new table based on that information. I have the table creation part down, but how can I read data from a table with an Expert? From what I've read, Experts only deal with metadata, and there is no mechanism in Experts to actually read data in the tables. Does OraTcl work in Experts? Has anyone ever came across this problem, and if so, how did you solve it? Thanks in advance for your time! - Don

    Hi Don
    Can also use Java and JDBC from within Tcl, see the routines in this file below, take modify or whatever;
    http://blogs.oracle.com/warehousebuilder/ombora.tcl
    source <dir>\ombora.tcl
    set g_user scott
    set g_upwd zzzzzz
    set g_hostname localhost
    set g_port 1521
    set g_srvname ora111
    oraconnect $g_user $g_upwd $g_hostname:$g_port:$g_srvname
    oraselect "select * from emp" ""
    As well as dumping the results to stdout (you probably want to comment that part out and change any other part you don't like), g_res is a ResultSet object you can use to do whatever.
    Cheers
    David

  • Merging data from multiple BAPI tables

    Hello,
    I'm executing a BAPI_XX_GETLIST with multiple "Tables" selected with the REQUESTEDTABLESX import parameter. What is the best way to combine/merge data from multiple "Tables" and bind them into a single webdynpro UI Table?
    Thanks.

    Hi,
    Lets say the BAPI name is BAPI_XX_GETLIST and the table names are ET_TABLE1(Field1, Field2, Field3)  and ET_TABLE2 (FieldA, FieldB). You have display the fields of ET_TABLE1 (Field1, Field2, Field3) and one field from ET_TABLE2 (FieldB). "FieldA" id the key field.
    Create a value node (vnField) under the model node table ET_TABLE1 with cardinality 1:1. Create a value attribute (vaFieldB). For "vnField" create a supply function (supplyfunction). If you goto the implementation you can see a method "supplyVnField(IPrivateCO_ComponentName.IVnFieldNode node, IPrivateCO_ComponentName.IET_Table1Element parentElement)".
    Write the following code in the implementation.
    IPrivateCO_ComponentName.IVnFieldNode nodeX = node.createValueFieldElement();
    for(int i=0;i<wdContext.nodeET_Table2().size();i++){
    if(parentElement.getField3Value().equals(wdContext.nodeET_Table2().getET_Table2ElementAt(i).getFieldA())){
       nodeX.setValuAttributeValue(wdContext.nodeET_Table2().getET_Table2ElementAt(i).getFieldB());
    node.bind(nodeX);
    Hope this solves your problem.
    Regards,
    Santhosh.C

  • Problem in loading data from flat file to info object

    Hi experts,
      I am new on bw. I am trying to load data from .csv file to info object. CSV file contains two colums Mat No, Mat Name and are separated by comma and similarly Mat Name is attribute of Mat No in info object. I am doing all steps by following the book but whenever I load data into info object it is loaded in one column. I mean both Mat no and Mat name apears in Mat No column whereas Mat Name column appears empty in info object. I have changed exel file into .csv. Any one can help me sort it out.
    regards

    Hi,
    your flatfile should be in the form of csv ie it does not mean that in a word u seperate it with coma
    create an excel file and say save as in teh file name give the name of your flatfile and in the save as type select CSV(comma delimited) from the drop down list
    and then in this file enter the data as u fill in excel sheet.
    After closing the file right click it and say open with wordpad then the data should appear seperated with a comma.
    Try this and then revert back in case of any doubts.........
    Are u loading data into BI 7.0 or 3.x
    Regards
    Madhavi

  • Can we merge data from multiple sources in Hyperion Interactive Reporting ?

    Hi Experts,
    Can we merge data from multiple sources in Hyperion Interactive Reporting ?Example can we have a report based on DB2
    Oracle,
    Informix and Multidiemnsional Databases like DB2,MSOLAP,ESSBASE?
    Thanks,
    V

    Yes, Each have their own Query and have some common dimension for the Results Sections to be joined together in a final query.
    look in help for Creating Local Joins

  • How to  upload data from flat file to datastore object in BI 7.0

    Dear friends,
    Please tell me
    step by step process for upload data from flat file to datastore object in BI 7.0
    <removed by moderator>
    please help me
    Thanks,
    D.prabhu
    Edited by: Siegfried Szameitat on Aug 17, 2011 11:40 AM

    Create transformation on thr data source and keep the DSO as the target and load.
    Ravi Thothadri

Maybe you are looking for

  • Getting Error in jsp code

    Hi, I modify a jsp in which we have to remove the lov of a field according to the responsibility. but its giving some error. that i am not able to see. so can you please tell me whats the problem in this code. <td nowrap align="right" class="prompt"

  • Query working fine in 9i but throwing an error in Oracle 10g

    Hi All, I am having a query which contains large number of When clauses inside a case statement. The Same SQL is working fine in 9i, but not working in 10G. If we try to remove one of the When clause in the query, its working fine else it is giving t

  • Copy and Paste is still broken in iOS 8.1!!

    This is really ******* me off. I know there were a lot of fundamental changes to iOS 8, so I can cut Apple some slack, but this is ridiculous! It's so frustrating to copy and then paste and get OLD copy results. It's worst when dealing with long comp

  • Generating PDF in Web-Dynpro

    Hello, I have a problem with generating a PDF file with ABAP WebDynpro. I have an ALV and there I read a line. From this line I want to build a smartform which should be converted into PDF. I think my coding works. I have no syntax errors and when I

  • Couldn't connect iPhone to internet

    Hi guys, I hope you could help me with my iPhone problem. Today I was using whatsapp to chat with my friends, it works fine as usual. But later on, the internet connection suddenly lost. However, on the top left corner of the screen, it shows the pro