Reading Large Oracle DBs via JDBC
From: gp (parcha_at_gmail.com)
Date: 01/17/05
- Next message: Gluon: "Re: Which Persistence Framework should I choose ?"
- Previous message: Stuart Leonard: "Re: jtds driver and SQL Server performance problem"
- Next in thread: Gluon: "Re: Reading Large Oracle DBs via JDBC"
- Reply: Gluon: "Re: Reading Large Oracle DBs via JDBC"
- Reply: Daniel Dittmar: "Re: Reading Large Oracle DBs via JDB"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 16 Jan 2005 21:52:52 -0800
Hi,
I have to read large data(mostly CLOBs) from ORacle 9i DB via JDBC.
My code works fine with DB volume in the order of few MB. But as soon
as the DB volume increases to 1 GB it throws
an Memory Exception.
I connect using Oracle thin driver(oracle.jdbc.driver.OracleDriver)
1.The query is a simple 'select * from table'.
I can't refine the query further as I need the entire data for
processing.
2. I use java.sql.Statement and my statement.getFetchSize() returns 10
3. tmt = conn.createStatement(java.sql.ResultSet.TYPE_FORWARD_ONLY,
java.sql.ResultSet.CONCUR_READ_ONLY);
stmt.setFetchSize(Integer.MIN_VALUE);
stmt.setFetchSize(Integer.MIN_VALUE) throws an SQL Exception.
4. So should I have to modify the query to only get a certain number of
rows.
sql = "select * from table where dbms_rowid.rowid_row_number(rowid)
> >= "+startrec+" and dbms_rowid.rowid_row_number(rowid) <=
> "+endrec+;
> Resultset rs = stmnt.excutequerry(sql);
Any help would be grately appreciated.
Thanks,
gp
- Next message: Gluon: "Re: Which Persistence Framework should I choose ?"
- Previous message: Stuart Leonard: "Re: jtds driver and SQL Server performance problem"
- Next in thread: Gluon: "Re: Reading Large Oracle DBs via JDBC"
- Reply: Gluon: "Re: Reading Large Oracle DBs via JDBC"
- Reply: Daniel Dittmar: "Re: Reading Large Oracle DBs via JDB"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|