2005 IR Help Posted September 1, 2006 Share Posted September 1, 2006 By: RobertSchaefer - clayangelo Using parameters with Oracle 9i 2005-02-07 05:46 Hi, Is there a problem with using parameters when using Oracle 9i? I carefully set up the parameters using the tutorial and still can't seem to get it to work. I've set up the parameter in Report Parameters and have placed it in my query "and symbol = $P(symbol)" and it seems to compile fine but when filling the report, I get "Error filling print... java.sql.SQLException: ORA-00911: invalid character". When I hard code the query, replacing the parameter, the query works fine. Is there a trick to using Oracle in this way? Any help would be greatly appreciated.. Robert Schaefer By: RobertSchaefer - clayangelo RE: Using parameters with Oracle 9i 2005-02-07 06:33 Just figured out what I was doing incorrectly... Don't bother responding to this post.. Thank you!! Link to comment Share on other sites More sharing options...
golopez Posted November 17, 2008 Share Posted November 17, 2008 HiI have the same problem, but I still haven't figure out what I'm doing wrong... RegardsGuillermoguillermooctavio@gmail.com Link to comment Share on other sites More sharing options...
leopeixoto Posted November 21, 2008 Share Posted November 21, 2008 I had a similar problem, in my case i solved removing the semi-colon from the end of the SQL sentence. Link to comment Share on other sites More sharing options...
sdemills Posted November 22, 2008 Share Posted November 22, 2008 It might be to do with quotes? When you do the substitution into the query yourself (i.e. not with a parameter) then did you put quotes around the value? If so then you perhaps need to ensure that the result of the parameter substitution also has quotes around it. Link to comment Share on other sites More sharing options...
Gaby38 Posted November 22, 2008 Share Posted November 22, 2008 You wrote"symbol = $P(symbol)"In fact, if you wrote exactly like that it's wrong : the parameter usage is : $P{xxx}So you have to write : "symbol = $P{symbol}" (with brackets and not parenthesis) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now