Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : Execute an Oracle sql script

$
0
0
Hi,

I am not sure if you are currently investigating this issue or not because the https://liquibase.jira.com/browse/CORE-1621 issue has closed status. So I am stating here the issue I encountered while trying to execute sqlplus using executeCommand.


I encountered following problems:
1. You cannot give commands like 'exit | sqlplus.exe' in the executeCommand tag.
2. I tried creating a separate (DOS) batch file to invoke command 'exit | sqlplus.exe user/pwd@conn @sqlfile.sql' and then tried invoking the batch file using the executeCommand. but it hanged like before. Strangely executing the batch file from DOS command line made sqlplus to quit after execution. It might also be interesting that passing exit through pipe to sqlplus makes sense if 'exit' is not part of the sql script as the last instruction. My script also had following command as the last instruction:
Exit 

So I believe there is still some issue with the executeCommand tag when sqlplus runs through it.

Kamran

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>