dbTalk Databases Forums  

sqlplus not allowing spaces

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss sqlplus not allowing spaces in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default sqlplus not allowing spaces - 07-18-2006 , 10:10 AM






I'm on win2003 with Oracle 10.1 server

It seems the SQL+ has a problem with spaces. I am trying to run a
script that contains the Program Files directory in it's path. I am
getting errors and I was hoping someone here might have a suggestion to
get this to run. I've tried enclosing the path in single and double
quotes but that's not working. Any suggestions?


*not working*
@C:\Program Files\scripts\test.sql
@'C:\Program Files\scripts\test.sql'
@"C:\Program Files\scripts\test.sql"


SP2-0310: unable to open file "C:\Program.sql"


dave


Reply With Quote
  #2  
Old   
sybrandb
 
Posts: n/a

Default Re: sqlplus not allowing spaces - 07-18-2006 , 10:20 AM







devmcg03 (AT) gmail (DOT) com wrote:
Quote:
I'm on win2003 with Oracle 10.1 server

It seems the SQL+ has a problem with spaces. I am trying to run a
script that contains the Program Files directory in it's path. I am
getting errors and I was hoping someone here might have a suggestion to
get this to run. I've tried enclosing the path in single and double
quotes but that's not working. Any suggestions?


*not working*
@C:\Program Files\scripts\test.sql
@'C:\Program Files\scripts\test.sql'
@"C:\Program Files\scripts\test.sql"


SP2-0310: unable to open file "C:\Program.sql"


dave
Oracle has never supported long filenames, even not when installing the
software. Assuming you install Oracle in c:\oracle\product etc...
the preferred location for scripts is c:\oracle\admin\scripts.
Learn to live with it, and stop searching for a non-existing solution.

--
Sybrand Bakker
Senior Oracle DBA



Reply With Quote
  #3  
Old   
gazzag
 
Posts: n/a

Default Re: sqlplus not allowing spaces - 07-18-2006 , 10:37 AM



Quote:
devmcg03 (AT) gmail (DOT) com wrote:
I'm on win2003 with Oracle 10.1 server

It seems the SQL+ has a problem with spaces. I am trying to run a
script that contains the Program Files directory in it's path. I am
getting errors and I was hoping someone here might have a suggestion to
get this to run. I've tried enclosing the path in single and double
quotes but that's not working. Any suggestions?


*not working*
@C:\Program Files\scripts\test.sql
@'C:\Program Files\scripts\test.sql'
@"C:\Program Files\scripts\test.sql"


SP2-0310: unable to open file "C:\Program.sql"


dave

Apart from Sybrand's correct suggestion, you could CD to the correct
directory from a command-prompt and run the relevant script from the
DOS SQL*Plus client.

HTH

-g



Reply With Quote
  #4  
Old   
Terry Dykstra
 
Posts: n/a

Default Re: sqlplus not allowing spaces - 07-18-2006 , 11:09 AM



"sybrandb" <sybrandb (AT) gmail (DOT) com> wrote

Quote:
devmcg03 (AT) gmail (DOT) com wrote:
I'm on win2003 with Oracle 10.1 server

It seems the SQL+ has a problem with spaces. I am trying to run a
script that contains the Program Files directory in it's path. I am
getting errors and I was hoping someone here might have a suggestion to
get this to run. I've tried enclosing the path in single and double
quotes but that's not working. Any suggestions?


*not working*
@C:\Program Files\scripts\test.sql
@'C:\Program Files\scripts\test.sql'
@"C:\Program Files\scripts\test.sql"


SP2-0310: unable to open file "C:\Program.sql"


dave

Oracle has never supported long filenames, even not when installing the
software. Assuming you install Oracle in c:\oracle\product etc...
the preferred location for scripts is c:\oracle\admin\scripts.
Learn to live with it, and stop searching for a non-existing solution.

--
Sybrand Bakker
Senior Oracle DBA

I've never had problems using doublequotes. Using 9207:

SQL> connect /@prod
Connected.
SQL> @"c:\program files\oracle\x.sql"

SYSDATE
---------
18-JUL-06

SQL>

--
Terry Dykstra




Reply With Quote
  #5  
Old   
Brian Peasland
 
Posts: n/a

Default Re: sqlplus not allowing spaces - 07-18-2006 , 11:20 AM



devmcg03 (AT) gmail (DOT) com wrote:
Quote:
I'm on win2003 with Oracle 10.1 server

It seems the SQL+ has a problem with spaces. I am trying to run a
script that contains the Program Files directory in it's path. I am
getting errors and I was hoping someone here might have a suggestion to
get this to run. I've tried enclosing the path in single and double
quotes but that's not working. Any suggestions?


*not working*
@C:\Program Files\scripts\test.sql
@'C:\Program Files\scripts\test.sql'
@"C:\Program Files\scripts\test.sql"


SP2-0310: unable to open file "C:\Program.sql"


dave

Another option is to use the DOS 8.3 convention:

@C:\Progra~1\scripts\test.sql


HTH,
Brian


--
================================================== =================

Brian Peasland
dba (AT) nospam (DOT) peasland.net
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.