SQL*Plus (MOSC)

MOSC Banner

Execute SQL*Plus scripts retrieved dynamically from a directory and its subdirectories

edited May 29, 2013 2:14AM in SQL*Plus (MOSC) 9 commentsAnswered
Hi All,
I'm looking for a way in SQL*Plus to execute files as scripts found in a directory and subdirectories, not knowing in advance how many files will be there. The main directory is the current directory, and to make it more difficult, I'd like it to be OS independant.

Say I'm on Windows, and my current directory is "d:\main_directory".  Here is an example of structure (using the tree comman in dos):

\MAIN_DIRECTORY>tree /f /a
Structure du dossier pour le volume DATA
Le numéro de série du volume est C6C5-DCDB
.
|   create_tables.sql

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center