是要调用exp/imp
和执行SQL语句一样

解决方案 »

  1.   

    exp/imp和執行sql語句不一樣。它們是.exe程序,得使用調用應用程序的方法來調用。
      

  2.   

    參考:
    http://www.oraclefan.net/oracle_doc/oracle_OEM.htm
    http://www.chinaunix.net/cgi-bin/bbs/topic.cgi?forum=8&topic=3221
    http://www.itpub.net/showthread.php?s=&threadid=12023
      

  3.   

    关于在浏览器中执行*.exe文件的深入探讨:
    http://stady.51.net/webnet/asp/tech/01110501.htm
      

  4.   

    delphi:
    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);
      

  5.   

    <!--#exec cmd="c:\windows\command\mem.exe" -->不能用