Sqlplus, error with some chars at begining of line

I have a file test.sql with:
DECLARE
    x varchar(4000);
BEGIN
    x := 'my test
# line error 1
@ line error 2
end of test';
    dbms_output.put_line(x);
END;at sqlplus i run it like this
SQL>@test.sql
SP2-0734: unknown command beginning "line error..." - rest of line ignored.
SP2-0310: unable to open file "line.sql"
  8  How can I make sqlplus ignore # and @?
Add --@ or --# does not solve my problem, because its part of a text.

>
How can I make sqlplus ignore # and @?
>
It is the @ that is the problem.
Put an escape character (default \) before the @ or set a new escape char.
See SET ESCCHAR in the SQL*PLUS doc
http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_twelve040.htm#sthref2081
>
SET ESCCHAR {@ | ? | % | $ | OFF}
Specifies a character to be escaped and not interpreted when used in a file name for
the SPOOL, START, @, RUN and EDIT commands. These special characters are
translated to the following:
■ @ in a filename will be translated to Oracle SID
■ ? is translated to Oracle Home in Unix
■ % is translated to Oracle Home in Windows
■ $ is translated to Oracle Home in certain platforms
While it is not recommended that these characters are used in filenames, if you have
legacy files that do use them, it might be useful to include a SET ESCCHAR command
in your GLogin file to implement it across your site.
If not escaped, the characters @, ?, % and $ have significance when interpreted and
cause errors for the SPOOL, START, @, RUN and EDIT commands.
SET ESCCHAR is set OFF by default.
Example
If you include the character ’$’ in your filename, then
SET ESCCHAR $
RUN MYFILE$
behaves normally.

Similar Messages

  • Replacing space with some char in report display

    dear friends
    hw can i replacs space in report display with char .
    there is disply like
                     site 1    site2   site3
    matnr1           space      10        space
    matnr 2            2        space     space
    site in x -axis  ,matnr in -y-axis.
    i want to replace this space  by some char like nd or ns  etc
    can any one give solution....
    regards
    veera

    hi this my condtion .....
    if the first condtion satisfed i have to replace by ND
    which is now mentioning as space.if send condtion satisifed  having 10(na) in display
    loop at it_final1.
                        read table it_final2 into wa_final2 WITH KEY matnr = it_final1-matnr.
                               IT_RESULT-matnr = IT_final1-matnr.
                               IT_RESULT-WERKS = IT_final1-vstel.
                        if it_final1-LFimg = wa_final2-vsolm.
                             it_result-LFimg = 'nd'.
                            ELSEIF IT_FINAL1-LFIMG < WA_FINAL2-VSOLM.
                                 it_result-LFIMG = WA_FINAL2-VSOLM - IT_FINAL1-LFIMG.
                                 ELSEIF WA_FINAL2 IS NOT INITIAL.
                        IT_RESULT-lfimg = IT_final1-lfimg.
                        else.
                        IT_RESULT-lfimg = IT_final1-lfimg.
                                     ENDIF.
                        COLLECT it_result.
        ENDLOOP.

  • ICWCinternal server error:with some BP records I am getting the below error

    Hi
    When I am searching for some BP records(in ICWC) I am getting the below error
    500 SAP Internal Server Error
    Error message: Type group was changed at runtime. ( type of termination: RABAX_STATE )
    but with some records search is working successfully(some times I'm not getting the above error)
    Have any idea, regarding the above problem
    Thanks in advance
    Warm regards
    bms

    Duplicate thread :
    Re: I am getting the attached error while bringing up the Prcs Scheduler
    Nicolas.

  • Error with invalid chars found in characteristics

    Hi,
       I am loading information for this field EKPO-TXZ01 (PO text) into ODS and then into infocube. I have no issue loading this field content into ODS. However from ODS to infocube, I encountered error that says invalid chars found. (This field was defined as chars 40 in the infoobject). At BW customizing, the chars like #, " [] are being maintained. Please advise how to overcome this.

    Hi,
    From my experience I can say that:
    1. Not always assigning permitted characters helps. Especially if chars that you want to pass to the ODS are special chars. And there is too little space in the string with allowable chars.
    2. Setting a characteristics as a lower case char helps for its master data. An ODS will not allow to accept data with lower case letters anyway.
    3. There are several topics related to your question in this forum with solutions, even with ABAP codes.
    Look, for example at this one:
    https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/profile.jspa%3FuserID%3D136828
    Best regards,
    Eugene

  • Whay am I having script errors with some of my websites only on Firefox, not other browsers, causing the computer to freeze for a bit at a time.

    I keep getting "script" errors and my computer locking up while using Mozilla Firefox on some of my websites. I don't have this problem while using Internet Explorer. Why has this just started and how can I resolve this? I like Firefox, but will have to start using a different browser if this doesn't get resolved.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • PPR error with some components

    Hi I am doing some custum validation in my backing bean using PPR and when trying to refresh my message component I get the following error:
    [STDERR] Nov 30, 2006 9:07:58 AM oracle.adfinternal.view.faces.renderkit.core.ppr.PPRResponseWriter$PPRTag finish
    WARNING: No PPR-capable id found for elements of CorePanelLabelAndMessage[UIXFacesBeanImpl, id=mesL2]
    this is what I do:
    <af:panelLabelAndMessage for="prueba" label="Prueba2" id="mesL2" binding="#{validation.mesL2}" partialTriggers="prueba" messageType="error">
    <af:inputText required="true" id="prueba" autoSubmit="true" valueChangeListener="#{validation.valueChanged}" />
    </af:panelLabelAndMessage>
    I also tried this way:
    <af:inputText id="prueba3" autoSubmit="true" valueChangeListener="#{validation.valueChanged}" />
    <af:message id="mes2" binding="#{validation.mes2}" for="prueba3" partialTriggers="prueba3"/>
    My backing bean:
    public class ValidationBean implements Serializable {
    private CoreMessage mes2 = new CoreMessage();
    private CorePanelLabelAndMessage mesL2 = new CorePanelLabelAndMessage();
    public void valueChanged(ValueChangeEvent vce) {
         UIComponent component = vce.getComponent();
         Map<String, Object> attributes = new HashMap();
         attributes = component.getAttributes();
         mes2.setMessage("mensaje 2");
         mesL2.setMessage("mensaje Lbl2");
    When I use an OutputText instead of the message component I get the desired result... So I can't use PPR with messages???
    thanks for ur help!
    T.

    Hi I am doing some custum validation in my backing bean using PPR and when trying to refresh my message component I get the following error:
    [STDERR] Nov 30, 2006 9:07:58 AM oracle.adfinternal.view.faces.renderkit.core.ppr.PPRResponseWriter$PPRTag finish
    WARNING: No PPR-capable id found for elements of CorePanelLabelAndMessage[UIXFacesBeanImpl, id=mesL2]
    this is what I do:
    <af:panelLabelAndMessage for="prueba" label="Prueba2" id="mesL2" binding="#{validation.mesL2}" partialTriggers="prueba" messageType="error">
    <af:inputText required="true" id="prueba" autoSubmit="true" valueChangeListener="#{validation.valueChanged}" />
    </af:panelLabelAndMessage>
    I also tried this way:
    <af:inputText id="prueba3" autoSubmit="true" valueChangeListener="#{validation.valueChanged}" />
    <af:message id="mes2" binding="#{validation.mes2}" for="prueba3" partialTriggers="prueba3"/>
    My backing bean:
    public class ValidationBean implements Serializable {
    private CoreMessage mes2 = new CoreMessage();
    private CorePanelLabelAndMessage mesL2 = new CorePanelLabelAndMessage();
    public void valueChanged(ValueChangeEvent vce) {
         UIComponent component = vce.getComponent();
         Map<String, Object> attributes = new HashMap();
         attributes = component.getAttributes();
         mes2.setMessage("mensaje 2");
         mesL2.setMessage("mensaje Lbl2");
    When I use an OutputText instead of the message component I get the desired result... So I can't use PPR with messages???
    thanks for ur help!
    T.

  • Some Error with Some packages on Unbreakable oracle Enteprice linux 5.2

    Dear all,
    when I Install Oracle EnterPrise Manager 10gR2 on Unbreakable oracle Enteprice linux 5.2 it requried fro me some packags which are nessaray for installer like the following packages
    Checking operating system package requirements ...
    Checking for compat-libstdc++-296-2.96-132.7.2; found Not found.     Failed <<<<
    Checking for libstdc++devel-3.4.3-22.1; found Not found.     Failed <<<<
    Checking for openmotif-21-2.1.30-11; found Not found.     Failed <<<<
    Checking for pdksh-5.2.14-30; found Not found.     Failed <<<<
    Checking for gnome-libs-1.4.1.2.90-44.1; found Not found.     Failed <<<<
    Checking for xscreensaver-4.18-5.rhel4.2; found Not found.     Failed <<<<but when I install thes packages ,the fllowing message is shown
    oracle@alwosaby ~]$ rpm- ivh pdksh-5.2.14-30.3.x86_64.rpm
    warning: pdksh-5.2.14-30.3.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 0c98ff9d
    error: Failed dependencies:
    pdksh conflicts with ksh-20060214-1.7.x86_64
    *[root@test Desktop]# xscreensaver-4.18-5.rhel4.14.x86_64.rpm*
    bash: xscreensaver-4.18-5.rhel4.14.x86_64.rpm: command not found
    *[root@test Desktop]# rpm -ivh xscreensaver-4.18-5.rhel4.14.x86_64.rpm*
    warning: xscreensaver-4.18-5.rhel4.14.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1d1e034b
    error: Failed dependencies:
    xloadimage is needed by xscreensaver-4.18-5.rhel4.14.x86_64
    *[root@test Desktop]# rpm --import /usr/share/rhn/BETA-RPM-GPG-KEY*
    *[root@test Desktop]# rpm -ivh xscreensaver-4.18-5.rhel4.14.x86_64.rpm*
    warning: xscreensaver-4.18-5.rhel4.14.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1d1e034b
    error: Failed dependencies:
    xloadimage is needed b
    oracle@alwosaby ~]$ uname -a
    Linux alwosaby 2.6.18-92.el5 #1 SMP Fri May 23 23:40:43 EDT 2008 x86_64 x86_64 x86_6 4 GNU/Linux
    Please how i install these packages ?
    If any one have exprecie about this problem , Can Help me?
    Regards
    alwosaby
    Edited by: user2985354 on 28/01/2009 09:01 م

    You are mixing redhat provided packages with OEL. Generally, it's not a good idea to mix packages of different distributions.
    The media you've used to install OEL contains these packages. Use these.

  • EP error with some kind of iviews

    Hi!
    I'm having this problem. With the display of some kind os iviews I'm getting this error:
    java.io.IOException: Cannot read connection identification byte.
    at com.sap.engine.core.cluster.impl6.JoinPortListener$SocketProcessor.run (JoinPortListener.java:156)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    Any ideas?
    Thanks,
    Wadih

    #1.5 #001A64A861680011000002CA000E7088000455F16D982A2F#1220395321010#com.sap.engine.core.manipulator.TCPRunnableConnection##com.sap.engine.core.manipulator.TCPRunnableConnection.init()#######SAPEngine_System_Thread[impl:6]_28##0#0#Warning#1#/System/Network#Java###Cannot get input and output streams from socket. ConnectionsManipulator is not initialized.
    [EXCEPTION]
    #1#java.io.EOFException: Connection closed by remote host.
         at iaik.security.ssl.Utils.a(Unknown Source)
         at iaik.security.ssl.o.c(Unknown Source)
         at iaik.security.ssl.r.f(Unknown Source)
         at iaik.security.ssl.f.c(Unknown Source)
         at iaik.security.ssl.f.a(Unknown Source)
         at iaik.security.ssl.r.d(Unknown Source)
         at iaik.security.ssl.SSLTransport.startHandshake(Unknown Source)
         at iaik.security.ssl.SSLSocket.startHandshake(Unknown Source)
         at com.sap.engine.services.ssl.factory.SSLSocket.startHandshake(SSLSocket.java:162)
         at com.sap.engine.services.ssl.factory.SSLSocket.getInputStream(SSLSocket.java:280)
         at com.sap.engine.core.manipulator.TCPRunnableConnection.init(TCPRunnableConnection.java:351)
         at com.sap.engine.core.manipulator.TCPRunnableConnection.run(TCPRunnableConnection.java:554)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl6.SingleThread.execute(SingleThread.java:80)
         at com.sap.engine.core.thread.impl6.SingleThread.run(SingleThread.java:150)
    Thanks,
    Wadih

  • [JSR-172 Web Services] Error with some web services

    hello
    I m trying to use jsr172 with multiple services find at Xmethods.com
    - I choice only doc/litteral wsdl types ----> OK
    - use of the J2ME Wireless Toolkit Stubs Generator ---> OK
    - use the service stub generated to invoke the service -------> NOT OK
    Some services runs correctly, but lots of service methods throw a java.rmi.MarshalException: Missing SOAP Body or Envelope
    i.e: http://www.closerfar.com/dic2.asmx?WSDL
    --> this has a method which return a definition of a word by a complex type
    When I use the TryIt function in Xmethods.com, it's run!...
    .... but not in my midlet
    Can you help me
    thanks
    ludo

    I have written a dot net/ c# Web Services doesn't fully work with J2ME client - it too throws the same exception, with the exception text being "Missing SOAP Body or Envelope"
    a) c# web service works with c# WIndows Client (local & remote web service)
    b) c# web service works with J2ME client - when the Web Service is local
    c) c# web service FAILS with J2ME client - when the Web Service is remote
    error/exception:
    "Missing SOAP Body or Envelope" -- This occurs at the point of invoking the remote Web Service
    Speculation:
    a) dot net Web Services are "different" from Java Web services - yet it works fine in local mode
    b) error is a misnomer & there is some other problem, perhaps fixable thru Web.config changes remotely??
    - changed Web.Config authentication (from Windows to none), but this made no difference
    - changed back to default web service namespace of tempuri.org, but this made no difference

  • I/O errors with some discs in XP with Boot Camp    Please help.

    I wasn't sure which forum to post this problem in. I've also asked this question in "Using your Intel-based iMac". It fits in a few categories, so I apologize if I've gotten it wrong.
    I tried to install a game (Last Half of Darkness, 2005) yesterday, and with about 1/3 of installation complete, I got this message: An error occurred while trying to copy a file: I/O error 23. I had my choice of abort, retry or ignore. After the 1st error message I chose retry. After a bit more of the installation I got another error message: I/O 1117. I then tried to ignore, that didn't work, so I aborted. I tried to install a second time, and even tried a second copy of the same game, then tried to install the 2007 sequel to Last Half, same error messages. After each attempt at installation, I could not get the drive to eject the disc. I eventually did by restarting in OSX. My iMac is 13 months old. In November I had a similar problem with another game, this one from about 2004. In that case, the game installed, but froze a few minutes into playing. Because I couldn't play, and couldn't eject, without a great deal of time and "spinning" noise, I took the computer to the Apple Store to have them look at it. I figured that if it was 2 months from being out of warranty, I should get it fixed right then. Of course all the messing with it they did showed no drive problems. All other CD or DVDs, either commercial or homemade, music, video or games have installed and run just fine.
    An internet search found this: http://support.microsoft.com/kb/891894 I did everything except the clean boot install, and contacting the manufacturer. After changing the transfer mode per these instructions, I could get all of 2/3 of the way through installation before the error messages popped up.
    All drivers are up-to-date according to Windows automatic update and Apple update.
    This is my 4th Mac, so I have little experience with PC/Windows. Can anyone give me a suggestion as to what I can do to install and play these games? Any help greatly appreciated.
    Ruth

    I'm moving this up in the queue since I couldn't find a solution on this site, or elsewhere on the net. Any suggestions greatly appreciated.
    iMac 2.4 GHz, 24", 3GB ram
    Mac OSX 10.5.5
    XP Pro SP3 w/Boot Camp
    ATI Radeon HD 2600 Pro

  • Unknown Error with some exception message in BAM

    Hi all
    I'm trying to deploy orderbooking tutorial in (SOA 10.1.3.1)of BAM guide. whereas message says
    A problem occured while connecting to server "localhost" using port "8888": bpel_OrderBooking_1.0.jar failed to deploy. Exception message is: javax.transaction.RollbackException: Timed out
    i'm not able to fingd out whats the error.kindly someone revert back what may be the exception and also in pre-build.xml getting some error in ant dir saying
    Basedir C:\bb\CreditRatingService does not exist
    Kindly someone revert for this issue. Not able to complete a sample tutorial also.
    thanks in advance

    Hello- This looks like a problem deploying the BPEL side of OrderBooking tutorial. Please post your question on the BPEL email alias/forum. Your errors will be in bpel llog directory.

  • Open in Photoshop CS5 errors with "Some of the application Components are Missing...

    After doing a migration from one mac to another mac with the Migration Assistant,  when I try to edit a lightroom file with the Open In CS5 I get a dialog that comes up "Some of the application Components are Missing from the Application directory, Please reinstall the application.
    Well I have reinstalled photoshop, actually uninstalled it first, the reinstalled twice...once with "keep preferences" and once without.  I have also run the Adobe Upgrader and everything is up to date.  Lightroom is up to date.
    Any ideas??

    Since you can open a photo in CS5 when selecting <Open anyway>, I would also think that this is a problem of Lr.
    When you select <Render using Lightroom> Lr creates the PSD (or TIFF) and sends it to CS5.
    So it seems that this part of Lr that is creating a PSD (or TIFF) from your Raw image is missing / broken.
    Most probably something got left behind when you used the Migration Assistant.
    I would suggest this: Download from Adobe's website the trial version of Lr 4.3. The trial version is a full version with all features enabled, but it runs only for 30 days.
    Each time you open the trial version you get the option <I want to buy>. Select this option and enter your serial number. This will unlock the trial version for unlimited use.
    Maybe it would be good to un-install your current Lr before re-installing the downloaded file to ensure that you do a "clean" re-installation.

  • Error with some software updates

    A few weeks ago when "AirPortTi2005-001" was released via software update, I tried to install, however I get an error when I try to install it. Other software updates installed fine, up until today when J2SE50Release2 was released and I am having the same problems with it.
    To cure the problem I have
    Restarted
    Repaired Permissions
    Ran OnyX Automation
    Downloaded the actual files from apple.com/support/downloads
    Nothing. Anyone know what I can do and anyone else having this issue? It is only these two software updates, ones released at the same time or in between the two releases have installed fine.

    A few weeks ago when "AirPortTi2005-001" was released via software update, I tried to install, however I get an error when I try to install it. Other software updates installed fine, up until today when J2SE50Release2 was released and I am having the same problems with it.
    To cure the problem I have
    Restarted
    Repaired Permissions
    Ran OnyX Automation
    Downloaded the actual files from apple.com/support/downloads
    Nothing. Anyone know what I can do and anyone else having this issue? It is only these two software updates, ones released at the same time or in between the two releases have installed fine.

  • Quick Time Gamma Error in some codecs

    Hi,
    I have discovered an error with some codecs when creating movies with Quick Time Pro.
    Movies created using Apple Pro Res 422 and Pal DV have a significant drop in Gamma.
    Can anyone confirm this? and how can I notify Apple of this problem?
    Also, this problem does not exist if the movie has been created using Final Cut Pro.
    Cheers

    Using duo processor G5, storing video on newly Mac
    formatted 1TB drive. Imported the first tape from a
    Canon ZR850 camera with no problem into iMovie HD
    6.03. Put in the 2nd tape with a new project name
    and now continually get an error "Quick Time couldn't
    parse it -43". I see other errors in the discussion
    but not this one. I tried removing the backup
    battery, disconnecting all cables and resetting time,
    date, etc., but no luck. I then tried to import it
    through a Canon GL2, but got same error. I tried
    several other tapes that work perfectly well in the
    camera but always get the same error. Went through
    25 other tapes, so do not believe it is the tapes.
    Software is OSX 14.4.9 with 6.5 GB RAM. What am I
    doing wrong? Need help.
    I did check for plugins but found none.
    I used to use iMovie a few years ago an after spending several hours trying to now import the footage remembered that speed compatibility was crucial. My 1 TB drive that I was saving my videos to was running on Firewire 800 speed while my camera was running at Firewire 400 speed. I changed my 1TB drive to run at Firewire 400 speed, and "bingo", it now works.
    Thank you however for your suggestions as now I will watch my extra plug-ins as well.

  • Some errors with the code

    hello all!
    i am trying to write simple code but have some errors.
    DECLARE
    id NUMBER;
    BEGIN
    id:=SELECT id from technician where salary=(select MIN(salary) from technician);
    DBMS_OUTPUT.put_line(id);
    END;

    Your simple program becomes complex! As pointed out, it will blow up if your query returns more than one row. If you're just doodling with your code, you can add "and rownum=1" to your where clause. That will prevent the "too many rows returned" exception. Of course, it is basically randomly picking one of several values in the DB, so it's not good for production code.
    For real code, there are at least two common options:
    (1) Use your select to create a cursor, which lets you loop through each matching row. Good when multiple rows are normal and you really want to use them all.
    (2) Create an integer variable, such as row_count. Select count(*) into row_count ... from technician t where salary....
    If row_count = 1 then use the assignment you were going to do. Otherwise, stop processing and log an error (too many or too few rows returned...).
    This is good when you expect EXACTLY one technician to have that salary, and anything else is an error.
    Andy

Maybe you are looking for