By using a nested as a data source in a cursor query table?
Hi allCan you please let me know if we can use a nested table created locally as a source of data in a query of cursor?
I'm doing using the following logic, but on compliation failure with the error: "PL/SQL: ORA-00942: table or view does not exist.
=================================================================================================
DECLARE
N_table_outage_dates TYPE IS an ARRAY OF DATE;
nt_out n_table_outage_dates: = n_table_outage_dates();
l_outage_date DATE;
cursor l_temp_cursor is
SELECT DISTINCT APS. VENDOR_ID
OF AP_SUPPLIERS APS
WHERE
(
Trunc (APS. BUS_CLASS_LAST_CERTIFIED_DATE) + To_Number (FND_PROFILE. Value('POS_BUS_CLASS_RECERT_PERIOD'))
= Trunc (l_outage_date) + To_Number (FND_PROFILE. Value('POS_BUS_CLASS_RECERT_REMIND_DAYS'))
AND l_outage_date IN (SELECT * FROM nt_out );
BEGIN
l_outage_date: = SYSDATE;
FOR I IN 1.7 LOOP
nt_out. EXTEND;
nt_out (i): = l_outage_date;
l_outage_date: = l_outage_date + 1;
END LOOP;
Open l_temp_cursor
-other logic
close l_temp_cursor;
END
=================================================================================================
The other will be passing the value of 'l_outage_date' to a cursor in a loop and then storing the multiple outputs of the query in a separate table / v-table but it will lead to duplicated being filled, elements that will need some work to do.
Please let me how can know I use the nested table created by user in the query cursor running regarding the above code? Is the statement to go wrong anywhere nested table?
Thank you
Sylvain
You currently have
TYPE n_table_outage_dates IS TABLE OF DATE;
nt_out n_table_outage_dates := n_table_outage_dates();
He declares nt_out as a type of PL/SQL... the engine SQL (the place that runs queries) can not understand / interpret what it is, because it is declared in a PL/SQL it is not inherited in any way in SQL.
So you must either create the type in SQL as I showed earlier OR (now that we know your version) get grants on the object laid down by Solomon.
AND THEN, you need to change
(SELECT * FROM nt_out );
TO
(SELECT * FROM TABLE(CAST(nt_out as DEPENDS_ON_WHICH_OBJECT_YOU_CHOOSE_TO_USE) );
As I mentioned earlier in my example.
Published by: Tubby on December 23, 2009 11:23
Tags: Database
Similar Questions
-
stupid questions on the use of mds-GOSA/bip_datasource data sources.
Dear gurus,
I'm confused about the use of some as securities data sources.
And what is the relationship of them with RPD source data/connection pool setting?
As I found in the turning performance guide, while I can't find where is the caller / user of these data sources and never mentioned turning guide turning data sources RPD which I think is more important...
So I think I must have Miss understanding of something, need your help!
MichaelHi Michael,
The data sources mds-GOSA/bip_datasource etc. are for the weblogic server access to the metadata of Fusion Middleware.
If you remember, we had used the RCU to create a repository of information of configuration settings, host of Fusion Middleware /product information/versions etc in a separate database, and these data sources are created in weblogic, and the different products that we install, in this case OBIEE/RTD/BIPublisher etc. can interact between them, transparently and through weblogic.
Since then, it is the common platform (application server) on which all products have been deployed, it is necessary that we tune elsewhere too for optimal performance from the Infrastructure point of view.
Now, the connection pool of the physical layer in our .rpd is all about access to data, and so the setting guide does not, in this regard because it is completely dependent on the type of data source, network interfaces of appeal, not concurrrent users, total dashboards, reports etc etc which is dependent demand.
The setting guide is all about the setting of the Middleware Infrastructure + optimal settings for middleware (middleware) only.
Hope that I was clear.
Thank you
Diakité -
Using WLST to test existing data source
Hi Forum,
I wonder if its possible to test an existing source of data (WL10.3) connection using WLST. Ideally, I would like to write something to check connectivity e2e. I prefer this rather than enter the details of the DS and external test for Weblogic. It would be also better to add some test the functionality of the application and the exhibitor. Thanks for the pointers.
Kind regards
Baños.Hello..
It is a method on the JDBCDataSourceRuntimeMBean, which is located in the serverRuntime tree...
for example.
serverRuntime()
CD ('JDBCServiceRuntime')
CD to target you.
CD ('JDBCDataSourceRuntimeMBeans')
then cd into your data Source and testPool method is available here.
-
BI Publisher &; dynamic data source
Hello
We try to have one OBI/EE configuration serve several application pre-production environments with mostly identical database schemas.
There is a pool of dynamic connections in BI Server, its data source, the value of a session variable ([see here | http://hekatonkheires.blogspot.com/2009/10/obiee-101341-dynamic-data-source.html]). It works very well.
Now a BI dashboard has a BI Publisher report on it against this dynamic data source. This is equivalent to shouting to the editor and Publisher to recall of presentation services. The session data source variable is lost in the process.
Is there a way of sessions between services of presentation and publication of sharing or otherwise passing session here and there, variables such as URL parameters?
Thanks in advance,
Dirk.HY,
I never try but here I think.
The integration settings between BEEP and OBIEE is made via the guest of dashboard.
If you use a response as a data source in the TWEET, you normally have no problem.
If you use a SQL query as a data source, you must:
* Add a command prompt with a default of your session (for the dynamic connection) variable
* use it in your sql as a bind variable for a schema or a database link.Success
Nico -
"Database Config" vs "data source Configuration.
In the Configuration utility for 9.3.1 What are the differences between "Database Config" and "data source Configuration.
After running 'Config database' itl has created about 10 HSPsys_ * tables in the database of PLANSYS. It seems to me that this is where the planning and data source information instance are stored
"Data source configuration. created about 30 HSP_ * tables in PLAN2.
It seems that is where the application tables are stored, am I right?
When you run "Configure data source", I shouldn't use PLANSYS database to store my tables for the application I'm good? Otherwise I would have problems with future migration, am I right?Hello
Database config set up tables for the planning system to use this database schema / should be separated from the application planning.
"Data source configuration" - configure just details about your connection to the planning application details, e.g. connections details to the repository and essbase. It stores this information in your planning system database.Once you create a planning application he uses the information from the data source to create the planning and application of all the tables in the database
See you soon
John
http://John-Goodwin.blogspot.com/ -
Hi all
I work in a retail environment in retail and we build reports for stores. There are several reports and that they receive the same reports. We use the BEEP company with breaking function and it works fine.
The problem is that there are too many reports and we would like to consolidate all of the reports from the same store in the same PDF. We use the function of multiple data source and managed to concatenate all the comprehensive reports.
Using this model, and the new report, we cannot make breaking functionality works correctly: the burst report contain all components of report required.
For example, I have 2 questions A and B producing each of the reports for 3 stores: 2, 4, and 5. Without rupture, the result is such that it 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 the outbreak in 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 - question B
+ Record 4 - B query
+ Store 5 - question B
I wish I had the following result:
File 1 - store 2 - query A
+ Store 2 - question B
File 2 - store 4 - query A
+ Record 4 - B query
File 3 - Store 5 - query A
+ Store 5 - question B
The main question is: is it possible using Enterprise Pub BI? We are using the 10.1.3.3.2 version
If this is the case, can you provide me with help on how to configure either / or queries and the model to accomplish this task?
I create an SR and Support of Oracle is not an answser and suggested someone in the Forum could help.
Thanks in advance,
MinhI wish I had the following result:
1-2-query A file + Store 2 Store - query B
File 2 - store 4 - query A + Store 4 - query B
File 3 - Store 5 - query A + Store 5 - query Bthe level of break must be give to
1-2-query A file + Store 2 Store - query Bthe tag in the xml file must be broken down by common to these three rows.
Since the data comes from the application of different, and data won't be under the single label.
You can't burst using the concatenated data source.But you can do by using datatemplate and bind the request and get data for each file in a single query.
Select distinct store_name in all stores
Select * from query1 where to store the name =: store_name = 1st request
Select * from query2 where to store the name =: store_name = 2nd request
set the datastructure as you wish,
the XML will contain something like that
-to store 2
-to store 3
-for the store 4
-to store 5
Now you can it burst at the store level.
-
A data source using an app does not not to start
I'm adopting the tutorial: https://developer.blackberry.com/cascades/documentation/device_platform/data_access/using_data_sourc... at my request. The only difference is that my app is based on the tabs. Following however to add lines in my file qml, makes the application crashes the gray screen with BB10 logo.
Tab { title: "edit list" imageSource: "asset:///images/note.png" content: Page { titleBar: TitleBar { title: "editing list: " + workingOnList visibility: ChromeVisibility.Visible } Container { id: view ListView { layout: StackListLayout { } preferredWidth: 640.0 // Associate the list view with the data model that's defined in the // attachedObjects list dataModel: dataModel listItemComponents: [ ListItemComponent { type: "item" // Use a standard list item to display the data in the model StandardListItem { title: ListItemData.category_name } } // end of ListItemComponent ] } attachedObjects: [ GroupDataModel { id: dataModel }, DataSource { id: dataSource // Load the data from an SQL database, based on a specific query source: "database.db" query: "select * from categories" onDataLoaded: { // After the data is loaded, insert it into the data model dataModel.insertList(data); } } // end of DataSource ] onCreationCompleted: { // After the root Page is created, direct the data source to start // loading data dataSource.load(); } } } }
The only differences are: code is pasted in the {} instead of {Page} tab, and of course, the name of the database, the columns are changed.
I added bb.data 1.0 import statement in the file .qml, the .pro file was also changed according to the tutorial. Path to the database file is correct.
You have an idea, why this is happening?
Another issue related to the data source:
my main.qml file:
Page { id: mainScreen titleBar: TitleBar { title: "your lists" visibility: ChromeVisibility.Visible } Container { ListView { id: allListsView objectName: "allLists" layout: StackListLayout { headerMode: ListHeaderMode.Sticky } dataModel: allListsModel listItemComponents: [ ListItemComponent { type: "item" StandardListItem { title: ListItemData.list_name } }, ListItemComponent { type: "header" Header { title: ListItemData } } ] onTriggered: { select(indexPath); var page = listPage.createObject(); nav.push(page); } } attachedObjects: [ ComponentDefinition { id: listPage source: "listPreview.qml" }, GroupDataModel { id: allListsModel grouping: ItemGrouping.ByFirstChar sortingKeys: ["list_name"] }, DataSource { id: allListsSource source: "database.db" query: "select * from lists" onDataLoaded: { allListsModel.insertList(data); } } ] onCreationCompleted: { allListsSource.load(); } }
New screen grows without any problem after clicking on list items. But when I add the following lines to listPreview.qml, application stucks selection list item and nothing happens.
Page { content: ListView { id: myListView dataModel: dataModel listItemComponents: [ ListItemComponent { type: "item" StandardListItem { title: ListItemData.article_name } } ] } attachedObjects: [ GroupDataModel { id: dataModel }, DataSource { id: dataSource source: "database.db" query: "select * from articles" onDataLoaded: { dataModel.insertList(data); } } ] onCreationCompleted: { dataSource.load(); } }
It looks like I can not query the DB for the second time commenting on the DataSource {...} of listPreview.qml pushed the new app screen without any problems.
EDIT:
a simple solution: I forgot to add the statement import bb.data 1.0 in listPreview.qml
-
ListView xml by using the data source does not?
Hello
When I use the data for loading XML source, listview displays data only if there is at least 2 element in the XML file.
import bb.cascades 1.0 import bb.data 1.0 NavigationPane { id: nav Page { id: emp titleBar: TitleBar { visibility: ChromeVisibility.Visible } onCreationCompleted: { dataSource1.load(); //load the xml when page is created } actions: [ ActionItem { title: qsTr("Create List") ActionBar.placement: ActionBarPlacement.OnBar onTriggered: { dialog.open(); } } ] Container { topPadding: 30.0 leftPadding: 20.0 rightPadding: 20.0 ListView { id:list1 dataModel:dataModel listItemComponents: [ ListItemComponent { StandardListItem { title: { qsTr(ListItemData.name) } } } ] } } } //page attachedObjects: [ GroupDataModel { id:dataModel }, DataSource { id: dataSource1 source: "models/employeelist.xml" query: "/root/employee" type: DataSourceType.Xml onDataLoaded: { dataModel.clear(); dataModel.insertList(data); } }, Dialog { id: dialog Container { background: Color.Gray layout: StackLayout { } verticalAlignment: VerticalAlignment.Center horizontalAlignment: HorizontalAlignment.Center preferredWidth: 700.0 leftPadding: 20.0 rightPadding: 20.0 topPadding: 20.0 bottomPadding: 20.0 Container { background: Color.White horizontalAlignment: HorizontalAlignment.Center preferredWidth: 700.0 preferredHeight: 50.0 Label { text: "Add Employee List" textStyle.base: SystemDefaults.TextStyles.TitleText textStyle.color: Color.DarkBlue horizontalAlignment: HorizontalAlignment.Center textStyle.fontSizeValue: 4.0 } } Container { topPadding: 30.0 layout: StackLayout { orientation: LayoutOrientation.LeftToRight } Label { text: "Employee Name " } TextField { id:nametxt } } Container { topPadding: 30.0 layout: StackLayout { orientation: LayoutOrientation.LeftToRight } Button { text: "OK" onClicked: { var name=nametxt.text; if(nametxt.text=="") { _model.toastinQml("Please enter a name"); } else { _model.writeEmployeeName(name); //writing name to the employeelist.xml nametxt.text=""; dialog.close(); dataSource1.load(); //loading the xml } } preferredWidth: 300.0 } Button { text: "Cancel" onClicked: { dialog.close(); } preferredWidth: 300.0 } } } } ] }//navigation
When I add a name to the first time to the XML, the list shows nothing. Then, when I add a new name, it displays the list.
Why is it so? Is there a any mistake I made?
Help, please!
Thanks in advance
Diakite
It seems that there is a problem reported on the DIT that was refitted with internal BlackBerry MKS defect tracking system. Until this issue is reviewed by our internal teams, please use the solution suggested by the Rapporteur for the question by introducing an "if" statement before inserting data to the DataModel:
if (data.name) { empDataModel.insert(data); } else { empDataModel.insertList(data); }
-
Create the data source NoSQL Oracle using Oracle Weblogic 11 g
Hello
I'm working on a VINE by which I want to connect NoSQL Oracle database with Oracle Weblogic11g as a new source of data in Oracle Database 11 g of accompaniment.
So my question is that Oracle Weblogic 11 g support NoSQL Oracle database as a data source OR can I plug NoSQL Oracle database as the source of data with Oracle Weblogic11g?
Thank you...
Hello
By 'data source' I assume you mean a JDBC data source. Is this fair?
If so, please be aware that NoSQL DB does not support SQL or JDBC, although these features can be added in the future. Currently, to access data in the NoSQL database from your application, you must use the Java APIs in the pilot of the client which is included in the package. Please see the Starter Guide for more information.
That answer your question?
-mark
-
Should we use the same data source for the internal connection and Save Point?
Hello
Configuration of AM has an internal connection location db, adf - config.xml has also a Save Point db connection parameter, should we are all set to the same source database of the system or should create us a separate data source that is used only for the connection internal db AM of Save?
jdev: 11.1.2.1
Thank you very much!Hello
its everything to you and you have security concerns if the backup point is registered with the business data.
Frank
-
Select data source in physical in OBIEE 11 G mode when you use sql server
Hello
I did my physical review against a SQL Server 2008 R2 server. The list looks up to 2005. I select 2005 in this case? According to the guidelines of the image: http://i.imgur.com/3H7MO.png
See you soon.
I use OBIEE 11 G Windows 32-bit.Hello
Yes it is possible. You can select such as ODBC or SQL 2005 basic can also
I hope that your version less than obiee11.1.1.5.0, version 11.1.1.1.6.0 and above has updated SQL 2008 in the data source selection list.refer,
http://imgur.com/JSYoLThank you
Deva -
ColdFusion 11 allows the use of MS Access 32-bit data sources?
ColdFusion 11 allows the use of MS Access 32-bit data sources?
Well well, my first rhetorical question: is 2014, why MS Access? MS SQL has free versions that are much faster and more stable than any version of MS Access, I have no problem of migration.
Now to your question, 32 bit "should not be a factor." 64-bit applications can talk to most 32-bit applications through an API without too much difficulty. The only exception that I know are 32-bit applications that rely exclusively on the DLLs for their API - I don't "think" MS Access has this limitation. It was probably at least 15 years since I touched what whatsoever in dealing with MS Access so my hesitation to be clearer in my response. Good luck.
-
Taskflow have model (using the view object instances) of two data sources
JDeveloper Version: 11.1.2
We have a flow of single task that has built pages on two modules of the Application that are based on two different data sources.
If the default activity in the workflow uses a display Instance of AM belonging to a particular data source object.
Browsing later, we reach a page that uses instances of object of another display AM belonging to a different data source, the framework does NOT deliver from the SQL statement against this source of data rather than the data source used in the default activity.
How can it resolve to the appropriate data sources?
Thanks in advance,
NiniNini,
Yes, it's the way things are meant to run:
http://one-size-doesn
{: identifier of the thread = 1012099}Definition data control range for the workflow to the 'remote' change the behavior?
John
-
Examples of a model of data using multiple data sources?
I'm looking for a sample report using multiple data sources. I saw one where they make a master-detail, but I'm looking to combine the results in a sorted order (sorting between all sources of data). Master/detail used a variable binding to bind two defined queries, I think what I will not have this, so I'm lost on how to get there. I have reports using multiple sql queries and there is a way in the data source drop-down to tell him to combine data sources. It seems to be a process with data models, it is still possible.
Any pointers/links would be appreciated.
GaffUse this
http://download.Oracle.com/docs/CD/E10415_01/doc/bi.1013/e12187/T421739T434255.htm#3547893
-
Breaking using a concatenated data Source
Greetings,
I'm breaking a report using a concatenated data source. I have a SQL query break implemented that works very well, but I'm not sure how to handle the option "Split." I have a data model that extracts data from multiple queries, like this:
DETAILS_A
Select * from table_a
where payee_id in (: p_payee_id)
DETAILS_B
Select * from table_b
where payee_id in (: p_payee_id)
So, if I choose "Split by" Details_A_Row/Payee_ID, then the Details_A data are distributed properly, but reports that generate don't split the Details_B information correctly. I find myself with reports where a beneficiary has information for another beneficiary of the data source Details_B. How can I specify that the report should also split/filter the news of Details_B?
To put it another way, what I like to do is really going through a list of parameters (paid IDs in this example) and generate a report for each parameter. Is the most effective way to do it?
Research forums, it seems that I might be able to achieve using data models as my model of data instead of SQL queries. I'm on the right track with that? If so, you guys have all the useful links on how to create data models?
I use Publisher version 10.1.3.4 BI
Any help is appreciated!
MartinHere is a good starting point:
http://download.Oracle.com/docs/CD/E12844_01/doc/BIP.1013/e12187/T421739T434255.htm
See you soon
Jorge
Maybe you are looking for
-
The windows are empty; Update does not work
Firefox has attempted to update 06/03/2015, but he didn't finish. Each window, except for the Mozilla Web site is empty. I have a laptop running Windows 8.
-
I can not connect to Macbook Pro iCloud
Hello! I have a problem with access to iCloud on my MBP (15 inch, mid-2015) OS X EL Capitan. I can not connect on App Store to make purchases and get apps, iTunes, Messages and iCloud in system preferences. When I try to open a session, apps just fre
-
What's wrong with this code? Race condition?
Guys, The idea behind the enclosed code is fairly simple. I have a 2D parent table. First of all, I print a subset of this table in an array of control (based on a selection of sensor). Now, I want to change the numbers in the table. I need changes a
-
Connection to the disk Service virtual stalls
Installed a second internal hard drive of my computer and when I go to disk management to format that nothing appears. Not even my C: drive or my external hard drive. He just repeat "connect to a Service of virtual disk...". ». If someone could help
-
error code 0x8007643__in installine microsoft security essentials
error code 0 x 8007643 in installation of microsoft security essentials