What is escape sequence for * in SQL

I am using oracle 9. When I run a select query with a where clause as
AND UPPER (bnm.name_value_tx) LIKE '*/*%' ESCAPE '\'
I got an exception as
ORA-29902: error in executing ODCIIndexStart() routine ORA-20000: Oracle Text error: DRG-51030: wildcard query expansion resulted in too many terms ]; nested exception is java.sql.SQLException: ORA-29902: error in executing ODCIIndexStart() routine ORA-20000: Oracle Text error: DRG-51030: wildcard query expansion resulted in too many terms
Is there any escape sequence to handle the character * in query? or any other solution to this problem?

If what I understand in my limited knowledge is correct, then u want to search the character * or ** with any character after that as u have used %. But 1st of all, u dont need an escape character for * . Thats only required for _ and % if u use any of it as a search character. So go straight:
AND UPPER (bnm.name_value_tx) LIKE '**%' ....
(if u want to search for ** at the beginning of the field with any characters afterwards.)
Use Escape Characters like:
select first_name,job_id from employees where job_id like 'SA\_%' escape '\'

Similar Messages

  • ANSI escape sequence for "Command" key?

    I know there are escape sequences for ctrl (^), alt (~), shift ($), etc that can be used from the command-line, but I'm wondering if there's an equivalent way to invoke the command key (or the apple key or whatever you wish to call it) from a terminal?
    I'd appreciate any advice, thanks!

    Hi Evan,
       This is more than a failure of terminology. The use of certain key sequences cause the terminal to produce certain characters that are just like letters except that many processes take special action when these characters are encountered. These characters are called "control characters."
       For instance, type <Control>-v to "tell the shell" to not take special action on the next character produced. Then, if you type <Control>-c, the terminal will produce an End-of-Text character, ANSII character 3, and the shell will accept it as a literal character. However, it has no symbol for that character so it displays a pair of characters, "^C", in its place. Internally though, there is no carat and no 'C'; there is only the number three, which is the ANSII code for the End-of-Text character.
       The bash shell will substitute control characters for certain escape sequences in expanding words of the form $'string'. For instance, consider the following command:
    echo $'\003' | cat -v
    ^C
    Above, the first line is a command that you can cut-and-paste into your terminal. The second line is the output you would see if you execute the command. Bash replaces the $'\003' word with the literal control character and then "cat" converts that character to the pair of characters, "^C", to show you what had been there.
       Of course there are still terminology problems; you are not using the word "emulate" correctly. However, if there was such a meaning, I think that one would say that the character sequences "emulate" the control character, not the other way around.
       On the other hand, when you modify a key with the "Command" key, Macintosh programs treat that as an attempt to invoke a function of that program. No character is produced. In fact technically, the program never even sees the keystrokes. The system intercepts the key event and converts it to an AppleEvent.
       One tool on Macs specializes in producing AppleEvents and that is AppleScript. Fortunately, Apple wrote a utility to grant the shell access to AppleScript and that is the "osascript" command. That allows you to sort of imbed AppleScript in a shell script and that would allow you to send any program any event that the system would generate in response to a command key sequence.
    Gary
    ~~~~
       "Home life as we understand it is no more natural to us
       than a cage is to a cockatoo."
          -- George Bernard Shaw

  • PCL Escape Sequence for PDF417 barcodes

    I have purchased the HP Laserjet Font Solutions (HP Part HG271US) for my HP Color LaserJet CP4020 Series printer so that I can create shipping labels with scannable barcodes for our customers.  I am able to generate the PCL code and print out code 39 and code 128 barcodes.  When I print out the PCL font list, it shows the escape sequences for the code 39 and code 128 barcodes.  I need to print out pdf417 barcodes as well but I don't get any escape sequences on the PCL font list or a font ID for the pdf417 barcode. 
    Does anyone know what the escape sequence is for the PDF417 barcode when using the HP Laserjet Font Solutions (HP Part HG271US)?

    A translation of your PCL snippet for Code 128:
    <Esc>&a0P Print Direction: 0 degree rotation
    <Esc>&a3R Cursor Position Vertical (row 3)
    <Esc>&a0C Cursor Position Horizontal (column 0)
    <Esc>(9Y Primary Font: Symbol Set (identifier = 9Y)
    <Esc>(s1P Primary Font: Spacing: Proportional
    <Esc>(s30V Primary Font: Height (30 points)
    <Esc>(s0S Primary Font: Style (Upright, solid)
    <Esc>(s0B Primary Font: Stroke Weight: Medium
    <Esc>(s28687T Primary Font: Typeface (identifier = 28687)
    *VttbRackLabelInfo.SupplierCode*
     Note that I've changed the "(s30v" to "(s30V" to comply with PCL syntax rules.
    And a translation of your PDF417 snippet:
    <Esc>&a0P Print Direction: 0 degree rotation
    <Esc>&a8R Cursor Position Vertical (row 8)
    <Esc>&a113C Cursor Position Horizontal (column 113)
    <Esc>(9Y Primary Font: Symbol Set (identifier = 9Y)
    <Esc>(s1P Primary Font: Spacing: Proportional
    <Esc>(s50V Primary Font: Height (50 points)
    <Esc>(s0S Primary Font: Style (Upright, solid)
    <Esc>(s0B Primary Font: Stroke Weight: Medium
    <Esc>(sp Primary Font: Spacing: Fixed
    b Primary Font: Stroke Weight: Medium
    24850T Primary Font: Typeface (identifier = 24850)
    *ttbRackLabelInfo.PCISegment15*
     with the same correction as above; note also that you have specified (the same) stroke weight twice, and two different spacing attributes (the latest will apply).
    It's possible that other values for some of these attributes may have non-standard interpretations by the font DIMM (e.g. to specifiy PDF417 error-correction level).

  • What is the sequence for upgrading from 10.4.11 to lion

    What is the sequence for upgrading from 10.4.11 to lion. Can't use many apps without it. HELP

    Quicken is an example that the OP noted is important to her, too!
    Intuit makes it very difficult to find this link?!
    Everytime I want to find it to post it for someone else, I have to Google: "cnet quicken 2007 for lion" and then in top listed link: Topper Kessler's review for CNET, I find the direct link to Intuit
    This program will work with Quicken 2005, 2006 and 2007 data files directly.  If you have a data file from an older version, such as I did, Quicken Deluxe 2002, you must use the PPC version of either Quicken 2006 or 2007 to update the data first; and then the data will work in Quicken 2007 for Lion.
    For other PPC programs that require Rosetta, I installed Snow Leopard (with Rosetta) into Parallels 7 in Lion:
                             [click on image to enlarge]
    Full Snow Leopard installation instructions here:
    http://forums.macrumors.com/showthread.php?t=1365439

  • XML escape sequences for brackets and xmltype.extract

    G'day gang, I'm hoping somebody would be kind enough to help me with the following query please.
    I have a web service that is returning the following XML stream into an XMLType in the database:
    <OutOfStockAdviceResponse xmlns="http://abc.org/abcWebServices">
      <OutOfStockAdviceResult>
      & lt;Response& lt;ResponseCode& gt;0& lt;/ResponseCode& gt;
      & lt;ResponseMessage& gt;Successful& lt;/ResponseMessage& gt;
      & lt;/Response& gt;
      </OutOfStockAdviceResult>
    </OutOfStockAdviceeResponse>You'll note the & lt; and & gt; characters (note to display these strings in OTN I've had to add a space between the & and the lt; or gt;. The spaces don't actually occur in the real XML data coming back).
    What's odd about this XML stream coming back is it is mixing the use of the XML angle brackets with the escape character equivalents (eg. & lt; and & gt;) half way through the XML stream. Is this valid for an XML stream to do this? Any idea what would cause this? Is it possible the source is creating 2 separate XML streams using different character sets and then concatenating them to get this result?
    The reason I'm asking is I'm attempting via PL/SQL to extract the ResponseCode and ResponseMessage tags with the following code:
      v_response_code := XMLType.extract(v_response,
          '/OutOfStockAdviceResponse/OutOfStockAdviceResult/Response/ResponseCode/text()',
          'xmlns="http://abc.org/abcWebServices"').getnumberval;
      v_response_msg  := XMLType.extract(v_response,
          '/OutOfStockAdviceResponse/OutOfStockAdviceResult/Response/ResponseMessage/text()',
          'xmlns="http://abc.org/abcWebServices"').getstringval;Both calls are failing with:
    ORA-30625: method dispatch on NULL SELF argument is disallowedCan anybody point me in the right direction for solving this issue? Is there a way to get the xmltype.extract function to recognize the different character encoding schemes (if they do indeed actually exist)?
    Any help appreciated.
    CM.
    PS. Apologize for the weak subject line.

    Chris
    Since that Serviceis actually returning the escaped representation of '<' and '>' inside OutOfStocAdviceResult, the XML Parser considers that whole block of text to be simply a text node child the parent element, not valid XML. Hence the result of your XPath expressions is null and you get the ORA-30625 when you try to invoke the getNumberVal() and getStringVal() methods, which is the PL/SQL equivilant of a Java Null Pointer Exception.
    You can solve it as follows...
    set define off
    set serveroutput on
    declare
      v_response xmltype;
      v_response_code number(4);
      v_response_msg varchar2(64);
      v_xmltext varchar2(256);
      v_OutOfStockResponse xmltype := xmltype(
    '<OutOfStockAdviceResponse xmlns="http://abc.org/abcWebServices"> 
      <OutOfStockAdviceResult>
        & lt;Response& gt;& lt;ResponseCode& gt;0& lt;/ResponseCode& gt;& lt;ResponseMessage& gt;Successful& lt;/ResponseMessage& gt;& lt;/Response& gt; 
      </OutOfStockAdviceResult>
    </OutOfStockAdviceResponse>');
    begin
      select extractValue(v_OutOfStockResponse,'/OutOfStockAdviceResponse/OutOfStockAdviceResult','xmlns="http://abc.org/abcWebServices"')
        into v_xmltext
        from dual;
       dbms_output.put_line('Text = ' || v_xmlText);
       v_response := xmltype(v_xmltext);
       v_response_code := v_response.extract('/Response/ResponseCode/text()').getnumberval();
       v_response_msg  := v_response.extract('/Response/ResponseMessage/text()').getstringval();
       dbms_output.put_line('Code = ' || v_response_code);
       dbms_output.put_line('Msg = ' || v_response_msg);
    end;Note that like you I had to insert space characters between in the 'lt' and 'gt' escape sequences...
    When this is run you get the following
    SQL> set define off
    SQL> set serveroutput on
    SQL> --
    SQL> declare
      2    v_response xmltype;
      3    v_response_code number(4);
      4    v_response_msg varchar2(64);
      5    v_xmltext varchar2(256);
      6    v_OutOfStockResponse xmltype := xmltype(
      7  '<OutOfStockAdviceResponse xmlns="http://abc.org/abcWebServices">
      8    <OutOfStockAdviceResult>
      9      & lt;Response& gt;& lt;ResponseCode& gt;0& lt;/ResponseCode& gt;& lt;ResponseMessage& gt;Successful& lt;/ResponseMessage& gt;& lt;/Response& gt;
    10    </OutOfStockAdviceResult>
    11  </OutOfStockAdviceResponse>');
    12  begin
    13    select extractValue(v_OutOfStockResponse,'/OutOfStockAdviceResponse/OutOfStockAdviceResult','xmlns="http://abc.org/abcWebServices"')
    14      into v_xmltext
    15      from dual;
    16     dbms_output.put_line('Text = ' || v_xmlText);
    17     v_response := xmltype(v_xmltext);
    18     v_response_code := v_response.extract('/Response/ResponseCode/text()').getnumberval();
    19     v_response_msg  := v_response.extract('/Response/ResponseMessage/text()').getstringval();
    20     dbms_output.put_line('Code = ' || v_response_code);
    21     dbms_output.put_line('Msg = ' || v_response_msg);
    22  end;
    23  /
    Text =
    <Response><ResponseCode>0</ResponseCode><ResponseMessage>Successful</ResponseMes
    sage></Response>
    Code = 0
    Msg = Successful
    PL/SQL procedure successfully completed.
    SQL>Basically we extract the encoded text using extractValue() which will de-escape the escapted characters and then create a new XMLType which we can operate on

  • What is escape character for for Carriage Return, Line Feed, Form Feed

    Hi
    I need to a text file which should have following characters
    Carriage Return, Line Feed, Form Feed
    How do i insert them in a string
    i know "\f" is carriage return,
    but what are characters for line feed and form feed
    Ashish

    uncle_alice wrote:
    jverd wrote:
    remus.dragos wrote:
    I forgot that it does not exist in Java. A good thing
    from my point of view.Running the following makes my computer beep.
    public class Bell {
    public static void main(String... args) {
    System.out.println("\u0007");
    Sure, sending a BEL character to the console rings the bell, but that has nothing to do with Java. Anyway, I think he meant Java doesn't support the \a escape sequence in string and char literals.
    >
    >
    >I forgot that it does not exist in Java. A good thing
    from my point of view.
    Running the following makes my computer beep.
    public class Bell {
    public static void main(String... args) {
    System.out.println("\u0007");
    } Sure, sending a BEL character to the console rings the bell, but that has nothing to do with Java. Anyway, I think he meant Java doesn't support the \a escape sequence in string and char literals.
    Ah, I thought he was saying Java doesn't support ringing the bell.

  • Escape Sequences for HP Color LaserJet 3600n

    I want to be able to print a file to my 3600n printer with certain text printed in color. I print from a Fedora14 box. For output to the screen, I can use the well-known VT100 terminal escape sequences to achieve colored display, in, say, red. I want to achieve the same effect with printed files.
    Does the 3600n respond to escape sequences? If so, where can I find a list of these escape sequences?
    TIA,
      Jon

    This seems to be a commercial product. For the best chance at finding a solution I would suggest posting in the forum for HP Business Support!
    You can find the Commercial Laserjet board here:
    http://h30499.www3.hp.com/t5/Printers-LaserJet/bd-p/bsc-413
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Escape sequence for Bold, underline etc.

    Hi
    We are on EBS 11.5.10 using XML publisher to generate our Purchase orders. On the purchase orders we use standard functionality attachments type short text to specify special instructions etc. on the printed purchase order report. Some of these attachments may have a heading that should be in bold and some may not.
    Is there a way to include an escape/formatting sequence in the short text attachment, to control the formatting of the text directly?
    Your help is highly appreciated

    I doubt you can use Esc sequences inserted in the text to achieve this. Here is a work around. Use some kind of markup to indicate bold header in the text, if any. For example, use tags and . Then in the data model have two formula columns that would parse the text looking for the header and for the body. The first formula would return the header to be in bold (if any found), the second formula would return text to be printed plain. Then in the layout create two fields, and map then to the columns. The first field to be formatted as bold.

  • Host command - escape sequence for BEEP

    I have successfully entered the following command on SQL*Plus:
    SQL> Host Echo ^G
    That is what it appears as, but when I enter it is the <CTRL>G. The box BEEPS. I want to do this because a long query is running and I want it to BEEP at me after it is done.
    If I type it as a literal ^ (shifted 6 character) plus the G, it looks the same on the screen, but simply echos a G without the ^.
    The command works fine. I just want to know how to enter it into a script. Typing <CTRL>G in notepad doesn't work.
    Thanks for any ideas.

    In case this is of any use to my fellow Vimmers, I've found I can't live without the following basics in my _vimrc / .vimrc:
    set ignorecase
    map = :e#
    map ^N :n
    map ^W :w
    map <F2> :let @/ = "" <CR><C-L>
    set guifont=Lucida_Console:h9:cANSI
    set directory=c:\tmp,c:\temp
    set backupdir=c:\tmp,c:\temp
    set columns=111
    set lines=50The ^N and ^W are the actual control characters. The F2 remapping clears the yellow highlighting after a search.
    I'm also working on setting the colours up so they are bit better and updating the woeful supplied SQL / PL/SQL syntax files.

  • How to find the ISO-2022-JP escape sequence

    Any suggestions(a tool or a Java Program) for finding the escape sequence of any given character in IS-2022-JP.
    For example I am trying to find the escape sequence for "�" charater.

    Luis Cabral wrote:
    However, one single sequence would have exactly the same practical result and would be 200x easier to create and maintain.But keep serialisation in mind. A sequence is a single object that needs to service multiple callers, providing each caller with a unique number. So this object needs to support parallel calls (i.e. it needs to be threaded in plain programming terms).
    At the same time, each of these "threads" need to ensure that they do not hand out duplicate numbers - so they need to serialise between themselves to decide who gets what unique range of numbers to hand out.
    So the more intensely a sequence is used, the bigger the likelihood of potential serialisation. So there are performance considerations.
    There's also data management considerations. Do you want a table to rely on an object such as a sequence that is shared by a number of other tables? Or do you want that table to basically "own" that sequence and not have shared dependencies?
    The only reason you might need a separate sequence would be when the generated number is displayed and is somehow meaningful to the user (e.g. an order ID.) But if the number is only used internally to join FKs to PKs, I don't see the need to have a separate sequence for each table.I would not call a sequence number itself, "meaningful" in anyway. It's only purpose when used as a surrogate key is uniqueness - not identification/interpretation is some way that provides some kind of (abstract) meaning.

  • Escape sequence in BEx URL supported ?

    Hi,
    BW version 3.5 support pack SAPKW35013.
    I need to put a BEx URL in a workflow workitem description, which means that I cannot use the
    & character in the URL.  However, the URL has
    several variables being passed across to it...
    Is it possible to use escape sequences for the &
    character ?  According to HTML standards,
    %26var_name_1=Field%26var_value_ext_1=Value
    should be identical to
    &var_name_1=Field&var_value_ext_1=Value
    Unfortunately when I try using %26, the parameters are not
    being passed across to the report... [ which works fine
    when using &].   Is there anything special which needs to
    be configured, or does the BEx service simply not interpret URLs as per HTML standards ?
    Thanks
    Ian

    Full URL in question (working):
    http://gd00.sp.bbc.co.uk:8000/sap/bw/BEx?sap-language=EN&CMD=LDOC&TEMPLATE_ID=ZW_TPL_FF_BPS_CC_COPYFROM_DET&var_name_1=0P_CCTR&var_value_ext_1=B1110&var_name_2=0P_VERS3&var_value_ext_2=SW0&var_name_3=0P_FYRA&var_value_ext_3=2006&VARIABLE_SCREEN=%20     
    (Not working)
    http://gd00.sp.bbc.co.uk:8000/sap/bw/BEx?sap-language=EN%26CMD=LDOC%26TEMPLATE_ID=ZW_TPL_FF_BPS_CC_COPYFROM_DET%26var_name_1=0P_CCTR%26var_value_ext_1=B1110%26var_name_2=0P_VERS3%26var_value_ext_2=SW0%26var_name_3=0P_FYRA%26var_value_ext_3=2006%26VARIABLE_SCREEN=%20

  • Command.text with ODBC escape sequence is not working in VC++, Bug in OLEDB ?

    Command.text with ODBC escape sequence is not working in VC++. The Code, which written in VB is working perfectly. Is there any different syntax in VC++ or bug in
    OLE DB provider ?. I am using OraOLEDB 8.1.7 version.
    Thanks
    Mani
    VB Code
    ' Enable PLSQLRSet property
    Cmd.Properties("PLSQLRSet") = True
    ' Stored Procedures returning resultsets must be called using the
    ' ODBC escape sequence for calling stored procedures.
    Cmd.CommandText = "{CALL corpuser.GetCorpUserRec(?, ?)}"
    Set Rst1 = Cmd.Execute
    VC++ Code (while execute it is giving error )
    pCommand->CommandText = "{CALL corpuser.GetCorpUserRec(?, ?)}";
    pRs1 = pCommand->Execute(NULL,NULL,adCmdStoredProc);

    Hi
    The odbc escape sequence for calling stored procedures works fine with VC++ also.
    You can check the sampe application at following url :
    http://otn.oracle.com/sample_code/tech/windows/ole_db/content.html
    Hope this helps
    Chandar

  • Keyword Escape Sequences: Big Problem

    Is there any character escape sequence for LR 1.1 that will allow the use of restricted characters in keywords?
    In PSE/CS, if you want to use a comma as part of a keyword, you put the whole phrase inside double quotes.
    "Harmon, Anthony" shows up in cataloging apps and others as:
    Harmon, Anthony
    Well, under LR 1.1 that no longer works and thousands of keywords/files and cross-references need to be redone unless I can find a solution.
    Any über-experts out there?

    Preferences will allow you to use . as a Keyword separator.
    Richard Earney
    http://inside-lightroom.com

  • Sequence for collecting the Infocube in a transport request

    Hi SDNers,
    What is the sequence for collecting the Infocube in a transport request.
    Thanks,
    Satya

    Hi Sathya,
    Just giving a second thought to your question i think you need the steps of how to capture a info cube in a request:
    Step1
    go to T code RSOR----->Select object Types ->in the next column you can find Info Cube ->open the Info Cube ->Select Objects>double click on the Select Objects-give the Info Cube name that you want to collect to the request(find the Info Cube)
    Step2
    now you will find the required Info Cube , Drag the Info Cubeto the Right hand side
    Step 3
    Just above the the Info Cube that you have collected you will find Grouping click on it and select -
    >Necessary Objects
    Step 4
    now check the Info cube.
    Step 5
    Now click on the Lorry like symbol on the top.
    Step 6
    The system will promt you to enter the request
    Step 7
    Click on your own request ---> give the name of the request (note down the Name of the Request Example BWDK900109)
    Step 8
    now it will ask for the package (select the tranportable package , do not select $TMP)
    Step 9
    Press Ok now and you will find the Required Info Cube getting stored in the Request
    Step 10
    now go to the Transaction SE09 give your user name and select modified and click on Display
    Step 11
    Search the request name (ex BWDK900109) you find the Info Cube stored.
    Sttep 12
    Relese the request and import in to Quality(this is Basis Job no need to worry)
    Hope this helps.
    Thanks,
    rahul

  • Escape Sequencing

    Hi All,
    Can some one help me with creating a escape sequence for printing? My client wants output for 2D barcodefor 500 characters whereas currently the system can give only for 255 characters, therefore on referring the SAP note 497380 it gives the said solution:  "If you want to output bar codes with more than 255 characters, you must generate the bar code using an escape sequence (print control using special
    nodes in the Smart Form). With this measure, you can output several fields in a text directly one after the other."
    The smartform part will be taken care by the ABAP, I would have to fix the escape sequence, therefore guidance required for the same
    Thanks

    Hi,
    Check out.
    [http://help.sap.com/saphelp_nw70/helpdata/en/d9/4a94fc51ea11d189570000e829fbbd/content.htm]
    [http://www.e-bizco.com/download/manual.pdf]
    Thanks,
    Manoj

Maybe you are looking for

  • Time Machine recovery Help!

    Hi forum. I have Time Machine setup on a MacBook Pro backing up to a Time Capsule. Now the user has lost his iphotos and we want to get them back from the backup. When I "enter" timemachine, I cannot navigate, it seems the interface is locked on "tod

  • How to create Chart within a web page NOT as seperate page?

    Hi, I am using JCharts and am trying to figure out how (or if it is even possible) to create a chart and then place it in a web page. All the examples I've seen show you how to create a JPEG of the chart and then link to this image from your web page

  • Audio not coming out both external speakers on Lenovo Horizon All-in-one

    I have just received my Lenovo Horizon 27 inch all-in-one pc and I've noticed a problem with the audio.  When I plug in my external speakers I only get audio out of the left channel.  I noticed another person with the same problem posted to the forum

  • How do I enable 'Scan to computer' via the printer software in a mac OSX 10.7 environment?

    I am unable to see my apple mac computer listed on the printer's screen. When I select scan and then computer, it simply informs me to enable scan to computer via the printer software, does anyone know where this setting is? OS X 10.7.3 (Lion) HP Pho

  • Adding subreport in subreport in crystal report

    <font size="2"><span><p>Hi</p><p>I am coverting a report made in Access Application which contains subreports within subreports.The nesting is upto five levels deep.As Crystal reports do not allow adding of subreports within subreports,how do i deal