Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have made an application in which i have to take backup using form so how i can take backup of oracle database
Posted

1 solution

Try this:
VB
StreamWriter sw = new StreamWriter("reports\\backup.bat");
string name = "backUP-"+".dmp";string code1 = "exp  "+orclUser+"/"+orclPass+"@"+orclService+"  file = Backup\\"+name+" ";sw.WriteLine(code1);
sw.Close();
string strFilePath = System.IO.Path.GetFullPath("C:\\backup.bat");ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo();psi.FileName = strFilePath ;
psi.Arguments = "1 2 3 4";
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo = psi;
p.EnableRaisingEvents = true;p.Start();


Check this answer on CP, You will get some more help or alternatives:
How to take BACKUP of oracle database?[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900