This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark ""show parameter fixed_date"  in JDBC " Watch ""show parameter fixed_date"  in JDBC " New topic
Author

"show parameter fixed_date" in JDBC

Steve Jiang
Ranch Hand

Joined: May 17, 2004
Posts: 107
I need to get the paramter of FIXED_DATE for Database, and I tried to use Statement or PRepareStatment, but both get the error message,"java.sql.SQLException: ORA-00900: invalid SQL statement " or " java.sql.SQLException: SQL string is not Query"

What JDBC function should we use to check the statement "show parameter " ?

Thanks,





Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30130
    
150

Steve,
As 'show parameter" is not SQL, you aren't going to be able to run it through JDBC. The only thing I can think of is to run it through a command line via Runtime.exec.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: "show parameter fixed_date" in JDBC
 
Similar Threads
Making Connection with database
DataSource invalid
DataSource invalid: "java.sql.SQLException: No suitable driver"
can any one help me how to solve th problem with jdbc driver for DB2
how to use Scrollable ResultSet on WebSphere 4.0