escape character must be the string of length 1 (error ORA-01425)

Hi all!

I get this error message (SQL error: ORA-01425: escape character must be the string of length 1) when querying an oracle 9i database with:

SELECT * FROM table WHERE column LIKE '%' ESCAPE ' \';

Bar which makes it a double backslash (included with apostrophes) would solve the problem, however, with this change, the request is more executable in a 10g database.

Is there a way to make the executable SQL above (with a single backslash escape) code in both (and latest) versions, without changing it? Maybe a server definition database that could solve this problem...

Suggestions for the problem described are greatly appreciated!

Thank you

col2 NVARCHAR2 (100)

OK, you should have mentioned before using unicode ;)

However, should not always identical fields be treated identically in any database?...

Yes, they should :(

In any case the escape string should obviously be treated as unicode so the right way, I guess, would be

  select * from mytable where col2 like N'%' escape N'\'; 

Note the front N ' \' to make the unicode string.

Tags: Database

Similar Questions

  • Before escape character point in the dn entry after provisioning OID

    Our users IOM are automatically provisioned to OID using OID box connector. Everything works well except this issue.

    When the value of "User login" IOM contains the character (called BILLY. (BOB), the dn entry in OID is created with an escape character (dn: uid = BILLY\.) BOB, cn is users, dc = abc, dc = com).

    Example:
    'User Login' IOM = BILLY. BOB
    :
    :
    OID entry created as
    DN: uid is BILLY\. BOB, cn is users, dc = abc, dc = com
    First name: Billy
    UID: BILLY. BOB
    CN: Billy Bob
    :
    :

    Note that the uid does not get the escape character, only the dn value is getting affected.

    Thanks in advance!
    Kabi

    You must remove. in the definition of research, which comes with STANDARD connector.

    Re: OID Connector.User Id includes "------" seen by DOHAD

  • The RPD procedure call. Error ORA-14552 as it has a commit.

    Hi all

    I set up the call to the procedure of the RPD functionality.
    But our data base procedure called if engage in it which I think are not allowed and if we get this error.
    We must undertake once that end us the procedure. Please suggest how we can achieve this.

    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 16001] ODBC error state: S1000 code: message 14552: [Oracle] [ODBC] [Ora] ORA-14552: cannot perform a DDL, validation or restoring inside a query or DML ORA-06512: at the 'DWH '. DWH_PA_TC_ACCRUAL_PKG', line 1565 ORA-14551: cannot perform a DML operation inside an application ORA-06512: at the 'DWH '. TRAILING_COST_FUNCTION', line 8. [nQSError: 16011] ODBC error occurred when executing SQLExtendedFetch to retrieve the results of an SQL statement. (HY000)


    Thank you.
    Pankaj

    Yes...

    Even I will post the same thing...
    Use of Pragma_autonamous_transaction before you start your code...

    Ex:
    Create or replace procedure procedure as
    pragma_autonamous_transaction
    Start
    *...*
    *....*
    *....*
    commit;
    end;

    This particular thing is,
    (1) allow to write TCL commands in the triggers.
    (2) used also in procedure nested to make each independent procedure for TCL.

    Try this...

    Thank you & best regards
    Kishore Guggilla

  • Creating the javax/activation/ActivationDataFlavor class error ORA - 01031: insufficient privileges

    Hi all

    I created mail.jar is correctly loaded in the database, but while loading activation.jar I get the following error.

    Version of Oracle 11.2.0.4.0 database.

    loadjava.bat u sys / * o - r - v f - noverify-synonym g public D:\EXCEL_ORACLE_DIR\activation.jar

    arguments: '-u' ' sys / *' 'o' '-r' '-v' '-f' '-noverify' '-synonym ' "-g' 'Public' 'D:\EXCEL_ORACLE_DIR\activation.jar'"

    creation: resource META-INF/MANIFEST. MF

    loading: resource META-INF/MANIFEST. MF

    creation: resource META-INF/mailcap.default

    loading: resource META-INF/mailcap.default

    creation: resource META-INF/mimetypes.default

    loading: resource META-INF/mimetypes.default

    creation: javax/activation/ActivationDataFlavor class

    loading: javax/activation/ActivationDataFlavor class

    Error when creating class javax/activation/ActivationDataFlavor

    ORA-01031: insufficient privileges

    ORA-06512: at line 1

    creation: class javax/activation/CommandInfo

    load: class javax/activation/CommandInfo

    Error when creating class javax/activation/CommandInfo

    ORA-01031: insufficient privileges

    ORA-06512: at line 1

    Something that I missed.

    Thank you all for your response.

    I connect sys as sysdba.

    I checked the sys schema which classes activation.jar is already there that is why it is showing error.

  • Character set for the buttons in the UI library (for example confirm Popup)?

    I get my head around the issues of fixed character for my new location requirements.

    How can I control the language of the labels on the elements that are part of the library of CVI user interface such as the 'yes' and 'No' buttons that appear in a window of ConfirmPopup()?  Are they supposed to follow the language of the operating system?

    Thank you

    Ian

    (BTW, it would be great if there is a KB page that gathers the main concepts about the locator tool user interface, several bytes in its chains code, paste the translations of a source such as a Word doc in a .c file, etc..)

    Edit:

    Not sure how I missed it before, but here's a related thread . Do I really need to go and replacements of crafts for the panels of the library?

    Hi Ian,

    Unfortunately, the CVI Run-Time Engine is not localized, and it isn't a very good mechanism to translate the integrated chains of RTÉ. It is possible, but it is clumsy, and it does allow you to dynamically change your language in a program that is already running.

    You must find the strings you need to translate into the message of the BCI (c:\windows\system32\cvirte\bin\msgrte.txt) file. When you see an underscore in the chain feature double character, this means that the following letter is underlined. So if you want to translate the 'yes' and 'No' buttons that serve to ConfirmPopup, you must replace the strings 'today' and '__Yes.

    For more information, read the Programmer's Reference > creation and distribution Release executables and dll > LabWindows/CVI Run-Time Engine > configure runtime > translate the Message file topic in the help of the CVI.

    Note that if you want to distribute a message file results in a distribution of CVI you must check the 'Install custom Run-Time Engine message file' option in the tab Advanced for the dialog box change Installer .

    I understand your point that it is not very good support for localization of the CVI programs, but also why it is not very good documentation for it. It is certainly something that is in the CVI roadmap for future improvement.

    I would like to know if you have any further questions.

    Luis

    NEITHER

  • How to convert the string with numbers in U8 with ascii

    Hello

    I have a string with only numbers 0. 9 paper.

    Now, I want to convert to table-U8.

    He works here, but now the problem: How can I change each character to its ascii value?

    Example:

    entry: 123 (string)

    output: x 31, x 32, x 33 (U8-array)

    Thanks for the help

    It's very easy

    String to Byte Array Function
    Have the Palette: string/array/path Conversion functions

    Converts a string to an array of unsigned bytes. Each byte in the array has the ASCII value of the character corresponding to the string.

  • Reverse the string

    Y at - it another simpler way to reverse the string (without using the "Reverse String" function) using labVIEW in addition to that I have tried in this attached below VI?

    Thanx.

    Use string subset in a loop with the subset of string length is 1 and decrement the offset of the string Max Length to zero.

  • Error ORA-19502 writing on the file ' / INT1/arch/D/arch_1_1629_754400291.dbf ', block number 94209 (block size = 1024), ORA-27072

    Hi all

    In my database DVLUX226, in the alert logs, I get error ORA-19502. partners to archive newspapers. Here are the details:

    Wed Apr 16 18:26:58 2014

    Errors in the /INT1/sw/D/oracle/diag/rdbms/dvlux226/DVLUX226/trace/DVLUX226_arc1_22234.trc file:

    ORA-19502: write error on file ' / INT1/arch/D/arch_1_1629_754400291.dbf ', block number 94209 (block size = 1024)

    ORA-27072: IO file error

    HP-UX-ia64 error: 2: no such file or directory

    Additional information: 4

    Additional information: 94209

    Additional information: 638976

    Wed Apr 16 18:27:11 2014

    ARCH: Stopped archiving, error occurred. Will continue to retry

    ORACLE Instance DVLUX226 - check-in error

    ORA-16014: log 3 sequence # 1629 not archived, not available destinations

    ORA-00312: wire 3 1 online journal: ' / INT1/oraredo2a/D/DVLUX226/redo03.log'

    Errors in the /INT1/sw/D/oracle/diag/rdbms/dvlux226/DVLUX226/trace/DVLUX226_arc0_22231.trc file:

    ORA-16014: log 3 sequence # 1629 not archived, not available destinations

    ORA-00312: wire 3 1 online journal: ' / INT1/oraredo2a/D/DVLUX226/redo03.log'

    SQL > select * from v version $;

    BANNER

    --------------------------------------------------------------------------------

    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production

    PL/SQL Release 11.1.0.7.0 - Production

    CORE Production 11.1.0.7.0

    AMT for HP - UX: 11.1.0.7.0 - Production Version

    NLSRTL Version 11.1.0.7.0 - Production

    Please let me know how can I manipulate this alert as seems its related archive.

    Kind regards

    Michel

    > - rw - rw - 1 int1orad s/n 99222528 Apr 15 15:27 arch_1_1628_754400291.dbf

    > - rw - rw - 1 int1orad s/n 99222528 Apr 18 03:24 arch_1_1629_754400291.dbf

    What happened between Apr 15 15:27 and 18 April 03:24?

  • Length of the string, excluding the input character/string

    Long story short, I want to replicate the function of the length of the string , but do not include an input the number of characters in string. For example:

    The input string (search) is 'the

    My first string to test is "the big red dog."

    That would mean a 13 string length.

    My second string is "Jumps over the lazy Fox."

    That would mean a length of 21.

    ' Hello World! ' would return 12.

    'The Lion, the Witch and the wardrobe' would return 26.

    I hope that you can see what I want to achieve. How is this possible?

    -James

    (I'm driving Labview 8.5)

    Use the search and replace the string to replace your 'exclusive' with an empty string string.  Use the length of the string on the result string.  Make sure that everything is already set to TRUE.

  • Creation of Contact the PHP export leads to failure: field 'name' must be a string value.

    Hello

    I export contacts from Eloqua to my application using the API as a whole. I am stuck at a point where I'm creating export based on my maps of fields as follows:

    GET .../contact/export

    {'name' ": example","secondsToRetainData": "3600", "fields": {"C_EmailAddress": "{{Contact.Field (C_EmailAddress)" "}}" "}}

    and the server returns an error:

    {"failures": [{'field': 'name', 'coercion': 'Must be a string value, at least 1 character and a maximum of 100 characters long.'}, {'field': 'fields', 'coercion': 'Required.'}]}

    In order to ensure that my JSON string is syntactically correct, I copied (very useful) application at http secure.eloqua.com/api/docs/Dynamic/Bulk/1.0/Export.aspx and run it through the server, which results in the same error.

    I suspect that Eloqua does not recognize parts of my application as a string payload. I use PHP to build a table that is then encoded using json_encode(). All the world has known this before and found a solution? Please share!

    Wouter

    OK, my next wag: is the Content-Type header?  It must be set to application/json.  Who met with some of the calls.

    .  Topher

  • Deactivation of the PowerShell escape character

    I need to use Get-VMGuestNetworkInterface on about 100 mV.  They are members of domain created from the same template with the same local administrator account.  Unfortunately, the local administrator password using the 'character.  The "character is the PowerShell escape character.  The escape character will not allow itself be included with a string value, so when I try to pass the parameter - GuestPassword, it does not include the "character, the password is incorrect, and the authentication will fail.  Anyone know who to use the "character in a string literal?

    Depends on hwo you pass the string between apostrophes, the backtick didn't need to be escaped (' pass'word ').

    Quotation marks, use the back-slash ("past" word")

  • I have a MacBook Pro.  Is there a way to implement a rarely used keyboard key that - WHENEVER - it is pressed the computer will insert the string, predetermined character at the cursor position?

    I have a MacBook Pro.  Is there a way to implement a rarely used keyboard key that - WHENEVER - it is pressed the computer will insert the string, predetermined character at the cursor position?

    Yes. You can add in system preferences > keyboard > text.

  • Length of the string

    Hi all

    I intend to measure the length of the string and the length of the Arc in a gray-scale image. Please advise.

    You need to find to the first circle or outer circle?

    Part of Mathematics:

    The length of the rope of calculation, to find the RADIUS and the angle under which is seen in the center of the rope or perpendicular to the distance between the string and the center of the circle: once you have these settings, you can calculate the length of the rope using formulas:

    Source: http://www.mathopenref.com/chord.html

    Similarly, you can get for the length of the Arc: http://www.mathopenref.com/arclength.html

    Part of image processing:

    -I think that you can get the radius of the internal or external circle based on your requirement, using IMAQ detect forms.

    https://zone.NI.com/reference/en-XX/help/370281M-01/imaqvision/imaq_detect_shapes/

  • EXCEL ActiveX + error '-2146827284' (but not the string length limit)

    Hi all

    First of all thanks for your help!

    I have a strange error with excel activeX: "-2146827284!"

    Why strange? Because my export feature works perfectly on a computer but not on another... (both are windows 7 + Excel 2007)

    How my application works:

    I have to read an excel spreadsheet which preserves made with different types of instruments of measures.

    For each type of instrument, I have to create a specific worksheet with its measures.

    For example:

    1 spreadsheet excel with the many measures of 4 different types of instruments

    SHOULD GIVE

    4 excel spreadsheets containing the measures of each instrument (1 worksheet for a type of instrument).

    Hope I am clear...

    Why I do with LV? Because it's fun!

    Now that some snapshoot.

    1 - where the bug appears :

    2 - the message I get (translated from french to English):

    Additional information:

    -The size of the string I have write in excel cells is 6 characters max. More I put a condition to return an error if the string length is > 900 characters.

    Thanks a lot for your help!

    SO simple...

    It was just the name of the folder...

    I coded the name of the folder as a constant aim dev. And I do not mind that the name of the folder is not the same on both computers!

    "a missing letter = a week closed.

    Arrrgh

    all sorry to bother you

  • flatten channel adds the length of the string

    Hi all

    I flatten a cluster chain help to flatten to string.vi. The cluster contains strings and arrays. The flattened string contains the length of the string that is appended to the string.

    So if I have a cluster with only 1 string and a value = "LabVIEW". the flattened string would be "0007LabVIEW". Flatten channel vi has a Boolean entry "add string or array of size? even if I set the Boolean value false, it always adds the length of the string. Is this a bug?

    I think that if you read the detailed help to flatten it to string function you will see this is not a bug.  That boolean applies only to top-level data, once put you something in a cluster or array, the Paris are open.

Maybe you are looking for

  • My hp photosmart C4680 will not go into stand by mode

    My printer will go in standby mode it prints blank pages approximately every 10 minutes and goes on all day and night the only way to stop is to turn off the printer. Has only started doing the last two weeks. Have rebooted and makes no difference. A

  • Examples UHD Segmentation Fault

    Hi all I'm having some trouble trying to use the UHD examples. Some of them I can use. However, some of them give me a Segmentation fault ========================================================== Rafael@Rafael-Inspiron-7537: / usr/lib/uhd/examples$.

  • CFS3 hangs upwards and will not stop running.

    CFS3 worked fine with Vista, but began to hang. Upgraded to Win7 and it worked fine until I defragmented the drive and now it freezes and will not be cut. I even removed the CD and rebooted the system, and I can't restart the game because it tells an

  • my HP sound is locked

    The red light is the locked sign.   How can I unlock it

  • Missing printhead HP Photosmart 5510?

    I just experienced the same problem as a previous poster with my all new photosmart 5510.  On the tray upward, after removing all packaging and installed the cartridges, I get the error message: "the printhead is missing" "lift the latch, reinstall t