评论会员:游客 时间:2012/02/06
最好的事情是看这个环节都有备份一个数据库的许多成果在Oracle网站网imgsrc=]:3948977|会员
txtPwd =用户密码
txtHS =主机字符串
文件名=例如C:\ BackupFile.dmp
Shell("exp " & txtUser.Text.ToString.Trim & "/" & txtPwd.Text.ToString & "@" & txtHS.Text.ToString & " buffer=4096 grants=Y file=" & filename, vbNormalFocus)
上面的代码写在一个按钮来执行。这需要一个用户从Oracle数据库的所有数据进行备份。
苏尼尔・库马尔
的S / D
评论会员:efsnet 时间:2012/02/06
StreamWriter的SW =新的StreamWriter("报告\ \ backup.bat")
字符串名称="备份"DMP";字符串代码1 ="EXP"orclUser"/"orclPass"@"orclService"的文件备份\ \"名字"; sw.WriteLine(代码1);
sw.Close()
字符串strFilePath = System.IO.Path.GetFullPath(的"C:\ \ backup.bat");的ProcessStartInfo磅=新System.Diagnostics.ProcessStartInfo(); psi.FileName = strFilePath;
psi.Arguments ="1 2 3 4";
的System.Diagnostics.Process P =新的System.Diagnostics.Process()
p.StartInfo = PSI;
p.EnableRaisingEvents = TRUE; p.Start();
评论会员:efsnet 时间:2012/02/06
的删除orclPass或输入变压orclPass