The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Executing Multiple .SQL Files from Single Shell Script file
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Executing Multiple .SQL Files from Single Shell Script file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
04-07-2008
manan728
Registered User
Join Date: Apr 2008
Posts: 1
script example
This is how I executed multiple sql files in a folder that had 100 sql files in it:
for filename in *.sql
do
echo "Executing file $filename..."
sqlplus -s ods/passwd@dODS <<EOF
@$filename;
quit;
EOF
done
enjoy
manan728
View Public Profile
Find all posts by manan728
Find manan728's past nominations received
Find manan728's present nominations given