1. 程式人生 > >unix 用shell執行多個sql檔案

unix 用shell執行多個sql檔案

#!/bin/sh


sqlplus 'user/[email protected](DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXX.c5xno4i0lfo4.ap-northeast-1.rds.amazonaws.com)(PORT=1521))(CONNECT_DATA=(SID=kgs)))' >>EOF


@/opt/DDL/SQL0001.sql;
@/opt/DDL/SQL0002.sql;


commit;


exit;