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
Thanks,
Bennett