在windows环境如果一个批处理执行完创建表的SQL语句后,并导出imp文件;我现在是创建了一个 vbs
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("sqlplus hs/hsap @E:\HundsunWork\Sources\脚本文件\00ap_databaseOraV1.0.sql")
然后弄了一个bat
exp hs/hsap file=d:\hs.dmp
可否两文件合并为一个在执行完sqlplus后 执行exp批处理
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("sqlplus hs/hsap @E:\HundsunWork\Sources\脚本文件\00ap_databaseOraV1.0.sql")
然后弄了一个bat
exp hs/hsap file=d:\hs.dmp
可否两文件合并为一个在执行完sqlplus后 执行exp批处理
sqlplus scott/tiger@orcl @d:\ss.sql
exp userid=scott/tiger@orcl tables=(t) file='c:\t.dmp' log='c:\t.log'脚本文件内容:
drop table t ;
create table t(nn varchar2(50));
insert into t select 'hello world' from dual;
commit;quit;