Display html clob data

Hello Experts,

I am storing awr reports in a clob column in a table by calling the dbms_workload_respository.awr_report_html procedure and store the returned data in the clob with dbid column, begin and end the component id snap in the numeric columns. My requirement is to display a drop down of these 3 columns together and based on the selection to get the clob column data and visualize the awr in html format in the same page or another page. I don't know a lot of apex, need help on how to achieve this.

I searched the Oracle Apex forum and tried below 2 things but maybe I'm missing something in the process, can someone please help me and tell me how to display html data stored in the clob.

https://KR.forums.Oracle.com/forums/thread.jspa?threadID=723735

Display the content of CLOB column with markup

I use 4 Apex with Oracle 11.1 db.

>

Please update your forum profile with a real handle instead of '907426 '.

I am storing awr reports in a clob column in a table by calling the dbms_workload_respository.awr_report_html procedure and store the returned data in the clob with dbid column, begin and end the component id snap in the numeric columns. My requirement is to display a drop down of these 3 columns together and based on the selection to get the clob column data and visualize the awr in html format in the same page or another page. I don't know a lot of apex, need help on how to achieve this.

I searched the Oracle Apex forum and tried below 2 things but maybe I'm missing something in the process, can someone please help me and tell me how to display html data stored in the clob.

https://KR.forums.Oracle.com/forums/thread.jspa?threadID=723735

Display the content of CLOB column with markup

These threads treat to exceed the maximum size of 32 KB of an element of the APEX to make available for the edition of CLOB data. It is much easier to simply display the contents of a CLOB. Create an dynamic PL/SQL content area that uses htp.p to generate the content of CLOB. This method also has a limit of 32 K maximum output, and the size of the AWR reports will be much greater than that. To send safely from the CLOB in the browser, it is required for the output of the buffer in chunks of 32 K or less as shown + {message identifier: = 4497571} +.

Tags: Database

Similar Questions

  • Displaying a CLOB on SQLPLUS

    Hello Experts!

    Good morning/afternoon/evening!

    Version SQLPLUS: SQL * more: Production version 11.2.0.1.0

    Database version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    I have problems displaying CLOB data returned by a procedure. He is always truncated . I tried different things as below, nothing seems to work. Please notify.

    SQL > select length(:v_result) from double;

    148013

    SQL > print: v_result;

    V_RESULT

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

    < AMF > < REP > < RMH > 1001 < / RMH > < / REP > < rinr > < RCD > 0 < / RCD > < NAM > hidden data hidden my

    SQL > set pages 0

    SQL > define longc 100000000

    SQL > print: v_result;

    < AMF > < REP > < RMH > 1001 < / RMH > < / REP > < rinr > < RCD > 0 < / RCD > < NAM > hidden data hidden my

    SQL > 32000 fixed lines

    SQL > print: v_result;

    < AMF > < REP > < RMH > 1001 < / RMH > < / REP > < rinr > < RCD > 0 < / RCD > < NAM > hidden data hidden my

    SQL > set longchunksize 30000

    SQL > print: v_result;

    < AMF > < REP > < RMH > 1001 < / RMH > < / REP > < rinr > < RCD > 0 < / RCD > < NAM > hidden data hidden my

    SQL > set position

    SQL > print: v_result;

    < AMF > < REP > < RMH > 1001 < / RMH > < / REP > < rinr > < RCD > 0 < / RCD > < NAM > hidden data hidden my

    Thanking in advance!

    -Rk

    Have you tried "n LONG SET"?

    System of SETTING Variable summary

  • How to insert CLOB data in tha table in my database

    I create a table called (annual NUMBER, name VARCHAR and CLOB doc) html page

    IsqlPlus I have run the following procedure


    P4_FIRE_HTML_TRIGGER_ARG EXEC ("OLBA + LEGAL + PSOA + OEJN", file);  file: came the CLOB parameter

    the result parameter is set to the queue:
    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 / / IN" "http://..." >
    < HTML >
    < HEAD >
    < TITLE > ADDS - METARS results form < / TITLE >
    "< LINK REL ="StyleSheet"type =" text/css"HREF="/layout/awc/mystyle.css ">
    < / HEAD >
    < BODY BGCOLOR = "#FFFFFF" >
    < TABLE SUMMARY = "this table is used for formatting only" BORDER = 0 CELLPADDING = 3 CELLSPACING = 0 >
    < TR VALIGN = "top" >
    < TD ALIGN = "left" COLSPAN = "2" >
    < H2 > Aviation digital data Service (ADDS) < / H2 >
    Produced by form of METAR (1858 & #160;) 11 February 2014 UTC) < BR >
    " located at < A HREF =" http://AV .............................
    < Table >
    < /TR >
    < TR VALIGN = "top" >
    < TD ALIGN = "left" COLSPAN = "2" >
    < FONT FACE = "Monospace, Courier" > OLBA 111800Z 01006KT 7000 FEW026 16/11 Q1022 < / POLICE > < BR >
    < FONT FACE = "Monospace, Courier" > LEGAL 111830Z 34005KT 8000 NSC 13/11 Q1021 NOSIG < / POLICE > < BR >
    < FONT FACE = "Monospace, Courier" > PSOA 111830Z 21009KT 9999 - RA BKN016 06/03 Q1003 NOSIG < / POLICE > < BR >
    < FONT FACE = "Monospace, Courier" > OEJN 111800Z 34004KT CAVOK 25/20 Q1012 NOSIG < / POLICE > < BR >
    < Table >
    < /TR >
    < /table >
    < / BODY >
    < / HTML >

    I try inserting the above result in my HtmlPage of the table by a simple insert:
    Values inserted INTO HTMLPAGE (annual, doc)
    (5, 'meatr_taf', ' <!) DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 / / IN" "http://... "
    ... < / HTML > ') values are not inserted just I got a message:
    SP2-0863: iSQL * more treatment

    Can someone help me to insert CLOB data in my table HtmlPage above
    Thank you

    software:

    Form [32 bit] Version 9.0.2.9.0 (Production), oracle JInitiator: Version

    1.3.1.9, WebUtil Version 1.0.2 (Beta), window xp service pack 2 build 2600, Internet Explorer 8

    LOOP
    UTL_HTTP. READ_LINE (RESP, File_Metar, TRUE);
    p2_putlines (File_Metar);
    USING_CLOB. ADD_MORE (1, File_Metar);
    USING_CLOB. LOB_INS (1, 'Metar_taf', File_Metar);
    END LOOP;
    UTL_HTTP. END_RESPONSE (resp);

    You should not use USING_CLOB. LOB_INS (1, 'Metar_taf', File_Metar) inside the Loop.You must use

    LOOP

    UTL_HTTP. READ_LINE (RESP, File_Metar, TRUE);

    p2_putlines (File_Metar);

    USING_CLOB. ADD_MORE (1, File_Metar);

    END LOOP;

  • How to display the current date in a Flex application

    I need to display the current date in my Flex application.  Is there a simple way to do this and post it as a text field or label?  In addition, it can be formatted to display the date as "day of the week, month, day, year"?

    Thank you!

    You can use this page and copy the following code to change the formatString property.

    http://livedocs.Adobe.com/Flex/3/langref/MX/formatters/DateFormatter.html#FormatString

    If this post answers your question or assistance, please mark it as such.

    
    http://www.adobe.com/2006/mxml"
      creationComplete="init();">
      
        
      
      
      
    
    
  • How to display the current date in a textfield?

    Hi all

    I have a textfield, and it is a part of the P18_DOJ page. By defalut that I want to display today's date to the textfield and it is should be readonly. How do I do that?

    Put "Select sysdate from dual;" as the source SQL Query type and "readonly" in the field of the HTML Form element attributes.

  • How to view clob data using sql

    Hello

    In our database we have a table that is to have a column of type CLOB but now I want to display the data using sql select query but it throws error: "unsupported data Type.

    Could someone let me know how to view the clob data using the select query.

    Oracle DB version: 10.2.0.3

    Thank you

    user562223 wrote:
    Hello

    In our database we have a table that is to have a column of type CLOB but now I want to display the data using sql select query but it throws error: "unsupported data Type.

    Could someone let me know how to view the clob data using the select query.

    Oracle DB version: 10.2.0.3

    Thank you

    Usually a to_char (CLOBDFIELD) circled

    HTH,

    FJFranken

  • iCal in doc icon displays an incorrect date

    iCal in doc icon displays an incorrect date.  with the help of el Capitan 10.11.5

    Open Terminal (in the Utilities folder) and type the following command (followed by Enter):

    Killall-KILL Dock

    If the problem returns, report.

  • How to display a given date in a DateField?

    Hi Experts,

    I'm developing an app for BlackBerry in Java. I want to display a date I will give statically for example "October 4, 2008. I did, but while reading, it is displayed in January 1, 1970. How can I display a static date in a DateField?

    Thank you and best regards,

    Nithya

    Simple use.

    import java.util.Date;

    Net.rim.device.api.i18n import. *;

    String date = new SimpleDateFormat("dd/MM/yyyy_hh:mm").format (new Date (System.currentTimeMillis ()));
    Add (new RichTextField (date));

  • manage the CLOB data delimited by tabs with the newline character

    Hi all

    I have a table with a column of type CLOB data where my data are delimited by tabs. For the new line I Chr (10) as the separator between the lines. Someone knows how to handle this character in order to select these data in separate lines.

    Here is the example:

    create table xx_test1(col1 clob);
    
    insert into xx_test1 values (TO_CLOB('1'||chr(9)||'5467'||chr(9)||'41773'||chr(9)||'5467'||chr(9)||'169407'||chr(9)||'GBP'||chr(9)||'08-Feb-2016'||chr(9)||'08-Feb-2016'||chr(9)||'UK Accrual Invoice'||chr(9)||'UK Accrual - import'||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||'RDWHMP.03.00025.IND'||chr(9)||''||chr(9)||'300'||chr(9)||'15'||chr(9)||'Each'||chr(9)||'ZZU'||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||'PL Imported Invoices'||chr(9)||'119'||chr(9)||'229'||chr(9)||'340'||chr(9)||'450'||chr(9)||'560'||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||'Franchise COGS'||chr(9)||'12'||chr(9)||'13'||chr(9)||'14'||chr(9)||'15'||chr(9)||'Y'||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||'10'||chr(9)||'0'||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''|| chr(10) || '2'||chr(9)||'5467'||chr(9)||'41773'||chr(9)||'5467'||chr(9)||'169407'||chr(9)||'GBP'||chr(9)||'08-Feb-2016'||chr(9)||'08-Feb-2016'||chr(9)||'UK Accrual Invoice'||chr(9)||'UK Accrual - import'||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||'RDWHMP.03.00025.IND'||chr(9)||''||chr(9)||'10'||chr(9)||'15'||chr(9)||'Each'||chr(9)||'ZZU'||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||'PL Imported Invoices'||chr(9)||'120'||chr(9)||'230'||chr(9)||'341'||chr(9)||'451'||chr(9)||'561'||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||'Franchise COGS'||chr(9)||'12'||chr(9)||'13'||chr(9)||'14'||chr(9)||'15'||chr(9)||'Y'||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||'10'||chr(9)||'0'||chr(9)||''||chr(9)||''||chr(9)||''||chr(9)||''));
    
    
    
    
    
    
    
    
    

    I'll try this one, but it does not work. The last column is not correct and it returns the value of the next line and also does not continue to the end (I presume it's due to the position of the character hardcoded in regexp_substr). Any ideas how to handle?

      WITH c_file_imp_data
             
              AS
              (SELECT dbms_lob.substr(col1, 32767, 1) src
                 FROM xx_test1)
             
             SELECT
             --regexp_subsr is finding the position of the x occcurrance of a tab delimitter
              to_number(rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 1), chr(9))), --RECORD_ID
              to_number(rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 2), chr(9))), --BILL_TO_CUSTOMER_NUMBER,
              to_number(rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 3), chr(9))), -- BILL_TO_LOCATION,
              to_number(rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 4), chr(9))), -- SHIP_TO_CUSTOMER_NUMBER,
              to_number(rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 5), chr(9))), -- SHIP_TO_LOCATION,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 6), chr(9)), -- CURRENCY,
              to_date(rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 7), chr(9)),
                      'DD-MON-YYYY'), -- GL_DATE,
              to_date(rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 8), chr(9)),
                      'DD-MON-YYYY'), -- TRANSACTION_DATE,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 9), chr(9)), -- TRANSACTION_TYPE_NAME,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 10), chr(9)), -- TRANSACTION_SOURCE,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 11), chr(9)), -- TERMS,
              to_date(rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 12), chr(9)),
                      'DD-MON-YYYY'), -- DUE_DATE,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 13), chr(9)), -- PAYMENT_METHOD,
              to_number(rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 14), chr(9))), -- SALESREP_NUMBER,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 15), chr(9)), -- ITEM,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 16), chr(9)), -- DESCRIPTION,
              to_number(rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 17), chr(9))), -- QUANTITY,
              to_number(rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 18), chr(9))), -- UNIT_SELLING_PRICE,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 19), chr(9)), -- UNIT_OF_MEASURE,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 20), chr(9)), -- WAREHOUSE,
              to_number(rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 21), chr(9))), -- TAX_RATE,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 22), chr(9)), -- TAX_CODE,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 23), chr(9)), -- GL_ACCOUNT_STRING,
              to_number(rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 24), chr(9))), -- CURRENCY_EXCHANGE_RATE,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 25), chr(9)), -- LINE_TRX_DFF_CONTEXT_VAL,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 26), chr(9)), -- LINE_TRANSACTION_FIELD1,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 27), chr(9)), -- LINE_TRANSACTION_FIELD2,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 28), chr(9)), -- LINE_TRANSACTION_FIELD3,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 29), chr(9)), -- LINE_TRANSACTION_FIELD4,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 30), chr(9)), -- LINE_TRANSACTION_FIELD5,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 31), chr(9)), -- LINE_TRANSACTION_FIELD6,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 32), chr(9)), -- LINE_TRANSACTION_FIELD7,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 33), chr(9)), -- LINE_TRANSACTION_FIELD8,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 34), chr(9)), -- LINE_TRANSACTION_FIELD9,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 35), chr(9)), -- LINE_TRANSACTION_FIELD10,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 36), chr(9)), -- LINE_TRANSACTION_FIELD11,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 37), chr(9)), -- LINE_TRANSACTION_FIELD12,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 38), chr(9)), -- LINE_TRANSACTION_FIELD13,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 39), chr(9)), -- LINE_TRANSACTION_FIELD14,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 40), chr(9)), -- LINE_TRANSACTION_FIELD15,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 41), chr(9)), -- INV_LINE_INFO_DFF_CONT_VAL,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 42), chr(9)), -- NO_ANIMALS,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 43), chr(9)), -- MX_WEIGHT,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 44), chr(9)), -- MX_SLAUGHTER,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 45), chr(9)), -- REBILLED,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 46), chr(9)), -- NON_STAT,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 47), chr(9)), -- ATTRIBUTE12,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 48), chr(9)), -- ATTRIBUTE13,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 49), chr(9)), -- ATTRIBUTE14,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 50), chr(9)), -- ATTRIBUTE15,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 51), chr(9)), -- ATTRIBUTE8,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 52), chr(9)), -- ATTRIBUTE11,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 53), chr(9)), -- ATTRIBUTE2,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 54), chr(9)), -- ATTRIBUTE3,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 55), chr(9)), -- ATTRIBUTE4,
              rtrim(regexp_substr(src, '[^' || chr(9) || ']*' || chr(9) || '', 1, 56), chr(9)) -- ATTRIBUTE9
            
               FROM c_file_imp_data
    
    
    
    
    
    

    Oracle DB version: 12 c

    Thanks in advance,

    Alex

    with

    xx_test1 as

    (select TO_CLOB ('1' |)) Chr (9) | "5467' | Chr (9) | "41773' | Chr (9) | "5467' | Chr (9) | ' 169407' | Chr (9) | ' GBP'. Chr (9) | "February 8, 2016'. Chr (9) | "February 8, 2016'. Chr (9) | "Bill regularization UK' | Chr (9) | "Accumulation of UK - import '. Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9) | ' RDWHMP.03.00025.IND' | Chr (9): "| Chr (9) | ' 300'. Chr (9) | ' 15' | Chr (9) | ' Each ' | Chr (9) | ' ZZOU ' | Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9) | "PL imported invoices | Chr (9) | ' 119' | Chr (9) | ' 229'. Chr (9) | ' 340' | Chr (9) | "450 | Chr (9) | ' 560' | Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9) | "Franchise of the WORKINGS. Chr (9) | ' 12'. Chr (9) | ' 13'. Chr (9) | ' 14'. Chr (9) | ' 15' | Chr (9) | » Y'|| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9) | ' 10'. Chr (9) | » 0' || Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (10) | '2'|| Chr (9) | "5467' | Chr (9) | "41773' | Chr (9) | "5467' | Chr (9) | ' 169407' | Chr (9) | ' GBP'. Chr (9) | "February 8, 2016'. Chr (9) | "February 8, 2016'. Chr (9) | "Bill regularization UK' | Chr (9) | "Accumulation of UK - import '. Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9) | ' RDWHMP.03.00025.IND' | Chr (9): "| Chr (9) | ' 10'. Chr (9) | ' 15' | Chr (9) | ' Each ' | Chr (9) | ' ZZOU ' | Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9) | "PL imported invoices | Chr (9) | ' 120'. Chr (9) | ' 230'. Chr (9) | ' 341'. Chr (9) | ' 451' | Chr (9) | "561' | Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9) | "Franchise of the WORKINGS. Chr (9) | ' 12'. Chr (9) | ' 13'. Chr (9) | ' 14'. Chr (9) | ' 15' | Chr (9) | » Y'|| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9): "| Chr (9) | ' 10'. Chr (9) | » 0' || Chr (9): "| Chr (9): "| Chr (9): "| Chr (9) | ") the_clob

    of the double

    )

    Select x.lne

    of xx_test1 t.

    XMLTable ('/ a/b ')

    from xmltype ('' |) Replace (t.the_clob, Chr (10),''): '')

    path of ESA varchar2 columns (4000) '.'

    ) x


    ESA
    1 5467 41773 5467 169407 GBP 8 February 2016 8 February 2016 regularization invoice accounting UK UK - import RDWHMP.03.00025.IND 15 300 each ZZU PL Imported bills 119 229 340 450 560 Franchise COGS 12 13 14 15 Y 10 0
    2 5467 41773 5467 169407 GBP 8 February 2016 8 February 2016 regularization invoice accounting UK UK - import RDWHMP.03.00025.IND 10 15 imported bills each PL ZZU 120 230 341 451 561 Franchise COGS 12 13 14 15 Y 10 0


    It seems that you know how to do the rest


    Concerning

    Etbin

  • BI Layout Editor - how to display the current date?

    Hello

    Recently used BI Layout Editor (previously using MS Word to create the presentation of the State).

    He seems really nice and easy to use.

    However quick Q - How to display the current date in the layout editor (to show the report run date).

    Any quick suggestions is appreciated.

    Thank you

    Vivek

    Tab displays your selection available.

    It's like how when you insert the table in the Word document and when you select the table, you would see 2 additional tabs such as the design and the tool.

    Can you please insert "Text Element" and select the text element and see if you go to the tab 'text '?

  • How to extract a value of sql xml column clob data

    Hi guys,.

    I need help with the following. I have a column with data type xml (clob data). I need to extract the information in the < RI4 > tag and the < RI6 > tag.
    I truncated the data, but there is a repetition of the < RI4 > tag and consequenty internal to that tag RI6. However, each tag RI4 and RI6 has different data.

    I would be grateful if you can help me with this:

    <a xsi:schemaLocation="som location.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:somlocation">
      <b>Some stuff here</b>
      <c>
      <someinfo>blah</someinfo>
      <someinfo2>blah2</someinfo2>
      </c>
      <EffectiveDateTime>2015-10-01T00:00:00+10:00</EffectiveDateTime>
      <CurrencyCode>AUD</CurrencyCode>
      <RequiredInformation>
      <RequiredInformation2>
      <RequiredInformation3>
      <RI4>someinfo</RI4>
      <RI5>
      <RI6>
      <a1>1</a1>
      <b1>9.13</b1>
      </RI6>
      <RI6>
      <a1>2</a1>
      <b1>8.75</b1>
      </RI6>
      <RI6>
      <a1>3</a1>
      <b1>78.90</b1>
      </RI6>
      <RI6>
      <a1>4</a1>
      <b1>200</b1>
      </RI6>
      <RI6>
      <a1>5</a1>
      <b1>17.59</b1>
      </RI6>
      </RI5>
      </RequiredInformation3>
      </RequiredInformation2>
      </RequiredInformation>
      </a>
    

    I think that since it's the repetition I might need to make some sort of PL/SQL programming, but I really need help here to build this announcement also a way to extract the information.

    Any help would be greatly appreciated.

    Kind regards

    You can parse your XML like this

    SQL> with t
      2  as
      3  (
      4  select
      5  '
      6      Some stuff here
      7      
      8          blah
      9          blah2
     10      
     11      2015-10-01T00:00:00+10:00
     12      AUD
     13      
     14          
     15              
     16                  someinfo
     17                  
     18                      
     19                          1
     20                          9.13
     21                      
     22                      
     23                          2
     24                          8.75
     25                      
     26                      
     27                          3
     28                          78.90
     29                      
     30                      
     31                          4
     32                          200
     33                      
     34                      
     35                          5
     36                          17.59
     37                      
     38                  
     39              
     40          
     41      
     42  ' xml_str
     43    from dual
     44   )
     45  select t1.ri4, t2.a1, t2.b1
     46    from t
     47       , xmltable
     48         (
     49            xmlnamespaces(default 'urn:somlocation', 'http://www.w3.org/2001/XMLSchema-instance' as "xsi")
     50         ,  '/a/RequiredInformation/RequiredInformation2/RequiredInformation3' passing xmltype(t.xml_str)
     51            columns
     52               ri4 varchar2(10) path 'RI4'
     53             , ri5 xmltype path 'RI5'
     54         ) t1
     55       , xmltable
     56         (
     57            xmlnamespaces(default 'urn:somlocation')
     58          , '/RI5/RI6' passing t1.ri5
     59            columns
     60               a1 number path 'a1'
     61             , b1 number path 'b1'
     62         ) t2;
    
    RI4                A1         B1
    ---------- ---------- ----------
    someinfo            1       9.13
    someinfo            2       8.75
    someinfo            3       78.9
    someinfo            4        200
    someinfo            5      17.59
    
    SQL>
    
  • Find the date in clob data

    Hi all

    In the abc table, I would find the Id name if any later date is available in the variable 'data' (CLOB data type).

    I'm not able to go forward. can someone help me

    Output must be Id 102 and 103, the date indicated is greater than the current date.

    with abc as

    (

    Select 101 as id, 'Prime Minister arrived in Melbourne for the last leg of his tour of four cities in Australia on March 1, 2014 "as double data

    Union

    Select 102, "the prior reading of Singapore third quarter December 1, 2015 showing no response" of the double

    Union

    Select 103, ' there is no symptom of Malaria after December 15, 2104 meaning vaccine properly work ' from dual

    )

    Select * from ABC

    where the data like "trunc (sysdate) %.

    Thanks in advance

    This model ' [(0123456789)] + [()] + ((Jan) |) () Feb) | (Mar) | (APR) | (May). (Jun) | (Jul) | (August). (MS) | (Oct) | (Nov). (Dec)) [()] + [(0123456789)] +' finds the appropriate data now or later, does not matter.  We can use this model.

    use regexp_count with this model.  regexp_count returns "there are how many days" to open this model.

    using regexp_count for your sql output:

    ___regexp_count___ your data                                                              

    2 Prime Minister arrived in Melbourne, for the last leg of his tour of four cities in the Australia, March 1, 2014 and April 3, 2100
    2 The r1eading of 234/12 ahead of Singapore December 1, 2012, for the third quarter on December 1, 2015, showing no response
    1 There is no malaria symptom Minister after November 19, 2014 meaning vaccine properly work

    help link for regexp: Oracle of regular Expressions

    hope this helps

    Celal Ozdemir

  • Simple question of CLOB data type

    declare
    r clob;
    begin
      r := lpad('0',32768,'0');
    end;
    

    ORA-06502: PL/SQL: digital or value error: character string buffer too small

    ORA-06512: at line 4 level

    06502 00000 - "PL/SQL: digital error or the value of %s.

    So that tells me that an in PL/SQL CLOB data type cannot be as big as a VARCHAR2, correct? A variable in a PL/SQL can be greater than this?

    Thank you!

    So that tells me that an in PL/SQL CLOB data type cannot be as big as a VARCHAR2, correct?

    NO - that tells you that LPAD works with VARCHAR2 and function is what the limit.

  • Insert/update the column with the clob data type

    Hi all

    ORCL Version: 11g.

    I have a table with the clob data type.

    Test12

    (col1 clob);

    I'm trying to insert/update to update the column with more than 4000 characters.

    But due to the limitation of tank 4000, I could not Insert/Update.

    Need your help in resolving this issue.

    THX

    Rod.

    The limit of 4000 characters is incorrect.  That pertains only to the varchar2 data type.  A clob can hold more than 4 G.

    Here is an example that shows how to insert it, I found...

    Otherwise, here is a way 'dirty' to do.

    insert into your_table (COLA, COLB)

    values

    (PRIMARY_KEY, PART 1 OF DATA)

    ;

    Update your_table

    Define COLB = COLB | PART 2 OF BIG DATA

    where COLA = PRIMARY_KEY;

    Update your_table

    Define COLB = COLB | PART 3 OF BIG DATA

    where COLA = PRIMARY_KEY;

    .. and so on...

    I don't know that I personally recommend the second style...  But he could do the job.

  • I need to display tomorrow's date in the format ' yyyy/mm/dd' in Captivate 8.

    I need to display tomorrow's date in the format ' yyyy/mm/dd' in Captivate 8.

    I understand that I must build a tip for this Action. Has someone done something similar and can post a screenshot of the completed tip Action?

    Thanks in advance!

    I think that means Lieve this article:

    http://www.Infosemantics.com.au/Adobe-Captivate/template/02-dynamic-date-functions

Maybe you are looking for