Is there any way to take oracle backup from java.

Connection c = // Connection Setting;
st = c.createStatement();
rs = st.executeQuery("//What to write here for backup");

I have tried imp and exp utility , but they cant be accessed through sqlplus...

Is there any way to take oracle backup from java.

Connection c = // Connection Setting;
st = c.createStatement();
rs = st.executeQuery("//What to write here for backup");

I have tried imp and exp utility , but they cant be accessed through sqlplus...

I'm afraid but to my current experiences this would fall down to manual task of command line with use of native dump tool or some GUI. This leaves you with lovely Runtime class once again

I would be glad to know if anyone knows any other alternative of programatically backing DB

I would be glad to know if anyone knows any other alternative of programatically backing DB

looks like as we always use for that GUI :-), majorities of cmd instuctions depends of accesses to the MetaData, are you talk me that isn't possible call from JDBC/ODBC something as "CREATE DATASBASE, DROP, ALERT, BACKUP BA http://msdn.microsoft.com/en-us/library/ms186865.aspx just SQL-92 syntax nothing Microsoft specific, same syntax must be for Oracle, MySql, maybe db2 syntax could be little bit different from as400 OS

Edited 5 Years Ago by mKorbel: n/a

Being an Oracle Developer, I don't really understand why anyone would want to do that. Sorry!

Taking backup is a admin responsibility , i know this. But a small organization cant afford admin whose s/w is completely based on free software.. Taking backup of data even for a small shop is common now a days. So the organization where i m working cant afford a admin. :-)

This article has been dead for over six months. Start a new discussion instead.