aspose file tools*
The moose likes JDBC and the fly likes works in 8i but fails in 9i Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "works in 8i but fails in 9i" Watch "works in 8i but fails in 9i" New topic
Author

works in 8i but fails in 9i

manish ahuja
Ranch Hand

Joined: Oct 23, 2003
Posts: 312
Hi
I am having a simple resultset program where i use
i am using thin driver

sql statement used is "select fname from fset";
fname = varchar2(30)

System.out.println(rset.getString(1));
It fails gives ora-0600 exception at runtime in 9i but works in 8i
but if i change the sqlstatement to
"select fid from fset"
fid = number(10)
System.out.println(rset.getString(1));
It works both in 9i & 8i
How to solve
Rgrds
Anupreet Arora
Ranch Hand

Joined: Jun 17, 2003
Posts: 81
Hello Manish,
The issue most likely is that the version of the JDBC driver that you are using is for Oracle 8i and is not fully compatible with 9i. If you get the driver versions provided for your 9i Oracle version, then problem should be solved.
Try it out and let me know.
Cheers
Anupreet
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: works in 8i but fails in 9i
 
Similar Threads
how to connect to oracle db table through java program using unix shell script?
Stored procedures in JDBC?
How to write contents of oracle table into csv file?
Dynamic column selection in prepared statement?
Retrieving blob object