How to search for strings of characters defined, including accents in sqlplus?

Hello

the task is to find all the entries in the table produced in coloumn txtvi [defined as: VARCHAR2 (40 BYTE)] where the chain consists not only of these characters:

-_ #., 0 - 9 a - za - zaouaou)

The result set should be stored with characters that are not allowed.

Example "Ziel/result" is not allowed; the "/" is not in the above defined characters

DB-Version: 10.2.0.4.0

NLS settings have the value:

NLS_LANGUAGE AMERICAN

NLS_CHARACTERSET UTF8

First attempt was to use regular expressions in sqlplus:

Select txtvi from product including the no regexp_like (txtvi,'^ [-_ #., 0 - 9 a - za - zaouaou ()] + $') order of txtvi.

All combinations in the regexp_like has not given the correct result. As a result all games I found permits strings with accents.

That would be the problem?

Now, I started to watch all the channels with the German umlaut 'a' only.

I've known that there are several titles with 'a '. An example: '% Fahrgastzahler % '.

I started sqlplus in shell Korn on AIX 6.1 ($nls_lang = AMERICAN_AMERICA. UTF8)

to find all strings containing a German umlaut:

SQL > select txtvi from product where txtvi like '% a % ';

ERROR:

ORA-01756: city not properly finished chain

I thought to do a simpler test:

SQL > select 'a' twice.

ERROR:

ORA-01756: city not properly finished chain

With 'o'.

SQL > select 'o' double;

'

-

o

With

SQL > select text product where the text like "% number % ';

TXTVI

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

Fahrgastzahlung #27N0

Investigation Fahrgastzahler

Great, there is a result. But it is not a solution. I'll find all rows with accents.

Why is there an error ora-01756? I get the same error with the German ss, but u works as o.

Only a problem in point 10.2?

A test more in DB-Version: 11.2.0.3.0 with NLS_CHARACTERSET AL32UTF8

and sqlplus ($nls_lang = AMERICAN_AMERICA. UTF8)

SQL > select 'o' double;

'�'

---------

is

SQL > select 'a' twice.

ERROR:

ORA-01756: city not properly finished chain

No possible use of sqldeveloper:

The sqldeveloper on a Win7 customer were not properly demonstrating accents. Results of German umlauts are empty every time.

Yes, there is a problem with accents.

Any idea how this problem can be solved?

My suspicions were confirmed. The result of DUMPING indicates that problematic content is encoded in WE8ISO8859P1/WE8MSWIN1252 and not in UTF8, as it should. You see that the binary code of 'u' is 0xFC and for "O" 0xD6. Here's the WE8ISO8859P1/WE8MSWIN1252 codes, not UTF8 codes.

Similarly, the test with "od" shows the code for "o" as 0xF6 on your terminal. It is, once again, a code WE8ISO8859P1/WE8MSWIN1252 and not UTF8 code, so the value of NLS_LANG is incorrect. Character set NLS_LANG must match the source of data, not the database character set. You correctly see the umlauts on the screen, because the screen is configured to WE8ISO8859P1 or WE8MSWIN1252 and these codes are retrieved not converted (NLS_LANG = DB charset).

You should:

1 recode your data to the right encoding, for example with the UPDATE tab1 SET col1 = CONVERT(col1,'UTF8','WE8MSWIN1252') WHERE... Note that this conversion be done several longer strings, so you must make sure that they will always go in the target column and you do not get errors "value too long."

2. review and correct the NLS_LANG value for all customers. The mentioned AIX session should run with NLS_LANG value WE8ISO8859P1. You will see the data correctly with this setting once the data are converted as described in 1 above.

Your tests research should work much better with a correct database.

Thank you

Sergiusz

Tags: Database

Similar Questions

  • Please, give me an advise how to search for a number in a file xml (as3.0)

    Hello! Sorry for the troubling.

    Please, give me an advice how to search for a number in a file xml (as3.0)

    Thank you!

    My answer was based on your question to find numbers anywhere in the data to an xml file.  If you know that the data is digital data and the names of the nodes that contains this data, you do not have to check the characters and can only check numerical data using string values...

    function searchXMLFile(Event:MouseEvent):void
    {
    searchDisplay.text = "";
    var pageList:XMLList = xmlFileToSearch.receipt.number;
    searchDisplay.text = "false";
       
    for (var i: int = 0; i< pagelist.length();="">
    {

    If (pageList [i] == searchInput.text) {}
    searchDisplay.text = "true";
    }

    }
    }

    Even if you are looking for individual digital characters in the previous code that you would have always done by a false exit due having the line 'false' always cancel the real line...

    If (t.toString () .indexOf (m_sSearchTerm)! = - 1).

    {

    searchDisplay.text = "true";

    }

    searchDisplay.text = "false";  This will always overwrite the textfield

  • How to search for a Word document in Windows 8?

    I'm stumbling around Windows 8 that came pre-loaded on my new laptop.  I ordered Windows and Excel to be included in the package.  I saved a number of documents in Word, and now I need to get these documents for a particular.  I looked on the Internet and found a lot of no-help, that is to say, 'go in search of a file'.  Excuse me, but if I could find searching a file, I could probably find out how to search for the file, Huh?  Thus,.

    Could someone please help me with: how to find a Word document (1) and (2) where is the infamous "search"?

    I did the thing 'sweep to the right side of the screen"to get those things shadow to appear, and click on the magnifying glass (which I think the engineers forgot to change when they changed everything!) and if I wanted to search for apps, I'd be in great shape.  But his files I'm looking for, Word documents.  The designers of this 'new' version improved - well, new, in all cases seem to have forgotten those of use who use computers for productive work and not socialize or play games.

    Sorry for the hike and whining, but I'm very frustrated that the tasks that were once very simple are now extremely difficult to fill.

    It's pretty easy, at the beginning screen just type the name of your document and right it will bring the search screen and you select files (files, settings, Apps). Take a look at:

    http://Windows.Microsoft.com/en-us/Windows-8/search-apps-files-settings

  • need help for where and how to search for apps you want in windows store 8

    I just bought a SAMSUNG ATIV TAB 3 (XE300TZC), it has WINDOWS 8.  I went to the store Windows on my windows 8 to start the download of all my apps that I like and I found some of the apps and downloaded. But many of the apps I want to I don't think because I've noticed that it is not an option or small box for me to be able to get all the apps... I guess my question is how a search for specific applications on my STORE of WINDOWS 8?

    Hi Brandi,

    Thanks for posting your question on the Microsoft community.

    Thank you for details on the issue.

    Please see suggestions from HairyFool said on June 4, 2013 and check.
    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-Winapps/how-do-i-search-the-Windows-apps-store-on-my/75390438-4DBA-4a77-93cd-aa3b2153efce

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • How to search for text in all of the PDF files on a mobile device?

    How to search for text in all of the PDF files on a mobile device?

    Not possible on mobile devices.

  • How a search for certain content through many files?

    Windows 7 claims to be able to search for certain substances, but it does not work, or is not properly documented. My filenames have the extension "ls2" and are open with Notepad. How can I search for a string in the content of my ls2 files?

    Hello

    Maybe this will help: (mainly those of type "BOLD" )

    Tips for finding files
    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-finding-files

    How to use advanced search in Vista Options
    http://www.Vistax64.com/tutorials/75451-advanced-search.html

    How to restore the page button on the Start Menu after installing Vista SP1
    http://www.Vistax64.com/tutorials/145787-Search-start-menu-button-restore-after-SP1.html

    How to restore the context Menu item search after installing Vista SP1
    http://www.Vistax64.com/tutorials/134065-search-context-menu-item-restore-after-Vista-SP1.html

    How to create a shortcut on the desktop search in Vista
    http://www.Vistax64.com/tutorials/126499-search-desktop-shortcut.html

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

    Win Key F opens advanced search

    Searching in Windows Vista, part 1
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-1-secrets-of-the-search-box

    Part 2
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-2-Start-menu-and-control-panel-search-tips

    Part 3
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-3-using-advanced-search-for-those-hard-to-find-files

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Search for combining diacritical characters in Unicode

    Unicode allows to put accents different characters using diacritical signs. I'm learning Russian, and put accents on words makes a big difference. I use Alt-0769 (301 to hexacimal) to put in the combination acute accent marks, and I put these accents on any character. My problem is that I can't find any way to make Windows Search deal with these characters. In Unicode, a typical accented vowel will be represented by two Unicode characters. I need a way to get these characters in the search string. If I try to use Alt + 0769, the search box is a hollow box, but am not actually for her. Microsoft has a way to include Unicode characters less commonly used in search strings? Anyone found a way to search for words containing combining diacritics?

    Hello

    Please contact the Microsoft Community.

    I apologize for the delay in contacting you.

    I would have you post your query in TechNet.

    http://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro

    We know you if you find a solution.

  • How to search for a specific word in the code using Dreamweaver?

    I need to search for a specific word in the code for all the pages of my site. How can I do it using Dreamweaver?

    To search for local files of a Site defined in DW...

    Open the search tool & replacement with Ctrl + F

    Replace the drop-down list search in entire current Local Site

    Replace the drop-down list of search text or Source code

    Add the text to search for in the search field

    Add the replacement text in the field replace (or nothing if you just want to remove the text)

    Hit replace all

  • Search for string in SQL Developer

    Hello

    I am trying to run a search function in SQL Developer, which locates a string in database objects. I can't find out how to do it-if it is possible. I just saw that I can search for objects not strings in their breast. How to find all the procedures/functions which includes a specific string?

    Concerning
    Marika

    Reports | All reports | DataDictionary reports | PL/SQL | Search the Source Code

  • HOW to search for an image?

    How to use an image to search for something or someone?

    Google images will allow you to do. Go to images.Google.com and drag the image you want to use in the search box.

  • How to search for on the labels to my favorites

    I have a long list of bookmarks, organized in folders separated and labeled however I can't find on the labels. So either the labeling is of no use or I would like to learn how to use labels to search for my favorites? Can you help me?

    Thank you.

    -Display the labels of bookmark - file bookmarks to make them easy to find

  • How to search for a word in a web page

    I wish I could do a search for a specific within the page currently displayed in the browser. Is it possible to do this in Firefox?

    Hi JossefPerl,

    Research on a page is actually very easy. You can simply press CTRL + F to use the search feature. You should take a look at the article in the Knowledge Base on How to search the contents of the current for text or links page for more information.

    Hope this helps!

  • How to search for work in one particular my external hard drive?

    I'm looking for a specific design on my external hard drive.  How can I do a search on this drive

    OK guess I wasn't too clear.  How to do a search on my external hard drive?  Or any search also.  I went to the lower left of the screen and in the box "search" I typed 'redwork.  I got was a Web site.  So, how I'm looking just my disk hard ex.?  I hope that is more clear.

    Thanks, Fredda

    You can search for files, types of files, folders, programs, text contaiined in the folders or files, but not for designs - there is no way to enter a design search.

    I'm sorry.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to search for extension in the Directory Manager

    Hi, I want to create a directory to handler extension research instead of name search, how can I do this? The basic unit book says you can do this, but does not say how.

    If it is not possible, how can I configure the unit to collect the numbers the caller to input and search for the extension and send to the right destination, if it is an invalid extension, it should return to the main message.

    Thank you.

    The Manager directory for searches in name only - if you know the extension you can just dial it in any home.

    You can dial the extension of a user or a Manager in a call handler or the default greeting Subscriber. so the best way to proceed is to simply dial the extension of the opening home - if it is not valid, you will hear the guest of error and then the opening greeting is replayed.

    If you want to use a different Manager for this and want to make sure after dialing invalid extensions that go you to the greeting for this call handler, update the greeting 'mistake' to go to this Manager instead of opening greeting Manager of appeal. By default the greeting of the error is not visible in the SA - you can make visible by using the advanced configuration tool - or you can do it in BulkEdit if you want, there is a special in there option on the greetings to "loop back to itself" page, which will update all managers or subscribers to have their greetings error restart their own welcome message instead of kicking back to the opening greeting.

  • How to search for files by their content?

    How can I perform a search in windows 7, where he seeks in fact the content of the files?  Let's say I had a text called "mytext.txt" document and in this file was the text 'Hello World '...  How to make windows 7 return "mytext.txt" so if I did a search for the word 'Hello '?

    Hi angry bananas.

    The default function of Windows 7 search is such that it searches the text in the file name and content; in the file properties, such as in tags and. Therefore, in your scenario once you start to type Hello, you should get mytext.txt into the search results.

    Please see these articles using Windows for more information on the search for Windows 7.

     

    Find what you're looking for

     

    Find a file or folder

     

    Searching in Windows: frequently asked questions

     

    Advanced Tips for searching in Windows

    Kind regards

    Shinmila H - Microsoft Support

    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for