Table transformation from two different database

Hi all,
I am trying to load table from one database table to another database table in ODI 10g.I have created two physical and logical topology.
But when in interface design i have drag the source and target tables in the diagram window, but here it doesnot shows the auto mapping options, when i try it manually by dragging a field, i have failed. when i execute the operation the following error occured:
create or replace view db1."C$_0 W_INT_ORG_D"
as select     
from     db1.W_INT_ORG_DS W_INT_ORG_DS
where     (1=1)
here both the source and target db are same..
How can i resolve it

Hi,
Thanks it worked.
I am getting another error on Insert flow into I$ table step.
I am connecting two database from two different hosts, both are in oracle.
I have two logical schema prepared for both database.
should i have to mentioned these schema in one physical topology? what should be placed in schema and work schema option.
I have used LKM Oracle to Oracle(DBLINK) as KM.
Please help
Best regards,
manish

Similar Messages

  • APEX Application accessing data from two different databases

    Hi All,
    Currently as we all know that APEX Application resides in database and is connected to the schema of that database.
    I want APEX Application to be running and accessing data from two different databases. Elaborating my question,
    Currently, my APEX Production Application is connected with XXXX Schema of DB1 Database(Where APEX Resides). Now I want to add some pages into this APEX Application for REPORT Purpose, But I want to connect this REPORT APEX Pages to get data from Different Schema YYYY for Database DB2.
    Is it possible to configure this scenario?
    The reason for doing this is to avoid the REPORT related (adhoc queries) resource utilization effect on Production DB1 Database.
    Thanks
    Nil

    1. If you do the joining of two or more tables in DB1 then all data is pulled over to DB1 and then the join is executed: so more data over the databaselink and more work for DB1. Better keep the joining stuff where the data resides and just pull exactly that data over that you need.
    2. Don't know about your different block sizes. Seems a nice question for one of the other forums (DBA or SQL).
    3. I mean create synonyms on DB1 for reports VIEWS in DB2.
    Hope all is clear!

  • Querying from two different databases

    Hi All,
    I have a Adhoc requirement where in i have to do a select from two tables, but one of them resides on a different database.
    The tables have a common primary key, so i can do a one to one match. Is there anyway to query them without using a DB link?

    Hi!
    I think - if u create a global synonym using that dblink - next time u can use that synonym and u don't have to use any dblink further.
    Regards.
    Satyaki De.

  • Can't get table field from two different tables if named same

    select c.notes, o.notes
    from cusomters c, orders o
    :does not work in getting the RS.
    :if i change database to:
    select c.customer_notes, o.order_notes
    from cusomters c, orders o
    :then it works.
    :i make PURE DYNAMIC META SQL database
    applicaitons, and i need for abstract SQL tables.
    i have the same problem in getting
    the max values:
    select
    max(height),
    max(weight),
    max(age)
    from person_stats
    group by geographical_area

    When you select from 2 different tables you need to join them on some condition, otherwise it has no idea how to associate the 2 tables together.
    try select c.notes, o.notes from cusomters c, orders o where c.customer_id = o.customer.id or whatever the join fields are.
    For the group by I believe you have to include the field that you group by:
    select geopraphical_area, max(height), max(weight), max(age) from person_stats group by geographical_area
    give them a try
    Jamie

  • Joining tables from two different databases

    Hi,
    I am trying to join W_DAY_D from 1 database to another 2 database to the fact table . The datatype for CALENDER _DTis (DATE) from W_DAY_D  and the Create date from fact table is TIMESTAMP . I changed the the datatype in the phyiscal layer for CREATE DATE from the fact table to DATE and joined it with W_DAY_D (Calender_DT = create_date) Thought the rpd showed me no errors while saving it . But when I try adding the column in the report it throws me error
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 46008] Internal error: File server\Utility\Server\DataType\SUKeyCompare.cpp, line 772. (HY000)

    I tried this ealier but it throws me an Invaild expression error. In the Physical Foreign key join
    "ABC"."test"."dbo"."W_DAY_D_Alias"."CALENDAR_DT" = CAST("CT"."EAST"."dbo"."Fact-TEST"."Input date " as DATE)

  • How to add data in a table UI from  two different NODE

    Hello Experts,
    We have a requirement to show data in a table which is coming from different node.
    Suppose the table has 10 column ( among them 5 are coming from node A and others are coming from node B)
    I tried to add node A as a source of the table, and then add individual context to corresponding column element from node A and node B .
    Like:
    Table Source-->Node A
    Table Column1 element value --> NodeA.context
    Table Column1 element value--> NodeB.context.
    But in this case the problem is, whenever i am trying to add a new row in the table it is copying previous value to the new cell.
    I have also tried to add context of B node to A node and then tried to copy data from B node to Anode, but it is saying that Node A is already binded; add or bind element is not possible.
    Can any one please help me on this scenario.
    Regards,
    Sambaran Chakraborty

    Hi,
    Yes you can do it. In that case you need to add moveTo() function for both nodeA as well as nodeB inside the for loop. Then only both the node's pointer will move with the value of i.
    You can use something lik this:
    Create a node C and then do the following: (Considering that name,age,desc,empid are the attributes which we are trying to copy to node C )
    for(int i = 0; i < wdContext.nodeNodeA().size(); i++){
    //Moving the pointer of node A and node B based upon value of i.
    wdContext.nodeNodeA().moveTo(i);
    wdContext.nodeNodeB().moveTo(i);
    //Creating an element for node C.
    IPrivateTestApp9View.INodeCElement element1 = wdContext.nodeNodeC().createNodeCElement();
    //Copying the attributes values of node C from node A .
    element1.setName(wdContext.currentNodeAElement().getName());
    element1.setAge(wdContext.currentNodeAElement().getAge());
    //Copyingthe attributes values of node C from B.
    element1.setDesc(wdContext.currentNodeBElement().getDesc());
    element1.setEmpid(wdContext.currentNodeBElement().getEmpid());
    //Finally adding that element on to the node C.
    wdContext.nodeNodeC().addElement(element1);
    Regards,
    Jithin
    Edited by: jithus on Nov 9, 2011 12:44 PM

  • LOV from Two Different Databases?

    Hey all,
    I'm relatively new to the ADF world, so I may be missing something obvious.
    I've got two adf bc model projects, one connecting to an Oracle database and a second one connecting to a SQL Server 2005 database.
    What I'd like to do is populate a column in my Oracle model from a LOV in the SQL Server model. Is this possible? I'm assuming I have to define the relationship in my UI project but I haven't had much luck yet. Any help would be appreciated.
    I'm using JDeveloper 11g.
    Cheers,
    Graham

    Hi Graham,
    The database on which you base your queries (View Objects) depends on the application module. So one simple way would be to add the VO which gets you your list of values into the Application Module pointing at the SQL Server database. Have another application module pointing at your Oracle Database and define the model LOV's the [normal way|http://www.oracle.com/technology/obe/obe11jdev/11/adfbc_new_features/adfbc.html#t2s3].
    Julian

  • Comparing Tables In Two Different Databases

    Hi,
    As part of our project, we need to perform table comparisons in two different databases. I am currently looking for various options to accomplish this.
    One of them is doing minus operation between these two tables.
    Also, i have looked at the data compare option in toad utility.
    Please suggest me any other options that makes my job easy.
    Thanks in advance,
    Sue

    Then just adapt the select that is there
    SELECT stid , c1, c2, c3                      
       FROM
      ( SELECT a.*,
             1 src1,
             to_number(null) src2        
       FROM  a   
       UNION ALL
       SELECT b.*,
             to_number(null) src1,
             2  src2        
        FROM b
       GROUP BY stid , c1, c2, c3
       HAVING count(src1)  count(src2)
       order by stid;Best regards
    Mohamed Houri

  • How to use %Type declaration with table residing in a different database

    How can I use the %TYPE declaration if the table is from a different database.
    E.g
    v_business_unit ps_jrnl.header.business_unit%TYPE;
    In the above declaration statement,the table 'ps_jrnl_header' resides in a different database(Database A) from the one I am currently in( Database B).(This is because data needs to be extracted from Database A into Database B).

    1. Create a database link to the other database (this probably already exists since your proc is interacting with that database)
    2. Create a synonym for the table in the other database
    create synonym foo for ps_jrnl.header@database_a;3. Reference the synonym in your variable declaration:
    v_business_unit  foo.business_unit%TYPE;

  • Synch Between Tables in Two different Databases

    Synch between Two Tables in two different Databases.
    I have two identical tables, table T1 in Database D1 and table T1 in Database D2. User can insert/update/delete/select from both of these tables in respective databases. Being said that how can keep them in Synch? Any thing added/modified/deleted should reflect in other. We like this to be Real-Time.
    We are thinking of creating a cross (two way) DB link between them and then update/insert/delete both the tables when changing one. Any suggestions?
    Thanks

    One of my colleagues used snapshot in their previous projects, but he told me that the performance of it wind down while the records in tables increase. I have no idea about the exact situation, but I'm believing we'd think twice about it.
    eilison
    [email protected]

  • Possible solution to avoid deadlock when two inserts happen on same table from two different machines.

    Possible solution to avoid deadlock when two inserts happen on same table from two different machines.
    Below are the details from deadlock trace.
    Deadlock encountered .... Printing deadlock information
    Wait-for graph
    NULL
    Node:1
    KEY: 8:72057594811318272 (ffffffffffff) CleanCnt:3 Mode:RangeS-S Flags: 0x1
    Grant List 2:
    Owner:0x00000013F494A980 Mode: RangeS-S Flg:0x40 Ref:0 Life:02000000 SPID:376 ECID:0 XactLockInfo: 0x000000055014F400
    SPID: 376 ECID: 0 Statement Type: INSERT Line #: 70
    Input Buf: RPC Event: Proc [Database Id = 8 Object Id = 89923542]
    Requested by:
    ResType:LockOwner Stype:'OR'Xdes:0x0000002AA53383B0 Mode: RangeI-N SPID:238 BatchID:0 ECID:0 TaskProxy:(0x00000027669B4538) Value:0x10d8d500 Cost:(0/38828)
    NULL
    Node:2
    KEY: 8:72057594811318272 (ffffffffffff) CleanCnt:3 Mode:RangeS-S Flags: 0x1
    Grant List 2:
    Owner:0x0000000B3486A780 Mode: RangeS-S Flg:0x40 Ref:0 Life:02000000 SPID:238 ECID:0 XactLockInfo: 0x0000002AA53383F0
    SPID: 238 ECID: 0 Statement Type: INSERT Line #: 70
    Input Buf: RPC Event: Proc [Database Id = 8 Object Id = 89923542]
    Requested by:
    ResType:LockOwner Stype:'OR'Xdes:0x000000055014F3C0 Mode: RangeI-N SPID:376 BatchID:0 ECID:0 TaskProxy:(0x000000080426E538) Value:0x30614e80 Cost:(0/41748)
    NULL
    Victim Resource Owner:
    ResType:LockOwner Stype:'OR'Xdes:0x0000002AA53383B0 Mode: RangeI-N SPID:238 BatchID:0 ECID:0 TaskProxy:(0x00000027669B4538) Value:0x10d8d500 Cost:(0/38828)
    deadlock-list
    deadlock victim=process5daddc8
    process-list
    process id=process5daddc8 taskpriority=0 logused=38828 waitresource=KEY: 8:72057594811318272 (ffffffffffff) waittime=2444 ownerId=2994026815 transactionname=user_transaction lasttranstarted=2014-07-25T12:46:57.347 XDES=0x2aa53383b0 lockMode=RangeI-N schedulerid=43 kpid=14156 status=suspended spid=238 sbid=0 ecid=0 priority=0 trancount=2 lastbatchstarted=2014-07-25T12:46:57.463 lastbatchcompleted=2014-07-25T12:46:57.463 clientapp=pa hostname=pa02 hostpid=1596 loginname=myuser isolationlevel=serializable (4) xactid=2994026815 currentdb=8 lockTimeout=4294967295 clientoption1=671088672 clientoption2=128056
    executionStack
    frame procname=mydb.dbo.SaveBill line=70 stmtstart=6148 stmtend=8060 sqlhandle=0x03000800d61f5c056bd3860170a300000100000000000000
    INSERT INTO [dbo].[Prod1] .....
    inputbuf
    Proc [Database Id = 8 Object Id = 89923542]
    process id=process5d84988 taskpriority=0 logused=41748 waitresource=KEY: 8:72057594811318272 (ffffffffffff) waittime=2444 ownerId=2994024748 transactionname=user_transaction lasttranstarted=2014-07-25T12:46:57.320 XDES=0x55014f3c0 lockMode=RangeI-N schedulerid=39 kpid=14292 status=suspended spid=376 sbid=0 ecid=0 priority=0 trancount=2 lastbatchstarted=2014-07-25T12:46:57.440 lastbatchcompleted=2014-07-25T12:46:57.440 clientapp=pa hostname=pa01 hostpid=1548 loginname=myuser isolationlevel=serializable (4) xactid=2994024748 currentdb=8 lockTimeout=4294967295 clientoption1=671088672 clientoption2=128056
    executionStack
    frame procname=pa.dbo.SaveBill line=70 stmtstart=6148 stmtend=8060 sqlhandle=0x03000800d61f5c056bd3860170a300000100000000000000
    INSERT INTO [dbo].[Prod1]....
    inputbuf
    Proc [Database Id = 8 Object Id = 89923542]
    resource-list
    keylock hobtid=72057594811318272 dbid=8 objectname=pa.dbo.prod1 indexname=PK_a id=lock1608ee1380 mode=RangeS-S associatedObjectId=72057594811318272
    owner-list
    owner id=process5d84988 mode=RangeS-S
    waiter-list
    waiter id=process5daddc8 mode=RangeI-N requestType=convert
    keylock hobtid=72057594811318272 dbid=8 objectname=pa.dbo.prod1 indexname=PK_a id=lock1608ee1380 mode=RangeS-S associatedObjectId=72057594811318272
    owner-list
    owner id=process5daddc8 mode=RangeS-S
    waiter-list
    waiter id=process5d84988 mode=RangeI-N requestType=convert

    Don't know. Perhaps these can help. I scanned the second link but didn't see much about Ending Deadlocks. I'd say the Fourth link probably has better information than the first three links. But maybe read them all just in case the Fourth is missing something
    one of the first three have.
    Deadlocking
    Detecting and Ending Deadlocks
    Minimizing Deadlocks
    Handling Deadlocks in SQL Server
    Google search for "SQL Deadlock"
    La vida loca

  • How to create a foreign key for the table from two different tables?

    Hi All,
    I have a three table like below. In the below table SAMPLE_CONS_CHECK and SAMPLE_CONS2_CHECK will be having the primary key for NAME column. The same SAMPLE_CONS3_CHECK table also having the primary key for NAME column and forieign key for SAMPLE_CONS_CHECK and SAMPLE_CONS2_CHECK tables. See the below code 2
    code 1:
    CREATE TABLE SAMPLE_CONS_CHECK
            (NAME VARCHAR2(10),
            SERIES  VARCHAR2(5)
    CREATE TABLE SAMPLE_CONS2_CHECK
            (NAME  VARCHAR2(5),
             MODEL  NUMBER
    CREATE TABLE SAMPLE_CONS3_CHECK
            (NAME  VARCHAR2(5),
             MODEL_NO  NUMBER
            )code 2
    alter table SAMPLE_CONS_CHECK
    add constraint SAMPLE_CONS_CHECK_pk primary key (NAME)
    alter table SAMPLE_CONS2_CHECK
    add constraint SAMPLE_CONS2_CHECK_pk primary key (NAME)
    alter table SAMPLE_CONS3_CHECK
    add constraint SAMPLE_CONS3_CHECK_pk primary key (NAME)
    ALTER TABLE SAMPLE_CONS3_CHECK ADD
    CONSTRAINT SAMPLE_CONS3_CHECK_FK1 FOREIGN KEY
         NAME
    ) REFERENCES SAMPLE_CONS_CHECK
        NAME
    ) ON DELETE CASCADE;
    ALTER TABLE SAMPLE_CONS3_CHECK ADD
    CONSTRAINT SAMPLE_CONS3_CHECK_FK2 FOREIGN KEY
         NAME
    ) REFERENCES SAMPLE_CONS2_CHECK
        NAME
    ) ON DELETE CASCADE;From the above schenario i am able to insert the data to SAMPLE_CONS3_CHECK table. But the parent data is already available in the parent table. The problem is here two different constarints from two different tables. While inserting, it is checking from both the tables whether the parent is exist or not.
    How can i solve this problem? Can anyone halp me about this?
    Thanks
    Edited by: orasuriya on Aug 8, 2009 2:02 AM

    Actually the design is completely incorrect.
    What you say is
    I have
    'foo', 'foo series'
    'foo','foo model'
    'foo',666
    By virtue of table3 referring to both table1 and table2.
    This means you actually need to have 1 (one) table:
    'foo','foo series','foo model', 666
    And the 'problem' disappears.
    Sybrand Bakker
    Senior Oracle DBA

  • Is it possible to show data from two different sql tables?

    Is it possible to show data from two different sql tables? Either to show combined data by using a join on a foreign key or showing a typical master detail view?
    I have one table With data about a house, and another table With URL's to images in the blob. Could these two be combined in the same Gallery?
    Best regards Terje F - Norway

    Hi Terje,
    If you have a unique key, you could use one of the following functions for your scenarios:
    If you only have one image per house, you can use LookUp:
    http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745501
    If you have multiple images per house, you can use Filter:
    http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745487
    Thanks
    Robin

  • Selecting data from two different tables.

    Do we need to use join two tables with primary/foreign key while trying to use select statement for getting data from those to table.? If no who can i go about do it.

    872959 wrote:
    If i am using From clause to get data from two different tables, is it necessary that both tables have column of identical data in them.In general, they ought to (or you need to join in a third table that tells you how to map rows from one table to rows of the other table).
    It is not strictly necessary that there be any join condition between tables. If you don't provide a join condition, Oracle has to do a Cartesian product. That means that if there are n rows in one table and m rows in the other, the result set will have n * m rows. It is very rarely a good idea to write queries that do Cartesian products but it does occasionally happen.
    Justin

  • Not able to compare PL/SQL body from two different offline database object

    It is not possible to compare two package bodies from two different off line database object in two different off line database and schema.
    JDeveloper display a compare not available message in the middle of the window.
    It is possible to compare the package specification.

    Not able to compare scripts generated from offline database objects too

Maybe you are looking for

  • Certain master images are gone: how do I use my backup vault to restore?

    Images stored in a folder (the little blue book icon) named Dogs is suddenly empty. Apparently the Masters are gone too. I have searched through the Library, in the original project, by date. They are gone. (I think I know how I lost them - by renami

  • Links Pallette Causing MAJOR issues

    Hi Everybody! What should have probably been my FIRST place to turn when this issue started occuring, has somehow turned into the last place I have come for answers. With that said, hello! Please help me! Currently ailing me is my LINKS PALETTE. Afte

  • How to use FTPS using FTP adapter

    I am trying to create one BPEL process using SOA 11g 11.1.1.4, which will put file on remote location using ftp adapter. I have created JNDI properly and using wallet. useFtps= True walletLocation= correct path of wallet created in Oracle HTTP Server

  • Import Purchase Order issue

    Hi MM Gurus, In Import pricing Procedure I have assigned  FR3 as the account key for the custom clearing condition types. I have also assign the G/L account for FR3 in OBYC. But when i am doing the MIRO for bill of Entry, it is only showing the Cr. a

  • Load balancing on sub-interfaces (3 links)

    Hello. I am trying to load balance between the three links of a bundle. Traffic comes and goes with the same bundle interface. Launched 5 threads TCP\UDP with different SRC DST IP addresses and see the following balances: IOS-XR               Monitor