SQL Plus giving SP2-0024: Nothing to change error

I'm just about to lose my mind.
I'm running the following in SQL Plus -
set echo off
set feedback off
set linesize 1000
set sqlprompt ''
spool c:\TEMP2\App_Eng1.csv replace
Select A.OBJECTOWNERID||','||B.OBJECTVALUE1 from PSPROJECTITEM B, PSAEAPPLDEFN A
Where B.PROJECTNAME = 'PRJ732075'
and B.SOURCESTATUS = 2
and B.TARGETSTATUS = 1
and B.OBJECTVALUE2 = ' '
and B.OBJECTTYPE=33
and A.AE_APPLID = B.OBJECTVALUE1
spool off
and I get the following in return -
SQL> set echo off
SQL> set feedback off
SQL> set linesize 1000
SQL> set sqlprompt ''
spool c:\TEMP2\App_Eng1.csv replace
SP2-0024: Nothing to change.
Select A.OBJECTOWNERID||','||B.OBJECTVALUE1 from PSPROJECTITEM B, PSAEAPPLDEFN A
2 Where B.PROJECTNAME = 'PRJ732075'
3 and B.SOURCESTATUS = 2
4 and B.TARGETSTATUS = 1
5 and B.OBJECTVALUE2 = ' '
6 and B.OBJECTTYPE=33
7 and A.AE_APPLID = B.OBJECTVALUE1
8
spool off
SP2-0042: unknown command "off" - rest of line ignored.
Why am I getting these errors?
Also, when I clear the SQL, rerun the SQL and try to open the App_Eng1.csv file
I get a window telling me the file is locked. The only way for me to unlock the file is to shutdown the SQL Plus window. Why is this?
All I am trying to do is to download data from an Oracle table to an Excel spreadsheet. Is there a relatively easy way to do this using SQL Developer code or should I continue to fight with SQL Plus? I'm trying to automate a process so I don't want to use the manual steps like the DTS Import by Excel.
Any help? Please?

Thanks for the info. I have another issue. I'm not sure that my Spool Off command is being recognized. Here's the script I'm running -
set echo off
set feedback off
set linesize 1000
set sqlprompt ''
SELECT COUNT(*) FROM PSPROJECTITEM;
spool c:\TEMP2\App_Eng1.csv replace
Select A.OBJECTOWNERID||','||B.OBJECTVALUE1
from PSPROJECTITEM B, PSAEAPPLDEFN A
Where B.PROJECTNAME = 'PRJ732075'
and B.SOURCESTATUS = 2
and B.TARGETSTATUS = 1
and B.OBJECTVALUE2 = ' '
and B.OBJECTTYPE=33
and A.AE_APPLID = B.OBJECTVALUE1;
spool off
Most of the time the App_Eng1.csv file is telling me that it can't be opened because it's being used by another user, even after I close SQL Plus. I have to physically perform the Spool Off command from the menu. But even then the csv file is blank. Any ideas?

Similar Messages

  • SP2-0024: Nothing to change.

    Hi, I am at running VERSION Application Engine Program...
    Why did I get this "SP2-0024: Nothing to change."? Is there any problem?
    SQL> C:\PT8.52\bin\client\winx86\psae -CD ORCL -CT ORACLE -CO PSOWNER -CP ******** -R INSTALL -AI VERSION
    SP2-0024: Nothing to change.

    Hi,
    As your other post you need to use a PeopleSoft user eg PS
    C:\PT8.52\bin\client\winx86\psae -CD ORCL -CT ORACLE -CO PS -CP PS -R INSTALL -AI VERSION

  • When connecting to database in SQL* plus giving Error

    hi,
    I am using Oracle 10g. My problem is when i connecting to database in Server through SQL * Plus giving the Error:
    ORA-12514: TNS:listerner does not currently know of service requested in connect descriptor.
    Why this is happening i don't know. I created listener also. But no use. How to solve this can any tell me pls... ! .
    Thank u...!

    hi,
    Thank u bang for u r reply. It is not working sir. I added the listener as follows:
    # listener.ora Network Configuration File: D:\oracle10g\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = HA14)(PORT = 1521))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle10g)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = OVSL06)
    (ORACLE_HOME = D:\oracle10g)
    (SID_NAME = OVSL06)
    (SID_DESC =
    (GLOBAL_DBNAME = OVSL06)
    (ORACLE_HOME = D:\oracle10g)
    (SID_NAME = OVSL06)
    I typed the following commands in command prompts
    C:\>lsnrctl
    LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 30-MAY-2007 16:29
    :14
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Welcome to LSNRCTL, type "help" for information.
    LSNRCTL> stop
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=HA14)(PORT=1521)))
    The command completed successfully
    LSNRCTL> start
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
    System parameter file is D:\oracle10g\network\admin\listener.ora
    Log messages written to D:\oracle10g\network\log\listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HA14)(PORT=1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=HA14)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Produ
    ction
    Start Date 30-MAY-2007 16:29:28
    Uptime 0 days 0 hr. 0 min. 2 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File D:\oracle10g\network\admin\listener.ora
    Listener Log File D:\oracle10g\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HA14)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    same error is getting as i am getting previously. Tell me solution pls....!
    Thank u...!

  • Pre-Requisite Check SQL Server 2012 SP2 TCP Port Enabled Error

    When doing the pre-requisite check to install SCCM (CAS) using an instance of SQL Server 2012 SP2, you get the following error even though SQL Server TCP port has been enabled, set to static port 4022 on the IP addresses in use in SQL Server Configuration
    Manager under Protocols for <SQLInstanceName>: configuration manager primary site and central administration site require sql server tcp enables and set to static port
    To resolve this issue, make sure "4022" is also set in the IPAll node in SQL Server Configuration Manager under Protocols for <SQLInstanceName> then restart the SQL Service and re-run the pre-requisite check and you should be good to go.
    To avoid SCCM SQL-related install failure, keep in mind that SCCM SQL Service Broker (SSB) (used to replicate data between database sites) is set to port 4022 by default. This is different from and cannot be same as the tcp static port set in SQL Server
    Configuration Manager under Protocols for <SQLInstanceName>. For example SSB can use its default tcp port 4022 while a static tcp port of 4023 can be set in SQL Server Configuration Manager under Protocols for <SQLInstanceName> or vice-versa. The
    SCCM SSB port number can be adjusted during SCCM installation on the Database Information page. My take it so change SSB port to 4023 and leave SQL default port at 4022 since SQL serves potentially many apps while SSB is used within/by SCCM.
    If you are getting errors relating to SQL Server service running accounts, SQL Server Collation, and/or SQL Server sysadmin rights while attempting to install a primary site, unselect the SCCM installation option to install default settings at the beginning
    of the install process.
    Also, ensure to install important updates and restart the server.

    Thank you for sharing.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Connect in database default  wiht SQL PLUS

    Hi
    How can I to connect in database default , using SQL PLUS ?
    And after I may change conexion with ACCEPT and change PROMPT ?

    What is database default? If you mean you do not wish to specify a connection string such as user/pass@connection, just set ORACLE_SID in the environment before going into sqlplus.

  • Replace host name in SQL Plus

    hi,
    how i can change host name intead of SQL> in sql plus ,
    like whenever i connect SQL PLUS scott/tiger@servername, it automatically change prompt SQL> to SERVERNAME>
    thanks in advance
    Noman ul haq

    Hi,
    U can check ur glogin.sql on ur client machine that sets your SQL prompt to SERVERNAME> . So that u can make change in that file , other wise give the following command at ur sql prompt
    set sqlprompt SQL>
    Cheers,
    Vidyadhar

  • SQL *Plus input buffer

    I have a large script that works fine on my oracle server. When I bring it to my clients, it gets truncated after around 60 lines. I know how to increase the output buffer (EXEC DBS_Output.Enable(10000) for 10000 lines) but I can't seem to find the equivalent for the input buffer. Please help.

    Are you using SQL Plus client, then you need to change the buffer size on the menu of the SQL Plus window.

  • Spool size restriction on SQL*Plus

    Hi,
    I am trying to spool the data from a table to a text file. As the maximum buffer size for spool command is 1000000 in SQL*Plus I am getting BUFFER OVER FLOW error. I know the text file can be created using UTL_file package. Is there any other easy method to capture the data to text file like Spool.
    I need to capture nearly 10000 lines (each can have 500 characters).
    Thanks,
    Vengad

    You 'set termout off' before you execute your script for spooling. The buffer overflow error shows up if you want see the results on screen...
    By setting 'termout off' the results would not come on the screen.

  • Getting error ORA-12705, while connecting through Sql*Plus?

    Hi TOM,
    While connecting ORACLE Database through Sql*Plus / via through Application. We getting error called "Error while trying to retrieve text for error ORA-12705".
    How to re-solve this one?
    Thanks & Regards,
    Senthil K Kumar.

    Maran,
    check the registry NLS_LANG in the registry rename it as suggested by burleson and add a new entryCurrently, it was more suggested by Maxim ;-)
    Nicolas.

  • Redirecting error message on SQL Plus

    When using SQL Plus, is there a way to send error messages to my c:\ drive vs. the server?

    Hi grama16,
    From what I've noticed, that error message shows up sometimes for ink or printhead issues. Please follow as many steps as you can in the guide below, it should help fix the issue for your printer
    'Ink System Failure' or a '0x ...' Error Message Displays on the Control Panel
    *** If my reply was helpful, please click on the "Kudos Thumbs-Up" on the right, as a way to say "Thanks!".
    If this reply also fixed your issue - please click the "Accept as Solution" button, so that others can find the same answer. ***

  • How to change the default directory from within SQL*Plus ?

    Hello,
    I want to change the default directory directly from within SQL*Plus to be able to launch my command files with simple instructions like :
    @my_command.sql
    If I haven't launched SQL*Plus from the directory containing the file my_command.sql, how do I change the default directory to the directory of my command files ?
    I've searched through the Oracle documentation, there's no SET DEFAULTDIR or something like that. When I do a SHOW ALL, there's no variable containing the default directory.
    If you have an idea...
    regards,
    Jérôme.

    Hi Jérôme (J鲴me ?),
    You cannot directly do that, but you can use @@ instead of @ to run subscripts in the same directory as the superscript
    # head /tmp/tl30/xxx/[xyz].sql                    
    ==> /tmp/tl30/xxx/x.sql <==
    prompt call y
    @y
    prompt call z
    @@z
    quit
    ==> /tmp/tl30/xxx/y.sql <==
    prompt i am in y
    ==> /tmp/tl30/xxx/z.sql <==
    prompt i am in z
    # pwd                                             
    /root
    # sqlplus -s scott/tiger@lsc62 @/tmp/tl30/xxx/x.sql
    call y
    SP2-0310: Datei "y.sql" konnte nicht geöffnet werden
    call z
    i am in zKind regards
    Laurent Schneider
    OCM DBA

  • SQL*Plus Change to File While Being Run

    Anyone,
    Once you execute a file run in SQL*Plus does the entire file get cached by SQLPlus? (i.e. @C:\temp\myfile.sql)
    If I change the file C:\temp\myfile.sql while the session is running (long runing script) will it take effect or not?
    I was able to open the file make a change and save but not sure if SQLPlus will pick up my change when it gets to the point in the script where I made the change. Since it was already running.
    Thanks,
    Miller

    That is a very bad idea to begin with.
    If you made a change at the location that has not yet reached by the SQL*Plus script processing, you could see those changes (again depending upon where and how you do them).
    But in most circumstances, the results will be unpredictable (most likely with error messages) since you cannot control what part of the script the SQL*Plus application is currently executing at the moment you decide to make change to the script.
    For example, I started with this script:
    REM --- Script start ---
    prompt "Waiting ..."
    begin
      dbms_lock.sleep(20) ;
    end ;
    begin
      dbms_output.put_line('This is text') ;
    end ;
    prompt "Finished..."
    REM --- Script end ----And run this within SQL*Plus. While the PL/SQL block was waiting on the sleep call, I removed the first line of the script (the one that starts with the prompt statement) and saved it. Below is the output from this run:
    SQL> @test
    "Waiting ..."
    PL/SQL procedure successfully completed.
    SP2-0734: unknown command beginning "ut_line('T..." - rest of line ignored.
    SP2-0042: unknown command "end " - rest of line ignored.
    PL/SQL procedure successfully completed.
    "Finished..."
    SQL>I would not consider this as a successful completion of the script.
    At this point, you are probably playing with probability and taking chances.
    Message was edited by:
    Kamal Kishore

  • Special character when changing password in sql plus

    Hi i'm having a problem with setting password for user's in sql plus. I get a ORA-00922 whenever I try to change a user's password to contain ! in it. See below. Do I have to escape special characters or something or this a bug?
    (Previously I've always used Enterprise Manager for this and can set ! characters for password without issue but we're currently having an issue with it and I need to alter passwords in sql plus while I'm waiting for it to be fixed )
    SQL> alter user lbtest identified by oraclesux!;
    alter user lbtest identified by oraclesux!
    ERROR at line 1:
    ORA-00922: missing or invalid option
    SQL> alter user lbtest identified by oraclesux;
    User altered.
    System and O/S details below:
    O/S = MS Server 2008 Standard Service Pack 1 64 bit
    Oracle 11g Standard Edition (11.1.0.7.0)
    SQL> select * from nls_database_parameters;
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET WE8MSWIN1252
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    PARAMETER VALUE
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 11.1.0.7.0
    20 rows selected.

    Found the answer here, must user double quote for exclamation marks but not other characters like #.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:897930000346894755

  • Database not updating with changes from SQL*plus

    I’m having some issues with updating my database. I want to delete some rows in a table that has 323 records, so I run the SQL in SQL*Plus. It tells me that I’ve deleted 222 rows. I then get a count of the number of rows in the table, and it tells me 101. But if I open another SQL*Plus window and get a row count, the original count (323) is what it says. The enterprise manager also tells me 323 records are in that table. Am I missing something here?

    Aimee-
    Until you 'commit' from the session you have issued the 'delete' statement, the other sessions will not be able to see the changes. In other words, the other sessions are getting you a read consistent view of the data.

  • How to change prompt in sql plus

    i have seen a user. he has changed SQL-PLUS promp
    e.g SQL> to usermech>
    how can i change this.

    use this -
    set sqlprompt little_expertRegards.
    Satyaki De.

Maybe you are looking for

  • OMRO - Invoice Verification triggered UMB

    Hi all, Currently i have one issue, at Miro i have posted the invoice verification for Material no:                  779670-001 Price of PO:                  21.12 EUR Unplanned delivery cost:41.83 EUR And once i've done the posting, it will triggere

  • Strange behaviour when embedding HTML page in Air

    Hi, I'm trying to embedd a HTML page to a Air application. The HTML page has a simple Flex application (TestFlex4Project.mxml) with a button that changes one HTML element on the web page (TestFlex4Project.html) using ExternalInterface. If I run the F

  • How to create a scheduler for Batch  in MDM ?

    Hi , I am working on MDM 2.0.1.4 . I have a batch called D1-IMD for auto-transition of one IMD state to another state I am able to run the batch manually (i.e Non-Timed Interval). So please suggest me how to proceed with some Timed Interval of schedu

  • How to keep info viewable?

    My son is working on his Eagle project and is trying to fill in a PDF file he downloaded on the internet. When he opened the file today, all the fields were blank.  Only after clicking on each box, can he see the information.  He would like all of th

  • What is the PC version of the Airport Express?

    My first generation AirPort Express is on its last legs. I have some new PC products which I'd like to continue to run iTunes and AirPlay. Is this still possible with PC and a router? What does my future look like? Thank you.