niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Oracle
sqlplus not allowing spaces
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
Author Message
devmcg03@gmail.com
*nix forums beginner


Joined: 18 Jul 2006
Posts: 5

PostPosted: Tue Jul 18, 2006 3:10 pm    Post subject: sqlplus not allowing spaces Reply with 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
Back to top
sybrandb
*nix forums beginner


Joined: 13 Jul 2006
Posts: 22

PostPosted: Tue Jul 18, 2006 3:20 pm    Post subject: Re: sqlplus not allowing spaces Reply with quote

devmcg03@gmail.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
Back to top
gazzag
*nix forums Guru Wannabe


Joined: 08 Jun 2005
Posts: 277

PostPosted: Tue Jul 18, 2006 3:37 pm    Post subject: Re: sqlplus not allowing spaces Reply with quote

Quote:
devmcg03@gmail.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
Back to top
Terry Dykstra
*nix forums addict


Joined: 19 Apr 2005
Posts: 63

PostPosted: Tue Jul 18, 2006 4:09 pm    Post subject: Re: sqlplus not allowing spaces Reply with quote

"sybrandb" <sybrandb@gmail.com> wrote in message
news:1153236005.899758.269460@m73g2000cwd.googlegroups.com...
Quote:

devmcg03@gmail.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
Back to top
Brian Peasland
*nix forums Guru


Joined: 04 Apr 2006
Posts: 301

PostPosted: Tue Jul 18, 2006 4:20 pm    Post subject: Re: sqlplus not allowing spaces Reply with quote

devmcg03@gmail.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@nospam.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
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 9:53 pm | All times are GMT
navigation Forum index » Databases » Oracle
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts SQLPLUS Oracle 8i query vernalGreens@gmail.com Tools 4 Thu Jul 20, 2006 7:00 am
No new posts sqlplus handling spaces... devmcg03@gmail.com Tools 1 Tue Jul 18, 2006 3:18 pm
No new posts sql plus handling spaces... devmcg03@gmail.com Server 1 Tue Jul 18, 2006 3:18 pm
No new posts sql plus handling spaces... devmcg03@gmail.com Oracle 2 Tue Jul 18, 2006 3:17 pm
No new posts Allowing for "ALL_DEVICES_KERNELS" after bos install rob@openstream.co.uk AIX 2 Mon Jul 17, 2006 9:58 am

Mortgage Loans | Bad Credit Mortgages | Mortgage | Mortgage Calculator | Property for sale in Spain
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1906s ][ Queries: 16 (0.0729s) ][ GZIP on - Debug on ]