Re: Multiple Data sources in single project
Hi Experts,
I am working in JDEV 11.1.1.3.0.
In my model project i have configured 2AM with 2 different data base connections, both are working fine. Now in the 2nd AM i am trying to execute VO and getting the value, but the query is not executing, if i execute the Same VO from data base then it's working fine.
Code:
AllTabColumnsROVORowImpl allTableColumnRow = null;
AllTabColumnsROVOImpl allTabColumnVO = getAllTabColumnsROVO();
Iterator tableItr = tableNameLst.iterator();
while (tableItr.hasNext())
String tableName = tableItr.next().toString();
allTabColumnVO.setBindTableName(tableName.trim());
allTabColumnVO.executeQuery();
System.out.println("query: " + allTabColumnVO.getQuery());
while (allTabColumnVO.hasNext())
allTableColumnRow =
(AllTabColumnsROVORowImpl) allTabColumnVO.next();
System.out.println("Column name: " +
allTableColumnRow.getColumnName());
columnMap.put(tableName + "_" + allTableColumnRow.getColumnName(),
allTableColumnRow.getDataType());
Bind variable i am getting from list, that's coming fine, but the while statement is not executing, method is ending after printing query.
Can any one help me what is wrong here.
You have to put the options -Djbo.jdbc.debug=true -Djbo.debugoutput=console in the 'javaOptions' field of your run configuration (in the view controller project).
Then you'll get the info.
Steve Muench filed a new blog entry https://smuenchadf.samplecode.oracle.com/samples/hroug2010_debugging_adf_applications_muench_final.pdf about debugging 'no data' issue.
Timo
Similar Messages
-
Can we combine multiple data sources in single report?
<span style="font-size: 10pt; font-family: Verdana">Can we combine multiple data sources in single report?</span>
If you can't do this at the Metalayer (BVs or Universe) - then subreports and shared variables are the method for CR to use multiple datasources in the same report.
-
Data Extraction from Multiple data sources into a single Infoprovider
Hi Experts,
Can anyone send me links or examples on how to extract data from multiple data sources into 1 Cube/DSO.
Can anyone send me example scenarios for extracting data from 2 data sources into a single Cube/DSO.
Thanks
KumarHi Ashok,
Check the following link from SAP help. Ths is probably what you are looking for.
[ Multiple data sources into single infoprovider|http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm]
Data from multiple data sources which are logically related and technicall have the same key can be combined into single record.
For example, if you have Sales order item and sales order item status .
These both have the same key - sales order and item and are logically related.
The Sales order item - provides information on Sales order item - material , price, quantity, plant etc.
The item status - povides information on delivery status, billing status, rejection status....
These are two different data sources 2LIS_!1_VAITM ad 2LIS_11_VASTI.
In case you have few master data attributes coming from different systems ie tow data sources in different systems say completely defines your master data. Then you could use a DSO or infoobject to combine the records.
If you want to see aggregated data you use a cube.
ie say you want to analyzae the customer revenue on a particular material and a particular project.
The project details would come from Project syatem and Sales details fom sales flow.
The data is then combined in the DSO with key cutomer and sales area say.
Then it is aggregated at cube level...by not using sales order in the cube model...so all sales order of the same customer would add while loading the cube.. to give direct customer spend values for your sales area at aggregated level.
Hope this helps,
Best regards,
Sunmit. -
Single .rar file for multiple data sources
Can we configure multiple data sources into single .rar file? . Currently,
we are creating a seperate .rar file to configure each datasource by
'only' modifing ra.xml file. This is proving to be a tedius operation in
some cases when the application is integrated with multiple data sources.Siva-
Unfortunately, no. One of the limitations of the resource adapter spec
is that it doesn't provide a means of specifying multiple separate named
configurations, so you can only have a single configuration.
If you need more flexibility, you may want to consider programatically
building up the PersistenceManagerFactory and then binding them into
JNDI.
In article <cqscdo$n1o$[email protected]>, Siva wrote:
Can we configure multiple data sources into single .rar file? . Currently,
we are creating a seperate .rar file to configure each datasource by
'only' modifing ra.xml file. This is proving to be a tedius operation in
some cases when the application is integrated with multiple data sources.--
Marc Prud'hommeaux
SolarMetric Inc. -
Impossible to configure multiple data sources for EJB's in a single project
Hello everyone,
I have jDev 10.1.3 installed and I'm doing some research on EJB 3.0. In the jDev help files, it is mentioned that a project can contain only one EJB module. Correct me if I'm wrong but to me, this means that there is only one data source configured for a module/project.
But what if I need 2 EJB's linked to 2 different data source in my project? Is the only solution available is to create 2 different project and add one ejb to a project and the other ejb to the second project and then add the second project as a project dependency to the first project?
Thank you for your help
AlexMultiple Datasources may be injected into a EJB 3.0 entity bean POJO with resource injection.
http://www.onjava.com/pub/a/onjava/2006/01/04/dependency-injection-java-ee-5.html?page=3 -
Does OBIEE has ability to create a single cube from multiple data sources?
Hi all,
Does OBIEE has the ability to create a single cube from multiple sources and does it has the ability to join multiple cubes?
Looking forward to ur reply.Hi
OBIEE can join multiple data sources to make a single data model, but it's not a cube in the multi-dimensional sense like Essbase or Oracle OLAP.
To be able to join datasources together they need to have a common dimension or FK relationship depending on what the source is and what you want to do with it.
Ed -
Configure a single ODI install for multiple Data Sources in ERPI
I am setting up multiple data sources in ERPI to point to different EBS instances. How would I go about setting up ODI to support that without multiple installations of ODI? or is multiple installs the best way to go, from an 'ease of management' perspective?
Thanks!First off - Have no knowledge of ERPi - Just googled it.
If its any help, we have multiple instances of EBS on the same box, we have seperate DWH (and ODI Work / Master Repos) environments aligned to these instances. An ODI Agent can only communicate with one ODI Work repository, hence we have Multiple Agents so we can use the EBIZ -> DWH pairs simultaneasouly.
Maybe someone will come along and tell us how it could work differently, until then - its works for us! -
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,
MinhI 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. -
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. -
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. -
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 -
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.
ArturoPost 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 -
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.
-
Can you use SQL as a data source for a project in the same way you can in Excel?
Excel allows you to create a data source that executes a SQL stored procedure, display that data as a table in a spreadsheet and have that data automatically refresh each time you open the spreadsheet. Is it possible to do the same thing in MS Project, displaying
the data from the stored procedure as a series of tasks?
Here's what I'm trying to do - I have a stored procedure that pulls task data meeting a specific criteria from all projects in Project Server. We're currently displaying this data as an Excel report. However, the data includes start dates and durations so
it would be nice to be able to display it as a Gantt Chart. I've played around with creating a Gantt chart in Excel and have been able to do a very basic one, but it doesn’t quite fit our needs.No, You can not use sql as a data source for a project.
You have 3 options to achieve it:
1. You can create a Sharepoint list with desired column ,fill desired data in that list then you can create a MS project from Sharepoint List.
2. You can create a SSRS report in which you can display grantt chart Joe has given you that link.
3. You can write a macro in MPP which will take data from your excel. In excel you will fetch data from your stored procedure. write a schedule which will run every day to update your data or
create an excel report in which will update automatically and write macro in mpp which will fetch the data then publish it so that it would be available to team members.
kirtesh -
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.
GaffHi 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
Maybe you are looking for
-
Oracle binary and control files
Hi All, I want know whether the oracle binary and control files are they related in anyway. I have my physical files on a SAN storage and my oracle binary files on a local disk. In case if I delete my oracle binaries and restore it from a backup, wil
-
Migrate WSUS from Windows 2003 to 2008 R2
We have a single WSUS server on a single Server 2003 box using a remote SQL server. I just moved the DB from SQL 2005 (32 bit) too 2008 (64 bit) with no problems. I'd now like to upgrade the WSUS server to 2008 R2 going from 32 bit to 64 bit and am w
-
Transporting BeX requests into Quality from Dev
Hi All, I want to know while transporting the BeX requests, is there any special procedure ? I have created the BeX transport request and now my changes are recorded successfully in this request. What are the next steps ? In my organisation the Basis
-
Exclude purchase order on storage location from MRP
Hi Everyone, We have excluded storage location 1200 from MRP. The result shows only stock on 1200 excluded from MRP, PO on storage location 1200 (storage location 1200 in PO) still considered in MRP. Is there any way to exclude PO on 1200 i MRP also?
-
i had homesharing on my mac, but when i tried to watch a rented movie on my apple tv i got a message to turn on homesharing. i tried but kept getting an error message 12004. can anyone please provide a solution ?