Binding dynamic variable in XQuery doesn't work: ORA-00932
I have a table with several columns. One of those columns is a XMLType.
My goal is to have a query which selects rows from the table of which the XML column matches certain criteria.
I'm trying following example (JDBC) : http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28369/xdb_xquery.htm#insertedID11
First, I created my own query, which looks like:
select * from MyTable t, XMLTABLE( xmlnamespaces (DEFAULT 'http://test), 'for $i in /RootElement where $i/SubElement[contains(Element, "someValue")] return "true"' passing t.xmlColumn)This works as expected. Next, as done in the example, I'm trying to replace the "someValue" with a dynamic variable.
Query then looks like:
select * from MyTable t, XMLTABLE( xmlnamespaces (DEFAULT 'http://test), 'for $i in /RootElement where $i/SubElement[contains(Element, $val)] return "true"' passing t.xmlColumn, :1 as "val")This does not seem to work, neither in SQLDeveloper nor in java.
I always get the :
java.sql.SQLException: ORA-00932: inconsistent datatypes: expected - got CHAR(SQLDeveloper just gives ORA-00932)
When I put $val between quotes (so "$val") then I get no error, but then I get no results either.
I think it will not replace $val in that case but just use it as a literal, so thats not what I want
I also tried to remove "contains" xpath and use the exact same example as on the oracle page
select * from MyTable t, XMLTABLE( xmlnamespaces (DEFAULT 'http://test), 'for $i in /RootElement where $i/SubElement/Key = $val return "true"' passing t.xmlColumn, :1 as "val")But this doens't help either.
I'm clueless about this, so any help would be appreciated
Edited by: user5893566 on Nov 29, 2008 6:24 AM
Ok, I tested it using the latest enterprise edition (11g) and there it works as expected.
However, on 10.2.0.1.0 and 10.2.0.3.0 it gives this error.
Is this a bug which has been fixed or should I do something special on 10g ?
I installed all of these as normal without any special settings, created the tables and ran the query...
Similar Messages
-
I'm trying to use use the variable Evaluate, but doesn't work
Hi!
I need to use in the Evaluate of a variable, the condition where is the variable is > of another variable.
I wrote after that I checked the condition:
#VARIABLE or '#VARIABLE'
But it doesn't work. Both of variable is numeric.
What I have to do?
I hope to have soon a support because is really important.
Thanks in advance
ByeI suggest that you must find out what the variables are, as I have tested the two variable EQUALS and NOT and it has worked, so it is a subtlety. Can you add a procedure step which uses a Jython step to print the variable value to the console of an agent so you see what it is comparing.
In my package I have the steps:
Declare variable A
Declare Variable B
Assign value to A
Assign valkue to B
Evaluate Variable A: equals #PROJECTCODE.B
On true step TRUE
On False step FALSE
I tried assigning B the same and different values, each time I ran I got the expected response. -
CS 4 Dynamic Link to Encore doesn't work most of the time. Encore stops operating after opening and periodically Premier Pro stops working. I'm told that there has been a problem with CS4 when using Dynamic Link to go to Encore and build CD's. Is there a way around this? Is there a patch to correct it?
To build CD's???
What problem does Encore have with DL?
If DL is not working properly for you the way around this is to export from Premiere to either mpeg2-dvd for DVD or BluRay H.264 for BD-disks and import the files in Encore. -
Dynamic adding of components (doesn't work when programmatically)
Hi, I don't understand, why this doesn't work. I'll explain it on this example:
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
public class NewFXMain extends Application {
Group root;
public static void main(String[] args) {
Application.launch(NewFXMain.class, args);
@Override
public void start(Stage primaryStage) {
primaryStage.setTitle("Hello World");
root = new Group();
Scene scene = new Scene(root, 300, 250, Color.LIGHTGREEN);
Button btn = new Button();
btn.setLayoutX(100);
btn.setLayoutY(80);
btn.setText("Add button now");
btn.setOnAction(new EventHandler<ActionEvent>() {
public void handle(ActionEvent event) {
addButton();
root.getChildren().add(btn);
primaryStage.setScene(scene);
primaryStage.setVisible(true);
System.err.println("Number of buttons before: "+root.getChildren().size());
ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(1);
executor.schedule(new MyTask(), 5, TimeUnit.SECONDS);
private void addButton() {
System.err.println("Button adding");
root.getChildren().add(new Button("YEAH"));
System.err.println("Number of buttons after: "+root.getChildren().size());
class MyTask implements Runnable {
public void run() {
addButton();
}There are two ways how a new button can be added. Either by clicking on existing button or programmatically by the program itself after 5 seconds.
If you add it by button, there is no problem. The error print is:
Number of buttons before: 1
Button adding
Number of buttons after: 2
But if you just wait, then the error print is:
Number of buttons before: 1
Button adding
and no button is added. In fact, the error printing after the adding isn't performed either.
I'd like to ask if there is some solution for this because I'd love to do some changes by schedulers. Thx
Edited by: 876949 on 14.8.2011 9:09
Edited by: 876949 on 14.8.2011 9:11No, these are not error messages, they are just for purpose of example. Here it doesn't matter whether err or out... (yes, 'out' would be better ;)
But thanx, it's working. By the way, I am creating scheduler for task lists. They are supposed to be printed dynamically in specific time (or periodically). For example: at 5 o'clock I need to print 5 items of some list and every 3 hours I need to print 3 items of another list etc. - so it's quite dynamic with regard to component adding (No, I don't want to use some sort of ListView, I want interactive printing: one item on screen at a moment). I'll try to work your solution into my code.
Edit: So either it's not possible to use this for the purpose of my app or it will be really cumbersome. Maybe it would be easier to draw some rectangles with mouse listeners...
Edit: So I finally got around it. In the end, I won't use dynamic adding as intended. It's working and that's important.
Edited by: 876949 on 14.8.2011 12:48
Edited by: 876949 on 15.8.2011 5:21 -
Dynamic versioning plugin tag doesn't work for Netscape using 1.4.1_01?
When I use dynamic versioning for plugin, for example:
<EMBED
type="application/x-java-applet;version=1.4.1_01"
>
It doesn't work for netscape 7. Although 1.4.1_01 was installed on the machine, the applet was not able to be loaded. Plugin was not found.
Anything wrong with the tag? It is OK for 1.4.1
ThanksWhen I use dynamic versioning for plugin, for
example:
<EMBED
type="application/x-java-applet;version=1.4.1_01"
>
It doesn't work for netscape 7. Although 1.4.1_01 was
installed on the machine, the applet was not able to
be loaded. Plugin was not found.
Anything wrong with the tag? It is OK for 1.4.1
ThanksI lost alot of sleep over this!
I finally got it to "seemingly" work
but by NOT using 1.4.1 attribute..
See my HTML example
http://hyperbyte.ab.ca/JavaZone/
While it doesn't work with the 1.4.1
attribute it does work with Netscape
Good Luck!
Sincerely:
Tony Swain
Senior V.P. of Software Development Hyperbyte inc.
http://www.hyperbyte.ab.ca
Netscape DevEdge Champion Devs-Java Newsgroup
snews://secnews.netscape.com/netscape.devs-java -
Dynamic multi-row SQL :: doesn't work in Forms?
I need to use a dynamic SQL statement and was at first trying to
use the DBMS_SQL, which is overly complex. So I read up on NDS
and thought that it would be much better to use.
Unfortunately, Forms (6i) refuses to accept the correct syntax.
ie:
OPEN plr_cv FOR 'select foo from bar';
returns an error:
"Encountered the symbol 'select foo from bar'
when expecting one of the following:
select"
plr_cv has been defined as per the examples in the Oracle
documentation (as a ref cursor). Even a cut-and-paste of code
from the Oracle Docs won't work. Why won't forms let me use NDS
here? Is there a workaround?Did you ever get this to work. I tried using dynamic sql but this does not work in FORMS 6i.
-
Dynamically setting column width doesn't work all the time
I wanted to dynamically set the width of a column in a JTable to be half of the width of a another column. This should happen whenever the frame is resized. But somehow I need to tell this twice to Java. If I don't then sometimes the column width isn't set new.
Is this a Java bug or what?
public void componentResized(ComponentEvent ce)
try
ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
// Again, or it won't work:
ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
catch(SQLException e)
}Is it possible that your call to
ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
is altering the response created by
ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
? Have you tried calling them once but in the other order? Or just calling the "setMaxWidth" call twice and leaving out the second "setMinWidth"?
Good luck... :) -
Dynamic link with AE doesn't work
Hi,
when I try to create a new Dynamic Link from Premiere Pro CC to AE CC ("replace with AE Composition...") it
though opens After Effects but in the new Composition is black! There is no footage to be seen.
When I switch back to Premiere the footage there is also blacked out...
What is wrong? How do I make this work correctly?
Thanks for your help!
Best Regards
System:
Windows 8.1 64-bit
Intel i7 4930K
Gigabyte GTX 770 4GB
ASUS P9X79
32GB Gforce 2133Mhz RAM
Corsair H100i water Cooling
Coolermaster 850 W
250 GB SSD for OS and ProgrammsYeah, I'd expect that to work fine in CC as well.
I've seen a few other reports similar to yours, though I don't recall the outcome. You might try a forum search. -
Tuning Advisor doesn't work: ORA-13605, ORA-06512,
I'm trying to use SQL Tuning Advisor with the query: select * from MYTABLE; but I got the following errors.
Nothing changes if I switch from custom user to admin user.
I'm using Oracle SQL Developer 4.0.0.13.80 and Oracle XE 11g
ORA-13605: The specified task or object staName30874 does not exist for the current user.
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.PRVT_ADVISOR", line 5878
ORA-06512: at "SYS.DBMS_SQLTUNE", line 926
ORA-06512: at line 2
13605. 00000 - "The specified task or object %s does not exist for the current user."
*Cause: The user attempted to reference an advisor task or object
using a name that does not exist in the Advisor repository.
*Action: Adjust the name and retry the operation.
Codice fornitore 13605
ORA-13717: Tuning Package License is needed for using this feature.
ORA-06512: at "SYS.PRVT_SMGUTIL", line 52
ORA-06512: at "SYS.PRVT_SMGUTIL", line 37
ORA-06512: at "SYS.DBMS_MANAGEMENT_PACKS", line 26
ORA-06512: at "SYS.DBMS_SQLTUNE", line 625
ORA-06512: at line 5
Any help?
Thanksby the way, perhaps the problem is different. please read this.
Re: ORA-13717:Tuning Package License is needed for using this feature -
Dynamic variable Time for Select
Hi,
I try to develop some scripts but always I have the same problem , when I try to put in a Select instruction the variable Time, it doesn´t work correctly (for example):
*SELECT(%example%,"ID","TIME","[ID]='%TIME_SET%' ")
It doesn´t read correctly the variable Time_Set.
Have you got any idea to try to do selects using dynamic variable?
Thanks for all.Hi,
Dynamic variables like %TIME_SET% do not interact very well with the compiled default logic (LGX files) when it is run after a data send. If you look at the Default.LGX file, you will notice that your *SELECT statement does not appear there because that *SELECT statement has already been compiled. That is why the logic works when it is run via the debugger (because the LGF file is getting executed at run time) and it does not work when it is run via a data send (because the LGX is being executed).
What you will need to do is:
1. Create a another logic file (for example: Calculation1.LGF) and copy the text from the Default.LGF to this new logic file.
2. Place the following text in the Default.LGF file:
*RUNLOGIC
*LOGIC=Calculation1.LGF
*ENDRUNLOGIC
3. Validate and save the Default.LGF file
Now try running the logic after a data send and see if that works.
Good luck,
John -
Less than or Equal to Variable on Calquarter is not working in Webi
Hi Guru,
I have Variable on Calquarter which brings the query result for all the cal quarters which are LESS THAN or EQUAL to entered one.
But, when we execute the Webi Report of this Bex Query, we get data for all the Calquarters in the infoprovider.
Its a "Single Value, Optional" variable with operand as LE.
Thanks in advance,
Deepak JainIn BEx side, calquarter is mapped as key or text?
Maybe it is mapped as text and the variable in BO doesn't work correctly.
Regards. -
Dynamical HtmlDatTable - action Listeners still doesn't work
HI everybody.
i create HtmlDatTable with dynamic columns count. I bind methods for every component (commandButton) but all of them doesn't work!!! Please help? it take me a lot of time :-(
some pice of my bean:
public HtmlDataTable getDynamicDataTable()
return null;
* @param dynamicDataTable the dynamicDataTable to set
public void setDynamicDataTable(HtmlDataTable dataTable)
this.loadDataFromTable(this.getSelectedTableId()); // Reload to get most recent data.
// First we remove columns from table
dataTable.getChildren().clear();
PlainDataModelCreator builder = new PlainDataModelCreator(this.getStructuresList());
this.plainStructeresList = builder.deepToPlainDataConverter();
// Get amount of columns.
int columns = ((List) this.plainStructeresList.get(0)).size();
// Set columns.
for (int i = 0; i < columns; i++)
// Set header (optional).
UIOutput header = new UIOutput();
header.setValue(this.headers);
//UIOutput output = new UIOutput();
UICommand comand = new UICommand();
ValueBinding structureItem = FacesContext
.getCurrentInstance()
.getApplication()
.createValueBinding("#{structureItem[" + i + "]}");
comand.setValueBinding("value", structureItem);
comand.setRendererType("javax.faces.Button");
MethodBinding mbAction = FacesContext
.getCurrentInstance()
.getApplication()
.createMethodBinding("#{DynamicData.editRowAction}", null);
comand.setAction(mbAction);
comand.setTransient(true);
// Set column.
UIColumn column = new UIColumn();
column.setHeader(header);
column.getChildren().add(colimn)
// Add column.
dataTable.getChildren().add(column);
this.dynamicDataTable = dataTable;
public String editRowAction()
String str = "editrow";
return str;
in my jsp i am use some code:
<%@ page session="false" contentType="text/html;charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<html>
<body>
<f:view>
<h:form>
<h:panelGroup id="body">
<%------------------------ Dynamic HtmlDatTable section ------------------------%>
<t:dataTable
var="structureItem"
id="dynamicData"
value="#{DynamicData.plainStructeresList}"
binding="#{DynamicData.dynamicDataTable}"
style="summary"
rowClasses="linkButton">
</t:dataTable>
</h:panelGroup>
</h:form>
</f:view>
</body>
</html>
all components are rendred, but any of actions by clicking on my button doesn't work , i am never entering in to editRowAction()
what problem ? please help meSee also: http://forums.adobe.com/message/4662367#4662367
-Noel -
In human task, dynamically assign group doesn't work
Oracle SOA 11.1.1.4
My bpel process invokes a human task.
On the human task Assignment tab, I assigned 3 users (by name), 1 group (by expression).
The group is configured in LDAP
When I tested the bpel process, I entered the group and other data required.
From the worklist app, I see the task listed. It is assigned to the 3 users, but not the dynamically passed-in group.
From the Audit trail, I saw all data I entered (include the group). Everything seems correct, but I still can’t make the dynamically-pass-group work.
If I assign the group by name in human task, it works fine.
The problem is: dynamically assign group doesn't work.
Please kindly advice.Yes, it is possible assign a group as participant of some human task, passing the group name as parameter.
I have tested just now.
It works pretty well in SOA 11.1.1.4 (BPEL or BPM).
Make sure add a data parameter in your human task definition and pass a valid group name to it.
At the Assignment tab, in the participants' list, add a group, data type by expression, and set the value to the right xpath expression to the corresponding parameter.
For example: /task:task/task:payload/task:group
If it is not working look the SOA log files, probably you'll find some information about the error there. Maybe there is some problem with your jazn.com configuration.
You can also test if there is something wrong related to the group name, trying to transfer some task to the same group by the worklist. -
Inserting dynamic image doesn't work for range of records
Hi,
I'm using BI Publisher 5.6.3 and E-business Suite 12.1.3.
I have set up my RTF template so that it brings in a logo image dynamically onto an invoice.
The code in the "alt text" field behind my dummy image is: url:{concat('${OA_MEDIA}/',//CF_LOGO)}
The image is within a repeating loop that loops around the invoices chosen.
It works fine if I run the concurrent request for a single invoice - the correct logo image is shown.
However if I run the concurrent request for a range of invoices which should contain a mixture of both logos it doesn't work and prints the same logo for each invoice regardless of what it should be displaying.
For testing purposes I also output the name of the image, field CF_LOGO (which is calculated in a formula in the RDF file) just before the actual image, and this always displays the correct value even for a range of invoices. As you can see above this is the field that I include in the code to obtain the image.
Does anyone have any idea why a range of invoices will only display one logo image?
Many thanks for any suggestions.
Regards,
HazelIt's a bug in MDM 5.5 SP04. The fix is in MDM 5.5 SP05.
-
Bug? chained jQuery Selector in Dynamic Action doesn't work
Just found out, that this jQuery Selector jQuery("#ABOTYPE_REPORT").find("#f01_0001") doesn't work as triggering Element of type "jQuery Selector" in a Dynamic Action.
But this one jQuery("#ABOTYPE_REPORT").find("#f01_0001")[0] worked with type "DOM Element" as triggering Element in a Dynamic Action.
To my knowledge even the first one is a real and valid jQuery Selector and should work.
brgds,
Peter
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
BuilderPlugin: http://builderplugin.oracleapex.info
Work: http://www.click-click.atHi Patrick,
It would be really nice if you could support a less strict definition of the jQuery Selector (as i understand DOM Object and jQuery Selector to be the advanced and more powerful options).
In my example i could directly use #f01_0001 if my page wouldn't have more than one TabForm on it (and therefore multiple elements with id f01_0001) ;-)
brgds,
Peter
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
BuilderPlugin: http://builderplugin.oracleapex.info
Work: http://www.click-click.at
Maybe you are looking for
-
I hate my imac - what do i do now?
every day is a new and frustrating adventure with my imac. i've only had it 8 months and every day it's nothing but problems. 1) ichat suddenly stopped working one day (after working just fine 5 or 6 times. 2) it no longer recognizes my external hard
-
After upgrading to iPhoto 11 and the latest upgrade 9.4.1 (701 67) I cannot open any Event. The normal double click does not work, nor anything else I have tried. The only way I can view the photos in an Event is to make an Album of it, and then I c
-
When I first got my iMac Intel things were very fast, Safari would load in one bounce, Mail would load in half a bounce. After a few weeks and frankly its no faster than the outgoing single 1.6 powermac, safari frequently has the beachball of death f
-
Safari not handling Javascript correctly
I am currently trying to learn how to put Javascript into web pages by reading through the tutorial at http://www.w3schools.com/js/default.asp However it seems that Safari is not handling the Javascript correctly when it loads some of the examples: h
-
Download custom fileds from CRM to CDB
Hi all, I want to download a few EEWB fields of BP and Orders to CDB (Mobile Laptop) solution. Can you suggest me how to go abt it? Regards Arun