我如何在Windows应用程序中备份Oracle Us [英] how i can take backup of oracle usin my windows application

查看:61
本文介绍了我如何在Windows应用程序中备份Oracle Us的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经制作了一个应用程序,其中我必须使用表格进行备份,以便如何备份oracle数据库

i have made an application in which i have to take backup using form so how i can take backup of oracle database

推荐答案

尝试以下操作:
Try this:
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();



在CP上检查此答案,您将获得更多帮助或替代方法:
如何获取oracle数据库的备份? [ ^ ]



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


这篇关于我如何在Windows应用程序中备份Oracle Us的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆