Selecting with a special character

Hi,
I have a table in which an user can query via a sql prompt (accept) for a text he wants to search for. This search string can contain special characters like @,$,& etc but nog on a specific position. Sometimes they search for bbbb.hhhh_23, the next time the search for pppp & xxxx. I already thought that (double) quoting would help, tried escaping (\) also but still got errors with my procedure. So, how can I search those tables with the special chars and display the text the user is searching for?
Thanks!
Paul

Hi,
Please see the forum FAQ {message:id=9360002}
What exactly is the problem you're having?
What input are you giving, and what output are you expecting? Remember, you need to post something that the poeple who want to help you can run to re-create the problem and test their ideas. In this case, you need to post something like this:
"I'm running this in schema ATL5_TEST, which includes this table: CREATE TABLE TABLE_X ... with these rows: INSERT INTO table_x ....
When I run the script and set &search to 'A_B', I'm expecting these results ... because ... but instead, I'm getting these results ... As you can see, the results are missing ....
When I run the script and set &search to 'C%D', I'm expecting ... because ... but instead, I get this error message: ..."
Simplify the script as much as possible. For example, if the problem involves how to accept a certain character into a substitution variable, then you don't need to post 60 lines of PL/SQL code, even if your goal is to use that substitution vaiable in that PL/SQL code. Just post the ACCEPT statement, maybe a very simple "SELECT ... FROM dual;" query to get some results, a couple of inputs, and the expected outputs/
Never write, let alone post, unformatted code. Indent the code to show the scope of BEGIN, IF, LOOP, and so on.
When posting any formatted text (including, but not limited to, code) on this site, type these 6 characters:
\(all small letters, inside curly brackets) before and after each section of formatted text, to preserve spacing.
The EXCEPTION section you're using is only hiding details about the error.  Get rid of it.
Whenever you write dynamic SQL, start by displaying the SQL string *instead of* executing it.  for exampledbms_output.put_line (v_sql || ' = v_sql before EXECUTE IMMEDIATE');
-- execute immediate v_sql
-- into v_match_count;
When you get this much running, and the output is what you expect, then you can uncomment the EXECUTE IMMEDIATE statement.  Later, you'll want to comment out the call to put_line.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Problem with CONVERT_OTF, special character '-' printing not properly

    Hi experts,
    when printing PO item text; in Print Preview, text displays correctly. But in program by using 'CONVERT_OTF' FM output is converting into PDF and this PDF is send it to the PO creator through mail,   In the PDF present in the mail, the special character ' - ' is not displaying properly; i.e the special character ' - ' is replaced by '  ' space. For the text we are using Text editor and Font family is 'COURIER' , device type is 'PDF'.   And also i tried with different Font fammilies, for that it beheaves differently but not displays as it is the special character ' - '.
    Thanks and regards
    Aumprakasharya T

    Hi,
    Which device type is used to create the PDF? i.e. which deivce type is used in the OTF data that is converted to PDF? If you use device type PDFUC or SWINCF, then it should work fine. (see SAP not #999712 about unicode PDF conversion)
    Regards,
    Aidan

  • Problem with the special character '&'

    Hi,
    I am facing problem with special character '&' in report files. When I run the report locally(report builder), i am getting the data printed with '&' correctly. But if I execute same report thr' the application, via application server, I am getting the data printed with "&:". It is not displaying &. Please suggest me how to overcome this problem.
    'ADP & Liablility' is printed as 'ADP &: Liablility' in the web. We are not sending any value thr' the url. This is just a report title. Taking the value from the database and printing it.
    Appreciate the quick response.
    Thanks and Regards,
    A.K.Malathi

    Moderator: Off topic. This forum is for Java Collections API questions. Locking.

  • Printing Problems with the special character &

    Hi All,
    When our users are printing POS character & is printing as junk i.e where ever there is a & print prieview shows & along with
    some other characters <(>&<)> .
    Host Spool Acess Method is F:F: Printing on  Front end computer
    HostPrinter is __Default

    Sorry i was in between and it got posted.
    Device Type is SWINCF CASC Fonts SAPWIN Unicode
    other special characters like " and - are being recognized. It does not seems to be a print problem coz i can see the junk in print
    preview. Has any one seen this error before. I apologize if i posted this in the wrong forum
    Regards,
    Ershad Ahmed

  • How do I create a connection with a special character (!) in the password ?

    Oracle 11.2.0.3 EE on Solaris
    SQL*Developer 3.1.0.6 on Windows 7
    Due to security requirements our passwords contain an exclamation mark (!) but I can't get SQL*Developer to recognize it.
    I've tried to put it in quotes, escaping it and even swearing at it but to no avail.
    I get the famous ORA-1017-Invalid username/password
    It seems to be no trouble for TOAD!!
    Many thanks!
    -gary

    The solution has been found!!
    I finally saw a error in the message tab at the bottom of the screen: error 108 o.jdbc.driver.OracleDriver Error while registering Oracle JDBC Diagnosability MBean.
    According to Oracle Support Note:469494.1 I had a conflict with having two (2) versions of SQL*Developer on my laptop.
    The first was downloaded and installed as a standalone product. This was followed up by installing the 11g Client which also contains a version of SQL*Developer, albeit a much older version. This caused a JDBC library conflict of some kind.
    As per the note, since I only had one (1) Oracle Home, I renamed the %ORACLE_HOME%/jdbc/lib directory to lib$.
    That seems to force the use of the newer jdbc library files and all seems to be good.
    Turned out not to be anything related to the special characters in the password even though the popup message indicated that was the issue.
    Thanks for all the help!!
    -gary

  • Split with a string with a special character

    Dear All,
    I have a string like this:
    String = 'TOTO¤TITI¤TATA'
    The ASCII code of character ¤ is = 0xA4.
    I can't use the Split function with the character '¤'.
    I search methods in forum but without success...
    Any Help ?
    Thanks a lot,
    Rodolphe.

    Hi,
    Check the below code.
    data: fs_string(15) type c VALUE 'TOTO¤TITI¤TATA'.
    DAta: c_hextab(1) type c VALUE '¤'.
    data: tcode(10) type c,
          comp(10) type c,
          seq(10) type c.
    data: tcode1(10) type c,
          comp1(10) type c,
          seq1(10) type c.
    SPLIT fs_string
         AT c_hextab
       INTO tcode
            comp
            seq.
    move  tcode to tcode1.
    move  comp to comp1.
    move  seq to seq1.
    write:/ tcode1,
            comp1,
            seq1.
    Regards
    VEnk@

  • How can I read a file with ASCII Special Character into a SQL table using SSIS 2008?

    I've tried everything to read this file and am getting no where.   Help how can I read this file and load a SQL table?
    RS - AscII - 30  (Record Separator)
    GS - AscII - 29 (Group Separator)
    Thank you for your assistance - Covi
    Mark Covian

    We can use script component as source/transformation to read the text file and assign the contains to a string. Split the string by chr(30)  i.e RS and finally stored into an array or write to the output buffer of the script component.
    For example on how to use script component refer this link
    http://social.technet.microsoft.com/Forums/en-US/6ff2007d-d246-4107-b77c-624781baab38/how-to-use-substring-in-derived-column-in-ssis?forum=sqlintegrationservices
    Regards, RSingh

  • How to deal with special character in source file

    Hi experts,
                      i am doing a file to file scenario in which my source file contains many special characters when i am puting this file into moni its going with the special character .My source file is a fixed length file so in content conversion i have specified the file length but due to these special charcters these field lenght is also varing.So please guide me how to deal with these special characters in sender adapter
    regards,
    Saurabh

    you could try using a Java Mapping to change the encoding manually. For that, set the encoding of the OutputFormat of the XML you'll serialize. Try the following code piece for the mapping (inside a try/catch declaration):
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder documentBuilder = factory.newDocumentBuilder();
    Document input = documentBuilder.parse(in);
    OutputFormat format = new OutputFormat(XML, "ISO-8859-1", false);
    XMLSerializer serializer = new XMLSerializer(out, format);
    For more details check this guide:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42

  • When  I am uploading  file with special character it gives error

    Hi All,
      I am uplloading one file with special character then it gives error. Please let me know solutions on this is soon as possible.
    Thanks,
    Madhav

    hi are you looking for the file to be transferred with the special character then declare it wil the char field...and send it..
    or the special charactera are coming unnecessary use the command ............replace all occurances  to avoid this..

  • Special character in some of the employee records

    Hi,
    I have found special character in some of the employee records which is causing some reports to error out. Our instance is configured for English language and these special characters are unrecognized by the application. I have attached some employee names with the special character below.
    Request you to please look into this and reply ASAP.
    ===
    Employee Number      Full Name
    1278     M_ü_ller-Seydlitz, Mrs Hilda Suzanne
    1009     Evas, Mrs Sîan* Elynda
    ===
    Regards
    Parvathi Arun
    +919840861075
    [email protected]

    first you need to create a database function like the one below.
    the query to identify those records is then the below:
    select full_name from per_people_x
    where is_not_valid_text(full_name) = 'N'
    you can use the function also to verify other fields like addresses and so on.
    the corrective action according to me should be a manual one, meaning open the form and update the names not compliant.
    thanks
    regards
    create or replace
    function is_not_valid_text (p_text in varchar2) return varchar2 is
    v_is_valid varchar2(100) := 'Y';
    v_length number := length(p_text);
    begin
    for i in 1 .. v_length loop
    if not ( -- allowed char
    ascii(substr(p_text, i, 1)) between 65 and 90 -- from A to Z
    or ascii(substr(p_text, i, 1)) between 97 and 122 -- from a to z
    or ascii(substr(p_text, i, 1)) = 32
    or ascii(substr(p_text, i, 1)) = 46
    ) then
    v_is_valid := 'N';
    exit;
    end if;
    end loop;
    return v_is_valid;
    end is_not_valid_text;
    Edited by: Giuseppe Bonavita on 10-Dec-2012 11:43

  • Special character showing as upside down question mark on oracle report

    We have an oracle report which selects data from a database table. Report shows a name field and names with a special character is showing as upside down question mark.
    The name is Simon John ễễ BaileyŠğčẫ
    But when we run the oracle report the name is showed with 6 upside down question marks
    I am not sure if these characters are unicode? (beyond western european character set)
    Oracle database: 11.2.0.1 with nls_characterset = AL32UTF8
    Oracle Reports Server: 10.1.2.3.0 with the following locale settings:
    LANG=en_US.UTF-8
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=
    Any ideas, suggesstions, is this font related issue?
    Thanks for your help.

    You mean the operating system where the Oracle reports server resides?

  • Need to prevent special character in generated XML file

    Hello,
    I am using E-business Suite 12.1.3 and XML version 5.6.3.
    My XML file is ending up with a special character (a Latin capital letter U with circumflex) at the end, after the final closing tag.
    Due to this the concurrent program that needs to output the XML is ending with warning.
    My XML file is produced using a PL/SQL procedure, as follows (I've simplified it):
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<?xml version="1.0" encoding="UTF-8" ?>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<DOCS>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<LETTER>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<EMP_NAME>Michaela Hart</EMP_NAME>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</LETTER>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</DOCS>');
    But when I run the concurrent request that creates the output then try to view the output in Internet Explorer I get the following error:
    Invalid at the top level of the document. Error processing resource 'http://servername.domain...
    </DOCS>
    If I view the source of the page in Internet Explorer it shows a square after </DOCS> indicating the special character that has been added.
    I checked this by looking at the output file in unix (cat -v o7766582.req) and it showed up the Latin U character.
    I realise it could be to do with the character set I am using. I checked what we had on the server:
    > echo $NLS_LANG
    American_America.UTF8
    I would have thought that corresponded with the XML declaration character set but I'm not sure.
    Does anyone have any other ideas about why I have this special character, and how it could be removed?
    Thanks in advance,
    Hazel

    Hi AlexAnd,
    thanks very much for your reply.
    I'm now unable to recreate the problem since dbms_xmlgen worked. If I switch back to my previous method it works fine!
    I'm not sure your suggestion would help, as there were no special characters in the data, the special character was added after the last tag I output. I hard coded the data (as in my example) for testing purposes so there was no SQL in use and the special character was still added at the end of the XML output. But I will definitely give it a try if I get the problem again.
    I had the idea that maybe I should have been using FND_FILE.PUT rather than FND_FILE.PUT_LINE but now the error is gone I can't tell if that would have solved the problem either.
    I appreciate your input.
    Regards
    Hazel

  • Special character no longer works after updates

    Hi,
    I updated my system yesterday and it broke something. My PS1 used to look like: http://imgur.com/a/GboiZ#0 , with a special - character.
    When I logged in today, my PS1 looked like this: http://imgur.com/a/GboiZ#2, and the line in my .bashrc with the filler looked like this: http://imgur.com/a/GboiZ#1.
    I already downgraded bash and xterm, what could have caused this? I also tried zsh for the first time yesterday, but that doesn't seem to be related, since when I download an old copy of the file, the character is still screwed up.
    Thanks in advance

    Stebalien wrote:
    What is the output of 'env'? Make sure that the LANG and the LC_* variables end in ".utf8".
    edit -- While you are at it, post your /etc/rc.conf, /etc/profile.d/locale.sh, and /etc/locale.gen.
    LANG is set to C, running locale outputs everything as C too. However, LOCALE in rc.conf is set to en_US.UTF-8
    locale.sh has:
    if [ -s /etc/rc.conf ]; then
    export LANG=$(. /etc/rc.conf 2> /dev/null ; echo "$LOCALE")
    else
    export LANG="C"
    fi
    which I guess is correct since LOCALE is set in rc.conf
    locale.gen has everything but en_US.UTF-8 UTF-8 and en_US ISO-8859-1 commented.
    listdata wrote:Excuse my sillyness, but you did change your .bashrc function back to actually use the correct special character, right?
    Yes

  • How to find and remove any special character in filename?

    I have a files in various Windows Servers 2003 with a special character at his names, who are causing problem with backup software, i don´t know what character is because in explorer they are not shown and in command line they are shown only as interrogation
    mark and for this, i don´t know how i will find and remove then.
    Thanks.

    Hi,
    I agree with Dave. We can try using
    chkdsk utility to check the file system and file system metadata of a volume for logical and physical errors.
    Regarding
    chkdsk, the following article can be referred to for more information.
    Chkdsk
    http://technet.microsoft.com/en-us/library/cc730714.aspx
    Best regards,
    Frank Shen

  • Special character "French character" in sharepoint folder

    I can not visualize files that are inside a sharepoint folder with a special character named "Février"
    Even when I do a preview from sharepoint designer the file does not appear.
    I searched  and I am sure its possible to use é in folder name because this character does not belong
    to forbidden character.
    Could anybody help me please ?
    Charles

    Not customization.
    Moving to Admin.WSS FAQ sites: http://wssv2faq.mindsharp.com and http://wssv3faq.mindsharp.com
    Total list of WSS 3.0 / MOSS 2007 Books (including foreign language) http://wssv3faq.mindsharp.com/Lists/v3%20WSS%20FAQ/V%20Books.aspx

Maybe you are looking for

  • Pictures galleries viewable with FireFox 3.0

    Hi ! I put some galleries on my site. When I see them with Safari everything is ok, but when I tried to see them with FireFox 3.0 (from my Mac or from a PC at work), the galleries have no pictures !!!! What's happening ? Here are some of my galleries

  • How can I copy and paste table cells from Pages into InDesign with minimum reformating?

    How can I copy and paste table cells from Pages into InDesign with minimum reformating?

  • PDF - Very Simple Request

    How can I move PDF files from my MacBook Pro to my iPad so that I can read them there? There seems to be no easy way to do this. I even purchased Pages, only to find out that you can't read PDF files in that program. This seems like a very simple thi

  • My keyboard lights up but doesn't work at all except for the on button.

    Greetings I just purchased the late 2013 macbook pro , new Mac user here and I was loving it until a few moments ago Basically my keyboard is lit and everything "appears to be working" But neither the keyboard or keypad is responding at all , the onl

  • How to use application to call a remote EJB?

    this is my code: package test; import javax.naming.Context; import javax.naming.InitialContext; import javax.rmi.PortableRemoteObject; import java.util.*; import test.HelloWorldHome; import test.HelloWorld; public class callremoteEjb{      public Str