Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Performing hot backup with JDBC in Java

Status
Not open for further replies.

bhunter

Programmer
Jul 27, 2000
36
US
I am working on an application in Java, and I have written some code using a JDBC connection and prepared statements to send SQL commands. I can put a tablespace into the begin backup mode with "ALTER TABLESPACE SYSTEM BEGIN BACKUP" inside of the prepared statement in Java. However, when I issue the command "host copy e:\oracle...\system01.dbf c:\backup" inside of a prepared statement I get an error saying it is not a valid SQL command. This copy command works fine inside of SQLPlus. I'm sure that there is a way to do it with JDBC. I want to send a command to the DB server to copy the tablespace file. Can anyone who has done this with Java before help me out?

Thanks,

Bennett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top