Looks like you have an invalid SQL statement, but without knowing what your query is, we can't really help. If you're using dbi, take a look at this page: <a href="http://www.kitebird.com/articles/ruby-dbi.html">http://www.kitebird.com/articles/ruby-dbi.html
</a><br>Otherwise run the same query against the database through sql plus and see if it works. <br><br>-Charley<br><br><div><span class="gmail_quote">On 8/2/06, <b class="gmail_sendername">Nivetha Padmanaban</b> &lt;<a href="mailto:nivetha@thoughtworks.com">
nivetha@thoughtworks.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
<br><font face="sans-serif" size="2">hi,</font>
<br>
<br><font face="sans-serif" size="2">my requirement is like this - i need
to execute couple of queries in different databases like, Oracle, DB2 and
Teradata and i need to execute bunch of scripts based on the query results.</font>
<br>
<br><font face="sans-serif" size="2">today, i'm trying to execute simple
queries against oracle database. but, i'm getting the below error again
and again when i try to execute 'describe tabs' query. </font>
<br>
<br><font face="sans-serif" size="2">c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:557:in
`execute': ORA-00900: invalid SQL statement (OCIError)</font>
<br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; from
c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:557:in `exec'</font>
<br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; from
c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:109:in `do_ocicall'</font>
<br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; from
c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:557:in `exec'</font>
<br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; from
c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:178:in `exec'</font>
<br>
<br><font face="sans-serif" size="2">But, i'm able to execute ('select *
from all_users where username = :1', 'System')</font>
<br><font face="sans-serif" size="2">i got the above query from the web.</font>
<br>
<br><font face="sans-serif" size="2">Any clues?</font>
<br><font face="sans-serif" size="2"><br>
Regards,<br>
Nivetha.<br>
Email - <a href="mailto:nivetha@thoughtworks.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nivetha@thoughtworks.com</a><br>
Mobile - (0) 98807 17518</font>
</div><br>_______________________________________________<br>Wtr-general mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Wtr-general@rubyforge.org">Wtr-general@rubyforge.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://rubyforge.org/mailman/listinfo/wtr-general" target="_blank">http://rubyforge.org/mailman/listinfo/wtr-general</a><br><br></blockquote></div><br>