This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
My application requires that I take a backup of a table onto a file on the hard disk programmatically before I actually delete all the rows in the table. Currently we take the backup manually using Toad for Oracle before running the application, but I was wondering if there is any standard API that does it for me in JDBC? :roll: I know I can write code to open a JDBC Connection, run an SQL stmt, "select * from mytable", iterate thru the ResultSet and write to a file. But is there a better or a simpler approach?..... Can I serialize a ResultSet?
Thanks Jeane, But the idea is, not to use any tools like Toad or SQL export utility. It would be easy for us, if we can call directly from our java aplication. The production env support machine is likely to have only JDK and JDBC driver installed on it.
author & internet detective