SP2-0310 error in sqlplus

Hi,
I had a problem opening one of the folders in my C drive from SQL Plus. I was able to connect to SQL Plus but was not able to let connect to that folder and execute the sql script in that folder. I refered metalink documents and googled it but i couldn't troubleshoot it and am not sure what needs to be done yet to fix it.
Below is my error..
SQL> @C:\sqlfiles\xxx.sql.txt
SP2-0310: unable to open file "C:\sqlfiles\xxx.sql.txt"
Hope some one can help me fixing it. I am not looking for reference guides or some notes or links. I am looking for some ways to figure it out.

I had a problem opening one of the folders in my C drive from SQL Plus. I was able to connect to SQL Plus but was not able to let connect to that folder and execute the sql script in that folder. I refered metalink documents and googled it but i couldn't troubleshoot it and am not sure what needs to be done yet to fix it.SP2-0310: Unable to Open File from SQL*Plus [ID 124852.1]
SP2-0310: Unable To Open File "" Running catcpu.sql, catpatch.sql or catupgrd.sql scripts against a database [ID 434438.1]
Below is my error..
SQL> @C:\sqlfiles\xxx.sql.txt
SP2-0310: unable to open file "C:\sqlfiles\xxx.sql.txt"
Hope some one can help me fixing it. I am not looking for reference guides or some notes or links. I am looking for some ways to figure it out.What if you rename the file to xxx.sql, do you get the same error then?
Thanks,
Hussein

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!

  • 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

  • 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

  • Error SP2-0310 while running @utlsampl.sql

    After installing Oracle on Win 98 I
    1.Login sql+ as system and manager
    2.run @utlsampl.sql
    3.the error got is SP2-0310 unable to open file utlsampl.sql
    Is there a place to look up SP2 errors
    Any thoughts.
    Thanks in advance

    The file is located in $ORACLE_HOME\rdbms\admin. If you do not
    specify a fully qualified path then SQL*Plus will look in its
    default directory. Try @%ORACLE_HOME%\rdbms\admin\utlsampl.sql

  • SP2-0310

    Hello All,
    One of my Customer has 4 DB Servers with 11.2.0.2 binaries installed.  When they run sqlplus / as sysdba on two of these servers the following error is encountered
    SP2-0310: unable to open file "sqlprompt.sql"
    The following document was tried but to no avail.
    Running a SQL Script with Permissions set to 600 Fails with SQL*Plus Client Installed on UNIX [ID 1161443.1]
    Any pointers would be of great help
    Thanks,
    Anand

    Hi, Anand,
    I'm not familiar with an Oracle-supplied file called sqlprompt.sql.
    Could it be a typo in a login.sql file, that says "@sqlprompt ..." instead of "SET sqlprompt ..."?
    Does everything seem to work normally after you get the error?
    Does the same error occur when you login as SYSTEM, or SCOTT, or any other schema?

  • 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

  • SP2-0310: impossÃble open archive  "c:bdbiblio.sql"

    Hi,iam new in oracle, and new in english too.
    If any one, could help me i wil be happy.
    I'm trying to execute, a file, that i create in notepad, in sql plus, but i've got thid=s message error:SP2-0310: impossibe open archive "c:bdbiblio.sql".
    If someone could help me please mail me: [email protected]

    Thank's for the help.
    The soluction, you gave to me, did not resolve my problem.
    My paltaform is windows 2000, and i use oracle 9i, maybe this information could help. When i use one archive, that was executed one time with the sql/plus in other machine, it work's. But if i just create, an archive, in my machine, they dont start and the error message is the same.
    Please help me, i need it for my graduation.

  • SP2-0611: Error enabling STATISTICS report

    Hai
    I created table test2 with 20,000 records,and trying to set autotrace on in order to get statistics ,i got the below error.
    SQL> SET AUTOTRACE ON
    ERROR:
    ORA-24315: illegal attribute type
    SP2-0619: Error while connecting
    SP2-0611: Error enabling STATISTICS report
    Any idea about this
    Regards
    mohan

    SP2-0619 Error while connecting
    Cause: An error occurred while AUTOTRACE attempted to make a second connection to the database instance.
    Action: Check that the database limit on number of active sessions has not been exceeded.

  • SP2-0310 trying to upgrade PL/SQL Web Toolkit on 10g XE

    Hi,
    I upgraded my local Oracle 10g XE APEX installation to version 4.0.2.00.06 but then I realized that I probably also needed a newer version of the PL/SQL Web Toolkit.
    So I changed my path to the owa folder and then I executed owainst.sql connected with SYS as SYSDBA.
    This is the output:
    SQL> @owainst.sql
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    OWA_DBG_MSG
    Installed OWA version is: 10.1.2.0.4;
    Shipped OWA version is  : 10.1.2.0.6;
    OWA packages v10.1.2.0.6 will be installed into your database v102010
    Will install owadummy.sql and owacomm.sql
    Session altered.
    SP2-0310: unable to open file "&wpi_file_var.sql"
    SP2-0310: unable to open file "&owa_file_var.sql"
    Session altered.Why doesn't this work? This is really driving me crazy! Is there something wrong with the version of owa shipped with the 4.0.2 patch?
    Thanks,
    Matthias

    Found the solution to my problem...
    I had "set define off" in my glogin.sql file :-) So the script couldn't replace the & variables...
    Matthias

  • Supress errors in SQLPlus

    Hi,
    Does anyone know of a way to suppress a specific ORA error in SQLPlus?
    What I want to do is to Create a View with Force option and supress the informational error:
    ORA-24344: success with compilation error.
    Regards
    HÃ¥kan

    SYS cannot connect by itself, it can connect only with the SYSDBA or SYSOPER roles. Those roles are roles enabled by Oracle even before creation time, and those are used to perform specific adminstrative tasks such as install, recover, startup and shutdown, among others.
    If you want to perform other administrative tasks when the database instance is already open you may use any other user with DBA privileges, such as SYSTEM.
    In order to enable access as SYSDBA/SYSOPER your os user must be authenticated, either from the os (privilged dba group) or by means of the sysdba password , stored at the database password file.
    ~ Madrid.

  • Shell Script: Timeout and return error if Sqlplus hangs

    Shell Script: Timeout and return error if Sqlplus hangs
    Dear all,
    This morning, our production database hung with lots of ORA-600 and 7445. The issue has been escalated to Oracle Tech support but my monitoring script which tries to make a connection every 5 mins to the database to see if its up, did not alert me. The reason is that, it connected to the database and hung, never came out to report an error and so I never got alerted until a user called me.
    Can any one tell me how I can exit from the sqlplus block if I dont get a response in x seconds? This sqlplus block is being called with in a shell script.
    Any help is highly apprciated.

    I don't know of anything built into any shell scripting language that would do this, no. I'm not a Perl programmer, but I have a vague recollection that Perl may have something useful here.
    From the "separate thread" part of my comment, though, you could certainly spawn a separate thread (thread 2), have thread 2 wait a period of time, then look for a message from thread 1 and throw an error if the message hadn't been sent. I don't know that I'd be for writing multi-threaded shell scripts, though. The heartbeat also gives you a layer of redundancy so that something is monitoring the monitor in case that process stops working.
    Justin

  • Getting SP2-0306 error while executing a scrpt.

    Hi all,
    We are using oracle version 11GR2 .
    I am getting the below error while executing a unix script which connect to DB and returns a value. Why we get such issues/ anything wrong in the setup ?
    Same code working fine in old db. any idead how to resolve this?
    SP2-0306: Invalid option. Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]] where <logon> ::= <username>[/<password>][@<connect_identifier>] <proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>] ERROR: ORA-01017: invalid username/password; logon denied SP2-0306: Invalid option. Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]] where <logon> ::= <username>[/<password>][@<connect_identifier>] <proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>] SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*PlusPlease let me know if you need any details.
    Thanks and Regards
    Nagaraja

    Thanks for the response rp.
    I am calling the script checkdbtoproceedjob from another script as below.
    DBVALUE=`checkdbtoproceedjob ODS_LOAD $1` >> $LOGFILE
    echo "dbvalue is "$DBVALUE
    if [ $DBVALUE !=  "DBCONTINUE" ]
    then
      echo "**** job will be exited as db says no *****"
      exit 0
    fi
    echo "***** Job will be continued as db says yes ******" >> $LOGFILEDBVALUE is coming as null and I am getting the error.
    HOwever, If I execute the script alone as below it is returning the values. I don't think there is issue with credentials.
    checkdbtoproceedjob ODS_LOAD FORWARDARTICLE
    checkdbtoproceedejob
    #! /bin/bash
    . config
    set -x
    checkdbtoproceedjob()
    CONTROLFLAG=`sqlplus -s $CONNSTRODS << EOF
    whenever sqlerror exit sql.sqlcode
    set TRIMSPOOL ON
    set serveroutput on
    set pagesize 0 feedback off verify off heading off echo off
    declare
    pv_control_flag varchar2(50);
    pv_feed_name varchar2(100) := '$2';
    pv_job_name varchar2(100) := '$1';
    begin
    SP_CHECK_PROCEED_JOB(pv_job_name,pv_feed_name,pv_control_flag);
    dbms_output.put_line(pv_control_flag);
    end;
    exit;
    EOF`
    checkdbtoproceedjob $1 $2
    echo $CONTROLFLAG
    set +x
    exit 0am i doing something wrong? Please let me know.
    Regards
    Nagaraja Akkiivalli.
    Edited by: Nagaraja Akkivalli on Mar 28, 2012 1:50 PM

  • SP2-1503 when starting sqlplus (privilege problem)

    System: windows 2003 terminal server
    Oracle db: 10gr2
    After i installing the database everything works perfect as administrator user, but when i start sqlplus as a "normal" user without administrator rights, the following error message apears:
    SP2-1503: Oracle aanroepinterface kan niet
    SP2-0152: ORACLE functioneert mogelijk niet
    Please help...

    Hi,
    We had this issue on one of our 11.1.0.6 database running on IBM AIX whereby no oracle user was trying to access the database. We followed the metalink note 417067.1 to resolve it.
    For those who don't have access to metalink, this is the solution from the note that worked for us:
    To implement the solution, please execute the following steps:
    1. Manually change the privileges for the $ORACLE_HOME/oracore/zoneinfo directory and files.
    chmod o+r oracore
    chmod o+r oracore/zoneinfo/timezone.dat
    or just type from $ORACLE_HOME directory:
    2. SQL*Plus should be working now.
    $sqlplus usr/password@dbalias
    See if that helps.
    Pranilesh Chand

  • Quicktime : Windows Vista w/SP2 - Windows Error : Export Controller stopped

    With the latest Quicktime version I am getting several errors in several applications:
    Windows Vista with SP2: "Export Controller was closed - Data Execution Prevention has sttoped Export Controller"
    After Effects CS4: "Invisible OpenGL Buffer Windows: The procedure entry point...etc..etc..could not be located in the dynamic link library SQLite3.dll"
    I fixed the iTunes error as suggested by Rob (moving the SQLite3.dll provided to the iTunes folder as suggested yeasterday and the error does not showed up again when I did restart my system.
    But there are still "serious" issues with Windows Vista and other applications such as After Effects in regards to the SQLite3.dll. I can not even import MOV files in After Affects NO more.
    Pleas help I am wasting a lot of time in attempting to fix something that was working "perfectlly" before the whole update (iTunes/Quicktime).
    Thanks agaain in advance for your help and assiatnce on this matter.

    I am quite disappointed with these Apple' folks. Almost a month or so with the QuickTime' issues and nobody seems to know what is going on. It seems that they are quite lost. I wonder WHERE their Technical and Support Managers are ????????....
    DO YOU GUYS CARE HOW MUCH IS THIS ISSUE COSTING "YOUR" COMPANY ??????????????????
    DO YOU CARE ??????..with such attitude, no wonder why so many US companies are falling down to the drain.....and quickly....
    A simple respond that shows COMMITMENT will do it...when are you "planning" to have a solution ????????????...
    llottlott..AE4 works regardless of the errors..at least, it is my experience so far, the only thing is to convert the MOV files into for example FLV. It seems to me that any FLV option is better than MOV files and certainly with all these issues and lack of respond, FLV would become a better option.

Maybe you are looking for

  • VTS,VOB,IFO,BUP  VIDEO files wont play on Mac???

    I have a sony handycam DVD, From the DVD in camera I can play it on dvd player on Mac when copy and paste file from DVD to Mac cannot open any of files ?????? what can I do ???

  • Mountain lion mybookworld

    I can't use Time Machine with my netword disk WD MyBookWorld Edition (White Light). Public and Download folder are mounted in finder, but I can't see them in Time Machine. I tried to make an imagedisk sparsebundle, didn't work. What can I do?

  • Self-running presentation with transitions & animations on web?

    I want to create a self-running presentation with transitions and animations that I can post on a web site, ideally as a Flash file.  Is this possible with Keynote?  What are my options?

  • Pre-requisites for implementing WMS for an Existing Organization.

    Dear Folks,    My client is planning to implement WMS for an Existing Organization.And this organization(warehouse) performs all the daily transactions. Are there any pre-requisites to be done before implementing WMS on this organization? Any help is

  • Regd SearchPayment integration in Siebel to Oracle BRM PIP

    In the Siebel CRM Integration Pack for Oracle Communications Billing and Revenue Management: Agent Assisted Billing Care 2.5 there is a an integration flow called SearchPayment. The EBS is given as CommunicationReceivedPaymentEBS and the operation is