Problem with sqlplus with whitespace in the path of the @ command

I'm running Oracle 11g on Linux and I'm trying to run a script which will create my database. This script runs fine on windows, but when I test it on Linux, I get the following error:
SP2-0556: Invalid File NameThe problem may be that the path to the file name has a space in it. I'm going to simplify the problem down to one of the many commands I run in the file to make it simple. The sample command I'm trying to run looks like this:
sqlplus [uname]/[pw] @'../database/My Schema/create_sequence.sql'the create_sequence.sql file has two simple create sequence commands that run fine by themselves. I strongly suspect it is due to the white space because when I change the directory name from My Schema to MySchema and alter the above sqlplus command accordingly, the script runs fine.
Like I said, this script works in windows with the spaces, but not in Linux. I suspect spaces may not be supported, but I was wondering if anyone knew any different or it there is a work-around?
side note: running a command like:
more ../database/My\ Schema/create_sequence.sqlor
more '../database/My Schema/create_sequence.sql'prints the contents of the file to the console as you would expect. So, I think this is sqlplus (and linux) specific.
Edited by: user10887698 on Jul 28, 2009 4:21 PM
code markup!!!

user10887698 wrote:
I'm running Oracle 11g on Linux ...
..when I change the directory name from My Schema to MySchema and alter the above sqlplus command accordingly, the script runs fine.i really can't see why you are considering this as a problem.
On linux, you can't create directory that contains spaces between letters, like let say : fol der. Doing a mkdir fol der would create two folders,
one named fol and the other named der.
By information you provided , it's obvious that the exact and the correct full path to the create_sequence.sql file is ...database/MySchema/create_sequence.sql.
Can you position yourself in the directory where create_sequence.sql file is and type pwd to confirm the correct path?

Similar Messages

  • Using MS Visual Studio C++ 2008 Express, the "LoadLibrary" function doesn't recognize the NI-VISA DLL: "visa32.dll". I've included all the paths to the DLL. Is there a problem with this C++ compiler?

    I'm using MS Visual Studio C++ 2008 Express.  I've included all the paths to the DLL, "visa32.dll" but the LoadLibrary("visa32.dll") call returns the statement that can't convert character string to LPCSTR (pointer).  I ran the same code with the Portland Group compiler (which I no longer have) and there was not a problem accessing the DLL.  Is there some requirement for the C++ 2008 Express compiler that needs to be met?

    Hello jterry,
    If you compile as Unicode you need to pass Unicode strings to
    Win32 APIs which have LPTSTR or LPWSTR string.
    When you want to write code compilable for Unicode
    and Ansi just enclose all string constants in _T(). In your case:
    LoadLibrary(_T("visa32.dll"))
    You can look at this post on the microsoft discussion forums for more information.  Have a great day.
    O. Proulx
    National Instruments
    www.ni.com/support

  • Displaying the path of the file selected by a FileChooser in a TextField

    I'm just getting started with Swing. I developed a simple dialog box that has two text fields and two buttons. The objective is to open two files using those two buttons. I used FileChooser to select the files. Now, I want to display the path of the selected files in their corresponding TextFields. I use the following code to do that.
    final FileChooser fc1 = new FileChooser();
    final FileChooser fc2 = new FileChooser();
    final TextField tf1 = new TextField();
    final TextField tf2 = new TextField();
    private void button1ActionPerformed(ActionEvent evt)
                int returnVal1 = fc1.showOpenDialog(labelPhpFile);
                if (returnVal1 == JFileChooser.APPROVE_OPTION)
                    File file1 = fc1.getSelectedFile();
                    String fileName1 = file1.getName();               
                    String filePath1 = file1.getPath();
                    tf1.setText(filePath1);
    private void button2ActionPerformed(ActionEvent evt)
                int returnVal2 = fc2.showOpenDialog(labelPhpFile);
                if (returnVal2 == JFileChooser.APPROVE_OPTION)
                    File file2 = fc2.getSelectedFile();
                    String fileName2 = file2.getName();               
                    String filePath2 = file2.getPath();
                    tf2.setText(filePath2);
    }The above code works fine only for the first file. Mean the path of the file selected using fc1 is getting displayed in the tf1 TextField. But, the file selected using fc2 is not getting displayed tf2 TextField. Please help me.
    Thank you :)

    h1. The Ubiquitous Newbie Tips
    * DON'T SHOUT!!!
    * Homework dumps will be flamed mercilessly.
    * Have a quick scan through the [Forum FAQ's|http://wikis.sun.com/display/SunForums/Forums.sun.com+FAQ].
    h5. Ask a good question
    * Don't forget to actually ask a question. No, The subject line doesn't count.
    * Ask once
        - Don't Crosspost!
        - Two people answering one question independantly is a waste of there time.
    * Don't even talk to me until you've:
        (a) [googled it|http://www.google.com.au/] and
        (b) looked it up in [Sun's Java Tutorials|http://java.sun.com/docs/books/tutorial/] and
        (c) read the relevant section of the [API Docs|http://java.sun.com/javase/6/docs/api/index-files/index-1.html] and maybe even
        (d) referred to the JLS (for "advanced" questions).
    * [Good questions|http://www.catb.org/~esr/faqs/smart-questions.html#intro] get better Answers. It's a fact. Trust me on this one.
        - Lots of regulars on these forums simply don't read badly written questions. It's just too frustrating.
          - FFS spare us the SMS and L33t speak! Pull your pants up, and get a hair cut!
        - Often you discover your own mistake whilst forming a "Good question".
        - Many of the regulars on these forums will bend over backwards to help with a "Good question",
          especially to a nuggetty problem, because they're interested in the answer.
    * Improve your chances of getting laid tonight by writing an SSCCE
        - For you normal people, That's a: Short Self-Contained Compilable Example.
        - Short is sweet: No-one wants to wade through 5000 lines to find your syntax errors!
        - Often you discover your own mistake whilst writing an SSCCE.
        - Solving your own problem yields a sense of accomplishment ;-)
    h5. Formatting Matters
    * Post your code between a pair of {code} tags
        - That is: {code} ... your code goes here ... {code}
        - This makes your code easier to read by preserving whitespace and highlighting java syntax.
        - Copy&paste your source code directly from your editor. The forum editor basically sucks.
        - The forums tabwidth is 8, as per [the java coding conventions|http://java.sun.com/docs/codeconv/].
          - Indents will go jagged if your tabwidth!=8 and you've mixed tabs and spaces.
          - Lines longer than 80 characters should be wrapped.
          - Proper indentation illustrates program logic.
    * Post your error messages between a pair of {code} tags:
        - That is: {code} ... errors here ... {code}
        - To make it easier for us to find, Mark the erroneous line(s) in your source-code. For example:
            System.out.println("Your momma!); // <<<< ERROR 1
        - Note that error messages are rendered basically useless if the code has been
          modified AT ALL since the error message was produced.
        - Here's [How to read a stacktrace|http://www.0xcafefeed.com/2004/06/of-thread-dumps-and-stack-traces/].
    * The forum editor has a "Preview" pane. Use it.
        - If you're new around here you'll probably find the "Rich Text" view is easier to use.
        - WARNING: Swapping from "Plain Text" view to "Rich Text" scrambles the markup!
        - To see how a posted "special effect" is done, click reply then click the quote button.
    If you (the newbie) have covered these bases *you deserve, and can therefore expect, GOOD answers!*
    h1. The pledge!
    We the New To Java regulars do hereby pledge to refrain from flaming anybody, no matter how gumbyish the question, if the OP has demonstrably tried to cover these bases. The rest are fair game.

  • How to get the path of the image stored in DMS

    Hi everyone..
    My question is that I have attached an image with an order through transaction jha2n..
    Now my requirement is to get the image in report..
    I know the Logical id in ISM_l_ord class and physical id in ISM_P_Ord class.
    I know that link between image and order is in SKWG_BREL.
    But i am not able to get the path so that i can show the image in docking control.
    pls help to retrive the path of the image stored...
    Thanks
    Pooja

    EpicMaster wrote:Now the problem is when I run the application through the .jar file in the dist/ directory the images simply wont load...
    ..lblProduct.setIcon(new ImageIcon("Resources.zip/res/Product.png"));
    Now the problem is when I Build&Clean the whole project which creates a /dist directory containing the complied and execulatble .Jar file for the application AND a folder called "lib" which contains the Resource.Zip folderThe String based constructor to ImageIcon presumes the String represents a File path. File objects do not work with resources inside Jar or Zip archives, for those, you need an URL. Gain the URL using something like..
    URL urlToImage = this.getClass().getResource("/res/Product.png");

  • How to get the path of the image stored in sap??

    Hi All
    The problem is
    While making an entry in standard there is a field called documents through which we attach our images in sap.
    How to get the path of the image stored with the corresponding order so that the image can be displayed while we are creating a report.
    I know how to upload the image while creating a report using docking control.
    I am not able to get the path of the image stored...
    Please Help
    Thanks in advance..
    Pooja

    I am not aware of exactly which tables are used for storing the attached doc. details, but we have worked in the similar requiremnent.
    What you can do is .... before uploading the image to any order, try swich on the SQL trace ST05 and after upload switch off.
    The log will display what are the tables involved while storing the image. And you can easily find out the image location.

  • To Find the path of the filename

    Hi Guys!
    Is it possible in D2K 2.1 to find the path of the filename entered by the user????
    My problem is: I use DDE package funct DDE.APP_BEGIN to open a filename (e.g. in this case any HTML file) enterd by the user. But I do not know where the IEXPLORE.EXE lies on each client machine. I think while using this funct, I need to give the full path of the module I want to open the file with. Because when I tried to use following func it gave me some error.
    DDE.APP_BEGIN('iexplore.exe c:\file_name');
    I hope the prob is clear.
    Thanks for the help.
    null

    I'm glad it worked for you too.
    The thing with batch files:
    Imagine you want to open to allow the user to open some files (with different extensions) with Wordpad.
    My previous solution would work if all the files had .wri extension.
    The directory for wordpad.exe is not the same for Windows 95 and Windows NT.
    My solution:
    create a batch file named vWordpad.bat:
    @echo off
    "c:\program files\accessories\wordpad.exe" %1In your form trigger,
    DDE.APP_BEGIN('vWordpad.bat c:\file_name');Make sure vWordpad.bat in located in a directory included in the OS path (c:\windows95, for example).
    Now, if you move your application to a Windows NT machine, all you have to do is change "c:\program files\accessories\wordpad.exe" to "c:\program files\windows nt\accessories\wordpad.exe". No need to change the fmb, recreate the fmx, etc...
    Everyone, feel free to comment on this approach.
    Pedro.

  • Howto resolve the path to the class file

    hi @ all,
    i'm currently developing a package for ldap operations. now i want to write down all the real basic configuration for that package into a xml file which i want to save in the folder where the compiled class files are stored. my problem is that i do not know how i can resolve the absolute path to that xml file later. i mean, how can i load this file if the package is, e.g. exported as an jar file and i do not know where this jar file will be stored by the users of my package.
    can anyone help me with that please?
    thx in advance
    dialsc

    k, cool...
    looks like it goes into the right direction.
    with this statement i get the path where the jar is stored, right.
    in my current situation this is the path to the src directory which i configured my eclipse ide to store the class files under.
    let's say this path is d:\tmp\src
    my package is tdl.domain.utils.ldap
    so in fact at the moment my class files are stored under d:\tmp\src\tdl\domain\utils\ldap and the xml file too.
    first:
    that statement returns /D:/tmp/src
    as you can see it uses unix path separators. do i have to replace them with the machine specific pathSeparatorChar?
    second:
    can is simply add the path tdl\domain\utils\ldap to that one (using the according machine specific pathSeparatorChar) and will this also work when i build a jar file of my package?
    sorry for all that questions but i realy need this...
    thx
    dialsc

  • Can the path to the iTunes Music folder be locked?

    I'm trying to simplify the results of my own occasional user error.
    Can the path to the iTunes Music folder be locked?
    I have my library stored on an external drive that I keep turned off when not in use. If I accidentally start iTunes with that drive off, it recreates the original iTunes Music folder and directs itself there.
    Can that behavior be stopped? It seems like there should be a way for iTunes to send a pop up or something, rather than this automated over ride to manual settings.

    Yeah, I know I don't have an end of the world scenario here.
    But just remounting the drive doesn't do it. I have to go back into iTunes and reset the folder location. Then wait several minutes as it all reorganizes itself.
    I know just leaving the drive on is the easiest answer. It causes too much of a domestic dispute about all the blinking boxes I have running all the time. I have convinced her that the green one on the AEBS has to be on if she wants internet.

  • Function Module to find the Path of the file in the Application Server

    Hi All,
            Any function module available to find the path of the file stored in the application server. Please let me know.
    Thanks.

    Check this code:
      DATA: dl_file TYPE ibipparms-path.    " File name
      CONSTANTS: c_dir       TYPE  rlgrap-filename.
    * F4 filename for Application server
        CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
          EXPORTING
            directory        = c_dir
            filemask         = ' '
          IMPORTING
            serverfile       = dl_file
          EXCEPTIONS
            canceled_by_user = 1
            OTHERS           = 2.
        IF sy-subrc <> 0.
          MESSAGE e000 WITH 'Error while getting the file name'(006).
          EXIT.
        ELSE.
          p_file =  dl_file.
        ENDIF.
    Thanks & Regards,
    Siri.
    Message was edited by:
            Srilatha T

  • How to get the path of the web-archive on the local filesystem?? [Apache]

    Hello all,
    Im running a webapplication on a tomcat server.
    I need to find out the path of the web-archive on the local filesystem to access several files.
    How can I do that with out having an instance of HttpRequest or whatever??

    Hello Bruce.
    Please take a look at the following KBase article.  It has a sample that will retrieve the folder structure for a specified Crystal Report template based on the instance name in the file store.  The sample there can be easily modified so that it is based on a specific infoObject id.
    1549728 - How to find the folder structure in the CMC of a report template based on the instance file name in the output file store.
    The KBase can be retrieve from the following link:
    https://bosap-support.wdf.sap.corp/sap/support/notes/1549728
    Please note that the KBase article is retrieved through the Service MarketPlace.
    I hope this helps.
    Regards.
    - Robert

  • Defining the path for the use of beans in a JSP

              Hello,
              I would like to use a bean in a JSP file, via the <jsp:usebean> directive.
              I didn't find any property (weblogic property) which could define the path
              to the directory of my beans classes.
              So :
              1) i have put the path of this directory in the weblogic classpath in the weblogic
              start script.
              2) i made the same with the java classpath.
              Both solutions don't work at all.
              Any suggestion would be appreciated.
              Thanks in advance.
              

              We use the \weblogic\myserver\serverclasses for beans..
              of course we pack beans into jar files, and these jar files are included into
              the wls classpath..
              "Sylvain R." <[email protected]> wrote:
              >
              >Hello,
              >I would like to use a bean in a JSP file, via the <jsp:usebean> directive.
              >I didn't find any property (weblogic property) which could define the
              >path
              > to the directory of my beans classes.
              >So :
              >1) i have put the path of this directory in the weblogic classpath in
              >the weblogic
              >start script.
              >2) i made the same with the java classpath.
              >
              >Both solutions don't work at all.
              >
              >Any suggestion would be appreciated.
              >Thanks in advance.
              >
              

  • Is there a way we can change the path of the songs to an external hard drive when we move the songs over?   also, is there a way to delete multiple songs easily?

    is there a way we can change the path of the songs to an external hard drive when we move the songs over?   also, is there a way to delete multiple songs easily?
    I recently moved my songs over for hard drive space.  Really don't want to have to go back through each album, etc... to get that to work.
    Last time I tried making a "library" that didn't work either.
    On the topic of deleting multiple songs that are the same, is there an easier way then to select each one?
    Seems to me apple isn't user friendly

    Welcome to the world of digital media. Your can't really transfer it. I don't know what the rules are about transferring to your spouse but I do know that in some cases when you die, your heirs cannot inherit your digital media. This is why there is still an advantage to buying the CD since the usage rights belong to whomever holds the physical media.
    A possible workaround is to burn the songs to a music CD with yout account (tracks only without song titles) and then having your wife upload it as a regular music CD onto her account. It's been a while since i've done this so I'm not sure if it would work now.
    Please note that I'm not advocating copyright and/or TOS violations. I'm only suggesting ways to copy music for your own personal use which has traditonally been permitted. I only did this because I wanted to convert iTunes songs to mp3 files so I could burn them onto a data CD for use in my car. It would make sense that since married couples are a joint entity, this would be personal use.
    Also, I'm not a lawyer so don't take this as legal advice.

  • Automator: How to obtain the path of the active window

    I'm trying to write an Automator service that changes the folder view of the current, active folder to icon view.  However, I'm having a very hard time getting Automator to obtain the path of the folder of the active window.  Any help would be appreciated.

    Thanks for the reply.
    I tried your suggestion earlier, but the syntax of the path contains ( ) characters in the path text such as:
    /Users/Marc/Documents/Structural Photos
    If there's a way to automatically edit the ( ) out of the path text, I could use the Copy to Clipboard command.  I've been trolling some of the forums that deal with Automator on the web and it appears there might be a way to get the path using Run Shell Script.  Unfortunately, I not familiar with Unix command codes.

  • How to retrieve the path and the name of the destination file in a link annotation

    Hi,
    In C++:
    How to retrieve the path and the name of the destination file in a link annotation and a Launch action.
    Sample of my code:
    //Determine if the annotation is a Link annotation
    if (PDAnnotGetSubtype(annot) == ASAtomFromString("Link")) {
    //Determine if the action is a Launch action
    if (PDActionGetSubtype(action) == ASAtomFromString("Launch")) {
    // What is the method ?
    Regards
    David G

    In general, get the annotation as a Cos object and examine it, in
    accordance with the PDF Reference.
    Aandi Inston

  • My selection tool doesn't select shape directly, only the path of the shape.

    When i'm working in Illustrator and I want to select a shape, it is making me click on the path of the shape instead of just inside of it. The shape does have a filling so that isn't the problem. It seems to have just recently happened as well.  I tried to restart the program and the computer but it still does it. Any help will be greatly appreciated!

    Is this box checked in Preferences?
    If so, uncheck it.

Maybe you are looking for