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 » Tools
sqlplus handling spaces...
Post new topic   Reply to topic Page 1 of 1 [2 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:18 pm    Post subject: sqlplus handling spaces... Reply with quote

Hi everyone,

I need an answer to a very urgent problem with sqlplus.
I try to launch (from a Java class) sqlplus or plus80, or plus80w, on
Win
NT, with the following command line:


sqlplus -s user/password @path\sqlfile1


The problem comes when the "path" includes spaces (for example
c:\program
files\myapp\sql\).
In this case sqlplus tries to load the file c:\program.sql !!!
I discovered that if I use single quotes the problem is solved for the
command line:


sqlplus -s user/password @'path\sqlfile1'


But, if the "sqlfile1" calls itself a new sql file like in


....
@@sqlfile2
....


which is supposed to use the same path like sqlfile1 (the caller),
again
sqlplus tries to find the file c:\program.sql


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


I will appreciate any help.
Back to top
Jeremy
*nix forums Guru Wannabe


Joined: 26 Apr 2005
Posts: 228

PostPosted: Tue Jul 18, 2006 3:49 pm    Post subject: Re: sqlplus handling spaces... Reply with quote

In article <1153235919.465642.280020@s13g2000cwa.googlegroups.com>,
says...
Quote:
Hi everyone,

I need an answer to a very urgent problem with sqlplus.
I try to launch (from a Java class) sqlplus or plus80, or plus80w, on
Win
NT, with the following command line:


sqlplus -s user/password @path\sqlfile1


The problem comes when the "path" includes spaces (for example
c:\program
files\myapp\sql\).
In this case sqlplus tries to load the file c:\program.sql !!!
I discovered that if I use single quotes the problem is solved for the
command line:


sqlplus -s user/password @'path\sqlfile1'


But, if the "sqlfile1" calls itself a new sql file like in


...
@@sqlfile2
...


which is supposed to use the same path like sqlfile1 (the caller),
again
sqlplus tries to find the file c:\program.sql


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


I will appreciate any help.



Try CD to the "directory with spaces in it which contains the scripts"

then run sqlplus from there?

--

jeremy
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 11:41 pm | All times are GMT
navigation Forum index » Databases » Oracle » Tools
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 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 sqlplus not allowing spaces devmcg03@gmail.com Oracle 4 Tue Jul 18, 2006 3:10 pm
No new posts Why dont RealTime Embedded programmers use Exception Hand... NewToCPP embedded 4 Mon Jul 17, 2006 8:46 pm

Consolidate Student Loans | Yugioh | Property in Spain | Cheap Magazine | Mortgages
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.3010s ][ Queries: 16 (0.2091s) ][ GZIP on - Debug on ]