How to use JDBC Positional Binding Style & ExecuteWithParams?

Can anyone provide any help here including any documentation on how to configure this (I've checked online help and the developer guide.)
When defining multiple Bind Position variables on a View Object (using sql statement binding style: JDBC Positional), should I defined multiple bind variable names? Otherwise, if I don't, when I use ExecuteWithParams operation to create the data control, only one input variable field is displayed. I can get a single bind position variable to work, but am struggling on how to configure / get multiple bind position variables to work with ExecuteWithParams.
Here's my current configuration:
1. Define View Object with two JDBC Positional Binding Parameters
-- Bind Variables: name=parm1 (???should I define a second bind variable name???)
-- Bind Positions = 0,1
-- SQL Statement add another position var in where clause: "match (zip) against (CONCAT(?,'*') IN BOOLEAN MODE) and "match (name) against (CONCAT(?,'*') IN BOOLEAN MODE)
2. On a JSF page, drag ExecuteWithParams operation from data control onto the JSF page. If I have defined only one bind variable name, only one input field is displayed (and one field label that I defined for that bind variable), but I need two input fields - one for each bind position variable. How do I set this up?
Back-end Database is MySQL 5.0.1 which is why I am using binding stye JDBC positional.
Thanks, Tom
Message was edited by:
javaX

I did some more testing and the problem is that the queries work with one bind position variable but not with two. I created two simple view objects off of the same entity object to test:
#1 - ViewObject with one bind position variable - where clause: where id > ?
#2 - ViewObject with two bind position variables - where clause: where id > ? and id < ?
I created two separate .jspx pages, view1.jspx (one input field) and view2.jspx (two input fields), for each view object by dragging ExecuteWithParams operation onto the JSF page.
The .jspx page with one input field works (returns result sets.) The view2.jspx page with two input fields does not work - the query does not return any result sets (no errors produced, it just does not return any rows) - I've tested my query outside of jdeveloper and it works fine. I also tried switching my inputs to make sure I did not have an illogical query (i.e., id >100 and id< 1).
Is there anything different / extra I need to do to use two bind position variables?
I'm STUCK HERE.
Everything in this simple test was identical except for using 2 input variables versus 1.
Technology stack is: jdeveloper 10.1.3, jsf/ADF BC, mySQL 5.01
Since I now understand what the problem is better, I'm going to re-post this as a new topic that more appropriately describes the problem, "Queries not working with multiple bind position variables?"
Message was edited by:
javaX

Similar Messages

  • Why View Object Editor only allow "JDBC Positional" binding style?

    HI, I want to implement the following screencast tutorial: http://www.oracle.com/technology/products/jdev/tips/muench/screencasts/threesearchpages/threesearchforms_partthree.html?_template=/ocom/technology/content/print
    but I can't put the necesary "Oracle Named" binding style to create a sql statement with named bind variables like parametes. JDev 10.1.3.2 only allow JDBC Positional and I can't follow the above example.
    Regards.
    Alberto

    Hi,
    I guess that you are using a standard SQL Flavor and Type map.
    If you want to use these Oracle's JDBC features, you have to use Oracle SQL Flavor.
    (and you can use the Oracle Named" binding style in Jdev 10.1.3)
    Bye,
    Christophe

  • How to use JDBC Connection Pools in a standalone application?

    Hi, there,
    I have a question about how to use JDBC Connection Pools in an application. I know well about connection pool itself, but I am not quite sure how to keep the pool management object alive all the time to avoid being destroyed by garbage collection.
    for example, at the website: http://www.developer.com/java/other/article.php/626291, there is a simple connection pool implementation. there are three classes:JDBCConnection, the application's gateway to the database; JDBCConnectionImpl, the real class/object to provide connection; and JDBCPool, the management class to manage connection pool composed by JDBCConnectionImpl. JDBCPool is designed by Singleton pattern to make sure only one instance. supposing there is only one client to use connection for many times, I guess it's ok because this client first needs instantiate JDBCPool and JDBCConnectionImpl and then will hold the reference to JDBCPool all the time. but how about many clients want to use this JDBCPool? supposing client1 finishes using JDBCPool and quits, then JDBCPool will be destroyed by garbage collection since there is no reference to it, also all the connections of JDBCConnectionImpl in this pool will be destroyed too. that means the next client needs recreate pool and connections! so my question is that if there is a way to keep pool management instance alive all the time to provide connection to any client at any time. I guess maybe I can set the pool management class as daemon thread to solve this problem, but I am not quite sure. besides, there is some other problems about daemon thread, for example, how to make sure there is only one daemon instance? how to quit it gracefully? because once the whole application quits, the daemon thread also quits by force. in that case, all the connections in the pool won't get chance to close.
    I know there is another solution by JNDI if we develop servlet application. Tomcat provides an easy way to setup JNDI database pooling source that is available to JSP and Servlet. but how about a standalone application? I mean there is no JNDI service provider. it seems a good solution to combine Commons DBCP with JNID or Apache's Naming (http://jakarta.apache.org/commons/dbcp/index.html). but still, I don't know how to keep pool management instance alive all the time. once we create a JNDI enviroment or naming, if it will save in the memory automatically all the time? or we must implement it as a daemon thread?
    any hint will be great apprieciated!
    Sam

    To my knoledge the pool management instance stays alive as long as the pool is alive. What you have to figure out is how to keep a reference to it if you need to later access it.

  • How to use JDBC Lookup in PI 7.1 ?

    Hi,
    Please advise how to use JDBC lookup in message mapping PI 7.1 ? any reference link / document  ?
    I have followed this step below :
    1. Create the external definition for the database table.
    2. Use the external definition (table) in message mapping JDBC Lookup.
    But the target still "Yellow colour" meanint the mapping hasnot completed yet ? why ? and when i double click the JDBC lookup
    there some error message
    "No suitable parameter found; define new parameter of type 'Channel' first"
    Please advise.
    Thank You and Best Regards
    Fernand

    Hi Fernand,
    JDBC Lookup can be done in PI 7.1 using below mentioned steps :
    1) Create a communication channel between PI and the database to connect to database.
    2) Import the table data as External Definition.
    3) In message mapping where this lookup is to be used select JDBC Lookup under Conversions and map
    4) Double Click on JDBC Lookup
    5) Select parameter and a database table (imported as the external definition). All the elements of the table will appear in the middle column. Select and move the input parameters to the left side column and the output parameters to the right side column. Click OK. 
    6) Under message mapping go to signature tab and define the parameter as channel and category as JDBC Adapter Type. 
    7) Under Operation mapping define the parameter & associate it with parameter defined in Message Mapping.
    Thanks
    Amit

  • Is there any documentation on how to use JDBC in ALBPM?

    I'm trying to connect to a DB using DriverManager class.
    1) I've defined an externalResource of type SQL Database.
    2) When I execute the following code:
    //externalResourceURL is the URL of the SQL Database external resource created in 1), same for user and password
    con as java.sql.Connection = DriverManager.getConnection(arg1=externalResourceURL, arg2=user, arg3=password)
    3) I get the following error: This driver is locked for use with embedded applications.
    Is there any tutorial or documentation on how to use JDBC in ALBPM?
    Thanks in advance

    I don't know of any documentation off hand... but what are you trying to do? I haven't needed to to make a connection using the DriverClass....
    If you aren't using dynamicSQL... you can just catalog the database, and make direct sql calls (not recommended)... but if you catalog it, then just an INSERT command works... or UPDATE... etc
    logMessage "Starting insert."
    INSERT INTO MYTABLE(id, name) VALUES ("2", "kevin");
    logMessage "Finished insert."Check out the studio help under SQL Keywords for more info on that...
    HTH
    -Kevin

  • SOAP in XI: message use="encoded" and binding/@style="rpc"

    Hi
    Hope somebody who is familiar with XIs SOAP implementation could give the answer for my questions. Problem is that the SOAP server is not working but I am afraid that the reasons are not really simple.
    In our company we have to provide some SOAP services. I have entered as much as I could in IR ... including a simple scenario. Then imported the scenario to ID and the wizard created a number of agreements and determinations...
    As I need to describe the service to external parties, then I used IDs Web Service definition tool to generate the WSDL.
    But as the external messaging framework (for us a preprogrammed SOAP client) is fixed, I noticed that there are some differences that might matter.
    XI generated WSDL where SOAP binding has
    wsdl:binding/soap:binding/@style="document" but I would need it to be "rpc"
    And the second thing is that in binding message bodies have attribute @use="literal" but as the messages should have several parts then it should be "encoded" (and encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    also is needed then).
    Could somebody explain if these may be the reasons why the soap server does not work. And if there is a way to define soap interface so that it would have above mentioned properties as needed.
    A easy question also... I would need for a method to have an empty message... inside soap body there should be just a tag with the message name and no content. But I can not figure out how to create a message type with no datatype.
    Thanks for any input!

    Hi, Stefan
    Thanks for the answer. To clear my questions: we want to deploy XI as the SOAP server (sry I have not figured out if it is a sender or receiver channel by name - all this inbound-outbound naming in XI is quite complex). Our SOAP server/XI is actually  just one part of a big SOAP network and MAFIA it uses rpc styled SOAP messages.
    The note is really useful, but still it does not give any hint how to make a RPC styled SOAP interface. So the problem is still up for me. As I am not very familiar with WSDL bindings and SOAP... for the message it self, is there any difference as for the RPC vs DOCUMENT style is discussed? Is it possible that the physical structure of a SOAP envelope could be the same?
    And the second question: is there a way in IR to define several parts for a message. Something like:
    <message name="isiku_andmed">
      <part name="paring" type="tns:isiku_andmed_paring" />
      <part name="keha" type="tns:isiku_andmed_keha" />
    </message>

  • How to use jdbc to connect oracle

    I want use jdbc direct to connect oracle database,and I
    want to use sun Company or oracle Company driver. how can I get driver and how do I write connection string?
    Deeply to wait your reply,thank you!

    The correct format would be jdbc:oracle:thin@server:port:sidTry "jdbc:oracle:thin:@192.168.84.20:1521:ORDB","ysys","fareast"and see what happens.
    Note that you two formats for the DriverManager.getConnection() method; if DriverManager.getConnection(db_url, username, password) doesn't work, try the other call with a fully-qualified database url:DriverManager.getConnection("jdbc:oracle:thin:ysys/[email protected]:1521:ORDB")The SID is the server ID that was given to the instance when the database was installed; default is ORCL, but may have been changed. Port default is 1521, but again, this may be different for your system.

  • How to use JDBC iView to get data from MSSQL

    Hi Guru,
    I just try to follow the Demo (from SDN) to use JDBC iView. In the step of selecting query or existing function, I choose the query option to broswer the table. But the system is not display any tables. It just keep on displaying 'Loading ...'. Is there anything wrong with that?
    Thanks for your help,
    Bo

    Hi Bo,
    I got the same problem with your, do you know how to fix the problem?
    Thanks,
    Ku

  • How to use JDBC driver (type 4) with struts?????

    Hi! have a nice day!!!!!
    i want to connect database use struts with JDBC driver type 4. i must add <data-source/> to <data-sources></data-sources> tag but i don't know how to use <data-source/> with it's properties. please tell me! thank very much

    thank for reply!!! :D
    my project require to use struts 1.2.8 with ODBC (i think so it's type 1) for connect to database (SQL server). i think so it has two step :
    1. edit file struts-config.xml with <data-sources> tag.
    2. programming in file java (which extends from Action class) connect to database.
    but how to programming in file java??? (i think so must use objects DataSource & Connection)

  • How to use JDBC II and III Type Drivers?

    Hi To All
    I am learning JDBC Programming in Java. i got some couple of examples on JDBC I and IV type of Drivers. but i am not able to understand, and use 2nd and 3rd Type of JDBC Drivers. i did not find those examples anywhere. if you know how to use them, please help me. Thanks in advance.

    that's not for you to worry about. The native code is part of the driver, and supplied with it.
    In other words, the driver calls some DLL (or whatever, depending on operating system) which is most part of or calls the database client also installed on the client.
    This in turn calls the server.
    Your Java code never notices all that going on under the hood, except that it may well be slightly slower than using a type 4 driver (depending on the database, some may have highly optimised native network traffic, which is so much faster than the IP traffic of a type 4 driver that it makes up for the extra work needed to communicate between applications and application layers).

  • How to use cached DISPID Binding in excel vba ?

    Hi All,
    I trying to call soap service in excel using vba so please provide some syntax or code to consume soap service using Cached DISPID Binding.
    Also how/where to find the DISPID of soap service or any other component.
    Your help will be highly appreciated.

    Hi Balaramji,
    As this question is actually all about VBA programming, you can check these two links that may be helpful:
    Web Service calls from VBA excel
    Consuming Web Services in Excel 2007
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to use formatter if binding syntax is not complex

    Hello all,
    i know how to use formatters in UI5 HTML views when data-sap-ui-xx-bindingSyntax="complex"
    But currently i have an app where the bindingSyntax is not set to complex, and for certain reasons i don't want to change that at the moment.
    How do we use formatters in non-complex binding mode? I cannot find anything about that in the docs. Constructs like data-something="{path: ' ', formatter : ' ' }" seem not to work in non-complex mode.
    Thanks in advance,
    Jan

    Hi,
    you can use formatter function. refer SAPUI5: How to directly bind two data properties into one control property using OData model? and javascript - SAPUI5: How to directly bind two data properties into one control property using OData model? - Stack Overf…
    Regards,
    Chandra

  • How to use "motion" "position" a lot on different layers

    HI,
    I have two clips , one on video 1 and another on video 2.  I used motion / position on video 2 in order to make a portion of that video move around.
    A little later in time I want to make a portion of video 1 to move around. At the time that I want video 1 to move video 2 will be transparent, so I can see video 1, as they are layered right on top of each other.
    When I select video 1 (I made in and out points for the part I want to move) with the CTI on the in point, and then select the program monitor, I see the path of the motion from video 2.  If I change that it changes the earlier motion of video 2, and video 2 becomes "highlighted" (selected) at the same time....video 1 is no longer selected when I click in the program monitor.
    How can I make a new motion in video 1, without affecting the motion in video 2  ??
    Thanks
    Rod

    The ability to Lock Tracks is wonderful and can save one from a lot of accidents. That is one great feature missing from PrElements, and it would so very useful there. Still, one should get something for the price difference between the two - eh?
    Between you and me, I use the coordinates in the Effects Control Panel to Position/Scale my video Clips. If I am doing PiP work, I will create an alignment/size grid in PS and use those to do my Effects Control. HERE are a few simple ones, and when working with a lot of PiP, I will do custom ones. I also use these for work in Titler, and just click Show Video. Just do not forget to either remove them, or turn their visibility OFF, or they WILL be visible in your Exported Video.
    Good luck,
    Hunt

  • Help setting Parameters using JDBC and Bind Variables for Oracle List

    I fully understand the concept of using Bind Variables when using JDBC to avoid hard parses everytime my SQL statement is executed when only a certain value changes. For example, perhaps I have the following statement:
    PreparedStatement ps = con.prepareStatement("select salary from employees where employee_id = ?");
    I would then set the value of the question mark (the first and in this case only parameter) using:
    ps.getStmt().setString(1,empId1);
    That is assuming I have the variable empId1 populated with what I want. Anyway, my question has to do with Oracle lists. In other words, if I am just executing the statement against the db, it might look like:
    select salary from employees where employee_id in ('123','456','789');
    I still want to use bind variables and I can do it in JDBC with something like:
    select salary from employees where employee_id in ('123','456','789');
    ps.getStmt().setString(1,empId1);
    ps.getStmt().setString(2,empId2);
    ps.getStmt().setString(3,empId3);
    BUT, what if I just want to construct my list of ids upfront as a string and do something like:
    select salary from employees where employee_id in (?)
    ps.getStmt().setString(1,listOfEmpIds);where listOfEmpIds would look something like '123','456','789'.
    That's what I want to do but it doesn't work. It would be treating the list as a single parameter as opposed to lots of individual parameters. Can someone please tell me the syntax for this if it is possible? I have tried where XX in (?) and where XX in ? (and the string I substitute has the parenthesis in it), but neither work.
    Thank you for your help.

    I always build the list myself.
    You could, however, pass the list as a varchar to a stored proc and then have the stored proc parse (or dynamically execute) using it.
    The second method might even be faster although I would suspect that is only going to be the case if the list is very large. Or it might not.

  • How to use JDBC database connection in Solaris

    Hi all,
    I am new to Solaris and i want to create an application using JDBC database connection.
    I want a small piece of code, probably a login page code that verifies the username from a OpenOffice database (.odb) file. I am particular to know the driver name, etc. If possible give the code using JNDI loopkup.
    Thanks in advance,
    Parasou.

    Sure no problem.
    Please stand by while I do your work for you.

Maybe you are looking for

  • HP PSC 1350 Series Printer will NOT print from the internet ~ but will print a word document.

    I have an HP PSC all-in-one PSC 1350 Series printer. the operating system is Windows XP to the computer it's USB connected to.   Earlier this week I was having troubles with the WIFI and IT helpers changed setting on the modem and the router.  Still

  • Sol 9 install error on I86...kernel memory

    I was trying to install 'sol 9' on an i86 and get the following error Configuring /dev and /devices Using RPC Bootparams for network configuartion info Skipping interface e1x10 Warning: Request for too much kernel memory (138379264 bytes) , will hang

  • Comment, "sequence file global"

    I'm running a Win2K (8186 Controller) machine running TestStand 3.0 and LabWindows/CVI 7.0.  How can I place comments in the comment field of my Sequence File Globals?  There are fields on the column headings labeled Field, Type, Value, and Comment.

  • IPhoto for iPhone "Events not shown"

    "View events here after sincing them from iTunes" What does it mean? What should I do?

  • Discoverer on Linux

    Hi, Does anybody have some information on the performance metrics of Oracle Discoverer on Linux as compared to Windows. i.e some sort of benchmark test or product comparison on different operating systems. Any help would be greatly appreciated. Thank