Home » Open Source » Programming Interfaces » C# Application to backup Schema to .dmp file (Oracle 12.2.0.1.0, Windows Server 2016)
C# Application to backup Schema to .dmp file [message #676838] Sun, 21 July 2019 19:57 Go to previous message
Dandaman
Messages: 15
Registered: July 2019
Junior Member
Hi I am trying to figure out the best approach that a c# application on a end users desktop could backup an Oracle database schema.

End user does not have Oracle or any Oracle tools installed.
Have been trying to run SQL dbms_datapump to create the dmp and log file in a folder accessible to the Oracle database server.

I generate my SQL command in c# console application and run it via
command.ExecuteNonQuery();

But I keep getting the error
"ORA-00922: missing or invalid option".

When I copy and paste the SQL that I output to the console and run within SQL Developer on the Oracle Database server the script runs without error.

So the question is what don't I understand?

Is it the method in which the SQL is sent to the Oracle server that causes the script to fail?

Regards Dan.
(At the end of the line of researching and seeking guidance.)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Looking for more information about a bug
Next Topic: Oracle 12.1.0.2.0 OleDB driver pads trailing spaces
Goto Forum:
  


Current Time: Tue Apr 16 15:24:43 CDT 2024