Possible to have multiple data sources within 1 SQL querey?

Hi All,
Is it possible to join to a table in a different datasource within 1 SQL Querey?
Something like...
Connection 1
Select *
From Table
Join
Connection 2
On
Connection1.Table1.Field1 = Connection2.Table2.Field2  Thanks,
John

Johnbr (Oracle11G) wrote:
Is it possible to join to a table in a different datasource within 1 SQL Querey?Called distributed joins - joining a table from one database with that of another database. Also possible to do heterogeneously across different database products - e.g. joining an Oracle table with a SQL-Server table.
As already explained, some kind of communication interface is needed from the local database to the remote database, in order for the remote table to be read and joined to the local database. This interface is called a database link in Oracle.
The basic steps. First define the database link:
create database link <linkname>
  connect to <account>
  identified by <password>
  using <connection-string>Complete syntax details and examples are in the SQL Reference Guide (see http://tahiti.oracle.com)
After the database link has been identified, you should now be able to address remote tables as follows:
select * from <remote-table>@<link-name>A distributed join would look something like the following:
select
from <local-table> t1,
      <remote-table>@<link-name> t2
where t1.. = t2..However... this is almost always a BAD IDEA to do distributed joins. It seldom performs well. Performance is immediately constrained to the speed, bandwidth and latency of the network link between local and remote databases. It cannot scale with data volumes and increased frequency of use.
So if the remote table is not small, the network link not robust and reliable, and join not infrequent, it is bad idea to make use of distributed joins. In which case other alternative (and far superior) features need to be considered instead - like materialised views.

Similar Messages

  • Report model to have multiple data sources

    Hi,
    We have requirement to develop report model in 2008 having multiple data sources which includes SQL SERVER 2012 and Oracle database so end user can all the relevant data in one place to run in report builder. So please advise how this can be achieved.
    One option I can think of pulling all the data into one database through SSIS and then build a smdl on it.
    I heard it might be possible to build Tabular cube and then use Report builder on it not sure which is the best option unless any other solution.
    Thanks,

    There are multiple options
    1. If its just for need of a single report then you don't necessarily need to use SSIS and bring all data to single database for that. SSRS supports multiple heterogeneous datasources so you can simply create multiple datasources one fro SQLServer and one
    for Oracle. Then you can create datasets based on these datasources and use them inside reports to display the data from the two systems.
    One thing to note here is that SSRS provides only limited capability to merge fields from multiple datasets within same container through the use of Lookup, LookupSet etc functions so if you want to do lots of comparison ,manipulation of fields against two
    datasources then you need to go for common database approach itself. This involves building a datawarehouse/datamart which will assmeble data from various sources and change them into format which  report expects. Then its just a matter of using single
    datasource pointing to this common repository for your reports.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Is it possible to have multiple SOA Server within same domain ?

    Hi All
    I need to know whether I can install and setup multiple soa_servers inside the same domain so that they can be managed by single weblogic instance.
    The use case scenario :
    We have a single DEV environment instance that has several environments configured with it like PR1, PR2, TR, PY, PC.
    The way we have achieved it is by creating partitions under soa_infra and deploying the code as we move up the ladder in testing phases before we move to separate QA and Prod.
    Because of the way Dev is being setup, we are not able to use/test Oracle B2B properly because there is no way to have environment specific distinction be created in Oracle B2B.
    In essence, at any point in time testing can happen only in one environment for out Dev box because it makes call to Oracle B2B (Trading Partners) and there is no way for us to distinguish whether the call is coming from PR1 or PR2 or PC or TR or PY.
    We have no issue testing it as long as it is not restricted to B2B but with B2B we are restricted because a single soa instance has a single B2b instance. ( We can not have partition wise instances of B2B)
    Requirement :
    Is it possible to install and configure different soa_server for.e.g
    soa_server1 : PR1
    soa_server2 : PR2
    soa_server3 : PY
    soa_server4 : PC
    soa_server5 : TR
    inside the same domain (dev_domain) so that they can be managed from single weblogic instance through Admin console and we can have different B2B instances for each soa_server.
    This way we will be able to differentiate between environments on the basis of ports with the same IP address.
    Please let me know if there is a possibility of achieving the same.
    Thank you so much in advance.
    Regards
    ACM

    Thanks Sharmela for your directions.
    Let me try to clone the soa server and see if it helps.
    Before I move forward, I would like to verify one thing from you.
    As you have mentioned the word "cluster" , I am not exactly trying to achieve the clustered setup "conventional way of load balancing and high availability" but instead I want to have these cloned soa servers( soa_server1 : 8001,soa_server2 : 8002,soa_server3 : 8003,soa_server4 : 8004,soa_server5:8005 )to have separate partitions ( PR1, PR2, PY, TR,PC) respectively.
    I hope I don't have to configure OHS to access these nodes since I want these nodes be available as a separate instance rather than redirecting load in case of any other becoming unresponsive ( OHS configuration)
    I am not sure whether I am making sense but all I need to do is point the PR1 instance having it's own port number(8001) to the PR1 instance of ERP.
    I think it is doable but just wanted to double check with you.
    Please let me know
    Thank you

  • Increase performance in a multiple data source report

    Post Author: ArturoFromPeru
    CA Forum: General
    Hi everybody.
    I have a big problem, when i make a report that have multiple data sources the performance decrease considerably, i still don't know the reason. Is it true that using multiple data sources is too slow?.
    I tell you a fact: I made the report connecting via "Field Definition File", and it take at least 2 minutes to show itself but it only have 170 records, and i'm very sure that the sql statements to each data source were executed very faster.
    I even heard about index, but i think they only are useful when i connect directly to the database.
    All my partner told me, that Cristal Report
    Thanks you in advance
    Regards.
    Arturo

    Post Author: ArturoFromPeru
    CA Forum: General
    Thanks you, but I explain better what i was doing.
    I've made a report called "Kardex de Producto" which show the behavior of the products according to its sales, purchases.
    The end result which is showed by the report is correct. I used three data source in the report, so links between each table is correct. The only problem i have is the performance because i still don't know why is too slow. In fact the sql statement is very heavy, but i think it doesn't matter to the report because when it takes the data from the database (connecting via Field Definition File) even if the very heavy sql statement returns twenty record Cristal Report must show itself very quickly. I don't want to believe that Cristal Report is very slow when it works with multiple data sources.
    Do you mind if i give you my report? if not please leave me your email address.
    Email: [email protected] / [email protected]
    Thank you in advance
    Regards
    Arturo

  • CFTransaction & Multiple data sources

    We have the need to update to multiple data sources under
    CFTransaction. We have two MSSQL databases so I was able to create
    a view in one to the other and that works (unless someone knows of
    a problem that could cause). But we also have a MSAccess db that
    gets hit too under the same CFTransaction. CF does not allow you to
    have multiple data sources under one CFTransaction. If all the
    tranasction control is on the db side, why does CF care if there
    are different data sources?
    Thanks.

    As I said in my original post, in order for a transaction to
    span multiple databases, you need to do what's called "2-phase
    commit" or "distributed transactions". This is not a trivial thing
    to do, nor is it something that is often needed (especially in
    Coldfusion, which is 99% of the time talking to a single database).
    Why do you need to do 2-phase commit? and why isn't it
    trivial?
    "2PC is an acronym for 2 Phase Commit. This is a protocol by
    which data being committed to a database is committed in two
    phases. In the first phase, the transaction processor checks that
    all parts of the transaction can be committed. In the second phase,
    all parts of the transaction are committed. If any part of the
    transaction indicates in the first phase that it cannot be
    committed, the second phase does not occur. ODBC does not support
    two-phase commits."
    http://docs.openlinksw.com/virtuoso/twopcimplementation.html
    I don't think Access supports 2-phase commit. Access isn't
    really intended for the kinds of things that need 2-phase commit,
    which Microsoft readily admits (hence MS SQL Server).
    > My thought is that it is not allowed because CF only
    remembers one data source per cftransaction therefore can only send
    one commit or rollback instruction. If that's the case, it sounds
    like a simple enhancement.
    No, this isn't allowed because distributed transactions is a
    non-trivial thing. This isn't all handled on the database side, as
    you reference. If you're dealing with one datasource, yes, it does.
    Once you pull in a 2nd datasource, you need something that can talk
    to all databases involved (a transaction coordinator) and 1) check
    to make sure everything can be committed safely then 2) commit
    everything (hence 2-phase commit).
    Basically, you're trying to do something that's non-trivial,
    you don't understand why it's non-trivial, so you're getting
    frustrated. I realize you're not a Java shop. I was simply trying
    to explain to you why it was non-trivial, and a method to work
    around that if you so desire.

  • Multiple data sources to open hub destination ??

    Hi,
            Is it possible to assign multiple data sources to open hub destination?
    At present we are FTP'ing a file to users. Users need one more field added to this file. The information for this field belongs to another ODS. I  checked the infospoke but it does not accept multiple data sources.
    Any ideas?
    Thanks!
    Edited by: BI Quest on Sep 4, 2008 8:12 PM

    You can create multiple transformations for open hub destination. Create destination of open hub destination to be file on application server and then use transfer mechanism to transfer files to desired destination.
    Regards,
    Pravin Karkhanis.

  • Multiple data sources in endeca

    Hi,
    I have multiple data sources in endeca like web crawler, xml,database, txt or pdf etc.
    Can all be configured through dev studio or all through cas or some from cas and some from dev studio?
    Pls let me know..Thanks!

    You will most probable need both CAS as well as dev studio. Web crawls and ingesting docs will have to be configured through CAS. Database and txt files (if they are delimited) can be ingested through pipeline.
    You can send the data from CAS (record stored) directly to forge as input OR you can send it to the pipeline if you need further modifications to it.
    HTH,
    Pankaj.

  • Any examples of a data template using multiple data sources?

    I'm looking for an example report using multiple data sources. I've seen one where they do a master/detail but I'm just looking to combine results in sorted order (sorted across all data sources). The master/detail used a bind variable to link the two defined queries, I'm thinking what I want won't have that, so I'm lost on how to make that happen. I have reports using multiple sql queries and there is a way in the data source pulldown to tell it to combine the data sources. It appears to be a more manual process with data templates, if it's even possible.
    Any pointers/links would be appreciated.
    Gaff

    Hi Vetsrini :
    That's just it. Mine is simpler than that. There is no master/detail relationship between the two queries. I have the same exact query that I run in two databases and I want to merge the results (ordered, by, say eventTime) in one report. So I think my results are going to be two separate groups (one for each data source) which I'll have to let BI merge vis XSLT or whatever it uses. That's fine for small result sets but for larger ones, it would be nice if the database did the sorting/merging.
    Gaff

  • Report Viewer and Multiple Data Sources

    I know that it is possible to create a report in Crystal Reports using multiple data sources.  But is it possible to use just the Free  Report Viewer to view a report with Multiple Data Sources?
    Our company uses Crystal Reports XI.  I do not use the program myself, I am in the IT Department.  I have limited knowledge of Crystal and do not do any of the report writing.
    If this is possible, and if someone could help me out with what would need to be done, or point me in the right direction of a Knowledge Base or Help Topic that explains this, that would be great.
    Thanks.

    I believe it can but both data sources need to be set up. Ask a report designer to help you use the Designer to test this and see what is required.

  • Bursting with multiple data sources

    Hello all,
    I am working in a retail environment and we are building reports for the stores. There are several reports and they all receive the same reports. We are using BIP Entreprise with the bursting feature and it works very well.
    The problem is that there are too many reports and we would like to combine all reports of the same store within the same PDF. We use the multiple data source feature and was able to concatenate all reports together.
    Using this new report and template, we can not make the bursting functionality to work properly: the bursted report do not contain all the required report components.
    For example, I have 2 queries A and B each producing reports for 3 stores: 2, 4 and 5. Without bursting, the output is as is:
    Query A - Store 2
    Query A - Store 4
    Query A - Store 5
    Query B - Store 2
    Query B - Store 4
    Query B - Store 5
    With bursting into a file using the store number, I get the following:
    File 1 - Store 2 - Query A
    File 2 - Store 4 - Query A
    File 3 - Store 5 - Query A
    + Store 2 - Query B
    + Store 4 - Query B
    + Store 5 - Query B
    I would like to have the following output:
    File 1 - Store 2 - Query A
    + Store 2 - Query B
    File 2 - Store 4 - Query A
    + Store 4 - Query B
    File 3 - Store 5 - Query A
    + Store 5 - Query B
    The main question is: can this be done using BI Pub Enterprise? We using version 10.1.3.3.2
    If it is, can you provide me with help on how to configure either/or the requests and template to accomplish this task?
    I create an SR and Oracle Support does not have an answser and suggested that somebody in the Forum might help.
    Thanks in advance,
    Minh

    I would like to have the following output:
    File 1 - Store 2 - Query A + Store 2 - Query B
    File 2 - Store 4 - Query A + Store 4 - Query B
    File 3 - Store 5 - Query A + Store 5 - Query B
    the bursting level should be give at
    File 1 - Store 2 - Query A + Store 2 - Query B
    so the tag in the xml has to be split by common to these three rows.
    since the data is coming from the diff query, and the data is not going to be under single tag.
    you cannot burst it using concatenated data source.
    But you can do it, using the datatemplate, and link the query and get the data for each file under a single query,
    select distinct store_name from all-stores
    select * from query1 where store name = :store_name === 1st query
    select * from query2 where store name = :store_name === 2nd query
    define the datastructure the way you wanted,
    the xml will contain something like this
    <stores>
    <store> </store> - for store 2
    <store> </store> - for store 3
    <store> </store> - for store 4
    <store> </store> - for store 5
    <stores>
    now you can burst it at store level.

  • Is it possible to have multiple search results page using one Search Enterprise Center site?

    Hi,
    We're using SharePoint 2013 and I'm trying to modify the search results page for one site collection. By default, it uses the search results page from the parent site which is the search center being used by default for the web application. I need to make
    sure that the site collection will only retrieve search results within the site collection (search everything has to be disabled). I found a way but I had to create another search center site to accomplish this, otherwise, it will affect the search center
    site of all other site collections on the web app.
    Now is it possible to have multiple search results page using one Search Enterprise Center site?

    Hi,
    According to your description, you want to retrieve the search results within the site collection.
    As a workaround, you can create a custom result source for the site collection and you will retrieve the search result within the site collection.
    More information about how to create result source in SharePoint 2013, please refer to :
    http://technet.microsoft.com/en-us/library/jj683115(v=office.15).aspx
    http://techmikael.blogspot.com/2013/04/limiting-search-results-in-sharepoint.html
    Best regards

  • Web Analysis : populate the same table with multiple data sources

    Hi folks,
    I would like to know if it is possible to populate a table with multiple data sources.
    For instance, I'd like to create a table with 3 columns : Entity, Customer and AvgCostPerCust.
    Entity and Customer come from one Essbase, AvgCostPerCust comes from HFM.
    The objective is to get a calculated member which is Customer * AvgCostPerCust.
    Any ideas ?
    Once again, thanks for your help.

    I would like to have the following output:
    File 1 - Store 2 - Query A + Store 2 - Query B
    File 2 - Store 4 - Query A + Store 4 - Query B
    File 3 - Store 5 - Query A + Store 5 - Query B
    the bursting level should be give at
    File 1 - Store 2 - Query A + Store 2 - Query B
    so the tag in the xml has to be split by common to these three rows.
    since the data is coming from the diff query, and the data is not going to be under single tag.
    you cannot burst it using concatenated data source.
    But you can do it, using the datatemplate, and link the query and get the data for each file under a single query,
    select distinct store_name from all-stores
    select * from query1 where store name = :store_name === 1st query
    select * from query2 where store name = :store_name === 2nd query
    define the datastructure the way you wanted,
    the xml will contain something like this
    <stores>
    <store> </store> - for store 2
    <store> </store> - for store 3
    <store> </store> - for store 4
    <store> </store> - for store 5
    <stores>
    now you can burst it at store level.

  • BI+ Reporting With Multiple Data Sources

    Hi -
    We've been using BI+ Reports with multiple data sources on separate grids. We are wondering if there is a better way to ensure the user has their point of view bar in sync between the the data sources. In our case, both Data Sources are separate HFM applications with all the dimensions identical except the account which is defined on the report. We are not using Metadata Management.
    I'm aware of the "Merge Equivalent Prompts" in the Preferences > Financial Reporting window, but this does not always ensure the users have the same point of view.
    What practice are other companies using to make sure the user runs the reports accurately with both point of view bars pulling the same entity/year/period.
    Thanks in advance.

    Thanks for your answer, however my question - I know it looks quite messy - is not directly related to data templates, my problem is that at the moment I am using a stored procedure following - almost exactly - what another procedure does in oracle EBS to call a BI publisher report.
    1. This procedure populates some temporary table with the xml data where the concurrent request picks it up and uses it to populate the BI publisher template.
    2. However I can't go and specify the XML location in my data template as this is not an option for us (i.e. reading the xml from the temporary table), so I am looking for another way to populate the BI publisher template (Note: I can't as well include the SQL queries in my Data template).
    Thanks ;)

  • Multiple Data Sources In One Logical Table

    I am new to OBIEE and I have came accross an issue. I appologize if this information is in the forum somewhere but I have searched and cannot find it.
    My situation is that I would like to have one logical table that contains multiple data sources which have all the same columns. I already have session variables setup to differentiate the user's security through a row-wise variable for a specific column and a session variable for another column which determines the user's association to the data source in which they belong to. This security works well when the data sources are seperated in the Business Model and Mapping portion but the issue that arises is that the user's cannot share reports when the data sources are seperated in the BM&M.
    I have dragged and dropped a table from the Physical model to the BM&M, I then dragged the second data source (with same meta data structure) over to the "Sources" folder in the first data source table in the BM&M. On the Content tab or each data source table I have defined the WHERE clause as such, where VALUEOF(NQ_SESSION."SCHOOL") session variable is my row-wise column filter and the VALUEOF(NQ_SESSION."GROUP") filter is my data source determinative:
    sandbox."".SANDBOX.OBIEE_CROSS_ENROLLMENTS.HOME_SCHOOL = VALUEOF(NQ_SESSION."SCHOOL") AND sandbox."".SANDBOX.OBIEE_CROSS_ENROLLMENTS.DATA_SOURCE = VALUEOF(NQ_SESSION."GROUP")
    Unfortunatley this only returns values in the BI Answers for the first drag and drop Pysical table in the BM&M layer and not the second Physical table drug into the "Sources" folder. I have also tried to create a new logical table and drag both tables into the "Sources" folder to no avail. I have experimented with the Fragmentation content on the "Content" tab of the seperate logical tables, checking the "This source should be combined with other sources at this level", which gives me an error in BI Answers that a column does not exist which really does.
    What could I be missing? Advanced thanks to those who reply.
    Thank you,
    Kyle

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

  • Adhoc Query Requirement with Multiple Data Source

    Hi All,
    I have a Adhoc Query Requirement with Multiple Data Source. Is there any way to achive it. Other than Resultant set and bring into Model.
    Thanks
    SS

    You can compare stuff in the EL, but I don't think this is what you need.
    You can just use Java code in the backing bean class for all the business logic. You can use DAO classes for database access logic. Finally for displaying you can use the JSF tags such as h:outputText.

Maybe you are looking for