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
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
 
Don't get me started about those stupid light bulbs.
 
subject: works in 8i but fails in 9i