digital research in clob

Hi all

I asked this request previously in the forum and found the solution.

Now my requirement is slightly different. When I run the same program, I had bad output. Can someone help me.

Is it possible to put restrictions of the program looking like below

As much as the term "Unknown Age" is mentioned, the program should stop the search and display the value as white.

for example ID 1004 and 1005, it should show as white.

with master as

(

Select 101 as id,

"The ACR and ARHP have prepared information for patients on the many rheumatic diseases and conditions."

AIIIMS treat patients of 32 years old male. AIIMS study patient age of 12 years;

Patient suffered from asthma at the age of 21 years. "as a CLOB to double union

Select 102,

"Vasculitis is a term for a group of rare diseases.

What have in common the inflammation of the blood vessels.

AIIIMS treat patients of 42. The

Patient dated dated 23 June is completely cured "double hyphen

Select 103,

"The genetic factors (different genes)

seem to be more or less important in the disease.

AIIIMS do not treat patients aged 76 years. I have

think you should take risks' double Union

Select 104,

"Genetic factors (different genes - 42 {TEST: before the string number})"

seem to be more or less important in the disease.

AIIIMS treat patients of unknown age. Patients receive doses of 250 mg of medication. I think that you shouldn't take risks of double union

Select 105,

' AIIIMS treat patients of age unknown (ID:2300). Not seen features ' of the double

)

SELECT id,

-case when instr (CLOB, ' AIIIMS treats ' ') > 0

then regexp_substr (CLOB, '\d+', instr (CLOB, ' regal AIIIMS' "), 1).

age of the end

the master

As he has already advised in extract number of clob , if you do not change your design then you will meet soon all kinds of problem. Your reports will still work if he is a large amount of data.

SELECT id,

case when instr ("CLOB, ' regal AIIIMS") > 0 AND instr ("CLOB, ' unknown age") > 0

then NULL

When instr ("CLOB, ' regal AIIIMS") > 0

then regexp_substr (CLOB, '\d+', instr (CLOB, ' regal AIIIMS' "), 1).

age of the end

the master;

Tags: Database

Similar Questions

  • Smoke production digital research

    I love this effect and I try to recreate just using Photoshop, but I don't really get the right effect.

    I saw cela; http://PSD.tutsplus.com/tutorials-effects/creating-a-stunning-digital-smoke-effect/ and I was wondering if someone could help do that without the help of illustrator at the beginning?

    Thank you, P

    When I got to create 'smoke', I always went to the painter (now Corel Painter) and he does on a layer in PS, where the merger and the opacity is changed.

    Alien Skin has a 'smoke' plug-in, IIRC, but I don't the have not used.

    Now that the PS has added much more control on the brushes, I would look to find a brush that has a few streaks in the tip, a bit like a Speedball steel brush, or a Japanese dry brush. Then, work with gray. This tutorial gives you some forms of thinking and working in the race: a tablet/pen of pressure would be very useful. Set the opacity to pressure, as well as experience with color to the pressure and you will change color near white and darker gray.

    Once you have something on your couch, watch the blending Modes and opacity.

    Good luck

    Hunt

  • Based on a report item and digital research

    Hello

    I couldn't find a solution using the Forum search.

    I have the following question:
    "How can I establish a search report based on a digital item.

    The user must be able to search a number in a specific column.
    If no value is specified all lines should be displayed. If a specific numerical value is given the report showed one this specific line containing
    the id of the user asked for it.

    My problem is how to make the where clause in the report source?
    TABLE
    WHERE ID =: P1_ITEM_VALUE

    I tried to decode, values null by default, but nothing is.
    Also, I need to know the specific default values item, etc.

    Thank you very much!

    PS: still using ApEx 3.0, interactive report is not desired.

    Try this

    FROM TABLE
    WHERE ID =decode( :P1_ITEM_VALUE,null,ID, :p1_item_value)
    

    CITY

  • I have problems when I shoot in raw + jpeg. RAW files seem corrupted!

    I have problems when I shoot in raw + jpeg.  It seems that the raw files get corrupted.  I shot raw without a problem.  It's only when I shoot in raw + jpeg.  Raw files will not appear in Photoshop elements.  I installed the Canon software and could see all the raw files; However, I noticed that when I tried to post some full screen they would not show.  I also noticed that these block-ish look raw files.  They appear more digital research.   Is there a specail required in RAW + jpeg map?  I formatted ones I have before their use.

    Thank you all for watching my post.  I shoot with a 60 d using Photoshop Elements 10.  Finally, I called Canon tech support and found out it was the card reader that was causing problems.  When I used another card reader, I was able to transfer the Jpeg and raw files.  They advised me to connect the camara to the computer to transfer files.  I learned to use a card reader and have for years.  It was the first time, it caused me problems.

  • While the BLOB conversion of type CLOB error - ORA-06502: PL/SQL: digital error or value

    Passing data from attachment of DB (Blob data Type) after the CLOB data type conversion, giving the error "ORA-06502: PL/SQL: digital error or value" in the PL/SQL package. If the BLOB size 32K > it will give another error works great my procedure.

    For example, I enclose my code here.

    function get_base64 (p_blob_in in blob) return clob is

    CLOB v_clob;

    CLOB v_result;

    whole v_offset;

    v_chunk_size PLS_INTEGER: = 12288;

    v_buffer_varchar varchar2 (32767).

    v_buffer_raw raw (32767).

    Start

    fnd_file.put_line (fnd_file.log, 'here');

    If p_blob_in is null then

    Returns a null value.

    end if;

    DBMS_LOB.CREATETEMPORARY (v_clob, true);

    fnd_file.put_line (fnd_file.log, 'here1');

    v_offset: = 1;

    fnd_file.put_line (fnd_file.log, 'Loop value'-| ceil (DBMS_LOB.) GetLength (p_blob_in) / v_chunk_size));

    because me in 1... ceil (DBMS_LOB. GetLength (p_blob_in) / v_chunk_size) loop

    DBMS_LOB. Read (p_blob_in, v_chunk_size, v_offset, v_buffer_raw);

    v_buffer_raw: = utl_encode.base64_encode (v_buffer_raw);

    v_buffer_varchar: = utl_raw.cast_to_varchar2 (v_buffer_raw);

    DBMS_LOB. WriteAppend (v_clob, length (v_buffer_varchar), v_buffer_varchar);

    v_offset: = v_offset + v_chunk_size;

    end loop;

    fnd_file.put_line (fnd_file.log, 'Out of the loop');

    v_result: = v_clob;

    fnd_file.put_line (fnd_file.log, 'V_result length' - |) DBMS_LOB. GetLength (v_result));

    fnd_file.put_line (fnd_file.log, 'V_result' - | v_result);

    DBMS_LOB.freeTemporary (v_clob);

    Return v_result;

    exception

    while others then

    fnd_file.put_line (fnd_file.log, 'Error based on the encode_base64' - |) SQLERRM);

    Returns a null value.

    end;

    In my main program I call this function as below:

    Main proceedings...

    l_return_clob CLOB.

    Begin

    ....

    l_return_clob: = get_base64 (p_blob_in);

    -In returning it gives error - ORA-06502: PL/SQL: digital error or value

    end;

    Then, please mark the thread ANSWERED.

  • ORA-06502: PL/SQL: digital error or the value in the conversion for a long TIME on the CLOB type

    Hello

    I have an EA of RDBMS Oracle 11.2.0.4.

    I ger the following error when I try to convert a data type LONG to type CLOB data thanks to a PL/SQL procedure:

    declare
    v_prefix varchar2 (20): = null;
    v_text_view_clob clob: = null;
    long v_text_view_long: = null;

    cursor c_v
    is
    Select
    a.view_name as view_name
    Of
    USER_VIEWS one;

    Start
    for r_v in c_v
    loop
    Start
    v_text_view_clob: = null;
    v_text_view_long: = null;

    -Do the SQL code of the view
    Select
    a.Text text
    in
    v_text_view_long
    Of
    USER_VIEWS one
    where
    a.view_name = r_v.view_name;

    v_text_view_clob: = v_text_view_long;

    update of ohibo_views one
    set
    a.view_text = v_text_view_clob
    where
    a.view_name = r_v.view_name;
    exception
    while others then
    dbms_output.put_line ('View =' | r_v.view_name |) "kan niet worden geconverteerd!");
    dbms_output.put_line (substr (sqlerrm, 1, 60));
    end;
    end loop;
    -commit;
    exception
    while others then
    lift;
    end;
    /

    I get the error a specific record:

    View = VER_POLISMUTATIES_VW kan niet worden geconverteerd!

    ORA-06502: PL/SQL: digital error or value

    At looked the origina; Value of type LONG and it is indeed a "long" piece of text.

    However, CLOB has a restriction about 4G * db_block_size and LONG 2 G - 1 according to the documentation.

    I should be able with the method above to convert a LONG in CLOB.

    Anyone had a similar situation?

    Thanks in advance for advice how to solve.

    Kind regards

    PS: my apologies, I didn't know which group to post this discussion: database or PL/SQL.

    Good indeed, a link with the right explanation.

    I didn't know that there was such a function.

    Thank you!

    Kind regards

  • substr, digital clob or error value

    I run the script below Oracle 10g and I get "digital error or value in line 7. How to fix this error?
    declare
     stmt clob := 'select 1/*';
     x varchar2(100);
     begin
       stmt := stmt || lpad(to_clob('*'),60000, '*') || '*/ dummy from dual';
       dbms_output.put_line('Length of statement: ' || length(stmt));
       dbms_output.put_line('substr: ' || to_char(substr(stmt,1,30000)));--error
       execute immediate to_char(substr(stmt,1,30000)) || to_char(substr(stmt, 30001)) into x;
       dbms_output.put_line('Result: ' || x);
     end;
    Looks like the problem is that "substr" function does not take arguments of type Clob?

    Something like:

    SQL> ed
    Wrote file afiedt.buf
    
      1  declare
      2   stmt clob := 'select 1/*';
      3   x varchar2(32767);
      4   begin
      5     stmt := stmt || lpad(to_clob('*'),60000, '*') || '*/ dummy from dual';
      6     dbms_output.put_line('Length of statement: ' || length(stmt));
      7     dbms_output.put_line('substr: ' || DBMS_LOB.SUBSTR(stmt,200,1));--error
      8     execute immediate DBMS_LOB.SUBSTR(stmt,200,1) || DBMS_LOB.SUBSTR(stmt,200,20)|| '*/ from dual'
      9     into x;
     10     dbms_output.put_line('Result: ' || x);
     11*  end;
    SQL> /
    Length of statement: 60028
    substr: select 1/***********************************************************************************
    Result: 1
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    Published by: AP on August 11, 2010 01:46

  • Digital or value error on the conversion of the clob to SMLType

    Hello
    What I'm trying to do is
    (i.) pass a value of xml string to the Oracle query variable
    II.) use this XML as part of a join in a query and retrieve the results.

    Approach:
    Input variable type is CLOB and then running the petition below:

    declare
    TestXML clob.
    Start
    textxml: = ' < table1 > < root > < none > 1 < /no > < / root > < root > < none > 2 < / > < non-root / > < / table1 > '

    Open: csr for
    Select tt.no
    de)
    Select xmltype.extract (value (a), ' root/no/text()').getstringval () than no.)
    table (xmlsequence (sys.xmltype(:testxml). Extract('/table1/root'))) a
    ) tt
    Tt.no group;
    end;

    Problem:
    The request as written above wake up a digital error or value to sys.xmltype (ORA-06502 & ORA-06512). But if I declare the testxml as varchar2; It works very well. Searched wrong, but without success.

    Ideas please!

    Other info: Oracle 10g, tool: PL/SQL Developer (Allround Automations).
    3 days on Oracle; on SQL Server 7 years... :) {so be a bit elaborate}
    Spacing of code does not work :( How do we code tags in this forum?

    Published by: rajeev.ranjan on May 11, 2009 07:43

    XMLTABLE usage example:

    SQL> ed
    Wrote file afiedt.buf
    
      1  create or replace procedure get_nos(p_rc OUT sys_refcursor) is
      2    testxml clob;
      3  begin
      4    testxml := '12';
      5    open p_rc for
      6    select tt.no
      7    from (
      8      select no
      9      from xmltable('/table1/root/no' passing xmltype(testxml) columns no number path '/no/text()')
     10      ) tt
     11    group by tt.no;
     12* end;
    SQL> /
    
    Procedure created.
    
    SQL> var rc refcursor
    SQL> exec get_nos(:rc);
    
    PL/SQL procedure successfully completed.
    
    SQL> print rc;
    
            NO
    ----------
             1
             2
    
    SQL>
    
  • CLOB field of research

    Is it possible to do a search in a CLOB field without using LIKE?

    My SQL courses
    select *
    from table1 t
    where t.field1 = 'Report_Number '||t.ID1||' and Report '||t.Report_Type
    Returns with an ORA-00932: inconsistent data types: expected - received the CLOB error.

    You must use the substr function lob to implicitly get a varchar2, you can then do an exact match

    SQL> create table t (c clob);
    
    Table created.
    
    SQL> insert into t values ('like something');
    
    1 row created.
    
    SQL> select * from t where dbms_lob.substr(c,4000,1) = 'like something';
    
    C
    ------------------------------------------------------------------------
    like something
    

    Note, 4000 is the SQL limit for characters.

  • research or reorganize the nuances of color in digital and alphabetical order?

    I work with architects and interior designers and we time often spec lacquer used for various projects, but often it is necessary to quickly search for a color by name or by color number... is it possible to 'find' a color in a palette of nuance or change the manner in which they are classified in?

    It is not currently searching or sorting.

    But you can manually reorder one of the presets in the preset manager.

  • Process apex Pl/SQL error: ORA-06502: PL/SQL: digital error or value: specified incorrect LOB Locator

    Apex 4.2

    I searched through the forums of the research about this error, but I do not understand what to do from here. I am writing a process that sends an e-mail when a value of the claim is made (or on a button click). Procedure is as follows:

    DECLARE
       l_body        clob;
       l_body_html   clob;
       l_subject    varchar2(100);
    
    BEGIN
      
    l_body := empty_clob();
    l_body_html := empty_clob();
    
    
    IF V('REQUEST') in ('SAVE_ME') AND :P32_PARENT_UPDATED_FL IS NOT NULL THEN
       l_subject :=  'Survey Job Request Updated'||utl_tcp.crlf||utl_tcp.crlf;
       l_body := 'Update'||utl_tcp.crlf;
    
       l_body_html := '<html>
          <head>
             <style type = "text/css">
                 /* Can add style attributes later */
             </style>
          </head>
          <body>'||utl_tcp.crlf;
       l_body_html := l_body_html ||'Survey Job Request has been updated.<br /><br />'||utl_tcp.crlf;
       l_body_html := l_body_html ||'Title: '||utl_tcp.crlf;
       l_body_html := l_body_html ||:P32_TITLE||utl_tcp.crlf;
       l_body_html := l_body_html ||'<br />Request Category : '||utl_tcp.crlf;
       l_body_html := l_body_html ||:P32_REQUEST_CATEGORY||utl_tcp.crlf;
       l_body_html := l_body_html ||'<br />Update Date: '||utl_tcp.crlf;
       l_body_html := l_body_html ||:P32_UPDATE_DATE||utl_tcp.crlf;
       l_body_html := l_body_html ||'<br />Updated By: '||utl_tcp.crlf;
       l_body_html := l_body_html ||:P32_LAST_EDITED_BY_USERID||utl_tcp.crlf;
       l_body_html := l_body_html ||'</body></html>';
    
    
    
    
    
    END IF;
    
    :P32_CANCELLATION_REASON := l_body_html;
    
    apex_mail.send(
       p_to             =>  '[email protected]',
       p_from           =>  '[email protected]',
       p_body           =>  l_body_html,
       p_body_html      =>  l_body_html,
       p_subj           =>  l_subject);
    
    END;
    
    
    
    
    
    
    
    
    
    

    I added two lines to the code (lines 08 and 09) and when I run my program, I now get the error:

    • ORA-21560: 3 argument is null, invalid or out of range

    Without these two lines, I received the error:

    ORA-06502: PL/SQL: digital error or value: specified incorrect LOB Locator

    I'm not quite sure what is wrong or what I can change. There seems to be right, and in fact, it worked before. I have no idea why this error keeps popping up. Any help on that would be great. Thanks in advance.

    Hello

    NewApexCoder wrote:

    Hmmm... good point. I think that apex_mail.send must be called inside the IF block. But in the future, I added several conditional statements, won't I need to include the apex_mail.send function in each IF block? But at the same time, there is the case that if no conditional instructions are met? Tests, when none of the conditions are true (when I had a second IF block in the code), an email would not be defined, which is correct. Could that be causing a problem however. If the IF block is not filled could he always try to send an email about anything or the l_body_html and l_subject fields have in them the garbage that causing ORA error?

    If the call to the procedure of sending (it is a procedure, and not a function) many times is necessary or useful depends on exactly what you're trying to do.

    For example, you can write to Santa for

    • Submit a wish list
    • Change of address
    • Contradiction with your boss, who can you tell Santa you were mean

    or any combination of these grounds.  If you want to send a simple email whenever any of the conditions are met (and not send a when none are met), then you could do something like this:

    DECLARE

    need_to_send BOOLEAN: = FALSE;

    ...

    BEGIN

    ...

    IF wish_list IS NOT NULL

    THEN

    l_body: = l_body | ...

    need_to_send: = TRUE;

    END IF;

    IF old_addresss <> new_address

    THEN

    l_body: = l_body | ...

    need_to_send: = TRUE;

    END IF;

    IF boss_is_a_big_fat_liar

    THEN

    l_body: = l_body | ...

    need_to_send: = TRUE;

    END IF;

    IF need_to_send

    SO - It's the only call to send

    apex_mail. Send...

    In any case, the error message ' ORA-21560: argument 3 sucks...» "is pretty clear: If you have not given a value to everything you're passing as p_body, then you'd better call the procedure.

  • Using an iPad as a digital photo frame 1

    Hello

    I framed and wall mounted my iPad 1, so I can use it as a digital picture frame. But to put it on I have to remove the wall and remove the unit from the frame.

    I would also use to 'framework' other things beyond my photos. For example, showing weather forecasts. And other applications of wall mounting type "smart". To do this I would ideally be driven from an another iDevice.

    From my research, however, the easy remote control options exist (I think I can jailbreak it then vpn with a Mac). My son, I was wondering if I could control it with an external device via the port of loading or even the headphone jack. Side ideas, I thought, but such solutions exist?

    All ideas welcome to help in transform an old iPad 1 in a big digital camera frame.

    The only thing I can think of - but never tried myself - would be to use a bluetooth keyboard. That would leave only the problem of the on/off switch.

  • Digital TV suddenly does not work. Problem updating firmware?

    Hi everyone, I hope someone can help!

    A few months ago, I bought my Bravia Sony 4 K KD-43X8309C at the beginning of August and it worked great. Everything has been fine. I'm going to turn it on this morning (Sept. 30) and have no digital TV, the picture is just empty. TV otherwise works great, Internet, YouTube/Netflix is all good, just Digital TV. Strange I never changed any settings.

    I did some research and realized that today ' today is the release of the new Firmware which I think my TV has automatically downloaded and now not working not just for some reason any. Is there a problem with the Firmware as its quite by chance that the problem started exactly when it was available. I hope you can help!

    All fixed, I went into settings/Factory Reset and erased all settings and put in place from the beginning. Must not uploaded the Firmware correctly but made the second time around.

  • Order of iTunes LPs &amp; digital booklets in multi-disc albums

    Does anyone know when the order of these past? I remember well first iTunes LPs to access booklets and digital last. Both are now going after disc 1. Research disorder during playback of songs sorted as Album of the artist.

    TT2

    I remember good iTunes LPs used to go books first and last digital

    That's what I remember too.

  • trigger digital output myrio

    Hello friends,

    I have a question. I need to trigger an output of Myrio with a single pulse. After the pulse, the output will remain active. Then with another single pulse, the output will be switched off. Should what tool I use?

    Thanks for listening,

    Kind regards

    David

    Hi Davi08,

    I did a little research for you answer and I found another "NI Discussion forums" forum that maybe can help you.
    Try using this link, I think this will help you.

    http://forums.NI.com/T5/academic-hardware-products-Elvis/myRIO-digital-trigger/TD-p/3278560

    Best regards

Maybe you are looking for

  • execution timing

    Hello I'm going to build a real-time application and I want to work for a few minutes, an automatically. Anyone have any idea how to do? Thank you Concerning

  • Cannot restore laptop to factory settings

    HP laptop Dv6-6b50sa QG797ea #ABU I need to restore this machine on the factory settings. Tried pressing the F11 key at startup to the top, but it does nothing

  • How do you know if the software was preinstalled or not?

    I want to uninstall all the programs that I don't use or I do not require so that I can have enough space on my C:. So, how do you know if the software is required for my system or not? If anyone can help me with this, I'll be very grateful. Thank yo

  • Telepresence - Join/leave Notifications Audio - API server

    Hello I'm looking for how to add notifications audio leave/join for STM publishers. I thought that this was added to version 4.3, but looking through the API guide I only see references to the more personalized. Anyone had any experience adding these

  • Is it possible to authenticate 2 or more domains Active Directory via acs solution engine v4.2?

    Hello Is it possible to authenticate ACS solution engine v4.2 against 2 or more Active Directory domains by using the generic LDAP configuration?  One scenario would be to geographic distribution where 1 area would be for the USA and the other would