如何从vb6程序进行oracle 11g数据库备份?

时间:2019-05-07 01:17:06

标签: oracle vb6

我想从vb6备份orcle 11g数据库,该怎么做?

我阅读了许多用C#编写的示例,例如:  https://social.msdn.microsoft.com/Forums/en-US/3be99ed2-f86b-424c-8d7c-50c127a041ca/how-to-backup-oracle-database-in-c-application?forum=csharpgeneral

其中包含:

System.Diagnostics.Process p = new System.Diagnostics.Process();
   string strexp = "write your oracle backup/recovery command";
   p.StartInfo.FileName = "cmd.exe";
   p.StartInfo.UseShellExecute = true;
   p.StartInfo.RedirectStandardInput = true;
   p.StartInfo.RedirectStandardOutput = true;
   p.StartInfo.RedirectStandardError = true;
   p.EnableRaisingEvents = true;
   p.StartInfo.CreateNoWindow = true;

   try{
    p.Start();
    p.StandardInput.WriteLine(strexp);
    p.StandardInput.WriteLine("exit");
    p.WaitForExit();
   }catch(Exception ex){
    throw ex;
   }

但是当我需要用vb6编写代码时,我不知道正确的方法吗?

0 个答案:

没有答案