在BCB或DEPHI程序中如何实现?

解决方案 »

  1.   

    WinExec('f:\oracle\ora92\bin\exp.EXE test/test file=c:\test.dmp', SW_SHOWNORMAL);DELPHI里有一个函数ShellExecute,在USERS加上SHELLAPI
    这个函数是直接运行你脚本
    这是C++BU的用法,跟DELPHI是一样的。你修改一下。  ShellExecute(0, "open", "EXP system/manager FILE=EXP.DMP FULL=Y", NULL, NULL, SW_SHOWDEFAULT);
    ShellExecute(0, "open", "imp system/manager FILE=EXP.DMP fromuser=user_name to user=user_name1", NULL, NULL, SW_SHOWDEFAULT);
      

  2.   

    可以一边打开文本文件,
    一边连 Oracle,
    然后把一边(Txt)的数据写到另一边(Oracle).