Problem in special char

Hi,
my query is
select * from TABLENAME where COLUMN1 = ('LEAD:ACCEPT')
is working in developer, but not working in APEX.
is not considering ':' ,showing no data found.
i used upper, like all related things.
pls tell me the solution for this. Is Urgent.
thanks advance ,

The query syntax is not correct. if you are using "=", there is no need for parentheses.
You can also modify your query and try this:
SELECT *
FROM TABLENAME
WHERE COLUMN1 LIKE 'LEAD'||':'||'ACCEPT'"=" will work only if column1 is exactly same as the right-hand side. Otherwise, you could try using upper() function on both sides just to be safe.

Similar Messages

  • Problem with special chars in BLOB datatype using contains keyword

    Facing problem, when part searching with special chars in BLOB datatype. It is considering the non alpha-numeric chars as a separtor in a provided string
    EX:
    SELECT *
    FROM RESUME_TEST P,grst_candidate d
    WHERE d.candidate_id = p.candidate_id
    AND CONTAINS(P.CAND_RESUME,'%VB.NET%',1) > 0
    Strings: , VB.NET , PL/SQL AS/400 , C etc..
    Followed the below approaches
    1) created a table:
    Syntax: create table resume_Test(cand_id number(10),cand_resume blob);
    2) inserted the values into this table upto 60,000
    3) created a context index
    3.1 created preferences
    Syntax:
    BEGIN
    ctx_ddl.create_preference('try_lexer3','BASIC_LEXER');
    ctx_ddl.set_attribute('try_lexer3','printjoins','-_~!@#$%^&*(){}[],=?\;|><.+');
    END;
    3.2 created context index
    Syntax:
    CREATE INDEX CANDRESUME_CTX_IDX ON resume_test (cand_resume)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS ('LEXER try_lexer3 memory 500M');
    4) while executing this index, it is taking much time approx 6 hrs(plz explain why it is taking time)
    5) Problems:
    5.1 when searching with string(VB.NET , PL/SQL AS/400 , C etc..) it is considering the special char as a separator
    5.2 used escape char (\) also, but no effect
    5.3 when searching with single char, it is giving error (ORA-29902,ORA-20000,DRG-51030)
    5.4 getting the above error with wild card chars (& ,_, (),{},[])
    So, please explain the clear scenarios, why am getting this error , and how to get the proper results.

    Have you tried adding the / char to the printjoin characters?
    Indexing can take a lot of time, depending on the amount of data and your machine's power. You could try to parallelize the index creation and / or assign more memory
    CREATE INDEX CANDRESUME_CTX_IDX ON resume_test (cand_resume)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS ('LEXER try_lexer3 memory 2000M') PARALLEL 8;

  • SLM2048 - Password problems with special chars

    Hi all,
    We´ve got a SLM2048 in use  (most current FW) and I wanted to apply our new password standards  onto that switch. So I changed the password of the user admin and used  special chars, which were =&!= and clicked update and save changes. I  now know, that I should have been using only alphanumerical characters,  but why is there no routine that checks the PW for conformance, before  writing it onto the switch.
    Problem now is, that I am unable to login and  don´t want to do a hard reset, because the configuration would be lost. I  know there should have been a rescue admin user, but there is none.  What can I do now? Any chance that a cisco engineer could get in contact  with me to debug the entered password in the lab and who could then  tell me what was saved to ROM or how I can login again?
    Thanks,
    Philip

    If your switch has a console port, you can try this:
    http://www.opendreams.net/jesse/doc/linksys_srw_switch_password_recovery.txt
    http://www.cisco.com/en/US/products/ps9967/products_qanda_item09186a0080a36735.shtml
    HTH,
    Andrew Lissitz

  • PI SOAP Sender Problem Sending Special Chars '  "  &

    Hello Experts
    We are sending Customer Invoice, Accounting and Delivery data IDOCs via XML to a SOAP receiver channel webservice. The data contains some special characters (which should not be present in XML data) as indicated in the following paragraph:
    Note: - quote ("), apostrophe ('), ampersand (&), less than (<), greater than (>) are special characters in XML. They should not be present in data per W3.org standards. http://www.w3.org/TR/REC-xml/
    The Webservice requires specific strings containing the special characters which exist in some of the Material Descriptions of the Customer Data. This is to be processed by Stored Procedures which cannot process them unless the special characters are formatted as the following examples show:
    Examples:
    &amp;&apos;     (Translates to &' )
    &amp;&quot;     (Translates to &" )
    I have created a UDF (shown below the signature) which creates some promising output in the Message Mapping test, however once it reaches the Payload it "converts" and although I have tried various combinations, the closest I have been able to get is shown below. :
    &amp;amp;apos;
    &amp;&amp;apos;           
    It seems that because of the embedded conversion PI performs it may not be possible to send the desired strings as shown in the Example above.
    In addition, the required (or ideal) solution should not operate on a field basis but on the entire Payload and would not apply the conversion to the XML tags, but to the data portion of the Payload only.
    I am wondering if any of you experts have run in to a similar requirement and what you may have done to solve it? I am hoping that perhaps I may have missed something obvious, such as a character combination that does the trick.
    (Some comments I have heard so far is this is better done on the ECC or on the Webservice side, feedback on this would also be valuable, Thanks)
    Thanks in advance for your knowledgeable and valued feedback.
    Jim
    QuestRoi.com
    UDF:
    String Change_Var = var1;
    if (Change_Var.contains("'") || Change_Var.contains("\""))
    Change_Var = Change_Var.replaceAll("'", "&&apos;");
    //Change_Var = Change_Var.replaceAll(" &amp;apos; ", " \\\\&amp;apos; ");
    Change_Var = Change_Var.replaceAll("\"", "&&quot;");
    //Change_Var = Change_Var.replaceAll(" &amp;quot; ", " \\\\&amp;quot; ");
    return Change_Var;

    Hello John
    Sorry, I misread your original question.
    If PI is delivering
         &amp;&amp;apos;
    then the text before escaping was
         &&apos;
    If you are sending
    then the data should be escaped as
         &amp;&apos;
    and PI should escape again to
         &amp;amp;&amp;apos;
    There is an example of XML escaping on StackOverflow :
    http://stackoverflow.com/questions/439298/best-way-to-encode-text-data-for-xml-in-java
    You could put that in a UDF and use it on all XML data elements that require escaping. I would expect PI to escape the result correctly.
    Kind regards
    Steve

  • How can I Retrieve special chars from a HTTP Request??

    Hi,
    I want to retrieve special chars from a request
    Chars like accents used in spanish languages or symbols?
    Is there any way to do it
    Thanks in advance
    Alejandro Arredondo

    This is my problem
    For example:
    This is my form:
    <form>
    <input type="text" name="test">
    </form>
    I do write a char on the text area. Something like "?" or "?"
    or some words with accents
    When I retrieve the value with
    String value = request.getParameter("test");
    and print it
    out.println("TEST= " + test);
    It prints another symbol that isn't the one I sent in my form.
    why?
    Thanks

  • Problems with special characters in InputStream or XPath

    Hello everyone,
    I am having problems with special characters such as ", ', - and so on, everything becomes ? (questionmark). (Not with special nordic characthers (å,æ,ø) though.)
    The encoding of the XML is UTF-8, and the server that holds the webservice is setting encoding to UTF-8 also, so no conflict there.
    What I have done is something like this:
    {code}
    String url = "http://www.formula1.com/rss/news/latest.rss"; // This is not the feed I use, it is a custom XML document
    InputSource is = new InputSource(url);
    DocumentBuilderFactory fct = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = fct.newDocumentBuilder();
    Document doc = builder.parse(is);
    Element rootElement = doc.getDocumentElement();
    XPathFactory factory = XPathFactory.newInstance();
    XPath xPath = factory.newXPath();
    out.print(xPath.evaluate("/rss/channel/title", rootElement)); // The xml is not a RSS feed, this is just an example.
    {code}
    Please let me know what I am doing wrong, or give me a hint of how to solve this in another way.
    Best regards,
    G.Hansen
    Edited by: G.Hansen on Mar 24, 2009 2:39 AM

    Hello, thanks for you reply. I had to rewrite your code a little, and I think that your code would not really compile, if you tried yourself :-)
    I ended up with something like this:
    our environment is running in 1.4 mode, so I could not use the for-each loop :-(
    public String printEntities(String s) {
         char[] sArray = s.toCharArray();
         StringBuffer sb = new StringBuffer();
           for (int i = 0; i < sArray.length; i++) {
             if (sArray[i] > 256)
                  sb.append("&#x" + Integer.toHexString(sArray) + ";");
         } else
              sb.append(sArray[i]);
         return sb.toString();

  • Problem with special characters! Need a big help!

    Hello!
    Please be patient with me. English is not my main language.
    I have a big problem with my countries special chars.
    Our spec. chrs are á,é,í,ó,ö,ő,ú,ü,ű
    When I save a document every other characters (even other special chars) are okey, but ő and ű will be o and u after saving my document.
    This is really annoy me. I've read a lot of forums in my country, but I can't find any solution.
    When I go to "Edit > Preferences > Fonts" and no document is open, Font Settings: Unicode
    If I change this, and I reopen this window it will be on Unicode again. I can't change it.
    When I go to "Edit > Preferences > Fonts" and my documents are open, Font Settings: "Nyugat-európai" (means Western European)
    If I change this, and I reopen this window it will be "Nyugat-európai" (Western European) again. I can't change it.
    It should be: "Közép-Európai" (means Central European) but every time I change it, it reverts to this defaults.
    Please help me!
    I have to reopen every file in Notepad and rewrite the ő,ű chars.
    Thanks,
    Averin Kilian

    Ok, solved:
    From, DW do Edit | Preferences | New Document and set the Default Encoding to
    whatever you wish it to be.  That will set the default for all new
    documents in Dreamweaver.
    For the existing pages, you will need to open them and do Modify | Page Properties | Title/Encoding to set the encoding as you desire.

  • Sql loader special char loading in table

    Hi all,
    I am using oracle 10g with UNIX.
    I have a .csv file transferred from windows to UNIX. I check the control M char and remove them
    using dos2unix command.
    The special char name are fine in UNIX for eg as below when check the .csv file after trnasfered
    Oulu
    Jääli
    HaukipudasI use SQL LOADER to load into database a temp table. as below control file
    OPTIONS (SKIP=1)
    LOAD DATA CHARACTERSET UTF8
    INSERT INTO TABLE temp_pa_load
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY  '"' TRAILING NULLCOLS
    (id_id,
    name)
    {code}
    The fields id is map to id and name is map to name in temp table
    when check in temp table after sql loader is executed i get incorrect name
    actual name in .csv file   Jääli
    temp table name    J�i
    the rest names and id are correct but only for special char there is problem
    the size of name column in temp table is 100 varchar2
    I also tried to specify char(100) in control file but it didn;t work
    could some one pls advice me.
    thanks in advance
    Saaz Ena                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Pl post the characterset of the database, along with a description of the table.
    HTH
    Srini

  • Handling special char in the HTTP-RFC ?

    Hi Guys,
    I have configured a HTTP-RFC and the interface is failing whenevr we have special char from the source xml. we have especially "&" sign, is there any way we handle special char in XI for the HTTP-RFC scenario.
    any help would be appreciated
    Thanks,
    srini

    Hi Hemant,
    source i have a 3rd party system from where we are doing HTTP-post and it is generating xmls. we have names like Robert&Robert then we are having problems.
    when we remove this & it is going through fine. I want to know how can we handle this in XI or do we need to remove that one from the third party system itself
    Thanks,
    srini

  • Handling special char at BizTalk end?

    I am receiving message as flat file which may contain special char like <> ' "....... etc
    Can any one tell me how can i handle it at BizTalk end.
    If i am converting it into xml due to data, it is not a valid xml.
    <FirstName> <John miller</FirstName>
    And single quotes ' can create problem in sql query .
    Can any one let me know how could i handle it.

    Hi Phill,
    Let’s be clear when you mean by “special character” in flat-file schema.
    If the special character which your referring are not the delimiters used in your schema or any escape characters (about escape characters I’ll refer later), then as la
    Cour said, XML shall handle them without any issues. If you have these characters, as you highlighted, you will have XML file/element like “<FirstName>
    <John miller</FirstName>”. It’s still a valid XML file.
    But if you don’t want this characters to be saved into SQL database i.e for the above XML element if don’t want the character “<” saved along with “John
    miller” as “<John miller”, then you need to have a custom pipeline component to remove those characters.
    Escape character:
    If you know that a character which could come in an element, then you can use “Escape Character” property for the element where you can specify the character you want to
    ignore. i.e of you expect character “<” to come with FirstName element, then you can specify the escape character property as “<” in the “FirstName” element.
    More special character to ignore:
    As said XML can parse these characters without issue. But if you don’t want to send those characters to your destination system (SQL), then after parsing the flat-file into
    XML, use a custom pipeline component to replace all the special character from the parsed XML.
    Following article discuss about this concept:
    How
    to remove invalid character in incoming XML message using custom pipeline component
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Special Char disappear after the JMS Adpater

    Hi all,
    I have a problem and nees help because I don't know the solution.
    We send a flat Idoc via a JMS Adapter from XI to a Websphere Queue.
    The flat Idocs have special chars like "ø", "ö", "ä"...
    Unforunately in the message on the queue (after the JMS adapter) we miss this chars and one char behind the special char. They are away.
    In XI I can see that the char are there.
    So I think the that JMS adapter removes this files.
    Can you help me please? What do I need to change in the JMS adapter?
    Thanks and regards
    Manuela

    sounds like an encoding problem. Seems there is a way to change the encoding at the JMS receiver side.
    Have a look at this thread : Re: Change encoding from utf-8 to iso-8859-1 in JMS receiver!

  • Special Char are not allowing

    Hi all,
    here i am facing the problem while activating the DSO...
    the error was Value " ºu0152Öݱ±u0178©CA1715" from characteristic 0ALLOC_NMBR contains an error
    we have given in RSKC --> ALL_CAPITAL_PLUS_HEX and ALL_CAPITAL also     
    this 0ALLOC_NMBR  is 1 to 1 in mapping transformations...
    Thanks In advance

    Hi all,
    Thank you for all your replies...
    But i need those spcial char's  in the CUBE ,because my Customer wants to see those values in the report level...
    If i select thaose special  char and put it in RSKC..my problem will not resolve...because like that we have somany for example :
    Ë°ÎñŽúÀí·Ñ       
    u0153áת±u0178Ô³ö¿Ú12%Ë°
    u0153áת±u0178ÔÂÏúÏîË°u0153ð 
    u0153áת±u0178ÔÂÏúÏîË°u0153ð 
    ºu0152²£ÍÁµØʹÓ÷Ѡ  
    ŽÖÉŽÊֲᲹ˰     
    ¹úÄÚÔËÊä±£·Ñ     
    Ôu20ACÌá¹úÄÚÔË·Ñ     
    u0152ÆÌá±u0178Ô³ö¿ÚÔË·Ñ 
    ÍÁµØʹÓÃË°       
    u0152u0152Êõ·þÎñ·Ñ   PL  
    09.1.1-6.30ѧ·Ñ  
    help me out...
    Thanks in advance...

  • Attachment having Umlaut or special chars are shown as =2Epdf?=

    Very often I receive Mails containing attachments that look like this:
    =?utf-8?Q?Assetplanung_=E2=80=9ECelebrity-2007-09=E2=80=9C=2Epdf?=
    They all have in common that the names of the attachment contain umlauts like ÖÄÜ or special chars like ".
    Every other mail client I tried, like entourage, thunderbird, our kerio webmail applicaton shows the attachment in the right way, but mail fails miserably.
    It does not matter to send the mail as a windows attachment or to choose any other format like plain text or so.
    As I have learned this problem has nothing to do with html formatting but is caused by something called quoted-printable...
    Any help for this one anywhere?
    regards
    Oliver

    As noone seems to have a clue, I try to solve it on my own.
    The current mailversion is lame and poor and is the cause for this problem.
    The following things have to come together to reproduce this problem.
    A mail needs an attachment its name must contain special chars like äöü or something like " and its name must exceed 32 letters including its file extension.
    Bang, you receive a mail with a garbeld attachments like mentioned in the message above.
    The 10.5 Mailversion seems to be fixed, all previous versions contain this bug. Entourage does not have it, Thunderbird does not have it, not one serious mail application has this bug. Please note this: I mentioned Entourage and serious in one sentence... But even this app is better..
    regards
    Oliver

  • Connection String Special char

    Hello,
    I have a problem with databasenames with special characters in the name:
    (My code works when there is not a special char in the name)
    For example, when my connectionstring would be:  jdbc:sybase:Tds:localhost:2638?ServiceName=BANDENM&W
    I get a java.sql.SQLException: JZ00L: Login failed.  Examine the SQLWarnings chained to this exception for the reason(s). at line 3 while my pasw and login are correct.
    Class.forName("com.sybase.jdbc3.jdbc.SybDriver");
      String connectionString = "jdbc:sybase:Tds:" + config.getHost() + ":" + config.getPort() + "?ServiceName=" + databaseName;
      Connection connection2  = DriverManager.getConnection(connectionString, config.getUser(), config.getPassword());
      //get VC client customer info
      statement = connection2.createStatement();
      resultSet2 = statement.executeQuery("SELECT CNR_SUPP,CNR_CUST,TNR_ID,NM_ID,CNR_VAT_ID,NM_FILTER_ID,CNR_ZIP_ID,CNR_VATCNTRY_ID,NM_TOWN_ID,TOP_COUNTRY.CNR_INTRASTAT FROM TOP_IDENTITY JOIN TOP_COUNTRY ON (TOP_IDENTITY.COD_CNTRY_ID = TOP_COUNTRY.COD_CNTRY)");
    When I add double quotes around the databaseName, I get to line 8 but then I get an error:
    com.sybase.jdbc3.jdbc.SybSQLException: ASA Error -141: Table 'TOP_IDENTITY' not found
    But the table is again, definitely there ...
    I've tried escaping it by replacing & with &amp;
    But no luck.

    1) What version and build are you running for jConnect and SQL Anywhere?
    I’ve used jconn2 and jconn3, for the moment I’m using 3
    SQL Anywhere = 9.0.2.3198 on my developer system
    2) Can you post the output from dbinfo for the database that you testing?
    I'm assuming you mean this:
    Adaptive Server Anywhere Database Engine Version 9.0.2.3198
    Copyright © 1989-2004 Sybase, Inc.
    Portions Copyright © 2002-2004, iAnywhere Solutions, Inc.
    All rights reserved. All unpublished rights reserved.
    This software contains confidential and trade secret information of
    iAnywhere Solutions, Inc.
    Use, duplication or disclosure of the software and documentation
    by the U.S. Government is subject to restrictions set forth in a license
    agreement between the Government and iAnywhere Solutions, Inc. or
    other written agreement specifying the Government's rights to use the
    software and any applicable FAR provisions, for example, FAR 52.227-19.
    iAnywhere Solutions, Inc., One Sybase Drive, Dublin, CA 94568, USA
    4 logical processor(s) on 1 physical processor(s) detected.
    Running on Windows NT 6.1 Build 7601 Service Pack 1
    21688K of memory used for caching
    Minimum cache size: 2048K, maximum cache size: 262144K
    Using a maximum page size of 8192 bytes
    Database server started at Wed Aug 27 2014 14:18
    Trying to start SharedMemory link ...
        SharedMemory link started successfully
    Trying to start NamedPipes link ...
        NamedPipes link started successfully
    Trying to start TDS (TCPIP) link ...
    Starting on port 2638
        TDS (TCPIP) link started successfully
    Now accepting requests
    Starting database "TOPADMINSA9" (W:\TOP\DATA\TOPADMINSA9.db) at Wed Aug 27 2014 14:18
    Transaction log: TOPADMINSA9.log
    Starting checkpoint of "TOPADMINSA9" (TOPADMINSA9.db) at Wed Aug 27 2014 14:18
    Finished checkpoint of "TOPADMINSA9" (TOPADMINSA9.db) at Wed Aug 27 2014 14:18
    Database "TOPADMINSA9" (TOPADMINSA9.db) started at Wed Aug 27 2014 14:18
    Starting database "3051" (w:\TOP\DATA\3051\3051.DB) at Wed Aug 27 2014 14:18
    Starting checkpoint of "3051" (3051.DB) at Wed Aug 27 2014 14:18
    Finished checkpoint of "3051" (3051.DB) at Wed Aug 27 2014 14:18
    Database "3051" (3051.DB) started at Wed Aug 27 2014 14:18
    Starting database "BANDENM&W" (w:\TOP\DATA\BANDENM&W\BANDENM&W.DB) at Wed Aug 27 2014 14:19
    Database "3051" (3051.DB) stopped at Wed Aug 27 2014 14:19
    Starting checkpoint of "BANDENM&W" (BANDENM&W.DB) at Wed Aug 27 2014 14:19
    Finished checkpoint of "BANDENM&W" (BANDENM&W.DB) at Wed Aug 27 2014 14:19
    Database "BANDENM&W" (BANDENM&W.DB) started at Wed Aug 27 2014 14:19
    Starting database "BRAL" (w:\TOP\DATA\BRAL\BRAL.DB) at Wed Aug 27 2014 14:19
    Transaction log: w:\TOP\DATA\BRAL\BRAL.log
    Starting checkpoint of "BRAL" (BRAL.DB) at Wed Aug 27 2014 14:19
    Finished checkpoint of "BRAL" (BRAL.DB) at Wed Aug 27 2014 14:19
    Database "BRAL" (BRAL.DB) started at Wed Aug 27 2014 14:19
    Starting checkpoint of "BRAL" (BRAL.DB) at Wed Aug 27 2014 14:19
    Finished checkpoint of "BRAL" (BRAL.DB) at Wed Aug 27 2014 14:19
    Database "BRAL" (BRAL.DB) stopped at Wed Aug 27 2014 14:19
    Starting database "HARKELIJN" (w:\TOP\DATA\HARKELIJN\HARKELIJN.DB) at Wed Aug 27 2014 14:19
    Transaction log: w:\TOP\DATA\HARKELIJN\HARKELIJN.log
    Starting checkpoint of "HARKELIJN" (HARKELIJN.DB) at Wed Aug 27 2014 14:19
    Finished checkpoint of "HARKELIJN" (HARKELIJN.DB) at Wed Aug 27 2014 14:19
    Database "HARKELIJN" (HARKELIJN.DB) started at Wed Aug 27 2014 14:19
    Starting checkpoint of "HARKELIJN" (HARKELIJN.DB) at Wed Aug 27 2014 14:19
    Finished checkpoint of "HARKELIJN" (HARKELIJN.DB) at Wed Aug 27 2014 14:19
    Starting database "BURO56" (w:\TOP\DATA\BURO56\BURO56.DB) at Wed Aug 27 2014 14:19
    Database "HARKELIJN" (HARKELIJN.DB) stopped at Wed Aug 27 2014 14:19
    Transaction log: w:\TOP\DATA\BURO56\BURO56.log
    Starting checkpoint of "BURO56" (BURO56.DB) at Wed Aug 27 2014 14:19
    Finished checkpoint of "BURO56" (BURO56.DB) at Wed Aug 27 2014 14:19
    Database "BURO56" (BURO56.DB) started at Wed Aug 27 2014 14:19
    Starting checkpoint of "BURO56" (BURO56.DB) at Wed Aug 27 2014 14:19
    Finished checkpoint of "BURO56" (BURO56.DB) at Wed Aug 27 2014 14:19
    Database "BURO56" (BURO56.DB) stopped at Wed Aug 27 2014 14:19
    Starting database "ENOZEN" (w:\TOP\DATA\ENOZEN\ENOZEN.DB) at Wed Aug 27 2014 14:19
    Transaction log: w:\TOP\DATA\ENOZEN\ENOZEN.log
    Starting checkpoint of "ENOZEN" (ENOZEN.DB) at Wed Aug 27 2014 14:19
    Finished checkpoint of "ENOZEN" (ENOZEN.DB) at Wed Aug 27 2014 14:19
    Database "ENOZEN" (ENOZEN.DB) started at Wed Aug 27 2014 14:19
    Starting checkpoint of "ENOZEN" (ENOZEN.DB) at Wed Aug 27 2014 14:19
    Finished checkpoint of "ENOZEN" (ENOZEN.DB) at Wed Aug 27 2014 14:19
    Database "ENOZEN" (ENOZEN.DB) stopped at Wed Aug 27 2014 14:19
    Starting database "ENOCONBVBA" (W:\TOP\DATA\ENOCONBVBA\ENOCONBVBA.DB) at Wed Aug 27 2014 14:19
    Transaction log: W:\TOP\DATA\ENOCONBVBA\ENOCONBVBA.LOG
    Starting checkpoint of "ENOCONBVBA" (ENOCONBVBA.DB) at Wed Aug 27 2014 14:19
    Finished checkpoint of "ENOCONBVBA" (ENOCONBVBA.DB) at Wed Aug 27 2014 14:19
    Database "ENOCONBVBA" (ENOCONBVBA.DB) started at Wed Aug 27 2014 14:19
    Starting checkpoint of "ENOCONBVBA" (ENOCONBVBA.DB) at Wed Aug 27 2014 14:19
    Finished checkpoint of "ENOCONBVBA" (ENOCONBVBA.DB) at Wed Aug 27 2014 14:19
    Database "ENOCONBVBA" (ENOCONBVBA.DB) stopped at Wed Aug 27 2014 14:19
    3) Can you run the following queries within the application that you are seeing this behavior and provide the results:
      Q1:
         select  user_name,  table_name
              from  systable join sysuser
         where
               table_name in ('TOP_IDENTITY','TOP_COUNTRY')
    27-08-14 14:23:30 [ERROR] TechLogger -  -> com.sybase.jdbc3.jdbc.SybSQLException: ASA Error -141: Table 'sysuser' not found
    Q2:
         select current user from dummy;
    resultSet2.getString("current user")" = DBA

  • Spliting a large string using regular expression which contain special char

    I have huge sting(xml) containing normal character a-z,A-Z and 0-9 as well as special char( <,>,?,&,',",;,/ etc.)
    I need to split this sting where it ends with </document>
    for e.g.
    Original String:
    <document>
    <item>sdf</item>
    <item><text>sd</text</item>
    </document>
    <document>hi</document>
    The above sting has to be splited in to two parts since it is having two document tag.
    Can any body help me to resolve this issue. I can use StringTokenizer,String split method or Regular expression api too.

    manas589 wrote:
    I used DOM and sax parser and got few exception. Again i don't have right to change xml. so i thought to go with RegularExpression or some other way where i can do my job.If the file actually comes in lines like what you posted, you should just be able to compare the contents of each line to see if it contains "</document>" or whatever you're looking for. I wouldn't use regex unless I needed another problem.
    I got excpetion like: Caused by: org.xml.sax.SAXParseException: The entity "nbsp" was referenced, but not declared.
         at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
         at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)So then it isn't even XML.
    Edit: sorry, I just realized why you're considering all of these heavy-duty ideas. It's just that you don't know how to break the string into lines. You do it like this:
    BufferedReader  br = new BufferedReader(new StringReader(theNotXMLString));

Maybe you are looking for