oracle - Invoke SQL file which invokes multiple SQL files -


environment:

database oracle 11g
windows 2008 r2

i have batch program creates sql file (oracle) invokes other sql files

for example generated sql file batch script called generatedfile.sql

spool <somelogdir/logfile.log> prompt execute abc.sql @ <\path\to\abc.sql\>abc.sql  prompt execute xyz.sql @ <\path\ to\ xyz.sql\>xyz.sql  etc.  spool off exit; 

i invoking sql file using

sqlplus -s <someusername>/password@hostname:1521/some_sid @generatedfile.sql 

sql file sits , spins without doing anything. spool generated empty.

i assume statement in \path\to\abc.sql not terminated ; or /.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -