Searching within clob columns

I have two tables
client_captions (which contains a varchar2 column called captions)
clients (which contains a clob column called client)
I'd like to know how many clients have any of the client captions within their clients data (which is a clob column).
Could you provide the code to figure this out.
E.g,
select * from clients where instr(client,:caption) > 0
where :caption would come from
select caption from client_captions
Could you help me by providing me with the code?
Thanks

Since 9i LIKE works too:
SQL> create table t1 (clob_data clob);
Table created.
SQL> insert into t1 values('shdgshdgsjadgsahdkjahsdjkhjksadhjksadhakjhSMITHhagjhsgajs');
1 row created.
SQL> insert into t1 values('843984365984365437896543789564389756439875643985ALLAN8798435 45439857439
8574');
1 row created.
SQL> insert into t1 values('84398436598436543789654378956438975643987564398WARD475984375');
1 row created.
SQL> select substr(clob_data,1,10) from
  2  t1 where exists (select 1 from emp where t1.clob_data like '%'||emp.ename||'%');
SUBSTR(CLOB_DATA,1,10)
shdgshdgsj
8439843659Rgds.

Similar Messages

  • Search a CLOB column(contains XML) in Oracle table

    Hi,
    I need help on how will i be able to search the data in a clob column that contains XML in an ORACLE table.
    Thanks,
    PSS

    We are using 10g.. and database in which the table is located.. i just have a read only access .. so i am pulling all the data into a flat file (im using a shell script) and from there on i need to process the data... and my problem is how to pull the data in the CLOB using sql or whichever way.. if you can explain me with an example i would really appreciate it...
    Thanks,
    PSS

  • Contains clause in Interactive report search of a clob column

    Hi,
    I am using APEX Version 4.2.4.00.08
    How can an interactive Report use the contains clause when searching a clob column so that it uses the CONTEXT index?
    Thanks
    Chandra.

    I wrote it into the SQL used for the IR
    I created an APEX application that stores all of our IT's HOWTO documents. (word,excel,pdf)
    ctx_doc.snippet creates HTML code.
    select D.doc_id
      ,D.doc_filename
      ,dbms_lob.getLength( D.doc_blob ) as download
      ,decode( :P12_SEARCH, null, '-- nothing --',
             ctx_doc.snippet( 'IT_DATA.DOC_CTX_IX' -- my Oracle Text index name
                                 , D.doc_id, :P12_SEARCH )
       as snippet
    from it_data.documents D
    where :P12_SEARCH is null
    or contains( D.doc_blob, :P12_SEARCH ) > 0
    MK

  • Searching CLOB column of XML documents with leading wildcard - Performance

    Hi, our table has a text indexed CLOB column of XML documents and when performing a search with a leading wild card, we never retrieve any results.
    The query looks like this:
    select id from <table> where contains(columnname, '(%12345)') > 0;
    I cant even generate an explain plan from this query. I killed it after 39 minutes.
    If the query changes to:
    select id from <table> where contains(columnname, '(12345%)') > 0;
    I get an explain plan immediately with a cost=2 and when I execute the query, I get results in less than a second.
    I'd appreciate any thoughts of what I should check or what the problem might be.
    Thanks! Doug

    Can you provide a script that reproduces the case. I am unable to reproduce the problem with just some small sample data, as shown below. That means that there is nothing wrong with the syntax, but you may be having problems due to the size of your data or other parameters that have not been mentioned.
    SCOTT@10gXE> CREATE TABLE your_table (id NUMBER, columnname CLOB)
      2  /
    Table created.
    SCOTT@10gXE> insert into your_table
      2  select 1, dbms_xmlgen.getxml
      3             ('select deptno, dname,
      4                   cursor (select empno, ename
      5                        from      emp
      6                        where  emp.deptno = dept.deptno ) employee
      7               from   dept
      8               where  deptno = 10')
      9  from   dual
    10  /
    1 row created.
    SCOTT@10gXE> SELECT * FROM your_table
      2  /
            ID COLUMNNAME
             1 <?xml version="1.0"?>
               <ROWSET>
                <ROW>
                 <DEPTNO>10</DEPTNO>
                 <DNAME>ACCOUNTING</DNAME>
                 <EMPLOYEE>
                  <EMPLOYEE_ROW>
                   <EMPNO>7782</EMPNO>
                   <ENAME>CLARK</ENAME>
                  </EMPLOYEE_ROW>
                  <EMPLOYEE_ROW>
                   <EMPNO>7839</EMPNO>
                   <ENAME>KING</ENAME>
                  </EMPLOYEE_ROW>
                  <EMPLOYEE_ROW>
                   <EMPNO>7934</EMPNO>
                   <ENAME>MILLER</ENAME>
                  </EMPLOYEE_ROW>
                 </EMPLOYEE>
                </ROW>
               </ROWSET>
    SCOTT@10gXE> CREATE INDEX your_idx ON your_table (columnname)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  /
    Index created.
    SCOTT@10gXE> EXEC DBMS_STATS.GATHER_TABLE_STATS ('SCOTT', 'YOUR_TABLE')
    PL/SQL procedure successfully completed.
    SCOTT@10gXE> SET AUTOTRACE ON EXPLAIN
    SCOTT@10gXE> select id from your_table where contains (columnname, '(%839)') > 0
      2  /
            ID
             1
    Execution Plan
    Plan hash value: 2832585188
    | Id  | Operation                   | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |            |     1 |   888 |     0   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| YOUR_TABLE |     1 |   888 |     0   (0)| 00:00:01 |
    |*  2 |   DOMAIN INDEX              | YOUR_IDX   |       |       |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("CTXSYS"."CONTAINS"("COLUMNNAME",'(%839)')>0)
    SCOTT@10gXE> SET AUTOTRACE OFF

  • How to store XML and search within tags

    My question
    ===========
    exactly what steps do you need follow to take an XML doc, store
    it, and query based on a tag value.
    The 8i Intermedia text option Reference refers to
    XLM_SECTION_GROUP feature. However, no examples are given. There
    is no user guide.
    I searched Oracle's website and found one reference to
    XML_SECTION_GROUP. The example given is a single row insert into
    a CLOB column with a single pair of tags.
    This whitepaper gives an example of an XML doc, and a query on
    it:
    XML Support in Oracle8i and Beyond
    November 9, 1998
    It doesn't list the steps in between storing the doc and quering
    it. This is crucial to the whole thing: does XML_SECTION_GROUP
    allow all nested tags below the top level to be sectioned and
    indexed implicitly? Or do you need to tell Oracle about all the
    tags you are interested in, in which case what value is added by
    the XLM_SECTION_GROUP?
    Does Oracle have some better examples on this?
    Below is text cut and pasted from the whitepaper.
    -----------x---------
    Figure 5: InsuranceClaim Mixes Structured Data and Text
    <?xml version="1.0"?>
    <InsuranceClaim>
    <ClaimID>12345</ClaimID>
    <LossCategory>7</LossCategory>
    <Settlements>
    <Payment>
    <Payee>Borden Real Estate</Payee>
    <Date>12-OCT-1998</Date>
    <Amount>200000</Amount>
    <Approver>JCOX</Approver>
    </Payment>
    </Settlements>
    <DamageReport>
    A massive <Cause>Fire</Cause> ravaged the building
    and
    <Casualties>12</Casualties> people were killed.
    Early
    FBI reports indicate that <Motive>arson</Motive> is
    suspected.
    </DamageReport>
    </InsuranceClaim>
    Once instances of iFS file types (including XML-based ones) are
    stored in the database, their
    content can be searched using standard SQL queries, and these
    files can be organized, browsed,
    and versioned using familiar tools like the Windows Explorer.
    So an insurance agent sees a
    directory of InsuranceClaim files sheFs recently worked on in
    the field, while an
    InsuranceClaim-processing application developer can work with
    the information in the
    InsuranceClaim in any way he needs to.
    XML-Enabled "Section Searches" in ConText
    Any XML documents or document fragments saved into "text blobs"
    in the database can be
    enabled for indexing by Oracle8i InterMediaFs ConText
    text-search engine. ConText has been
    enhanced for Oracle8i to allow developers to pinpoint their
    searches to a particular section of a
    document, where sections are implicitly defined by the XML tags
    in the document (fragment).
    Since ConText is seamlessly integrated into the database and
    the SQL language, developers can
    use SQL to perform queries that involve both structured data
    and indexed document fragments.
    For example, Figure 6 shows the SQL statement you would write
    to search one million
    Insurance Claims in your database to answer the question, "How
    much money has Jim Cox
    approved to date in settlement payments for arson-related fire
    claims? "
    Figure 6: Searching on a Column & Text in XML
    Sections
    SELECT SUM(Amount)
    FROM Claim_Header ch,
    Claim_Settlements cs,
    Claim_Settlement_Payments csp
    WHERE csp.Approver = 'JCOX'
    AND CONTAINS (DamageReport, 'Arson WITHIN Motive') >
    0
    AND CONTAINS (DamageReport, 'Fire WITHIN Cause' ) >
    0
    AND . . . /* Join Clauses */
    null

    Geoff Ingram (guest) wrote:
    : My question
    : ===========
    : exactly what steps do you need follow to take an XML doc,
    store
    : it, and query based on a tag value.
    : The 8i Intermedia text option Reference refers to
    : XLM_SECTION_GROUP feature. However, no examples are given.
    There
    : is no user guide.
    : I searched Oracle's website and found one reference to
    : XML_SECTION_GROUP. The example given is a single row insert
    into
    : a CLOB column with a single pair of tags.
    : This whitepaper gives an example of an XML doc, and a query on
    : it:
    : XML Support in Oracle8i and Beyond
    : November 9, 1998
    : It doesn't list the steps in between storing the doc and
    quering
    : it. This is crucial to the whole thing: does XML_SECTION_GROUP
    : allow all nested tags below the top level to be sectioned and
    : indexed implicitly? Or do you need to tell Oracle about all
    the
    : tags you are interested in, in which case what value is added
    by
    : the XLM_SECTION_GROUP?
    : Does Oracle have some better examples on this?
    : Below is text cut and pasted from the whitepaper.
    : -----------x---------
    : Figure 5: InsuranceClaim Mixes Structured Data and Text
    : <?xml version="1.0"?>
    : <InsuranceClaim>
    : <ClaimID>12345</ClaimID>
    : <LossCategory>7</LossCategory>
    : <Settlements>
    : <Payment>
    : <Payee>Borden Real Estate</Payee>
    : <Date>12-OCT-1998</Date>
    : <Amount>200000</Amount>
    : <Approver>JCOX</Approver>
    : </Payment>
    : </Settlements>
    : <DamageReport>
    : A massive <Cause>Fire</Cause> ravaged the building
    : and
    : <Casualties>12</Casualties> people were killed.
    : Early
    : FBI reports indicate that <Motive>arson</Motive> is
    : suspected.
    : </DamageReport>
    : </InsuranceClaim>
    : Once instances of iFS file types (including XML-based ones)
    are
    : stored in the database, their
    : content can be searched using standard SQL queries, and
    these
    : files can be organized, browsed,
    : and versioned using familiar tools like the Windows
    Explorer.
    : So an insurance agent sees a
    : directory of InsuranceClaim files sheFs recently worked on
    in
    : the field, while an
    : InsuranceClaim-processing application developer can work
    with
    : the information in the
    : InsuranceClaim in any way he needs to.
    : XML-Enabled "Section Searches" in ConText
    : Any XML documents or document fragments saved into "text
    blobs"
    : in the database can be
    : enabled for indexing by Oracle8i InterMediaFs ConText
    : text-search engine. ConText has been
    : enhanced for Oracle8i to allow developers to pinpoint their
    : searches to a particular section of a
    : document, where sections are implicitly defined by the XML
    tags
    : in the document (fragment).
    : Since ConText is seamlessly integrated into the database and
    : the SQL language, developers can
    : use SQL to perform queries that involve both structured data
    : and indexed document fragments.
    : For example, Figure 6 shows the SQL statement you would
    write
    : to search one million
    : Insurance Claims in your database to answer the
    question, "How
    : much money has Jim Cox
    : approved to date in settlement payments for arson-related
    fire
    : claims? "
    : Figure 6: Searching on a Column & Text in XML
    : Sections
    : SELECT SUM(Amount)
    : FROM Claim_Header ch,
    : Claim_Settlements cs,
    : Claim_Settlement_Payments csp
    : WHERE csp.Approver = 'JCOX'
    : AND CONTAINS (DamageReport, 'Arson WITHIN Motive') >
    : 0
    : AND CONTAINS (DamageReport, 'Fire WITHIN Cause' ) >
    : 0
    : AND . . . /* Join Clauses */
    Currently you cannot break apart an arbitrary XML doc and store
    it into the database without using XSLT to create DDL to insert
    it. You can create a schema and have XML be read and written to
    it. Check out the XML SQL Utility available here for download.
    As for the section searching, in 8.1.5 you can only get section
    searching not hierarchical searches. interMedia in this version
    doesn't understand the XML structure. This will come in 8.1.6.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • Not able to display and search on CLOB attribute in default search screen

    Hi,
    My requirement:
    I have three VARCHAR attributes and 1 CLOB attribute. i need to search the values on these 4 attributes.
    Created View crieteria on these 4 attributes and created default ADF search screen. but not able to add the CLOB attribute as search attribute.
    is there any solution for this or we can't search on CLOB attribute.
    FYI: i have created Converter using ClobDomain and and using this converted for editing the CLOB data.
    If i try adding the CLOB attribute in view criteria with ClobDomain and not able to see that attribute on search panel.
    Please help on this.
    Thanks in advance!!
    Thanks & Reagrds,
    Madhu

    Madhu, please tell us your jdev version!
    The search is done on the DB (query) so the converter is not used. To search clob columns you can use special SQL statements called contains or catsearch. These are using special index to find the data in blob or clob columns.
    Check my blog on how to integrate this into VC: http://tompeez.wordpress.com/2011/08/21/extending-viewcriteria-to-use-sql-contains-4/
    Timo

  • How to read/write .CSV file into CLOB column in a table of Oracle 10g

    I have a requirement which is nothing but a table has two column
    create table emp_data (empid number, report clob)
    Here REPORT column is CLOB data type which used to load the data from the .csv file.
    The requirement here is
    1) How to load data from .CSV file into CLOB column along with empid using DBMS_lob utility
    2) How to read report columns which should return all the columns present in the .CSV file (dynamically because every csv file may have different number of columns) along with the primariy key empid).
    eg: empid report_field1 report_field2
    1 x y
    Any help would be appreciated.

    If I understand you right, you want each row in your table to contain an emp_id and the complete text of a multi-record .csv file.
    It's not clear how you relate emp_id to the appropriate file to be read. Is the emp_id stored in the csv file?
    To read the file, you can use functions from [UTL_FILE|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_file.htm#BABGGEDF] (as long as the file is in a directory accessible to the Oracle server):
    declare
        lt_report_clob CLOB;
        l_max_line_length integer := 1024;   -- set as high as the longest line in your file
        l_infile UTL_FILE.file_type;
        l_buffer varchar2(1024);
        l_emp_id report_table.emp_id%type := 123; -- not clear where emp_id comes from
        l_filename varchar2(200) := 'my_file_name.csv';   -- get this from somewhere
    begin
       -- open the file; we assume an Oracle directory has already been created
        l_infile := utl_file.fopen('CSV_DIRECTORY', l_filename, 'r', l_max_line_length);
        -- initialise the empty clob
        dbms_lob.createtemporary(lt_report_clob, TRUE, DBMS_LOB.session);
        loop
          begin
             utl_file.get_line(l_infile, l_buffer);
             dbms_lob.append(lt_report_clob, l_buffer);
          exception
             when no_data_found then
                 exit;
          end;
        end loop;
        insert into report_table (emp_id, report)
        values (l_emp_id, lt_report_clob);
        -- free the temporary lob
        dbms_lob.freetemporary(lt_report_clob);
       -- close the file
       UTL_FILE.fclose(l_infile);
    end;This simple line-by-line approach is easy to understand, and gives you an opportunity (if you want) to take each line in the file and transform it (for example, you could transform it into a nested table, or into XML). However it can be rather slow if there are many records in the csv file - the lob_append operation is not particularly efficient. I was able to improve the efficiency by caching the lines in a VARCHAR2 up to a maximum cache size, and only then appending to the LOB - see [three posts on my blog|http://preferisco.blogspot.com/search/label/lob].
    There is at least one other possibility:
    - you could use [DBMS_LOB.loadclobfromfile|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lob.htm#i998978]. I've not tried this before myself, but I think the procedure is described [here in the 9i docs|http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96591/adl12bfl.htm#879711]. This is likely to be faster than UTL_FILE (because it is all happening in the underlying DBMS_LOB package, possibly in a native way).
    That's all for now. I haven't yet answered your question on how to report data back out of the CLOB. I would like to know how you associate employees with files; what happens if there is > 1 file per employee, etc.
    HTH
    Regards Nigel
    Edited by: nthomas on Mar 2, 2009 11:22 AM - don't forget to fclose the file...

  • Extract specific value of a Clob column with multiple nodes,similar name

    Hi,
    There is a clob column in the table USER_DETAILS which hold the values similar to the one given below, i would like to form a query which should fetch the entire record where the age<30, as all the child nodes are with similar name i couldn't fetch it out using xmltype.extract. Also the order of the node values may change for eg. age may follow salary or age can be the first node in the list. Please help me to fetch the desired details.
    <Details>
    <parameter>
    <enter>
    <value>name</value>
    <value>jacob</value>
    </enter>
    <enter>
    <value>Age</value>
    <value>30</value>
    </enter>
    <enter>
    <value>Salary</value>
    <value>20000</value>
    </enter>
    <enter>
    <value>DOB</value>
    <value>12091980</value>
    </enter>
    Thanks, gilbert

    Let's start with the easy part.
    Cells on a Numbers table can contain data entered directly, or can contain a formula. They can't contain both. That means you cannot 'type the conditions into a single cell' in column A ("the left header" cell) AND have a formula which sets that cell to TRUE if the typed in data contains an "A".
    There's no problem doing this using column A as the key holder and columns B:Z to hold the TRUE/FALSE results, staring in both cases on row 2.
    Here's an example
    The column header cells (row 1) contain the letter corresponding to that column.
    The row header cells (starting at row 2) contain the 'bunch of letters' you describe. Note (A4) that the letters do not have to be entered in any particular order, and that extraneous characters (eg. a space) are ignored.
    The formula shown is entered B2, and filled down and right from there.
    =IFERROR(FIND(B$1,$A2)>0,FALSE)
    FIND returns the position of the first occurrence of the target string (in this case, the single letter at the top of the column) in the search string, then compares that with the value zero. For any letter that is included in the search string, the find value will be at least 1, so the comparison will return TRUE. If the target letter is not found, FIND returns an error. IFERROR traps this and returns FALSE.
    Since the target depends on the letter at the top of the column, all that's needed to extend the range of possible letters to the full alphabet is to enter an A in cell B1, then run through the alphabet A to Z, with Z in cell AA1.
    Depending what you want to do with the TRUE or FALSE values in these 26 columns, it may be possible to skip the auxiliary column step and use a formula similar to the one above as the condition argument of an IF(condition,do-if-true,do-if-false) statement.
    Regards,
    Barry

  • XML in clob columns and OWB

    I’m building some ETL process to extract data from XML in CLOB columns. I know that there are solutions to use functions as extractvalue() of WB_XML_LOAD(), but I want to know if there is any other way to deal with XML. The reason for that is because my XML files have multiple namespaces and nodes, and I need something more complex to deal with that, since I already tried those two first solutions.
    My first solution was to create a PL/SQL that parses the XML and looks for tags and elements. It populates a relational table, and I might use OWB to extract the data from this table. But I’m dealing with a large table and it takes a while for processing, plus my code is hude!
    My question is: Does someone have any experience with complex XML in Clob columns? If so, what was your solution for that?
    Thanks a lot!
    Angelo Buss
    [email protected]

    CLOB is a fully-updateable, character large object that is stored inside the database. It can be text-indexed using interMedia for document searching.
    BFILE is a readonly pointer to a file on the external file system whose content is not physically stored in the database. It can also be text-indexed for document searching, but it can't be updated.

  • Select-String to search only first column in .CSV

    Hello all,
    I'm wondering if anyone knows a way to only search the first column of a .CSV file using Select-String. I guess I could probably import-csv and pipe the first column to select-string, but I was wondering if Select-string has this capability within itself?

    Yes, a "large file that I only need a few lines from" is more the issue. And I was also just curious if Select-String had such functionality. For the file I am reading, it has over 23,000 lines (13MB), and there is a significant
    performance increase with using select-string (over %4000 increase) :
    Using Import-CSV and Where-Object: around 5.938 seconds
    Using Select-String: around 0.138 seconds
    Thus, if I have several strings that I want to search the file for, I would prefer to use Select-String. I suppose I could just do the following?
    1. Use Select-string to search the file for each string I need to search for
    2. Once I'm done searching for all strings, I can query the resultant data set to be sure the string is in the first column of each record in the dataset
    3. If the string is not in the first column in the resultant data set, I can just remove the record.
    Am I way off base here?

  • Can I search within an Adobe Bridge collection?

    I just created a manual collection in Bridge of various photos which live in various folders and subfolders. I would like to then search within this collection to find photos of a specific person. Is this possible? I am using CS5 on a mac.

    If you want to search for something in the filenames in a collection the following script will do it...
    #target bridge  
       if( BridgeTalk.appName == "bridge" ) { 
    collectionFind = MenuElement.create("command", "Find in Collection", "at the end of Thumbnail");
    collectionFind.onSelect = function () {
       findInCollections();
    function findInCollections(){
    var cols =app.getCollections();
    if(!cols.length) {
        alert("There are no Collections to search!");
        return;
    var win = new Window('dialog',"Collections");
    win.orientation = "column";
    win.pnl1 = win.add('panel', undefined, undefined, {borderStyle:"black"});
    win.g1 = win.pnl1.add('group');
    win.title = win.g1.add('statictext',undefined,'Find in Collection');
    win.title.alignment="fill";
    var g = win.title.graphics;
    g.font = ScriptUI.newFont("Georgia","BOLDITALIC",22);
    win.g5 = win.pnl1.add('group');
    win.g5.orientation = "row";
    win.g5.alignment="left";
    win.g5.st1 = win.g5.add('statictext',undefined,'Select Collection...');
    win.g5.dd1 = win.g5.add('dropdownlist');
    for(var a in cols) { win.g5.dd1.add('item', cols[a].name);}
    win.g5.dd1.selection=0;
    win.g10 = win.pnl1.add('group');
    win.g10.orientation = "row";
    win.g10.alignment="left";
    win.g10.st1 = win.g10.add('statictext',undefined,'Find ...');
    win.g10.et1 = win.g10.add('edittext');
    win.g10.et1.preferredSize=[200,20];
    win.g100 = win.add('group');
    win.g100.orientation = "row";
    win.g100.alignment="center";
    win.find = win.g100.add('button',undefined,'Find');
    win.find.preferredSize=[100,30];
    win.cancel= win.g100.add('button',undefined,'Cancel');
    win.cancel.preferredSize=[100,30];
    win.find.onClick=function(){
      if(win.g10.et1.text == ''){
          alert("You haven't entered anything to find!");
          return;
      win.close(1);
    var collectionToSearch = app.getCollectionMembers(cols[Number(win.g5.dd1.selection.index)]);
    var newCollection = [];
    var REX = new RegExp(win.g10.et1.text,"gi");
    for(var s in collectionToSearch){
         if(collectionToSearch[s].name.match(REX)) newCollection.push(collectionToSearch[s]);
    if(!newCollection.length){
         alert("No match found");
         return;
    var Name = "Found in " + win.g5.dd1.selection.text;
    var foundFiles = app.createCollection(Name);
    for(var c in newCollection){
         app.addCollectionMember(foundFiles,new Thumbnail(newCollection[c]));
    app.document.thumbnail = foundFiles;
    win.center();
    win.show();

  • Data updated by another user when trying to update a CLOB column value

    I just recently upgraded to version 1.2.1 (Build MAIN-32.13), and since I have, I am now getting this message when editing the text within a CLOB column of a table:
    Data you attempted to update was updated by another user. You will have to rollback and refresh the table. Rollback now?
    I am confident that no one else is in the table, as I am the only one connected to this DB right now. Also, I have shut down SQL Developer completely and restarted it. Again, I get the same error.
    Also, the CLOB is less than 2500 characters, so it's not a limitation with the 4k chars.
    I really can't update it easily via SQL because there is formatting in the text (carriage
    returns, etc).
    Any ideas? Any workarounds?
    Thanks,
    -Vikki

    OK. A few things I've noticed as I've played with it more.
    1 - It does not happen on EVERY update to a CLOB. (Some save successfully.)
    2 - Once I get it on a CLOB, it seems to happen then on every subsequent CLOB.
    3 - It's not just one table -- several tables do it.
    4 - It's not even just updating CLOB columns -- I just had it happen on a varchar2 column where there is also a CLOB in the table.
    Thank you for the instructions on how to see the debug console. Here is what I got as an exception (and sorry for the line wrapping):
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.lang.S
    tring
    at oracle.dbtools.raptor.controls.celleditor.ResultSetCellEditor$1.actio
    nPerformed(ResultSetCellEditor.java:140)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
    49)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
    a:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
    istener.java:234)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.lang.S
    tring
    at oracle.dbtools.raptor.controls.celleditor.ResultSetCellEditor$1.actio
    nPerformed(ResultSetCellEditor.java:140)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
    49)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
    a:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
    istener.java:234)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    reloadBuffers(): 56 nodes checked in 0.001488707 second(s)
    reloadBuffers(): 56 nodes checked in 0.001101633 second(s)
    reloadBuffers(): 56 nodes checked in 8.70581E-4 second(s)
    reloadBuffers(): 56 nodes checked in 0.00159078 second(s)

  • Clob column in excel output

    Hi All,
    I have a clob column in my RTF. when I preview the output in excel...complete data is not visible in the cell of the spread sheet but when I click on that perticular cell of the spread sheet. I can see the whole data at the top of the spreed sheet. I've searched this forum and came accross same issues but they where left unresolved.
    Is there a way to show the complete data in the cell of the excel sheet ?
    Thanks in advance....

    I've never worked with Clobs in Excel output, but from the sounds of it, all of your data is present in the Excel output, it's just that the column is not wide enough or the cell is not tall enough to display all of the data.
    As "rick_me" wrote in this post Re: Number and cell formatting in RTF
    Excel takes it's cue from the RTF template for how to size the columns.
    You can also give Excel general guidlines as to the row height.
    Put your data into a Table in the RTF template and experiment by altering the height and width of the table cells.

  • How to publish XML document whose source is stored in clob column

    I have to create simple application:
    in one table are stored some information about XML documents (date of creation, etc.) and the document source itself in one (unfortunatelly clob type) column.
    The point is to anable users finding document(s) and viewing it.
    Using forms I can search and display information about documents. But I have no idea how to publish XML document whose source is stored in clob column.
    I am using Oracle Portal 3.0 on NT.
    Thanks in advance.

    Hi Sergio,
    This link might be helpful:
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
    Also refer the BLOB Download Format Mask :
    {message:id=9716335}
    Here I have given the format mask for APEX 4.0, which will slightly differ for 3.2.1 and proposed changes
    in the format mask are:
    1) Format Mask: DOWNLOAD
    2) Content Disposition: Inline
    This will be achieved with it:
    >
    But now, my user would like to know if it´s possible that APEX application can OPEN some of these files stored on this BLOB column WITHOUT download it.
    My user would like to see a hiperlink (or button) that, if pressed/acessed, can open a new page (or a page inside application) with the document. He doesn´t need to edit this oppened file. He only wants to see it.
    >
    Hope it helps!
    Regards,
    Kiran

  • How to search within excel file?

    Hi
    I have following requirement:
    A document library will have an excel file with around 10,000 rows. It will have one column as a primary key column. Column name is: Request ID
    A SharePoint site will have a page with text box and button. Users will enter Request ID in text box and click on button. Page division will display all the data from excel file associated with that Request ID
    I have tried using Infopath for this but Infopath fails running when item count increases. Here it is not possible. Uploading the data to SP list is also not possible because of many reasons like list item threshold or reporting methods(excel file will be
    uploaded on daily basis by some different team).
    How can I perform this search task in SharePoint? Is there a way by which we can search within excel file. May be something like - using excel services in CEWP or using filter web part and excel web access web part together on one page.
    Thanks in advance for any help.
    Regards
    Pratima

    I got solution for this.
    Create an excel file with as much as vlookup values. In excel it is possible to refer any file in vlookup. Lookup with Request ID and retrieve all the required values. Let the name of this file be: SearchBook.xlsx. Upload it to SP site.
    Create an InfoPath form to have a front end. Connect this form to excel file SearchBook.xlsx using SOAP web service.
    Create two more data connections to set cell value and read cell value. Using these data connection set value of cell with the entered Request ID and read corresponding lookup values. Display it to the Infopath form.
    This solution perfectly works. And it is very very very less time consuming. For me it returns the result in 1-2 seconds for around 5k records in excel file.

Maybe you are looking for

  • 10g에서의 에러....

    DB Server os          : redhat ent as 4.0 oracle : 10.2.0.1.0 WEB Server os          : redhat ent as 4.0 apache : apache 2.0.59 script : php 4.4.6 접속이 잘되다 가끔 접속 자체가 안되는오류(페이지를 찾을수 없습니다.) 가 발생하더군요. 오라클 연결 부분에서 아예 페이지 차제를 찾을수 없는 경우가 종종 발생합니다. 여기 저기 찾아보

  • To extract data

    hi, i want to extract required strings from a set of string, dont know how to achieve this task? Given string CNR ELIZABETH & LONSDALE STS 36 NEW QUAY PROMENADE 263 MAIN RD WEST 5 LIVER POOL RD WEST Required output: LONSDALE QUAY RD RD Best Regards,

  • Problem in J1IFQ -Reconciling the Qty -Received in Multiple Batches- reg

    Dear Sir/ Madam, We are encountering the Problem During Reconcilation of Quantity in Subcontracting cycle Received in Multiple Batches. The Following steps are followed, 1. We have created a Subcontract PO with BOM Explosion. 2. The Required Componen

  • Interactive HTML in JEditorPane?

    --Sorry, I just realized this belongs into the Swing forum, I'll repost it there.                                                                                                                                                                         

  • Education Licensing - Basic Questions

    Hi I have some basic questions regarding licensing of student version of Adobe software (in UK). 1) If I purchase an education version of an application and install it on a mac can I transfer it to a replacment mac in the furture? 2) Can I upgrade it