XML with embedded BLOBs 4000 characters maximum

Hi all

My proc (PROCEDURE pr_xml (pi_xml IN XMLTYPE)) database is delegated an XMLTYPE object as a parameter (from .NET). This doc XMLTYPE contains data image (in HEXADECIMAL format) that I need to store in a BLOB column. I can do this OK if the image is & lt; 4000 characters. If it is more than that, I have a problem. I tried the following two queries to get the BLOB data:

proc definition is

(1) select image
FROM XMLTABLE (' / DocumentElement / pic_record ' PASSAGE xmltype ('))
& lt; DocumentElement & gt;
& lt; pic_record & gt; & lt; PIC & gt; FFD8FFE000104A46494600010101006000600000FFE10066 & hellip; & hellip; & hellip; & hellip; & lt; / Peak & gt;
& lt; / pic_record & gt;
& lt; / DocumentElement & gt;
The COLUMNS ') image VARCHAR2 (4000) path 'Pic')

(2) SELECT extractvalue (column_value, 'Peak')
TABLE (xmlsequence (extract (xmltype ('))))
& lt; DocumentElement & gt;
& lt; pic_record & gt;
& lt; pic_record & gt; & lt; PIC & gt; FFD8FFE000104A46494600010101006000600000FFE10066 & hellip; & hellip; & hellip; & hellip; & lt; / Peak & gt;
& lt; / pic_record & gt;
& lt; / DocumentElement & gt;
(((, ' / DocumentElement/pic_record/Pic ")))

Using 1) I expect to be able to declare the COLUMN as a BLOB (VARCHAR2 (4000) - above), but the only types that you can use are MANY and VARCHAR.
Using 2) complains about the function of extractValue above 4000 characters.

Does anyone have any experience or suggestions. Thank you

Tim

Try extract () .getClobVal ()... However, it won't work that (at least in the pre - 11 g databases) if the size of PIC in it is encoded form is less than 64 KB. In addition, you are out of luck until the 11 g version. A better way to do it (at least in 11g) is to store the XML in a storage schema that maps the correctly coded data.

Tags: Database

Similar Questions

  • LOVs using cascading on the Page elements with values exceeding 4000 characters

    A few days ago, I asked a question on the community, but it turned out that there was something wrong with my account and they have removed the item, so I'll just post the solution I found here now:

    Well, I found a way to use LOVs cascading on page elements with values exceeding 4000 characters:

    Let's say I have a shuttle named P1_ORGANISATIE with "List of values" box, a dynamic LOV named "Source: lists of values Query" containing the value:

    Select NAAM as display_value, ID like return_value

    of NINEHAM

    order by 1

    If the number of records-NINEHAM is insufficient, the length of the value of P1_ORGANISATIE, which is a list of concatenated with colon separated digital ID, can exceed 4000 characters.

    Now, suppose I have a list of selection called P1_TEST that is connected through "List of values"-> "Cascading LOV Parent article (s)" with P1_ORGANISATIE, using a named LOV dynamic with "Source: lists of values Query" containing:

    Select distinct TST. NAAM as display_value, TST.ID as return_value

    of the OTE NINEHAM

    Join the AFDELINGEN ADG ON (ADG. OTE_ID = OTE.ID)

    Join the DEELNEMERS DNR ON (DNR. ADG_ID = ADG.ID)

    Join TESTDEELNEMERS TDR WE (TDR. DNR_ID = DNR.ID)

    Join TESTEN TST ON (TST.ID = RDT. TST_ID)

    where instr (":" |: P1_ORGANISATIE |) '':'', '':'' || OTE.ID | :'') > 0

    order by 1

    In this case, when P1_ORGANISATIE exceeds 3998 characters, you'll get an "ORA-01704: string literal too long"-error and the P1_TEST will show an element called "undefined".

    A way around this is possible because for a named LOV, you can use a "function that returns a sql query" instead of a simple sql query. In other words, we can apply in the context of PL/SQL and thus have maximum for expressions of 32767 instead of 4000 characters. In addition, it is possible to use the two APEX_UTIL. STRING_TO_TABLE and APEX_COLLECTION.

    Setting "Source: lists of query values" on the LOV appointed to P1_TEST with the following code will work:

    DECLARE

    l_selected APEX_APPLICATION_GLOBAL. VC_ARR2;

    l_qry varchar2 (32767): =.

    "Select distinct TST. NAAM as display_value, TST.ID as return_value

    of the OTE NINEHAM

    Join the AFDELINGEN ADG ON (ADG. OTE_ID = OTE.ID)

    Join the DEELNEMERS DNR ON (DNR. ADG_ID = ADG.ID)

    Join TESTDEELNEMERS TDR WE (TDR. DNR_ID = DNR.ID)

    Join TESTEN TST ON (TST.ID = RDT. TST_ID)

    $1

    order by 1';

    BEGIN

    IF: P1_ORGANISATIE IS NULL

    OR LENGTH(:P1_ORGANISATIE) < = 4000

    THEN RETURN

    Replace (l_qry

    ,'$1'

    ,' where instr (":" |: P1_ORGANISATIE |) '':'', '':'' || OTE.ID | :'') > 0'

    );

    ON THE OTHER

    l_selected: = APEX_UTIL. STRING_TO_TABLE(:P1_ORGANISATIE);

    APEX_COLLECTION. CREATE_OR_TRUNCATE_COLLECTION (p_collection_name = > 'ORGANISATIE_COLLECTIE');

    FOR id IN 1.l_selected.count

    LOOP

    APEX_COLLECTION.add_member (p_collection_name = > 'ORGANISATIE_COLLECTIE')

    , p_n001 = > to_number (l_selected (id))

    );

    END LOOP;

    RETURN

    Replace (l_qry

    ,'$1'

    ,'join apex_collections ON APC (APC. COLLECTION_NAME = "ORGANISATIE_COLLECTIE" AND APC. N001 = OTE.ID)"

    );

    END IF;

    END;

    Andreas Groenevelt says:

    A few days ago, I asked a question on the community, but it turned out that there was something wrong with my account and they have removed the item, so I'll just post the solution I found here now:

    Something was wrong with the whole site: AP invoice tolerance

    I don't post anything substantive until we find out what is happening.

  • Search XML with or without special characters

    Hello

    Please I need your help: I have this XML:

    <nodoPrincipal >
    <content linkName="" url="" linkType="multi" searchableTerms="generación, vida, familia, ">
    <multiLink url="cdw/day1/iAmFrom.doc"/>
    <multiLink url="cdw/day1/iAmFrom.pdf"/>
    </content>
    <content linkName="" url="" linkType="multi" searchableTerms="casa, cama, ropa, ">
    <multiLink url="cdw/day1/influences.doc"/>
    <multiLink url="cdw/day1/influences.pdf"/>
    </content>
    <content linkName="" url="day1/Strengths.ppt" linkType="dl" searchableTerms="teléfono, celular, computación, ">
    <desc><![CDATA[Strengths Finder]]></desc>
    </content>
    <content linkName="" url="" linkType="multi" searchableTerms="objeto, carta, mesa, ">
    <multiLink url="cdw/day1/haveDoBe.doc"/>
    <multiLink url="cdw/day1/haveDoBe.pdf"/>
    </content>
    </nodoPrincipal>
    

    And this search feature:

    //xml loaded above
    function processSearchXML(xmlData:XML, searchTerm:String):XMLList
    {
    
      var searchData:XMLList = xmlData.*;
    
      //if the node has searchable terms, add it to the list
      var searchTerms:XMLList = searchData.(hasOwnProperty('@searchableTerms'));
    
      //A list for the results
      var searchResults:XMLList = new XMLList();
    
      for each(var searchItem:XML in searchTerms)
      {
      //gets the attribute searchableTerms 
      var searchSplit:String = [email protected]();
    
      //builds the array of " , " seperated values
      //so that I can have multiple search terms 
      var searchTerms_ary:Array = searchSplit.split(", ");
      //A list for the results
      var searchResults_ary:Array = new Array();
      //trace(searchTerms_ary.length +" searchable terms in node");
    
      //search the array 
      for each(var term:String in searchTerms_ary)
      {
      //if the record matches what I searched for, add it to the results array
      if (term == searchTerm)
      {
      //trace(term + " has met the seach craiteria");
      searchResults_ary.push(term);
      }
      }
      //trace(searchResults_ary.length +" results in node");
      //trace();
      //if anything was added to the array 
      //add the branch to the xml list 
      if(searchResults_ary.length != 0)
      {
      searchResults += searchItem;
      }
      }
       trace(searchResults);
      return searchResults;
    }
    

    With this feature, I did find whole words, but I want to search for parts of words and search with special characters such as: phone or TV

    Help me invite!

    use indexOf instead of checking for a match if you want to retrieve partial matches.  for example,.

    If (term.indexOf (searchTerm) > - 1).

    Instead of

    If (term is searchTerm)

  • column with more than 4000 characters

    Hello

    Version: 10.2.0.4.0

    I have a requirement to display more than 4,000 characters (clob, long data type) through sql.

    Although this can be achieved through pl/sql, I'm not able to get the output in sql statements. Is it possible to do this through sql?
    I can use the pl/sql through treatment if necessary.

    Thanks for your help.

    Preta says:
    Although this can be achieved through pl/sql, I'm not able to get the output in sql statements. Is it possible to do this through sql?

    Yes, that have you tried? -If all goes well, not LONG

    SQL> drop table t purge;
    
    Table dropped.
    
    SQL> create table t (c clob);
    
    Table created.
    
    SQL> insert into t values (rpad(to_clob('x'),4001, 'x'));
    
    1 row created.
    
    SQL> set long 5000
    SQL> set pages 100
    SQL> select c from t;
    
    C
    --------------------------------------------------------------------------------
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    x
    
    SQL>
    

    Concerning
    Peter

  • XML with multi-sequence UTF8 byte characters

    Anyone know how to recover a document XML with the UTF8 sequence several bytes of the characters to a database ORADB11g (ORADB10g works very well)? If I use the method below UTF8 sequence several bytes of characters are treated as characters separated instead of a single character. I use binary XML and the following pots (of an ORADB11g installation):
    -ojdbc6.jar (11.1.0.7.0 - Production)
    -orai18n.jar (11.1.0.7.0 - Production)
    -xdb.jar (xdk_version_11.1.0.6.0_production)
    -xmlmesg.jar (xdk_version_11.1.0.6.0_production)
    -xmlparserv2.jar (. xdk_version_11.1.0.6.0_production)

    I tried several options still OPAQUE and so on, but I'm now off clues...

    Thank you

    Chris

    public static Document loadDocument (connection dbConnection, String, collection, String documentId) throws Exception {}
    If (collection == null | documentId == null) {}
    throw new IllegalArgumentException ("collection or documentId is null");
    }
    Statement statement = null;
    ResultSet resultSet = null;
    try {}

    Create a Statement object for sending SQL statements to the database
    Statement = dbConnection.createStatement ();

    Executes the given query which should return a ResultSet object
    resultSet = statement.executeQuery ("SELECT OBJECT_VALUE FROM" + collection
    + "WHERE the existsNode (OBJECT_VALUE,'/ * [@docid = \" "+ documentId +" \ "]') = 1"); "

    Browse the game to find the result of results
    While (resultSet.next ()) {}
    Object object = resultSet.getObject (1);
    If (item! = null) {}

    Return the first one found
    Return (object) .getDocument () (XMLType);
    }
    }
    } {Finally
    If (resultSet! = null) {}
    resultSet.close ();
    }
    If (declaration! = null) {}
    Statement.Close ();
    }
    }
    Returns a null value.
    }

    Published by: user10218259 on August 24, 2009 01:46

    Have you tried to ask the question on the XDK forum...?

    http://forums.Oracle.com/Forums/Forum.jspa?forumid=154

  • How to store more than 4000 characters in a table

    I have a requirement to store 4000 + string in the table. CLOB and BLOB cannot me because he has limitations of 4000 characters.

    Any suggestions please.

    Pentaho seems based jdbc then look for an example of a jdbc clob insertion.
    For example http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/clob10g/handlingclobsinoraclejdbc10g.html

    This will probably be a better approach than messing around with blocks anonymous plsql, etc. that do not sound relevant to what you're trying to reach really.

    This forum comment made me smile of the 'Integration of data head' @ Pentaho can:
    http://forums.Pentaho.com/showthread.php?62231-insert-a-string-in-a-CLOB

    It should work just fine. You probably need to swap your JDBC driver or something.
    Oracle can be mysterious in that dept. 
    
    xxx xxxxxx, Chief Data Integration
    Pentaho, Open Source Business Intelligence
    

    Reassuring.

  • Availability of the SQL Developer with embedded JDK

    SQL Developer 4.1 was released a month ago.

    As I can't install Java 8 on my system without maximum pain, I forward the release of the version with embedded Java.

    Does anyone know when this will happen?

    Concerning

    Andreas

    Soon

  • Select the list with the list of dynamic values with more than 4000 tank of query

    Hello

    I have no application where users can store SQL queries in a CLOB column. This query is then used to populate the list, select a dynamic element through LOV. Following the code returns the query for dynamic LOV used to populate the select list. It works fine except when the length of the lv_sqlStatement becomes more than 4000 characters. Then application crashes with "ORA-06502: PL/SQL: digital or value error: character string buffer too small" when Select the list item rendering.

    Any ideas how to get around this problem? Any help is appreciated. Do not say to them to write shorter than 4000 queries because I can't (it's operational requirements).

    DECLARE
    lv_sqlStatement end_user_set.sql_statement%type;
    BEGIN
    lv_sqlStatement: =: P2_SQL_STATEMENT;
    return ' select the label, value of (' | lv_sql_statement | t ')
    To_char (t.value) if not in (select value from end_user_set_member eusm)
    where eusm. EUSRSET_ID = ' | : P2_EUSRSET_ID | ')';
    END;

    I just blogged about this problem and posted a solution. See this announcement:

    http://www.deneskubicek.blogspot.de/2013/03/select-list-with-dynamic-lov-and-Ora.html

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Should what data type I use to store more than 4000 characters in a column

    Hello friends,

    I am currently using the suite oracle version for my database:

    SQL > select * from v version $;

    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0
    PL/SQL release 11.1.0.6.0

    SQL > create table clobexample (clob t1);

    SQL > insert into clobexample values ('aaaaaaaaaaaaaaaaaaaa... ») ;

    Error in the command line: 2 column: 8
    Error report:
    SQL error: ORA-01704: string literal too long
    01704 00000 - "string literal too long."
    * Cause: The string literal is longer than 4000 characters.
    * Action: Use a string literal of more than 4,000 characters.
    Longer values can only be entered using bind variables.

    My request is that what kind of data can I use table to enter more than 4000 characters in the table, I even tried with clob (example) above, but it is not favourable.
    Is there another way of letting?

    Please help me.
    Thank you in advance.
    Kind regards.

    Hello

    You can use the same CLOB, but you cannot insert directly, you may need to use the pl/sql.

    Try the method mentioned in this link.

    http://www.orafaq.com/Forum/t/48485/0/

    see you soon

    VT

  • Problem copying 4000 characters of CLOB in VARCHAR2 (4000 TANK)

    I'm migrating data from a table where it is stored in a CLOB to another table where I said a column of VARCHAR2(4000 CHAR).

    I stated a cursor in the form:

    (a) select columna, columnb, substr(clob_column,1,4000) of...

    (b) select columna, columnb, dbms_lob.substr(clob_column,4000,1) of...

    I then loop and EXTRACT the value of substr in a variable that is declared as VARCHAR2 (4000 TANK)

    With the cursor version 'a', using the regular subtr function, I get: ORA-01461: can bind to a LONG value only for insert into a LONG column

    With the slider 'b' version, by using the dbms_lob.substr function, I get: ORA-06502: PL/SQL: digital or value error: character string buffer too small

    I use Oracle 10.2.0.4.0

    I don't know yet what to watch next?

    Machinery says:

    However, the database uses NLS_CHARACTERSET UTF8 and NLS_NCHAR_CHARACTERSET = AL16UTF16, which are multibyte so I was expecting the declared with semantic CHAR VARCHAR2 to be multibyte.

    And it is. But in Oracle SQL VARCHAR2, as I already mentioned, must not exceed 4000 bytes. So even if you have declared it as 4000 characters, you'll get an error when the total length in bytes is greater than 4000. And since, according to the character set, a character can be 1 to 4 bytes, Oracle takes the best cases and allows you to declare it as max 4000 characters. How many characters will fit in eseccion is another question.

    SY.

  • What are the causes with embedded journalists can always be unloaded by the media broken or deleted all my emails? How can I fix it?

    Whenever people send me emails with embedded videos or images, e-mail is always without the media. It will be just the outline of the empty box where it supposed to be with an icon of the page broken tiny in the upper left corner.

    I can't seem to find the cause and the solution, and it happened for a few years already. It has nothing to do with my being always POP and not IMAP account? What are the possible reasons and solutions? Please help, thanks.

    Someone sent me a message with a broken image. Here's what I found.

    There are two factors that control the display of the remote images in email:

  • SD FlashAir with Embedded WLa card connects to the PC or smart phone

    Someone struggling to connect their new FlashAir - SD card with Embedded Wireless LAN from their camera to their pc or smart phone?

    If so could I ask what you did to solve this problem? When we leave the camera on it just won't connect.

    Thanks in advance!

    I m not FlashAir SD card owner and has not used this SD card in the Toshiba site interesting past but found on the SD FlashAir with Embedded Wireless LAN card
    http://www.Toshiba-components.com/FlashAir/

    You will find all the details about this product as FlashAir specifications, manuals & tools for FlashAir and frequently asked Questions

    I hope this help allows you to get the card works as part of your 3rd party devices.

    Feedback would be greatly appreciated

  • Skype have problems with recognition of Japanese characters.

    Good afternoon

    My Skype client have problems with recognition of Japanese characters in all the client except the menu bar. I tried to change the fonts in the options IM appearance, but without effect. It's strange for me, because after installation, these characters were correctly identified by the customer.

    Thank you in advance for help.

    may be regional settings are not correctly configured in your Windows.

  • Problem in creating several attributes XML with the same name of the attribute

    I am trying without success trying to create several attributes XML with the same name, as shown here in a Microsoft example configuration file:



      
         
         
         
      

    I'm calling the NewDocument GetRootElement functions and then "newelement" (appSetting), "newelement" (add)

    Then I call AddAttribute with add, key & Key0, then with add, value & 0.  This seems to work fine but when I try to add the second pair of key & Key1 and value attributes & 1 for item "Add" replaces ""and I find myself with"" only.

    I do something wrong or CVI is not able to create an XML of this type?

    Thank you

    Here's how you do it. I show not to keep things simple error checking.

    #include

    public static void CreateAddElement (mother of CVIXMLElement, const char * key, const char * value)
    {
    Add the CVIXMLElement;
    CVIXMLNewElement (parent, -1, 'Add', &add);)
    CVIXMLAddAttribute (add, "touch", key);
    CVIXMLAddAttribute (add, "value", value);
    CVIXMLDiscardElement (add);
    }

    void main (void)
    {
    CVIXMLElement root, and appSetting;
    Doc CVIXMLDocument.
     
    CVIXMLNewDocument ("configuration", &doc);)
    CVIXMLGetRootElement(doc, &root);)
    CVIXMLNewElement (root,-1, "appSetting", and appSetting);
    CreateAddElement (appSetting, "Key0", "0");
    CreateAddElement (appSetting, "Key1", "1");
    CreateAddElement (appSetting, "Key2", "2");
    CVIXMLDiscardElement (appSetting);
    CVIXMLDiscardElement (root);
    CVIXMLSaveDocument (doc, 1, "c:\\temp\\temp.xml");
    CVIXMLDiscardDocument (doc);
    }

  • Can I use the Wireless Comfort Desktop 5000 keyboard and receiver with a Mobile 4000 mouse?

    Hi, as the title says: can I use the Wireless Comfort Desktop 5000 keyboard and receiver with a Mobile 4000 mouse? I have the kit, but the mouse is to bulky for me and I would use a mouse Microsoft Mobile 4000 but with the same receiver as the keyboard of the kit, is it possible? Thank you

    Hello

    looks at it's not going to work. Wireless products are programmed to be used with a specific key, so they won't work on another dongle.

    B Eddie

Maybe you are looking for

  • iMessages and texts appear not on all devices.

    I have a MacBook (2015 edition) an Apple Watch and an iPhone 6 more. The Mac running OS X El Capitan version 10.11.5.  The Watch works OS 2.2.1. My iPhone is running iOS 9.3.2. Text messages and iMessages do not display the entire conversation on eac

  • My iPhone 4S is sensitive to my computer and turn on siri, however the screen does not turn

    I have an iphone 4S with the newest ios (as of December 4, 2015). It was connected to a laptop (not a mac) to recharge when the laptop and the phone have both froze. The laptop has rebooted while the phone was still plugged. The laptop is fine, but t

  • Aspire its V Nitro VN7 - 791G only in left ear

    Hello! Today, I ran into a problem with my helmet, I have new headphones 2 days ago and everything was fine until this morning where I could only hear left of my headphones. I thought it's fault to Atria then I tried it on my other pc and they worked

  • 7520 wireless put in place

    At the new printer HP 7520.  I have a Linksys wireless G router (wrt654gs) with wifi and modem Comcast Arris tg862G which also has a wifi capability.  When I try to install my printer, get a message indicating that the computer and the printer must b

  • Dell Inspiron 2305 black screen.

    Long story short... When you turn on the pc. You can hear the hard drive and dvd drive, commissioning... but all you ever get is a black screen... not even the screen of the bios dell... so far, the technology has replaced the lcd inverter Board, the