How to find the special character in a give string/sentance

Hi All,
I have one task to complete with in the give time. Since i am not very good in PL/SQL i need your your help.
Requirement is :
I have to come up with the SQL or PL/SQL code which should return and find the special or hidden character in the datafiles name in a database. There are nearly 400+ database are present in almost all the flavor of UNIX and i have to check the each and every database.
As you know , Name of the data file will be like this :
/u02/instance_name\oradata\datafile_01.dbf So it should avoid these things and find out only the special characters in the datafile name.
a-z , A-Z , 0-9 and \ Please keep in mind that ...... I will be firing the Oracle script from Oracle 9i client which will access all the database from Oracle 9i to 11g in one short and give me the result.
Please help me to resolve this issue and let me know if you need more information.

Hi,
Mukesh wrote:
Hi Frank,
This is excellent function. Thanks for you responce.
I want to modify this query in such a way that .... i should get only those datafiles name which are holding special characters. I don't know how to put this in where condition. :( Here's one way:
SELECT  file_name
,       ...     -- other expressions, if you want any
FROM    dba_data_files
WHERE   TRANSLATE ( file_name
                  , '?0123456789.ABCDEFGHIJKLMNOPQRSTUVWXYZ\_/abcdefghijklmnopqrstuvwxyz'
                  ) IS NOT NULL Among the other expressions you can put into the SELECT clause (if you want to) is a copy of the TRANSLATE function, as you had in your message. That would highlight exactly which character(s) made the file_name invalid.

Similar Messages

  • How find the Special Character Table?

    Hi friends.
    i need table for special characters. how find the special character table.
    example : &,@<#<$ -- all are special characters.
    any body please reply immdly.
    regards
    pauldharma

    Hi Raj,
    Check this forum thread:
    Print Currency as symbols in SAPSCRIPT/Smartforms
    Hope this helps.
    Regards,
    Vivek Myadam

  • How to escape the special character ' (ascii 39) in a query

    Hi,
    does anybody know how to escape the special character ' (ascii 39) in a select query?
    I've tried a lot of ways but nothing seems to work, for example I try to get all
    names in table foo where coloumn name contains a '-sign (ascii 39)
    select name from foo where name like '%\'%';
    select name from foo where name like '%{'}%';
    select name from atg_horse where name like '%chr(39)%'
    ... but neither works, I end up with a ORA-01756: quoted string not properly terminated
    I would apriciate any help
    /Carl-Michael

    Use two single quotes inside your literals to represent one single quote.
    For example, this would find my name:
    SELECT *
      FROM emp
    WHERE name = 'Michael O''Neill';
    Michael O'Neill
    (acutely aware of the apostrophe issues in the world)

  • How to escape the special character ' (ascii 39) in a select query?

    Hi,
    does anybody know how to escape the special character ' (ascii 39) in a select query?
    I've tried a lot of ways but nothing seems to work, for example I try to get all
    names in table foo where coloumn name contains a '-sign (ascii 39)
    select name from foo where name like '%\'%';
    select name from foo where name like '%{'}%';
    select name from atg_horse where name like '%chr(39)%'
    ... but neither works, I end up with a ORA-01756: quoted string not properly terminated
    I would apriciate any help
    /Carl-Michael

    friends
    thanks for ur time and effort that u gave to reply to my problem.
    But my main problem is that when my application (VC++ 7) fires the following query in the oracle database , it does not return any rows.
    SELECT count(*) FROM ORGANISATION WHERE UPPER(ORGANISATION.ORGANISATIONNAME)
    LIKE N'&#946;%' ORDER BY ORGANISATION.ORGANISATIONNAME
    the above question in the previous thread was just to check on sql plus as it's editor does not support unicode characters.

  • How to use the special character pallet in Maverics with Illustrator

    How to use the special character pallet in Mavericks with Illustrator - I follow the help instructions, but the pasted in object looks like a rectangle with an X, I have done this before, in earlier versions of AI, but cannot make it work in CS6.
    In fact, I can open an old AI file (CS4), copy the character (a graphic symbol, also taken from the special character set), paste it in, and it works, but can't do this with a new one, from the drop down, Show Character Viewer, in the Mavericks menu bar.

    The box with an X indicates the font you are using does not have the glyph you are trying to paste. Try a different font.

  • How to allow the special character in folder or filename

    when i add the special character "&" in folder or file name it gives following error
    "The file or folder name "P&A" contains invalid characters. Please use a different name. Invalid characters include the following: ~ " # % & * : < > ? / \ { | }. The name cannot begin or end with dot and cannot contains consecutive dots."
    how can i allow these character in folder or file name.
    waiting

    Hello to everybody
    It's ok for the ~ " # % & * : < > ? / \ { | } characters, they cannot be allowed,
    but in a lot of languages there are letters like  è é à ù ò that are accepted for path and/or filename;
    how to allow these characters? Moss indexes them but when doing some searches and clicking on these files, in the new internet explorer windows the file cannot be opened abd examining the url the è é à ù ò are replaced with other character.
    Thanks in advance to everybody
    Regards to all
    Roberto GerlandoGerly

  • How to discard the special character from field-Table.

    Hi
    In my data i am having a lot of SPECIAL CHARACTER also involved, I want to display only the consumer name (PURELY), is there any method/function module to discard the special character and display only the A-Z character as stored in DB.
    Gaurav

    if itab-field CA 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    or
    if itab-field CP 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
    then do ur else calculation.
    else.
    delete itab.
    Edited by: tahir naqqash on Feb 17, 2009 4:27 PM
    Edited by: tahir naqqash on Feb 17, 2009 5:21 PM

  • Find the Special character and non Ascii character

    Hi:
    i have table ,this table column name contain some datas like
    sno name
    1 CORPORATIVO ISO, S.A. DE C.V.
    2 (주)엠투소프트
    3 TIMELESS
    4 南京南瑞集团公司
    5 PHOTURIS
    6 Ace Informática S/C ltda
    7 Computacenter AG & Co. oHG
    8 아이티앤씨
    9 MOCA
    10 anbarasan
    my requirement:
    1)i need to search the name column where contain the special character and non ascii character..if found any non ascii or spcial character ..need to say flag ''yes".if not found need to say "no"...kindly help on this issus...

    i need some example..i am not have any idea....
    i have table ,this table column name contain some datas like
    sno name
    1 CORPORATIVO ISO, S.A. DE C.V.
    2 (주)엠투소프트
    3 TIMELESS
    4 南京南瑞集团公司
    5 PHOTURIS
    6 Ace Informática S/C ltda
    7 Computacenter AG & Co. oHG
    8 아이티앤씨
    9 MOCA
    10 anbarasan
    my requirement:
    1)i need to search the name column where contain the special character and non ascii character..if found any non ascii or spcial character ..need to say flag ''yes".if not found need to say "no"...kindly help on this issus...

  • Find the last character in an aplhanumreic string

    Hi guys first time poster long time hiding in the shadows,
    hopefully someone can help me
    I have set of username stored and I need to find the last
    character before the number for example
    abc123 I would want to find c
    ab123 I would want to find b
    any suggestions as to how I would do this?
    Thanks in advance

    Here's one way:
    <CFSET YourString = "abc123")>
    <CFSET LastChar = "">
    <CFSET Pos = 1>
    <CFSET CharLen = Len(YourString)>
    <CFLOOP from="1" to="#CharLen#" step="1">
    <CFSET Char = right(left(YourString,Pos),1)>
    <CFIF Not IsNumeric(Char)>
    <CFSET LastChar = Char>
    <CFSET Pos = Pos + 1>
    <CFELSE>
    <CFBREAK>
    <CFIF>
    </CFLOOP>

  • How to find the number of occurance of a string in text field of Infopath form?

    Hi All,
    In Infopath text field, How to find the number of occurrence of a particular string in that field?
    Thanks in advance!

    You can check to see if it contains a string once by using the contains function, but there isn't a very clean way to do what you want. If you wanted to guess at the maximum number of occurrences, then you could:
    Box A has your initial. Set Box B to do a concat of string-before and string-after of Box A where it copies Box A minus the string we're looking for. Then we have Box C that does the same thing to Box B. Repeat as many times as you see necessary.
    Example:
    String: "1"
    Box A - "123451234512345"
    Box B - "23451234512345"
    Box C - "2345234512345"
    Box D - "234523452345"
    etc.
    We then have a field that has nested ifs looking backwards from Z -> A looking for a non-blank. Based on that, we return the number of occurrences. Again, this isn't clean, but it will work if you think there's a predefinable maximum.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • How to find the 'special characters' window

    Hi,
    Frequently I want to access the 'special characters' window, but when I click on the 'special characters' menu item the window does not appear. Sometimes I later find it on another screen (I use nine screens in Spaces), and sometimes can I see it on another screen using Expose, but when I go there it has disappeared. It seems a very fugitive tool, and in its way displays some cute, personality........ But I would love to know how to find it or to force it to appear on the same screen as the application from which I tried to open it!
    all the best,
    Jeremy Harbinson

    Hi,
    Thanks for the reply.
    I tried what you suggest - in the International section of the System Preferences there is a tab labelled 'input menu' and there is a check box (which is checked) titled 'Show input menu in Menu bar'. Unchecking that removes a national flag from the the menu bar, checking it restores that flag. So far, so good. If a click on the flag, a drop down menu appears with 'Hide character palette' as an item - clicking this changes it state to 'Show character palette' but clicking this (several times) changes nothing else that I can see,
    all the best,
    Jeremy

  • How to find the glyphs character using js in indesign cs2?

    i want to find whether the glyphs character(registered trademark symbol)is applied with character style superscript or not, i cant able to fix the glyphs character in the find preference, how to do it?
    thanks
    subha

    You are mixing two concepts. There is a
    i major
    difference between a
    b glyph
    and a
    b character.
    A glyph is any singular graphic in a font.
    A character is an instance of a character set (in InDesign, and in Mac OS X, it's the Unicode set; older programs use 'code pages' to translate codes into characters). [*]
    Why are they different? Well, a ligature ('ffi', for example) is not a single character, containing the characters 'f', 'f', and 'i'. It
    i is
    a single glyph in most fonts, but (usually!) you cannot insert an 'ffi' directly. Programs that do allow insertion of glyphs (again, such as InDesign) are also smart enough to decompose it into single characters 'f', 'f', and 'i' again.
    Why is this distinction important? In CS2, you can search for
    i characters
    but not for
    i glyphs
    (in CS3 and higher you can, but you cannot specify "+superscript").
    All aside, you can insert a trademark character directly into InDesign by calling up the Glyphs :-) panel and double-click the glyph. (It works because the 'TM' is also a valid Unicode character.) Then just cut it, and paste into the 'Find' field of the Find Text box. Alternatively, since you can see the Unicode value in the Glyphs panel, you can enter the Unicode directly into the search field, surrounded by less-greater than: < 2122 > (without the spaces). This works for all Unicode characters.
    Even better is that the character is also in the Find drop down menu -- "Registered Trademark Symbol". This inserts the shortcut "^r" in the Find box -- but it only works for a selected set of characters.
    Since this is the Scripting forum, I'm guessing you want to use this in a script. Well, both "< 2212 >", and "^r" can be used in the search string to specify the character. Do the search and examine for each found item if it has a position Superscript or not.
    [*] Post-edit: to expand a bit more, a table in the font associates Unicodes (character values) with glyphs, not the other way around. Every Unicode character available in the font associates to at least one single glyph. There may be more Unicodes than glyphs in a font (there is no law against associating more than one Unicode to a glyph -- for instance, both 'space' and 'non-breaking space' point to a single space glyph), and there may also be more glyphs than Unicodes (the 'ffi' glyph has a Unicode value -- now considered an early error in the Unicode definition! -- but the 'Th' glyph does not). Most programs only allow Unicode characters in text.

  • How to know the Special character?

    I am using Release 10.2.0.1.0 version of oracle. I am getting a special character, but i suspect it as any other language caharacter.
    Its appearing in my 'TOAD editor/Sql prompt editor' as 'A?'. but when i am selecting it from the table using below query, its giving 'No rows Returned'.
    select id from tab1 where id like 'A%';
    Please let me know, how can i be able to see the exact character or which editor will enable me to see the character?
    I think sql developer GUI might be able to show the same but i dont have sql developer with me.

    930254 wrote:
    I am using Release 10.2.0.1.0 version of oracle. I am getting a special character, but i suspect it as any other language caharacter.
    Its appearing in my 'TOAD editor/Sql prompt editor' as 'A?'. but when i am selecting it from the table using below query, its giving 'No rows Returned'.
    select id from tab1 where id like 'A%';
    Please let me know, how can i be able to see the exact character or which editor will enable me to see the character?
    I think sql developer GUI might be able to show the same but i dont have sql developer with me.select ASCIISTR(id) from tab1 where id like 'A%';

  • How to find the selection character is xml tag or not?(CS2-js)

    I have a xml tagged indesign document, when i select a tag in paragraph i cant able to find it as xml tag, it only shows me the character contents as small box, is there any way to find the selected item is xml tag or not ?
    thanks
    subha

    I have a xml tagged indesign document, when i select a tag in paragraph i cant able to find it as xml tag, it only shows me the character contents as small box, is there any way to find the selected item is xml tag or not ?
    thanks
    subha

  • How doI find a special character not listed in 'Special Characters?'

    Hi There
    I am trying to type the letter a with both a macron and an acute. I can find the o equivalent, but that's not helping me to write laudatis correctly!!
    Thank you
    Eve
    P.S.  I have tried going into system settings and looking for international (as I saw something somewhere else!) - I can't see international either!

    Esme The Rat wrote:
    I had the UK one switched on as well.. it appears that needs to be switched off
    You just need to select the right keyboard in the "flag" menu.
    Here is a picture to show you the box to check for Show Input Menu in Menu Bar, plus a picture of the "flag" menu where you select which keyboard you want to use.

Maybe you are looking for

  • [SOLVED] Problem with second SATA drive

    My laptop has two hard drive bays, and just recently I added a second SATA drive (moved it from my old laptop) to the extra bay. Now, anytime the second hard drive /dev/sdb has any heavy disk activity, it appears to cause a shutdown of the SATA port

  • SCCM App-V 5 packages to terminal server/Windows 7/Windows 10 design

     Hi, I would appreciate your input on a design question on App-V 5 on SCCM 2012 R2. Where we are: We have Terminal Servers running with App-V 4.6 Clients for some years. The users on these Terminal Servers could only receive the App-v 4.6 packages (s

  • Epson USB or USB not appearing as an option in Printer Set Up Utility

    I am trying to get my Epson Stylus RX510 (RX500 outside Australia) multi function printer to work with my MacBook Pro. I have the latest, correct Intel drivers installed (3.0aEs and scanner software CSPC3_PCF_OSX_27w41). When I connect via USB and se

  • Strange behavior of HtmlPanelGrid.getChildren().clear();

    I have some problem, described in previous messages. Investigating it, I found some strange behavior, which I cannot understand. I builded a small application to isolate this strangeness. There are two pages, first and second. There are hyperlinks fr

  • Kernel panic during Leopard 10.5.3/4 net-installation

    Hi, We have built universal Leopard images on net-install server. I am getting kernel panic during net-installation of 10.5.3 and 10.5.4 images on old iMac bubble G4 machines. These images's net-installation works perfect on latest machines like G5,