Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> RE: sqlplus and spaces in path

RE: sqlplus and spaces in path

From: Ted Coyle <>
Date: Wed, 22 Aug 2007 13:20:56 -0400
Message-ID: <003301c7e4e0$cd296d80$>

All good options, but why not move the scripts to a directory path that doesn’t include spaces, or is that too easy?

If you can schedule a task you should also be able to create a folder outside the “My Documents” directory.



If my years running on Windows, I’ve never run anything out of “My Documents”. Yes, it is an option, but why bother.  


From: [] On Behalf Of
Sent: Wednesday, August 22, 2007 12:19 PM To:
Cc:; Subject: Re: sqlplus and spaces in path  


When I have a Scheduled Task on a Windows server, I have it execute a batch file in a certain directory. The first thing the batch file does is CD to the directory where the SQL scripts are. Then you can call them and they can call each other without worrying about the path.

Jack C. Applewhite - Database Administrator Austin I.S.D.
414.9715 (phone) / 935.5929 (pager)

Aviso del secreto: Este mensaje del email, incluyendo todos los accesorios, está para el uso único de los recipientes previstos y puede contener la información confidencial del estudiante. El uso o el acceso desautorizado se prohíbe bajo las derechas de la educación de la familia y acto federales de la aislamiento (20 U.S.C. §1232g; Parte 99 de 34 CFR). Si no eres el recipiente previsto, no puedes utilizar, no divulgas, no copias ni diseminas esta información. Entrar en contacto con por favor el remitente por el email de la contestación o por 414-9715 que entra en contacto con inmediatamente y destruir todas las copias del mensaje original, incluyendo los accesorios.

"Sam Bootsma" <> Sent by:

08/22/2007 10:50 AM

Please respond to





sqlplus and spaces in path      

Hello All,   

I am on Oracle database My sqlplus version is   

I have a sql script in a directory with embedded spaces (for example, directory C:\Documents and Settings\Staff\My Documents\_a). This sql script includes a couple of calls to other sql scripts using @@. For example:


I can call my main sql script by enclosing the path and file name in single or double quotes. But when this sql script calls another script using @@ (eg. @@sqlfile2), sql plus returns an error like:  “SP2-0310: unable to open file "C:\Documents.sql"   

Is there any solution to this problem? Is it possible to load into sqlplus a script from a directory which has spaces in its name, and this file to call other files from the same directory with @@)?   

Thanks for any suggestions!   

Sam Bootsma
Oracle Database Administrator
Information Technology Services
George Brown College
Phone: 416-415-5000 x4933
Fax: 416-415-4836
E-mail: <>   

Received on Wed Aug 22 2007 - 12:20:56 CDT

Original text of this message