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!!!

Similar Messages

  • How do I reference multiple tables in SSAS Data Source View Named Calculation functionality?

    Hi SSASers - 
    On the Data Source View node of SSAS Visual Studio Interface, I want to create a named calculation that references multiple tables. Something like: CASE WHEN tableA.Column1 = 'Y' Then tableB.Column1 ELSE tableB.Column2 End, but the compiler throws an error
    here "Deferred prepare could not be completed". 
    What is the syntax for referencing multiple tables on this node or how else can multiple tables be used to create a calculated value in SSAS? I'm new to SSAS and so far have been building big views and building calculations this way. Another option is the
    Calculation tab off the cube node but this calculation will need to be based off of dimensions AND measures so please provide a syntax example here also. 
    Thanks in advance!
    Carl

    Thanks Jiri! The named query functionality off the Data Source View node is exactly what I was looking for - it's just a view on the SSAS side of things instead of the relational dbase.
    Sorry for the delayed answer verification - got pulled into something else last week. Carl 
    Carl

  • Multiple transformation between one data source & Target

    Hi ,
    Is Multiple transformation between one data source & one Target possible.
    If possible in which way?
    Thanks,
    Erick

    hello,
    No it is not possible,
    you can have different gorups
    or
    in case of Flat File datasource you can copy the datasource give it a different name and then create a new transformation.
    not sure how this works on R/3
    Regards
    Nitin Bhatia

  • SQL Loader to Load Multiple Tables from Multiple Files

    Hi
    I wish to create a control file to load multiple tables from multiple files
    viz.Emp.dat into emp table and Dept.dat into Dept table and so on
    How could I do it?
    Can I create a control file like this:
    OPTIONS(DIRECT=TRUE,
    SKIP_UNUSABLE_INDEXES=TRUE,
    SKIP_INDEX_MAINTENANCE=TRUE)
    UNRECOVERABLE
    LOAD DATA
    INFILE 'EMP.dat'
    INFILE 'DEPT.dat'
    INTO TABLE emp TRUNCATE
    FIELDS TERMINATED BY "|" OPTIONALLY ENCLOSED BY '"'
    (empno,
    ename,
    deptno)
    INTO TABLE dept TRUNCATE
    FIELDS TERMINATED BY "|" OPTIONALLY ENCLOSED BY '"'
    (deptno,
    dname,
    dloc)
    Appreciate a Quick Reply
    mailto:[email protected]

    Which operating system? ("Command Prompt" sounds like Windows)
    UNIX/Linux: a shell script with multiple calls to sqlldr run in the background with "&" (and possibly nohup)
    Windows: A batch file using "start" to launch multiple copies of sqlldr.
    http://www.pctools.com/forum/showthread.php?42285-background-a-process-in-batch-%28W2K%29
    http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/start.mspx?mfr=true
    Edited by: Brian Bontrager on May 31, 2013 4:04 PM

  • Underlying tables of a data source in r/3

    Hi All,
    Can anyone explain me where do I need to check to see from which (underlying) tables is the Data Source (Example: <b>2LIS_02_CGR</b> ) getting data from?
    Urgent Please!!!
    Thanks in advance...

    http://help.sap.com/saphelp_nw04/helpdata/en/ad/07383fdb800804e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/77/5c27cf43b290408efe91148095d7ff/frameset.htm
    Message was edited by:
            KJ (Kamaljeet)

  • Select multiple frames across multiple pages for photos frames

    Hi people!
    How can i select multiple frames across multiple pages? I want my images to fit the frames by one click. I do not want to go through each page one by one . There must be some way to solve this.. or? Cant find a options that can do that so far?
    Useing Adobe Indesin CS6.
    thanks!

    suppien_ wrote:
    How can i select multiple frames across multiple pages?
    You can't.
    You can do it in Find/Change box. Set desired Frame Fitting Options in Object section and run find/change.

  • SQL LOADER , EXTERNAL  TABLE and ODBS DATA SOURCE

    hello
    Can any body help loading data from dbase file .dbt to an oracle 10g table.
    I tried last day with SQL LOADER, EXTERNAL table , and ODBC data source.
    Why all of these utilities still failing to solve my problem ?
    Is there an efficient way to reach this goal ?
    Thanks in advance

    export the dbase data file to text file,
    then you have choice of using either sql loader or external table option to use.
    regards

  • Creating multiple vlans across multiple switches

    Hi All,
    How should I create multiple vlans across multiple switches?
    For instance, I have two (primary/redudant) layer 3 (core) switches and four layer 2 access switches (Cisco 2960) for the hosts, and given these are the vlans/subnets to be created. Should I do it in the core switches only and it would just propagate through the access via VTP?  Just trying to practice and learn.. Any help will be greatly appreciated:)
    VLAN 100: [DHCP-workstations]
    172.26.4.0/24
    172.26.5.0/24
    VLAN 200: [Servers]
    172.16.1.0/24
    172.16.2.0/24
    VLAN 300: [Printers]
    192.168.129.0/24
    192.168.130.0/24
    VLAN 800: [Management for switches/routers]
    10.160.1.0/24

    Hi
    You will have the SVI on the core. Set a VTP domain, make one of the cores as VTP server and rest of the switches as VTP clients. Once you do this, you won't have to login into each switch and create a vlan locally. The vlans will be automatically advertised from the VTP server to all the VTP clients.
    Thanks
    Ankur
    "Please rate the post if found useful"

  • R/3 tables for a data source

    HI all,
    How to find the R/3 tables for a perticular data sources..
    like 2lis_13_vditm etc...
    Thanks,
    Pooja

    Hi Pooja,
    U can get the same from LBWE t-Code.. where for ur Extractor.. look at the Maintain Extractor Structure.
    If u click that u wil get the Extract Structure.. where u can see the Communication Filed names which starts with MC<Table Name> - <Field Name>...... for every field in ur data source u can see the corresponding the table entry.
    Or u can use the below link for more options:
    How to find tables related to data sources
    Thanks
    Hope this helps

  • Error while filling set up tables for 2LIS_11  data sources

    hello All ,
    I tried to fill setup tables for 2LIS_11 data sources in OLI7BW , but the job RMCVENUA is getting cancelled. below is the Job Log ,
    Job started
    Step 001 started (program RMCVNEUA, variant &0000000000005, )
    Start of order processing
    Error determining rate: foreign curr. local curr. INR date 10.09.2008 (doc. 1)
    Job cancelled
    Is there any setting required in R3 side before filling setup tables of SD ?
    I am able to fill the setup tables for 2LIS_05 ( Notifications) successfully.
    Regards ,
    Amol Kulkarni
    Edited by: Amol Kulkarni on Dec 4, 2008 3:59 AM
    Edited by: Amol Kulkarni on Dec 4, 2008 4:00 AM

    Hi,
    one of the sales document currencies is not maintained properly in the system and therefore its failing.
    you need to correct those documents before filling the set up tables.
    Either you can chose the option fault document toleration limit to 1000...so that 1000 records wrong records can be tolerated or you have to crrect it first before filling up the set up tables.
    This will generally happen in test systems.... but very rare in production...so try to maintain currrency again in the system.
    generally you will see the sales doc number in the error for which its failing.
    May be at the time of filling some óne was working on some sales document and tried it save it.
    correct that doc and fill the set up tables again.
    Thanks
    Ajeet

  • How to find tables related to data sources

    Hi...
    Can anybody tell me how to fine Database tables related to Data source.
    Ex: I have a data source 0fi_ap_3. How can i fine From   which tables it is extracting the data.
    Thanks & Regards
    Pankaj Angra

    Hi Pankaj,
       This has already been discussed in the following forum links,.. they will be helpful...
    Re: Find R/3 tables which are in the datasource
    Tables associated with DataSource!
    Find R/3 tables which are in the datasource
    Hope this helps...
    Thanks,
    Raj

  • Join multiple tables across separate databases

    I needed to perform a join on multiple tables in two separate databases. I am using Sybase ASE 12.5 and jConnect 5.5 JDBC driver.
    Table A is in DB1 and Table B is in DB2. Both DB1 and DB2 reside on the same database server.
    I have set up JNDI bound datasources DS1 for DB1 and DS2 for DB2.
    If the queries involved single tables or multiple tables within the same database, it is simple. But I am not seeing any way where I can perform a join between Tables A and B, which reside in separate databases. The datasources DS1 and DS2 are associated with DB1 and DB2 respectively, so I am not sure if there is anything like performing joins using two data sources.
    One alternative I am facing is using a stored procedure in one database refer the table in the other database, for the join. But I may not be allowed to modify the database; currently, I am allowed to perform READ-ONLY queries.
    So I am looking for any and all options. Please advice.
    Thanks!

    Two choices..
    One find the syntax in DB2 that allows you to do what you want in there. That would often be somelike...
    select a.myfield
    from database1.table1 a, database2.table2 b
    where a.id = b.id
    Obviously the database itself must support this. If it doesn't then you have choice two.
    You extract the data from database1 using java for table1.
    You extract the data from database2 using java for table2.
    You write java code that merges the data from both sources.

  • Orphan table header at bottom of page when page breaks a table across multiple pages

    Hi all,
    I think similar questions have been asked before but I have not found an answer.
    Here's the scenario:
    I have several dynamic tables in a dynamic form.  The layout is flowed, and everything can grow and shrink as needed.  That all works.
    However, my tables have headers.  Occasionally when one of these tables is large and needs to break across multiple pages, there will be just enough room at the bottom of the previous page to show the next table header, but not enough space to show any of the related table rows.  So it ends up looking silly, with just an orphaned header at the bottom of one page, and then the table continues on the next.
    I have my tables set up so that headers get repeated on subsequent pages, by setting the header row to "repeat row for each data item" on the binding tab.  I would like to keep that functionality, but I just want to find a way to avoid these "orphaned" table headers that sometimes appear.
    I have tried the "keep with next" option.  However, although this does push the rendering of the header to the next page, it seems that according to livecycle the table still officially began on the previous page.  Therefore I get a duplicate header because of the "repeat row for each data item" option.
    I have also tried having two header rows, one that is set to only be displayed on the initial page, and the other that is set to appear only on subsequent pages (pagination tab).  This did not work - I ended up with duplicate table headers.
    Can anyone help me?
    Thanks!

    You shouldn't have "repeat row for each data item" selected for header rows.
    You should have "include header row in initial page" and "include header row in subsequent pages" selected on the Pagination tab.
    Then using a "keep with next" might work ok.

  • Scrollbars w/ one table across multiple tabs

    Please help, I'm stumped on this...
    User has requested that a single table be displayed across multiple tabbed canvases. Problem is that each tabbed canvase contains mulitple record data.
    I can define a scrollbar using the block property pallette and have the scroll bar then display on the first tab. How can I define and display a scroll bar on the second and third tabs?
    In the past, I created a stacked canvas view that replaces the 2nd/3rd tabs. In this instance, the user has requested that the data not be displayed via a stacked scrolling canvas.
    Any ideas?

    You mean the scrollbar does not scroll??
    What is the number of records displayed value of
    your block?
    Your scrollbar should be working when your number of
    records exceed the number of displayed items. Visual
    attributes is for look and feel only.
    Let's say your block number of records displayed is
    5 and you have 10 records the scrollbar is not
    scrolling??
    Regards,
    TonyCorrect. The scroll bar is not scrolling. For the base table block that is spread across three tabs, the number of records displayed is 5. When I execute the query, 6 records are returned. On the first tab, I used the block item property to set up the scroll bar x/y settings and height/width. Within the first tab, the scroll bar is working fine.
    When the second tab is activated (e.g. it is the top most tab page) (w/ the stack canvas overlay scrollbar), the bar appears in the correct position but there is no functionality attached to it. In other words it just appears as a bar like one would find on a bar graph. The bar does not resemble a scroll bar (visually) nor does it operate like one. Ditto for the 3rd tab.
    Do I need to attach a Dummy block with 5 records to each stacked canvas overlay scrollbar in order to have the look/feel and functionality of a scroll bar?
    Thanks,
    Steve

  • Updating Database table across multiple SAP systems

    Dear All,
    I am working on a requirement which is described as follows:
    The requirement is to keep a database table in sync across 10 different SAP clients (for production, test systems etc.). So when the database table is modified in source SAP system, it has to be replicated across all the clients and table of other SAP systems.
    So the queries from my side are:
    1. Whether XI should be used here as a middleware or direct RFC calls can do the updation across the SAP systems?
    2. If XI is to be used what would be the recommended approach (ABAP Proxy to ABAP Proxy communication?)
    Hope you can recommend me the best options to achieve this.
    Thanks & Regards,
    Pratik

    it depends on what tables are involved/ what type of data/what transactions cause the update.
    If you know the table names - then database level replication may be an option u2013 many projects do refresh their QA system with production data for a very real test data. If not, a hard disk level mirroring may have to be considered.
    There are other technologies like change pointers in conjunction with distribution model can also be considered - which could trigger idocs that can be sent to the other systems using ALE layer or ALE *** PI/XI

Maybe you are looking for

  • I keep getting error messages when I download    -100008

    I just started getting the error message that tere was a problem downloading, and the file seems corrupted. The error message is 'err = -100008' It tells me to redownload, but that doesn't help. Any help is appreciated. compaq   Windows XP   Itunes 7

  • Help in ripping a movie

    I have a movie that I have to extract some clips from (with the director's permission) and I am having trouble. I used mac the ripper and dvdxdv and the process seems to work correctly but when I import into imovie, the frames are blank. I've done th

  • Controlling the desktop through http

    i would like to control the desktop through http. is this possible? i think the robot class can be used here but i do not know how can i connect from a different pc. i also think that i have to make a server for the pc that i want to control. can som

  • Can I use an oceanpay card for payment?

    Hello! This is my first time asking a question here.  Can I use an oceanpay card for payment? I tried in the Philippines store since I'm in the Philippines but whenever I entered the card number and security code, it says that the Payment method is n

  • Data to analyze

    I have three text data files with information about users, AD groups, and servers in this format: groupname,groupID,membercount user;groupID,groupID,groupID... server,groupID;groupID;groupID... I want to be able to: -click on a group and see all memb