Joining tables across databases in OBIEE Physical Layer

I was facing this problem of joining tables across databases in Physical layer of OBIEE admin tool.
I had a requirement to combine two tables from 2 different databases A and B respectively. I had created one database object (OBIEE Object) in the physical layer and I had created two connection pools under that pointing to the required databases. I was able to view the data (right click on the table object --> popup menu option "View Data" ) though I had to go through the "Select connection Pool" window and select the required connection pool. I was able to join the tables and was able to complete the star schema in BMM and bring them up to the presentation layer. Conistency check was also successful. Everything went fine so far.
But when I started building the report, I started getting error whenever I chose the table which was supposed to be queried by using the second connection pool. The error message was something like "table or view does not exist at OCI call OCIStmtExecute". I assume that this was happening because the systm was not able to understand which connection pool to choose (because there were two pools defined under one database object) and by default the server was choosing the first one. If anybody is having a different opinion or definite information about this, kindly update with your reply.
I could resolve this problem after creating a separate database object with a separate connection pool defined under it, which points to the second database. Imported the required table under this database object. (Infact it was reverse. When I re-imported the table, OBIEE Admin tool, by default created its own database object and the connection pool separately for the imported table).
Once this was done then I went ahead as usual by joining the tables across these two different database objects and modelling was already done (ofcourse with a little more tweaking since the mapping had to be redone between BMM and Physical layers). Now I could build the report in the reporting layer without encountering any error.
Appreciate and welcome any further additions/updations/corrections regarding this issue(?).
-MMishra.
Edited by: user13483341 on Nov 29, 2011 8:20 AM
Edited by: user13483341 on Nov 29, 2011 8:20 AM
Edited by: user13483341 on Nov 29, 2011 8:24 AM

Hi Deepak, Thanks for your reply.
Appreciate if you can help me with another thread "possibility of multi-currency in OBIA 7.9.6.2 financial anlytics".
- MMishra.

Similar Messages

  • How to see the tables which are in the physical layer of SampleAppLite rpd

    Hi Everyone,
    I am new to OBIEE and I installed OBI Apps with Oracle 11g in my laptop. I tried to create reports using the OracleBIAnalyticsApps rpd. How can I know from which schema the tables are coming in the physical layer of the repository so that I can create a connection pool to the database. I got the default SampleAppLite rpd when I install the OBIEE but I am unable to see those tables in the database schema which are used in the SampleAppLite physical layer. Can anyone tell me how can I see the tables in the database which I see in the rpd. Actually my question may be wrong as I am new to this field, so please let me know if this is a wrong question. As I unable to express my question correctly. Thanks.

    For the OracleBIAnalyticsApps rpd - the tables are under "Catalog" then "dbo" in database "Oracle Data Warehouse" in the physical layer. The RPD comes out of the box with the required connection pools - you dont need to create any. The connection pools "Oracle Data Warehouse Repository Initblocks Connection Pool" and "Oracle Data Warehouse Connection Pool" in "Oracle Data Warehouse" read the data from the business analytics warehouse that you created in a schema name of your choosing with the DAC. All you need to do is edit the user name and password and the data source name with a connect string - which is the local net service name to your database for default call interface OCI 10g/11g assuming you used an Oracle database for your warehouse. One way to test the connection pool is to right click any table/alias then "Update Row Count".
    BTW Using the Admin Tool open the OracleBIAnalyticsApps rpd then do "Tools" then "Utilities" then "Repository Documentation" then "Execute". This will create a spreadsheet showing you all the mappings from the presentation to business to physical layers.

  • Issue while writing a query in table type select.in the physical layer

    Hi gurus,
    I am actually trying to create a table using select in the physical layer..... i acutally am not aware what it is called but its when i click a table in the physical layer i have an option table type and i chose select which allows me type my query..the query is
    Select
    coln name(which is a lengthly list of conversion) AS column_name
    From Table name.
    when i view the data rom the physical layer everthing seems to be fine. but when i try to view the data in the frnt end it gives me an error maximum length is too long than 128....
    i am aware of this issue the sql server allows only column of length 128..but none of my column length is greater than 128..
    Could you please help me in this
    Many thanks in advance

    hi veeravalli ,
    Thanks for the reply....actually the corresponding reports for this have already been prepared...i created a view in the backend with the same select which i wrote before and and tried calling the view from her.. i have viewed the data and all is perfect...but when i try viewing it from the front end it error saying invaild object name select * from databasename.dbo.View_name...but i have checked the view exists in the backend...
    Thanks in advance....

  • Obiee - physical layer

    Hi,
    I'm new to obiee tool.
    my dimension table have composite primary keys (3 keys - suppose employee id, employee ssn, phone no)
    and my fact table have (2 keys - employee id, employee ssn )
    then, how do we do physical join in physical layer ?
    Do, we need to create 2 alias tables and join to my fact table ?
    or, else can i use expression builder in the physical diagram..physical join ?

    Hi,
    This is why you go for alias tables ..
    To set up multiple tables, each with different keys, names, or joins, when a single data source table needs to serve in different semantic roles. Setting up alias tables in this case is a way to avoid triangular or circular joins.
    For example, an order date and a shipping date in a fact table may both point to the same column in the time dimension data source table, but you should alias the dimension table so that each role is presented as a separately labeled alias table with a single join. These separate roles carry over into the business model, so that "Order Date" and "Ship Date" are part of two different logical dimensions. If a single logical query contains both columns, the physical query uses aliases in the SQL statement so that it can include both of them.
    You can also use aliases to enable a data source table to play the role of both a fact table, and a dimension table that joins to another fact table (often called a "fan trap").
    To include best practice naming conventions for physical table names. For example, you can prefix the alias table name with the table type (such as fact, dimension, or bridge), and leave the original physical table names as-is. Some organizations alias all physical tables to enforce best practice naming conventions. In this case, all mappings and joins are based on the alias tables rather than the original tables.
    Now for creating joins you can make use of expression builder to have Primary Key and Foreign Key Relationships OR you can also have Complex Joins here over nonforeign key and primary key columns. When you create a complex join in the Physical layer, you specify the expression for the join. Like
    Employee.employeeID=Fact.EmployeeId
    and Dim table.deptname <> 'ABC'
    You, can also have case statements here...
    Hope this clears your funda regarding Alias Tables & Joins. Expression Builder is just the utility for developers to select the table, columns, expressions, variables and may other functions available.

  • RPD Physical Layer

    Hi,
    I am trying to import tables from database to the physical layer. when we select objects to add to physical layer which boxes to we need to check below. I know we need to check 'Tables' and 'Keys'. Other than these two do we check any other box?

    Thank you. I have one more question. When I try to do a foreign key join in Physical layer a message pops up saying ' A matching table key doesnt exist in table. Do you want to create one'. Sould I just say 'yes' to it. Any idea why this message is coming?

  • How to add a stand alone table from Physical layer to Business Model

    Hi,
    I have tables from 2 different database sources in my Physical Layer.
    My Business model currently uses only tables from one database. from my second database in teh physical layer I need only one table and that will be a stand alone table, to my Presentation layer.
    1. Does it have to go through my Business layer or can it be directly added to the Presentation layer. What are the steps?
    2. Can I restrict the permissions on that stand alone table only to the administrator?
    Thank you.

    1)create a view with single column using the sql (select 1 from dual) in physical layer and join it with the table using complex join in physical layer (1=1).
    Move that to BMM, set the column as key in both physical and bmm layer.
    2) You can restrict the access for the table presentation layer
    Double click the presentation layer table -> Permission -> there you can restrict the access by user or group
    Thanks,
    Vino

  • Joining multiple tables across multiple data sources in MYSQL throws error

    Hi all,
    I have to join tables across multiples MYSQL databases
    eg :
    Table T1,T2 from DB1
    Table T3 from DB2
    Columns from T3 are aggregated ( dimensional column ).
    Hence when i query using oracle answers ( say i have columns from T1,T2 and T3 ) , OBIEE tries to a query DB1 by having NULL for columns in T3
    It uses cast(NULL as INTEGER ) for columns from T3 . But MYSQL throws an error because "cast(NULL as INTEGER )" is not supported by MYSQL.
    I tried executing the query generated by OBIEE manually , if i try giving cast(NULL as SIGNED INTEGER ) , it works.
    pasting the query for reference
    select distinct D1.c2 as c1,
    D1.c1 as c2,
    cast(NULL as INTEGER ) as c3
    from
    (select distinct T87.title_id as c1,
    T59.asin as c2
    from
    print_book_catalog T59 left outer join
    title_authority T87 On T59.asin = T87.asin
    where ( T59.asin = '0345378911' )
    ) D1
    I am not able to find any config file to set this property ( and use signed integer instead of integer ) . Even DBFeatures.INI does not have relevant information.
    Can someobody please help me solve this problem.

    Stijn,
    Thank you for the article link. That was very helpful! It seems that I had a few things off as you do need the "This source should be combined with other sources at this level." checked. In my two table source columns for DATA_SOURCE I defined a literal ('086496' and '085597' for the other) in the Column Mapping tab. I pasted the following in the Fragmentation content, checking the "This source..." box on the Content tab:
    eSIS.SANDBOX4_SCHOOLS.DATA_SOURCE = '086496'
    And pasted the following into the WHERE clause, checking "Select distinct values" on the Content tab:
    sandbox4."".OBIEE.NWOCA_SCHOOLS.SCHOOL_CODE = VALUEOF(NQ_SESSION."SCHOOL") AND sandbox4."".OBIEE.NWOCA_SCHOOLS.DATA_SOURCE = VALUEOF(NQ_SESSION."GROUP")
    This took care of my user's security, utilizing the session variables in the WHERE clause. I am now able to generate reports that only one user can access from one data source and share that same report with another user who can only see data from the other data source.
    Many thanks!!!

  • Importing materialized views from database into physical layer

    Hi,
    I have created materialized view in the database. When I try to import the materialized view into the physical layer in OBIEE 10G (using the import from database option), it is not showing in the list of available object. I have selected all the object types (tables,views etc.). Can you please let me know how to import the existing MVs in the database into the physical layer.
    Regards
    Vinodh.
    Edited by: user493441 on Jul 7, 2012 4:11 PM

    Hi Vinod,
    Refer the below links.
    Materialized Views in OBIEE
    http://gerardnico.com/wiki/database/oracle/materialized_view
    Concept of materialized views in creating datawarehouse?????
    Hope this help's
    Thanks
    Satya

  • Combining multiple databases into one in the physical layer

    I have several databases in the physical layer that I would like to combine into one database. How can I do this safely without interfering with the existing physical joins in the physical layer and the column mappings in the BMM layer ?
    Can you recommend the best procedures to follow in order to get this accomplished?
    Boniface Ntawutarama

    hi Boniface,
    I think so No,you cant combine all databases into single one.Actually why you want to do this?
    According to the requirement you select a database and concerned tables to build the repository,same way with other databases also you build RPD and establish joins in physical layer
    Lets wait for any more specific answers on this from experts.
    By,
    Kranthi.

  • Defining Keys/Joins in the physical layer

    When the keys and the join conditions are defined manually using a table's Properties dialog box in the Physical layer, do these keys or joins also get defined in the database automatically? My understanding is that it does not get created in the database. So what I am trying to understand is - once the joins are defined in the RPD physical layer, do I have to then define the indexes/constraints in the database as well?
    Thanks,

    803309 wrote:
    When the keys and the join conditions are defined manually using a table's Properties dialog box in the Physical layer, do these keys or joins also get defined in the database automatically? No
    My understanding is that it does not get created in the database. So what I am trying to understand is - once the joins are defined in the RPD physical layer, do I have to then define the indexes/constraints in the database as well?
    Not required. Indexes can be created in DB on joining col for performance purpose only.
    Hope this helps
    Edited by: Deepak Gupta on Aug 15, 2011 10:07 AM

  • Table Type  Stored Procedure in OBIEE Physical table properties

    Hi,
    Any one has ever used the Stored Procedure in OBIEE Physical table properties??
    I've a procedure & a table i want to plopulate the tabel using the Procedure from OBIEE physical layer.

    It would be nice if we know more details about 'Populating table'...
    Using connection pool->connection pool scripts tab you may go for inserting/updating (Populating table) records into table.
    It would be nice if you use dedicated connection pool for init blocks...
    Ex: I want to insert user login time some xyz table my query would be like
    insert into xyz values ('valueof(NQ_SESSION.USER)',sysdate)
    without knowing your requirements its hard to tell anything apart from what is said.
    If helps pls mark
    Edited by: Srini VEERAVALLI on Jan 16, 2013 10:37 PM

  • Unable to view data in Physical layer of RPD

    I have OBIEE installed on my local machine using Oracle 10g as the database installed on a remote machine. I am able to create the DSN and test the connection pool on my local machine.
    The Call interface is OCI 10g in the connection pool. I am able to import tables into the database in the Physical layer of the repository but when I try to VIEW Data in the physical layer, it throws me an error stating,
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor at OCI call OCILogon.
    nQsError: 17014 Could not connect to Oracle Database.
    I have oracle 10g client installed on my local machine. I am able to view the tables and the data from SQL PLus. In OBIEE i am able to import tables but cannot view data.
    Any suggestions on what could be causing this?

    Sounds like one of my common issues. After you do the import, go back and check the connection pool. What I typically run into is that it has switched to the OCI connection rather than the ODBC connection used for the import, but it is still using the name of the ODBC DSN that was used for the import. Change it to the TNS name or the host:port/service and try again.
    Rgds/Mark M

  • Read data using 2 diff connection pool for same DB folder in physical layer

    Hi All,
    i am using two connection pool which have different dsn connection information (both are directed to different database name or database server)..
    so if i view the data of any table, a prompt will come asking for the connection pool, so how do i automize it....?
    how do i set the different connection pool for different tables?
    please let me know if u need further informtaion to understand my problem..
    thnx...

    thnx Stijn..
    yupe that i know...
    actually i have total of around 300 tables in physical layer (in both the schemas..) , around 12 fact and 100 dimension tables in bmm and same in the presentation layer...
    so i think u can guess how many joins and other stuff, i have made in my bmm layer..
    if now i will start modifying all this it will take lot of time...
    i am just wondering that there is no alternative for this...
    as when i check my data from the physical layer then a prompt ask for the connection pool (i have already made two connection pool..) so there could be some alternative way to automize the default connection pool setting for the tables/schemas folders in case if more than one connection pool exits under the same database in the physical layer...
    isn't it?
    thnx again..

  • Avoiding Rebuild of RPD for Change in Physical Layer Data Source.

    Hi,
    I would like to know whether change in physical layer data source will require rebuild of RPD or not.
    Previously our client was using excel spread sheet as source of OBIEE 11g RPD for Phase – 1 of the project. Successive work (design of BMM layer, Presentation layer, subject area, design of report and dashboard etc) for that phase is complete on top of that.
    Now, they would like to use Oracle database as source in Phase - 2, with the same table and column structure as MS Excel spreadsheet.
    We have created connection type of OCI 10g/11g and successfully imported the metadata of the oracle database in the physical layer.
    I was thinking whether it is possible to just redirect the source of physical layer from MS Excel to Oracle database, keeping the rest of the components (including BMM layer etc.) intact.
    This will be pretty tedious job to rebuild all layers of the RPD again and again for change in the underlying database.
    Please advise how this is possible. Many thanks !

    I think..we can do some testing
    you have created Alias for all tables.
    Try checking view data by changing the Source name of any alias table to Oracle Source name in the physical Layer.
    Check the datatypes of columns .
    If these two are passed we can eliminate rebuilding.
    Please post your comments.

  • Tables icon displaying yellow in BMM layer.

    Hi all,
    When i was tring to drag drop tables from physical layer to BMM layer it's showing yellow icons.....
    Scenario is as follows:
    tables: EMP, DEPT, BONUS, SALGRADE.
    I have created complex join in Physical layer between EMP and SALGRADE (condition is "EMP$".SAL BETWEEN "SALGRADE$".LOSAL AND "SALGRADE$".HISAL). Samething i have taken into BMM layer. 4 table icons showing yellow and checked for consistency..giving errors like there is no join of logical tables.
    i have created join Physical layer will it not carry to BMM layer? Do i need to create same complex join in BMM layer? After creating the complex in BMM layer will those errors come again??
    Please aswer to my questions..asap.
    regards
    ck

    Chandra kanth wrote:
    Gurus,
    The other two tables (DEPT, BONUS) are not required to join but i just kept it like that in BMM layer.
    1. I have created complex join between EMP and SALGRADE in physical layer and i also manually created complex join in BMM layer....it did not come when i drag drop the schema from physical to BMM layer. Do we require to create manually again the complex join in BMM layer?Yes.
    >
    2. After creating complex join in BMM layer EMP table icon shows white others are yellow. Will complex join not suffice to make error free (Consistent) in BMM layer?
    Is it require to join all tables (to maintain a star schema)?
    You need to create complex joins to create a star schema in BMM layer. This is needed to create an error free BMM layer.
    3. As per the requirement i dont require to join other two tables (DEPT, BONUS).
    What is the purpose of these tables?
    >
    Please advice if i am wrong in the above cases....and also please answer to all my questions.
    Thanks in advance
    chandra kanth.

Maybe you are looking for

  • Red TYPE statement in ABAP

    has anyone seen this format in ECC 5.0 ... TYPE pernr#TYPE pa0000-pernr. "Personnel number In the editor it is displayed in red. many thanks, john

  • With BPM Problem

    Hi all, My scenario is File-->Bpm-->Rfc ..  From Bpm the response data is dumped in application server of SAP. For that File is maintained at application server of have data companyId. so i created IR and ID those includes Integration Process and Bus

  • Bridge 4.0.5 "not applicable"

    I downloaded 4.0.5 from the Adobe downloads. but when I run the installer I get a message that it is "not applicable". Also if I run the Adobe Updater it says all programs up to date. Anyone have any info about 4.0.5? Thanks

  • Premiere Pro CC 2014 No Longer Remembers Which Order My Sequences Were Open

    I often work with a dozen or more sequences inside a project. This was never a problem before, because I could have the ones I wanted to work on open and arranged in the Timeline Panel, save and exit, and when I returned to the project everything wou

  • 10.5.1 Two Versions?

    One weighs in at around 38 megs and one at around 100! The update posted on the Apple download site is the "big" one. Software Update shows a 38 meg update. So anyone know what the deal is? What does the "standalone" updater contain that the version