How to store SP2-0310: unable to open file errors in log file

We are using oracle 10g on Linux platform.
When we send scripts to the clients, then we also send a control file that executes all the sql files e.g.
control.sql
SPOOL test.log
SELECT 'Start of Control File at:'||systimestamp from dual;
SPOOL OFF
@./dbscripts/00_insert_scripts.sql
SPOOL test.log APPEND
SELECT 'End of Control File at:'||systimestamp from dual;
SPOOL OFFThe scripts are executed from SqlPlusW only by typing @control.sql
The problem is that when SP2-0310: unable to open file error comes, it appears on the screen only. It does not go in the test.log file. Is there any way to store these errors in a file from SQLPlusW.
Thanks.

try mentioning full path....
try
@<fully qualified path>/00_insert_scripts.sql
also check if the file has necessary permission
ls -l <fully qualified path>/00_insert_scripts.sql

Similar Messages

  • Bug in file opening "SP2-0310: Unable to open file." How to register it ? ( Version 4.1.0.18)

    Steps to repeat in version 4.1.0.18
    1) mkdir sql
    2) cd sql
    3) touch script2.sql
    4) touch script1.sql        and  write  @@script2.sql
    5)  open the script1.sql from "Files" tree in sqldeveloper, choice connect to any oracle db , run script(F5)
    Error starting at line : 1 in command -
    @@script2.sql
    Error report -
    SP2-0310: Unable to open file: "script2.sql"
    If try to execute this  case in  version 4.0.3.16 then  all work will be fine.
    How to register it ?
    Message was edited by: DmitryZaytsev

    Hi!
    The SP2-0310 error occurs when you have not fully-qualified the PATH to the file.  Rather than rely on a variable, specify the fully-qualified path.
    HTH!

  • Error: sp2-0310 unable to open file c:\desktop\oracle\table.sql

    I am not able to open any files that I have downloaded and put into a file path. I keep getting the error sp2-0310 unable to open file. I made sure to save my files in a path with no spaces. What can I do to resolve this error message.
    Thanks.

    As already said, you need to verify you've really got the correct path. After that, you can also check to see that the file name is really table.sql. If you created the file in a simple text editor, sometimes the editor will append .txt to the file name. But if you have "Hide Extensions" turned on in Windows Explorer, then you wouldn't see the .txt extension. Check the file name and make sure it really is as you think and doesn't have another extension on it.
    Finally, how are you trying to use the file in SQL*Plus? If the path and file name are correct, you should be able to do this:
    SQL> get c:\desktop\oracle\table
    and it should bring up the file into the SQL*Plus buffer. Or, you should be able to use:
    SQL> @c:\desktop\oracle\table
    to execute the contents of the file.
    If you are simply using:
    SQL> @table
    then you could add the SQLPATH environment variable to point to c:\desktop\oracle and that would allow you to skip entering the path.
    Hope this helps,
    Karen

  • SP2-0310: Failed to open the file "coreins.sql"

    Hi, when i try to install apex 3.0... on oraclexe , in the file install****.log show this error SP2-0310: Failed to open the file "coreins.sql"

    You will find the answer to your problem in this forum..
    Database Installation

  • I am unable to open attachments (Word Documents, Excel file, Adobe) from my Gmail with Firefox.

    I am unable to open attachments (Word Documents, Excel file, Adobe) from my Gmail with Firefox. My computer freezes when I try to open the (email attachment) file. Task Manager says "not responding".
    You can respond to [email protected]

    You may first want to look into Safari's "Installed Plugins" section within the browser. This is (usually) found under the Safari Help header in the top of a browser. I say usually, because I don't use Safari often and mine is an older version. They handle applications and plugins like most others, to a point.
    I see in Safari Installed Plugins that mine would use
    application/pdf
    Acrobat Portable Document Format
    Acrobat Reader & reader plugin v9.5.5 for web browsers
    (in Safari 5.x, where I looked into this)
    While I use FireFox, SeaMonkey (Mozilla) and others, where I can choose in preferences the helper applications to open from the browser, Safari has different methods; so if you can change this in the preferences or settings of Safari in a later version I am not certain.
    You could see what the defaults are by using Safari help menu to open the Installed plugins, and maybe find out what happend to Adobe reader plugin. Could be it was 'sandboxed' in a later OS X and needs to be installed differently to be accepted as safe.
    It is easier to set how a file type is handled once it is inside the computer and not held in the browser; by file type in general or specific to each single document. I do both, and seldom let an a browser do these things due to security considerations. I download and open them, only then if I feel they are safe.
    Sorry to not have a specific answer for that anomaly.
    Good luck & happy computing!

  • Have PS6 with Camera Raw 7.0 Unable to open Canon 5D Mark III  files. SNo support or upgrade availab

    Have PS6 with Camera Raw 7.0 Unable to open Canon 5D Mark III  files. SNo support or upgrade available on the site but 6.7 upgrade.!Please advise

    http://labs.adobe.com/technologies/cameraraw7-1/

  • I am unable to open scanned documents (with .jpg file extension) in my e-mail inbox, on the Mail app on my iPad. Please provide a clear answer. Thanks a lot.

    I am unable to open scanned documents (with .jpg file extension) in my e-mail inbox, on the Mail app on my iPad. Please provide a clear answer. Thanks a lot.

    Can you actually see that the attachment has a .jpg extension?  Some mail systems strip it off (I've seen AOL do that) which makes the attachment difficult to open.

  • UNABLE TO OPEN FCP 6.02 PROJECT FILES AFTER INSTALLING LEOPARD!

    **Unable to open FCP 6.02 project files after installing Leopard**. Tested and found that the files can be opened on another computer with OS 10.4.10, but not OS 10.5. Spoke to apple support many times, and have tried reinstalling FCP, but it didn't work.
    Apple is now saying to erase my HD and reinstall from scratch. This presents a problem since i have software installed but no disc due to a move, (they are deep in offsite storage).
    Anyone have this problem? Anyone know a fix?

    Lynne,
    There is a section in the manual on the migration tool... I don't have my machine fired up right now so can't direct you to the exact page. I think a search for migration or migrate should do it.
    Two other things to try:
    1. There have been numerous reports that Quicktime 7.3 is what is killing older projects. According to one of the third party program makers Apple re-wrote Quicktime changing the null value to Zero from minus-one. I'm not a code junkie so can't vouch for this but the upshot would be, go back to Quicktime 7.1 or 7.2 not 7.3
    2. There is a Quicktime plugin called "Perian". For lots of people it has caused numerous problems.
    Look for Perian on your machine and if you find it, drag the app to the trash... re boot and try again.
    Of course the ultimate solution would be to reinstall Tiger, Final Cut Studio 2 and Quicktime 7.2. So far the most stable combined setup for me and lots of others on G5 machines.
    36 degrees and thunderstorms with sleet here this afternoon. The door on my storage unit is staying closed.
    Message was edited by: John Criswell

  • How do i tell the finder to open all of my .m4v files to open with quicktim

    How do i tell the finder to open all of my .m4v files to open with quicktime, not itunes. i tryed right clicking on it and choosing other and selecting quicktime then checking the box that says "always open with" but that only pertains to that one file not all of them.

    Right click and choose "get info" then choose quicktime from the "open with" drop down menu.
    Then below that you will see "Change all" click that and your done.
    Randy

  • File Error: The Specified file is open and in use by this or another app...

    I have imported a string of pictures and dragged them into the FCP timeline. I render them and it renders a certain percentage then it stops and says "File Error: The Specified file is open and in use by this or another application."
    After reading this, I quit out of FCP, restarted my computer, opened FCP, nothing other program, tried to render again and same thing happened. It renders part of it then the error message pops up, then I can render again and it will do another percent then it will pop again and so on.
    Suggestions, or does anyone know why this happened? Thank you very much for your time.
    A

    okay - don't know where you've got your scratch disc set but hopefully it's to another drive other than your boot.
    The same drive where your render files should be located, ie some drive other than your boot drive.
    Can you copy the jpegs over to that drive into a folder.
    Delete them from your tl, delete them from your proj. Save your project. Close fcp.
    If they're on your boot drive - delete them.
    Reopen fcp and Reimport them from the new location.
    Sorry for all the steps - but we have no idea how you have configured fcp or your level of experience. Trying to cover all the bases ...

  • How to print only fatal error in log file in tomcat4.1

    Hi all ,i m using tomcat4.1
    1> i want to print only fatal error in log file ,but it print all thing in log file ,how i can avoid it(because i think this process is consuming my resource)
    assume below ip address is corect:
    this is exact printing in my log file
    .12.2.3.3  - - [24/Oct/2007:00:00:00 5050] "GET /menu/ir.jsp HTTP/1.1" 200 2828
    12.2.3.3  - - [24/Oct/2007:00:00:00 5050] "GET /menu/bottomAdv.jsp HTTP/1.1" 200 528
    12.2.3.3  - - [24/Oct/2007:00:00:02 5050] "GET /menu/alerts.jsp HTTP/1.1" 200 323
    12.2.3.3  - - [24/Oct/2007:00:00:02 5050] "GET /alerts/createAlertShow.jsp HTTP/1.1" 200 26140
    123.2.3. - - [24/Oct/2007:00:00:05 5050] "GET /menu/getsensex.jsp HTTP/1.1" 200 642
    12.2.3.3 - - [24/Oct/2007:00:00:05 5050] "GET /menu/latestRecommendation.jsp HTTP/1.1" 200 5210
    12.2.3.3 - - [24/Oct/2007:00:00:05 5050] "GET /portfolio/watchlist/displayWatchlistItemsShow.jsp?watchlistId=20070509013642953_1&watchlistName=First&refreshRate=900&flag=1 HTTP/1.1" 500 7257
    12.2.3.3  - - [24/Oct/2007:00:00:05 5050] "GET /menu/iwealthNewsScroller.jsp HTTP/1.1" 200 2828
    112.23.3  - - [24/Oct/2007:00:00:06 5050] "GET /menu/alerts.jsp HTTP/1.1" 200 323
    112.23.3 - - [24/Oct/2007:00:00:06 5050] "GET /menu/bottomAdv.jsp HTTP/1.1" 200 528
    12.2.3.3  - - [24/Oct/2007:00:00:07 5050] "GET /menu/alerts.jsp HTTP/1.0" 200 323
    12.2.3.3 - - [24/Oct/2007:00:00:09 5050] "POST /Transaction/equity/modifyConfirmShow.jsp?DelId=0 HTTP/1.1" 200 28661
    12.2.3.3  - - [24/Oct/2007:00:00:09 5050] "GET /menu/getsensex.jsp HTTP/1.1" 200 6422>what will happen if i change timestamp="false" and what is the significance of verbosity="1" or "2" or "3" ,or "4" and what happen if i change debug="1" or other in below code
    <Logger className="org.apache.catalina.logger.FileLogger" debug="0" directory="logs" prefix="www.xyz_log." suffix=".txt" timestamp="true" verbosity="4"/>Edited by: Deepak23 on Oct 24, 2007 10:41 PM
    Edited by: Deepak23 on Oct 24, 2007 11:16 PM

    One of my standard answers (which will explain the use of Directory Objects)...
    The UTL_FILE_DIR parameter has been deprecated by oracle in favour of direcory objects because of it's security problems.
    The correct thing to do is to create a directory object e.g.:
    CREATE OR REPLACE DIRECTORY mydir AS 'c:\myfiles';Note: This does not create the directory on the file system. You have to do that yourself and ensure that oracle has permission to read/write to that file system directory.
    Then, grant permission to the users who require access e.g....
    GRANT READ,WRITE ON DIRECTORY mydir TO myuser;Then use that directory object inside your FOPEN statement e.g.
    fh := UTL_FILE.FOPEN('MYDIR', 'myfile.txt', 'r');Note: You MUST specify the directory object name in quotes and in UPPER case for this to work as it is a string that is referring to a database object name which will have been stored in uppercase by default.

  • How to get the output of a procedure in to a log file ?

    Hi, Everyone,
    Could you please tell me
    How do i write the output of a procedure to a log file ?
    Thanks in advance...

    Hi,
    could you please explain me more on how to use the UTL_file to get the output to a log file as in am new to PL/SQL
    my script file is
    EXEC pac_sav_cat_rfv.pro_cardbase (200910,'aaa',100,'test_tbl');
    i need the output of this statement in a log file.
    Could you please explain to me how it can be done.
    thanks in advance

  • FILE ERROR: The Specified file is open and in use...

    FILE ERROR: The Specified file is open and in use by this or another application.
    I get this error when I import a .MOV created by Live Type. All applications, except FCP, are closed. I can reboot the computer and get the same thing. It happens when I try and "render all". Thanks.

    It's probably either spotlight looking at the files, or some anti-virus program thinking your render is a virus.

  • How to Track DDL and DML Operations happening in Backend into Log Files....

    Hi I have one requirement for Tracking the DDL And DML Operation happening in Backend once the user Inserts or Updates any Table.How to Implement the same can anyone proviode the code for the same.
    Ex: I have multiple tables in my database if any user fires the DDL or DML it should make entry in the Log file as
    Name of the Table Operation Timestamp
    X Insert DD-MM-YYYY HH24:MM:SS
    Y Update DD-MM-YYYY HH24:MM:SS
    Z Delete DD-MM-YYYY HH24:MM:SS
    L Select DD-MM-YYYY HH24:MM:SS
    Is it Possible to Develop it through Procedure,Function or Package,please give me Idea,,,,,

    Please do not post same question in multiple forum. How to Track DDL and DML Operations happening in Backend into Log Files....
    What's wrong with the answers posted in the above forum ? Do you go through the "AUDIT" option as suggested in the above post by various members ?

  • How do we track client deployment via group policy by referring log files globally

    How do we track client deployment via group policy by referring log file centrally?

    need answer from  both CM07/CM012 by using GPO
    There is NO Centralized tracking for GPOs.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

Maybe you are looking for