I am on solaris 5.8 and work on a 10.2.0.3 oracle database.
In my shell scripts, I have
#!/bin/ksh
sqlplus -s /NOLOG <<!EOF
connect user/pwd@database
@/data/dev/file1.sql
exit
!EOF
exit 0
The above code is good for executing a single file. Suppose, I want to run all the .sql files in the /data/dev directory, can I get an idea as to what needs to change in the above code ? There may be 100 of them...hence something like
@/data/dev/file1.sql
@/data/dev/file2.sql
.
.
.
@/data/dev/file100.sql