Add the element as XML using PL/SQL

I have CLOB column contain data XML (more than 3000 characters)
something like that
--------------------------------------------------------------
< order >
< header >
< line1 > < / line1 >
< line2 >
< name1 > < / name2 >
< name1 > < / name2 >
< / line2 >
< / header >
< detail >
< / details >
< / order >
----------------------------------------------------------------
Could someone tell me how I can add a * < line3 > < / line3 > * under an element * < header > *.

Thank you!
FAH

Here's one way:

SQL> create table my_table ( my_clob clob );

Table created

SQL>
SQL> insert into my_table (my_clob)
  2  values ('
  3  
4 5 6 7 8 9
10 11 12
') 13 ; 1 row inserted SQL> select appendchildxml( 2 xmltype(my_clob) 3 , '/order/header' 4 , xmlelement("line3") 5 ).getclobval() 6 from my_table 7 ; APPENDCHILDXML(XMLTYPE(MY_CLOB --------------------------------------------------------------------------------

If you really want to update the column with the new content then:

update my_table
set my_clob = appendchildxml(
                xmltype(my_clob)
              , '/order/header'
              , xmlelement("line3")
              ).getclobval()
where ...

Tags: Oracle Development

Similar Questions

  • retrieve the value of xml in PL - SQL elements

    Hello

    I invoke the PL/SQL WSDL and WSDL is back after the release.

    + <? XML version = "1.0" encoding = "UTF-8"? > +.
    + < SOAP - ENV:Envelope +.
    xmlns:SOAP - ENV = "http://schemas.xmlsoap.org/soap/envelope/".
    xmlns:SOAP - ENC = "http://schemas.xmlsoap.org/soap/encoding/".
    container = "http://www.w3.org/2001/XMLSchema".
    xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
    + < SOAP - ENV:Header +.
    xmlns:SOAP - ENV = 'http://schemas.xmlsoap.org/soap/envelope/' > < / SOAP - ENV:Header > < SO
    AP - ENV:Body >
    + < ser-root: soapIntefraceASVOutput +.
    xmlns:SER - root = http://eai.corpit.microsoft.com/microAccountValidation/provider/Acc «»
    ountStringValidator' > < acctStringValidateOutput >
    + < 112 > status < / status > +.
    + < message > in +.
    account segment is valid
    code < / message > < / acctStringValidateOutput > < / ser-root: soapIntefraceASVOutput > < / SOA
    P ENV:Body >
    + < / SOAP - ENV:Envelope > +.

    I tried to analyze this XML in my PL/SQL block and wanted to retrieve a State <>and < message > element Value.

    Please help me on this.

    Thank you
    AB,

    ABA says:
    Since it is a generic procedure, and we do not know the number of output items... Is it possible to retrieve all the elements of output using pl/sql (without knowing the name of the output items).

     with tab
            as (select xmltype.createxml('
      
     
     
     
        
           
               112
               Invalid account segmentcode
          
        
     ')
                          xml
                 from dual)
     SELECT column_value
       FROM tab t ,
      xmltable( xmlnamespaces('http://schemas.xmlsoap.org/soap/envelope/' AS "SOAP-ENV",'http://eai.corpit.microsoft.com/microAccountValidation/provider/AccountStringValidator' AS "ser-root"), 'data(//SOAP-ENV:Envelope/SOAP-ENV:Body/ser-root:soapIntefraceASVOutput/acctStringValidateOutput/*)' passing t.xml )
    

    Ravi Kumar

  • How to retrieve multiple records in XML using PL/SQL with XE 10 g

    Hi all

    I need your advice, if you please.
    I have an object CLOB as a result of a Web Service, I need to analyze. I use the XE version, XQuery is not for me, I get SYS. Exception DBMS_XQUERYINT.

    I tried to use the snippet, but it looks like I'm doing something wrong there. Please tell me what should I change?

    (1) I have a temporary table with id and xmltype
    (2) I have tested that the example data in the table
    (3) I get nothing no matter if I use,'/ modifyPlannedItemStatus/days [1] / day_of_week_order "or simply,'/ modifyPlannedItemStatus/days [1] / day_of_week_order'."

    Thanks in advance


    DECLARE
    my_xml XMLTYPE.
    my_clob CLOB: =' <? XML version = "1.0" encoding = "UTF-8" standalone = 'no '? >
    < mgns1:modifyPlannedItemStatus xmlns:mgns1 = "http://www.mart-sw.co.uk/library" >
    < days >
    A < day_of_week_code > < / day_of_week_code >
    < day_of_week_order > 1 < / day_of_week_order >
    Monday < day_of_week_name > < / day_of_week_name >
    < / days >
    < days >
    < day_of_week_code > B < / day_of_week_code >
    < day_of_week_order > 2 < / day_of_week_order >
    Tuesday < day_of_week_name > < / day_of_week_name >
    < / days >
    < / mgns1:modifyPlannedItemStatus > ';

    I INTEGER: = 1;

    my_varchar VARCHAR2 (3000);
    BEGIN

    insert into session_temp_xml values (i, xmltype.createxml (my_clob));

    SELECT to_clob(extract(s.xml_data,'/modifyPlannedItemStatus/days[1]/day_of_week_order')) IN the s session_temp_xml my_varchar;


    dbms_output.put_line (' result ' |) RTrim (my_varchar));


    END;

    Hello

    'Re missing you the declaration of the namespace of the root node.

    extract( s.xml_data
           , '/mgns1:modifyPlannedItemStatus/days[1]/day_of_week_order'
           , 'xmlns:mgns1="http://www.mart-sw.co.uk/library"' )
    

    This will give you an instance of XMLType:

    1
    

    To convert it to CLOB or VARCHAR2 (i.e. to serialize the XML content in a character stream) use one of the getter methods getClobVal or getStringVal.
    If you want to retrieve the scalar value of the element (text node), use extractValue in place of the extract function.

    Here is an example on how to extract some repetitive elements in your version:

    SQL> create table session_temp_xml (
      2   id number,
      3   xml_data xmltype
      4  );
    
    Table created
    
    SQL> insert into session_temp_xml values (1, xmltype(
      2  '
      3  
      4  
      5   A
      6   1
      7   Monday
      8  
      9  
     10   B
     11   2
     12   Tuesday
     13  
     14  ')
     15  );
    
    1 row inserted
    
    SQL>
    SQL> SELECT extractValue(x.column_value, '/days/day_of_week_code') as day_of_week_code
      2       , extractValue(x.column_value, '/days/day_of_week_order') as day_of_week_order
      3       , extractValue(x.column_value, '/days/day_of_week_name') as day_of_week_name
      4  FROM session_temp_xml s
      5     , TABLE(
      6         XMLSequence(
      7           extract(
      8             s.xml_data
      9           , '/mgns1:modifyPlannedItemStatus/days'
     10           , 'xmlns:mgns1="http://www.mart-sw.co.uk/library"'
     11           )
     12         )
     13       ) x
     14  ;
    
    DAY_OF_WEEK_CODE      DAY_OF_WEEK_ORDER      DAY_OF_WEEK_NAME
    --------------------- ---------------------- ---------------------
    A                                          1 Monday
    B                                          2 Tuesday
     
    

    Hope that helps.

  • I bought accidenally download windows of the elements first, I use a mac, how can I change it?

    I bought accidenally download windows of the elements first, I use a mac, how can I change it?

    Hello

    Please follow a product for another language or version of trading platform

    Hope that helps!

    Kind regards

    Sheena

  • Can you explain why the "analytical" Word is used in Sql

    I found to define the "analytic function" phrase is such: "a piece of syntax that is originating excessive."
    I don't understand why's called it "Analytics". In English 'analytical' comes from the word "to analyse" which means the examination of something. So it looks like "analytic function" should review/analyze something? but all the functions examaine/analyze something. If I group by article in my request, then all aggregate functions will conduct the review of the data, then why I call them better too 'analytic (al). Can you explain why the "analytical" Word is used in Sql world?

    CharlesRoos wrote:
    I found to define the "analytic function" phrase is such: "a piece of syntax that is originating excessive."
    I don't understand why's called it "Analytics". In English 'analytical' comes from the word "to analyse" which means the examination of something. So it looks like "analytic function" should review/analyze something? but all the functions examaine/analyze something. If I group by article in my request, then all aggregate functions will conduct the review of the data, then why I call them better too 'analytic (al). Can you explain why the "analytical" Word is used in Sql world?

    Aggregate functions will bring together data that is to sum or count etc once it is grouped together. It is not just review, but grouping.
    Analytical functions review / analyze the other rows of data, without having to group them in the result that they can summarize a set of values of a particular group (partition) of the data, or they can simply retrieve values of other lines (for example lead, lag, the first_value, last_value etc. functions.) They are able to look through the data without any aggregation of it. So why they are analytical.

  • Add the elements of a single line/column of a matrix

    Hi all

    What is the best way to add all the elements of a single row or column of a given matrix the matrix and the number of this line/column on LabVIEW? The output should be a number for each row or column.

    ARIJ,

    You always said not if you use a table or a matrix.

    The transposition has to be out of the loop.

    This will give you the sum of all rows and all columns.

    These are functions and LabVIEW base constructions. If you do not understand the concepts, please visit the online tutorials.

    Lynn

  • Add the element of matrix / 2d array

    Hello forum users.

    I'm working on an application that uses a mobile robot to draw area.

    To do this, I have 16 records sonar once per second. These sonar readings give a coordinate X and Y hence is an obstacle.

    Now what I want to do, is make a matrix / 2d table I qualify by 501 501 k size and have all the elements of this matrix be zero. For each of my readings of sonar, I want to add 1 to a specific cell in the matrix.

    (example lets say that this robot detects the first object at position 400 x 400, this cell instead of zero would have a value of 1).

    The final product should be a 3d mesh/surface chart that updates the robot moves around the room (updated at intervals of 1 second).

    I know that this could be done in Matlab, so I thought that I could use the MathScript node, but that I can export my front mesh function?

    Thanks for the help

    Here's a quick code showing a 2D histogram displayed in 2D or 3D.

    Modify if needed. Of course if you want to cap the z to 1, use simply 'replace the subset of table' with '1' as element instead of the current structure of "in place".

  • How because result of xml using PL/SQL

    Hi all.

    I got a response from the web service xml, and I must parseit using PL/SQL.

    This is my XML:

    " < s: Envelope = xmlns:s ' http://www.w3.org/2003/05/soap-envelope "" xmlns: a = " " http://www.w3.org/2005/08/addressing ">

    < s:Header >

    < a: Action = '1' s:mustUnderstand > http://tempuri.org/IPagosLineaService/ProcesarComunicacionOnlineResponse < / a: Action >

    < / s:Header >

    < Body >

    " < ProcesarComunicacionOnlineResponse xmlns =" http://tempuri.org/ ">

    " < ProcesarComunicacionOnlineResult xmlns: b = ' http://schemas.DataContract.org/2004/07/SiGe.Servicios.Sanaa "xmlns:i =" " http://www.w3.org/2001/XMLSchema-instance « >

    < b:REFGLOBAL > 201510533758 < / b:REFGLOBAL >

    < b:IMPTOTAL > 357.09 < / b:IMPTOTAL >

    < b:IMPMORA > 0 < / b:IMPMORA >

    < b:TIPOIMP > 67 < / b:TIPOIMP >

    < b:MONEDA > 76 < / b:MONEDA >

    < b:FETPAG > 2015-11-30 T 00: 00:00 < / b:FETPAG >

    < b:CLIENTE > 61998 < / b:CLIENTE >

    < b:NOMBRE > MARIO ALFONSO PINEDA < / b:NOMBRE >

    < b:BANCO > 7 < / b:BANCO >

    < b:CAJERO > 1017 < / b:CAJERO >

    B1234 < b:BCID > < / b:BCID >

    < b:AVISOS >

    < b:AVISO >

    < b:REFPAGO > 201510533758 < / b:REFPAGO >

    < b:TIPOAVISO > 80 < / b:TIPOAVISO >

    < b:IMPTOTAL > 357.09 < / b:IMPTOTAL >

    < b:IMPMORA > 0.00 < / b:IMPMORA >

    < b:IMPMIN > 357.09 < / b:IMPMIN >

    < b:TIPOIMP > 67 < / b:TIPOIMP >

    < b:MONEDA > 76 < / b:MONEDA >

    < b:CODIGO_COMERCIAL > 2535510971 < / b:CODIGO_COMERCIAL >

    < b:CLIENTE > 61998 < / b:CLIENTE >

    < b:NOMBRE > MARIO ALFONSO PINEDA < / b:NOMBRE >

    < b:DIRECCION > BL E RETORNO 7Y8 N7302 COL NAKED < / b:DIRECCION >

    < b:RECIBOS >

    < b:RECIBO >

    < b:CODIGOFACT > 201510533758 < / b:CODIGOFACT >

    < b:FECHAFACT > 2015 - 11 - 11 T 00: 00:00 < / b:FECHAFACT >

    < b:FECHAVTO > 2015-11-30 T 00: 00:00 < / b:FECHAVTO >

    < b:IMPTOTAL > 357.09 < / b:IMPTOTAL >

    < b:IMPMORA > 0.00 < / b:IMPMORA >

    < b:TIPOIMP > 67 < / b:TIPOIMP >

    < b:MONEDA > 76 < / b:MONEDA >

    < b:EJERCICIO > 2015 < / b:EJERCICIO >

    < b:PERIODO > 10 < / b:PERIODO >

    < b:LECTANT > 611 < / b:LECTANT >

    < b:FECHLECTANT > 2015 - 10-01 T 00: 00:00 < / b:FECHLECTANT >

    < b:LECTACT > 728 < / b:LECTACT >

    < b:FECHLECTACT > 2015 - 11 - 02 T 00: 00:00 < / b:FECHLECTACT >

    < b:CONSUMO > 31 < / b:CONSUMO >

    < b:NUMSERIEAM > 5884 < / b:NUMSERIEAM >

    < b:CODIGO_COMERCIAL > 2535510971 < / b:CODIGO_COMERCIAL >

    < b:CATEGORIA > DOMESTICA < / b:CATEGORIA >

    < b:LINEAS_DETALLE >

    < b:DETALLE >

    Alcantarillado Sanitario < b:DESCRIPCION > < / b:DESCRIPCION >

    < b:CANTIDAD > 31 < / b:CANTIDAD >

    < b:UNIDMED > M3 < / b:UNIDMED >

    < b: MATTER > 57,12 < / b: MATTER >

    < / b:DETALLE >

    < b:DETALLE >

    Mantenimiento Medidor < b:DESCRIPCION > < / b:DESCRIPCION >

    < b:CANTIDAD > 1 < / b:CANTIDAD >

    < b:UNIDMED > M3 < / b:UNIDMED >

    < b: MATTER > 1.50 < / b: MATTER >

    < / b:DETALLE >

    < b:DETALLE >

    Costo fijo por Conexion < b:DESCRIPCION > < / b:DESCRIPCION >

    < b:CANTIDAD > 1 < / b:CANTIDAD >

    < b:UNIDMED > M3 < / b:UNIDMED >

    < b: MATTER > 70.00 < / b: MATTER >

    < / b:DETALLE >

    < b:DETALLE >

    Drinking Agua < b:DESCRIPCION > < / b:DESCRIPCION >

    < b:CANTIDAD > 31 < / b:CANTIDAD >

    < b:UNIDMED > M3 < / b:UNIDMED >

    < b: ANY > 228,47 < / b: MATTER >

    < / b:DETALLE >

    < b:DETALLE >

    Jubilado Descuento < b:DESCRIPCION > < / b:DESCRIPCION >

    < b:CANTIDAD > 1 < / b:CANTIDAD >

    < b:UNIDMED > M3 < / b:UNIDMED >

    < b: MATTER > 0.00 < / b: MATTER >

    < / b:DETALLE >

    < b:DETALLE >

    Interested por Mora < b:DESCRIPCION > < / b:DESCRIPCION >

    < b:CANTIDAD > 1 < / b:CANTIDAD >

    < b:UNIDMED > M3 < / b:UNIDMED >

    < b: MATTER > 0.00 < / b: MATTER >

    < / b:DETALLE >

    < b:DETALLE >

    Pendiente Saldo < b:DESCRIPCION > < / b:DESCRIPCION >

    < b:CANTIDAD > 1 < / b:CANTIDAD >

    < b:UNIDMED > M3 < / b:UNIDMED >

    < b: MATTER > 0.00 < / b: MATTER >

    < / b:DETALLE >

    < b:DETALLE >

    Convenios < b:DESCRIPCION > < / b:DESCRIPCION >

    < b:CANTIDAD > 1 < / b:CANTIDAD >

    < b:UNIDMED > M3 < / b:UNIDMED >

    < b: MATTER > 0.00 < / b: MATTER >

    < / b:DETALLE >

    < / b:LINEAS_DETALLE >

    < / b:RECIBO >

    < / b:RECIBOS >

    < / b:AVISO >

    < / b:AVISOS >

    < / ProcesarComunicacionOnlineResult >

    < / ProcesarComunicacionOnlineResponse >

    < / Body >

    < / s: Envelope >

    It's my PL/SQL code:

    create or replace

    procedure SANAA_CONSULTA (Operación in varchar2,

    codigocomercial in varchar2,

    Banco in varchar2,

    cajero in varchar2,

    BCID in varchar2,

    p_recordset to sys_refcursor) as

    soap_request varchar2 (32000);

    CLOB soap_respond; -VARCHAR2 (32000);

    -soap_respond varchar2 (30000);

    http_req utl_http.req;

    http_resp utl_http.resp;

    RESP XMLType.

    CLOB resp1;

    -resp1 varchar2 (30000);

    resp2 varchar2 (30000);

    soap_err exception;

    v_code varchar2 (200);

    v_msg varchar2 (1800);

    number of v_len;

    v_txt varchar2 (32767).

    I have integer;

    tablaTemp varchar2 (2000);

    tablaTemp2 varchar2 (2000);

    tablaTemp3 varchar2 (2000);

    tablaTemp4 varchar2 (2000);

    tablaTemp5 varchar2 (2000);

    tablaTemp6 varchar2 (2000);

    CLOB vCampo;

    buffer varchar2 (32767).

    Start

    " soap_request: = ' < envelope soap: xmlns:soap = ' http://www.w3.org/2003/05/soap-envelope "xmlns:tem =" " http://tempuri.org/ "xmlns:sige =" " http://schemas.DataContract.org/2004/07/SiGe.Servicios.Sanaa « >' ||

    ' < soap: Header / > '.

    "< soap: Body >" |

    "< tem:ProcesarComunicacionOnline >" |

    ' <!-in option: - > ' |

    "< tem:msg >" |

    ' <!-in option: - > ' |

    "< sige:OPERACION >" | Operación | "< / sige:OPERACION > ' |

    "< sige:CODIGO_COMERCIAL >" | codigocomercial | "< / sige:CODIGO_COMERCIAL > ' |

    "< sige:BANCO >" | Banco | "< / sige:BANCO > ' |

    ' <!-in option: - > ' |

    "< sige:CAJERO >" | cajero | "< / sige:CAJERO > ' |

    ' <!-in option: - > ' |

    "< sige:BCID >" | BCID | "< / sige:BCID > ' |

    ' < / tem:msg > ' |

    ' < / tem:ProcesarComunicacionOnline > ' |

    ' < / soap: Body > ' |

    ' < / envelope soap: > ';

    http_req: = utl_http.begin_request ("http://181.210.29.198:8099/PagosLineaGGS/sige.servicios.sanaa.Pagoslineaservice.svc', ")

    "MESSAGE."

    "(HTTP / 1,1');"

    Utl_http.set_header (http_req, 'Content-Type', ' text/xml "");

    Utl_http.set_header (http_req, "Content-Length", LENGTH (soap_request) ");

    Utl_http.set_header (http_req,

    "SOAPAction",.

                          ' http://tempuri.org/IPagosLineaService/ProcesarComunicacionOnline');

    Utl_http.write_text (http_req, soap_request);

    http_resp: = utl_http.get_response (http_req);

    DBMS_LOB. CREATETEMPORARY (vCampo, true);

    loop

    Start

    Utl_http.READ_TEXT (http_resp, buffer, 32767);

    If the buffer is not null

    and length (buffer) > 0

    then

    DBMS_LOB. WriteAppend (vCampo, length (buffer), buffer);

    end if;

    exception

    while others then

    "exit";

    end;

    end loop;

    -utl_http.read_text (http_resp, soap_respond);

    Utl_http.end_response (http_resp);

    -RESP: = XMLType.createXML (soap_respond);

    -resp1: = resp.extract('/*').getStringVal ();

    Open the p_recordset for

    with XML in the form

    (select XMLTYPE (vCampo) as double OBJECT_VALUE)

    -(select XMLTYPE (resp1) in the OBJECT_VALUE of the double)

    -Select

    -Select *.

    Select the amount Descripción, unidmed, matter

    -Select *.

    XML,.

    XMLTABLE)

    XmlNamespaces)

                ' http://schemas.DataContract.org/2004/07/SiGe.Servicios.Sanaa ' « b »

              , ' http://www.w3.org/2003/05/soap-envelope/ ' as "s"

    , by default ' http://tempuri.org/ '

    )

    -'/ / b:DETALLE'

    -, ' / ProcesarComunicacionOnlineResponse/ProcesarComunicacionOnlineResult / b:AVISOS / b:AVISO / b:RECIBOS / b:RECIBO / b:LINEAS_DETALLE / b:DETALLE'

    , ' / s: Envelope / Body/ProcesarComunicacionOnlineResponse/ProcesarComunicacionOnlineResult / b:AVISOS / b:AVISO / b:RECIBOS / b:RECIBO / b:LINEAS_DETALLE / b:DETALLE'

    by the way the OBJECT_VALUE columns

    Descripción varchar2 (80) path "DESCRIPCIÓN."

    amount varchar2 (10) PATH "AMOUNT."

    unidmed varchar2 (10) path "UNIDMED."

    VARCHAR2 (2) any PATH 'MATTER');

    end SANAA_CONSULTA;

    But I get the following error:

    ORA-31011: Fallo en el Análisis XML ORA-19202: Se ha during an aforementioned LPX-00229 el error: input source is empty of XML ORA-06512: en "SYS. XMLTYPE", linea 272 ORA-06512: linea en 1

    Can someone give me a solution?

    Thank you in advance.

    You have specified namespace "s" wrongly, and you are not referencing the namespace "b" in your columns:

    SQL > ed
    A written file afiedt.buf

    1 with t (xml) as (select xmltype (to_clob (')))
    "" 2 http://www.w3.org/2003/05/soap-envelope "xmlns: a = 'http://www.w3.org/2005/08/addressing' > '.
    3
    4 http://tempuri.org/IPagosLineaService/ProcesarComunicacionOnlineResponse
    5

    6


    "7 http://tempuri.org/" >
    "' 8 http://schemas.datacontract.org/2004/07/sige.Servicios.Sanaa" xmlns:i = "http://www.w3.org/2001/XMLSchema-instance" > ".
    9 201510533758
    10 357.09
    11              0
    12              67
    13              76
    14 2015-11 - 30 T 00: 00:00
    15 61998
    16 MARIO ALFONSO PINEDA
    17              7
    18              1017
    B1234 19
    20
    21
    22 201510533758
    23                    80
    24                    357.09
    25                    0.00
    26                    357.09
    27                    67
    28                    76
    29 2535510971
    30                    61998
    31 MARIO ALFONSO PINEDA
    32 BL E RETORNO 7Y8 N7302 COL NAKED

    33
    34
    35 201510533758
    36 2015-11 - 11T 00: 00:00
    37 2015-11 - 30 T 00: 00:00
    38                          357.09
    39                          0.00
    40                          67
    41                          76
    42                          2015
    43                          10
    44                          611
    45 2015-10 - 01 T 00: 00:00
    46                          728
    47 2015-11 - 02T 00: 00:00
    48                          31
    49                          5884
    50 2535510971
    51 DOMESTICA
    52                          ')|| TO_CLOB (')
    53
    54 Alcantarillado Sanitario
    55                                31
    56                                M3
    57                                57.12
    58

    59
    60 Mantenimiento Medidor
    61                                1
    62                                M3
    63                                1.50
    64

    65
    66 Costo fijo por Conexi¾n
    67                                1
    68                                M3
    69                                70.00
    70

    71
    72 of drinking water
    73                                31
    74                                M3
    75                                228.47
    76

    77
    78 Jubilado Descuento
    79                                1
    80                                M3

    81                                0.00
    82
    83
    84 of interested por Mora
    85                                1
    86                                M3
    87                                0.00
    88

    89
    90 Saldo Pendiente
    91                                1
    92                                M3
    93                                0.00
    94

    95
    96 Convenios
    97                                1
    98                                M3
    99                                0.00
    100

    101
    102
    103
    104
    105
    106
    107
    108
    109 ')) double)
    110. -
    111 end of sample data
    112-
    113 select x.*
    114 t
    115, XMLTABLE (xmlnamespaces ('http://schemas.datacontract.org/2004/07/sige.Servicios.Sanaa' 'b'))
    116, "http://www.w3.org/2003/05/soap-envelope" as "s".
    117, by default 'http://tempuri.org/'.
    118                               )
    119,'/ s: Envelope / Body/ProcesarComunicacionOnlineResponse/ProcesarComunicacionOnlineResult / b:AVISOS / b:AVISO / b:RECIBOS / b:RECIBO / b:LINEAS_DETALLE / b:DETALLE'
    passage of 120 xml
    path of varchar2 (80) 121 Descripción columns '. / b:DESCRIPCION',
    122 varchar2 (10) amount WAY '. / b:CANTIDAD',
    123 unidmed varchar2 (10) PATH '. / b:UNIDMED',
    124 regardless of PATH number '. / b: MATTER '
    125*               ) x
    SQL > /.

    DESCRIPCIÓN AMOUNT UNIDMED MATTER
    -------------------------------------------------------------------------------- ---------- ---------- ----------
    Alcantarillado Sanitario 31 M3 57.12
    Mantenimiento Medidor 1 1.5 M3
    Costo fijo por Conexi¾n 1 M3 70
    Agua Potable                                                                     31         M3         228.47
    1 Jubilado descuento M3 0
    Intereses por Mora                                                               1          M3         0
    Saldo Pendiente                                                                  1          M3         0
    Convenios                                                                        1          M3         0

    8 selected lines.

    SQL >

  • Access to the element in a dynamic PL/SQL trigger Action?

    Hello

    I have a form that is used to calculate the volume of a (large) number of tanks based on the heights of tank is entered.

    I have a PL/SQL procedure that performs the calculation: it receives the name of the tank and the height and calculates the volume (each tank may have different physical characteristics).

    I didn't create a dynamic Action by tank (I'm lazy and the number of tanks is important!). I currently have a dynamic Action that is triggered whenever one of the heights of the tank on the form changes. The PL/SQL action called the calculation for each tank. FOR EXAMPLE

    :P1_TANK1_VOL := tank.vol('TANK1', :P1_TANK1_HEIGHT);
    :P1_TANK2_VOL := tank.vol('TANK2', :P1_TANK2_HEIGHT);
    ...
    :P1_TANK50_VOL := tank.vol('TANK50', :P1_TANK50_HEIGHT);
    
    

    This works, but is to perform calculations of 50 whenever one is necessary, and can seem slow.

    Is there a way to identify the trigger for the action of PL/SQL? FOR EXAMPLE

    IF TriggeringElement = 'P1_TANK1_HEIGHT' THEN
    :P1_TANK1_VOL := tank.vol('TANK1',:P1_TANK1_HEIGHT);
    END IF;
    
    

    Any ideas?

    No PL/SQL directly. You could do a JavaScript action before your PL/SQL and write the id (which is the name of the element in the APEX), the item trigger in a hidden item, submit it to your PL/SQL action and now you know how it started.

    Kind regards

    Joni

  • How to set the value of the point of application using pl/sql in the application process

    Hi guys,.

    I want a global variable (application point) whose value will be set to start when a user logs on to the application. The value will be retrieved from the database by using a sql query. I don't exactly know the syntax to set the value of the point of application in the application process. Also, I want to know what type of enforcement process should I use to set the value of the point of application, when a user starts a session. The value of the point of application varies from one user to the user.

    Help, please.

    I use apex 4.2

    Kind regards

    Waqas

    You can use the application element as a link with his name. That is to say. your point of application is named G_MY_APPLICATION_ITEM, then you can / set of access using: G_MY_APPLICATION_ITEM.

    For example

    BEGIN

    -assign as a variable

    : G_MY_APPLICATION_ITEM: = 'LARRY ';

    --

    -use in a SQL statement

    SELECT WHATEVER_COLUMN

    IN: G_MY_APPLICATION_ITEM

    FROM MY_TABLE

    WHERE USERNAME =: APP_USER

    ;

    END;

    Peter

  • Displays the dates of diff using PL/SQL expression for the item "display only"?

    Hello
    I have a single display element -: P2_FROM_Date. If his game, Fri, sat or Sun I want to put the date of the last Monday date. If its Mon, Mar or sea, it must be this date of Monday.

    Ex: Today is Friday and last Monday was 18.
    So yesterday, today, tomorrow and Sunday, the date appear as June 18, 2012.
    Since Monday to Wednesday, the date has to be the next that is Monday, June 24, 2012

    I tried under 'Source' from the element using PL/SQL expression and the body of the PL/SQL function. Does not

    Can anyone help?

    Thanks and greetings
    Umer

    1. you must set 'used source' "Always".
    2 If you use a PLSQL function as source type body should set a 'RETURN' statement like this:

    declare
    lv_date number;
    begin
    select to_char(sysdate,'D') into lv_date from dual;
    if lv_date=2 then
      return to_char(sysdate-1);
    end if;
    end;
    

    Published by: mario1977 on June 27, 2012 11:44

  • How to change the color of the elements of cluster using the reference

    Hello

    I have cluster with 10 LEDS, each LED represents a test within my program, based on success or failure, I want to change the color of each LED, I use the cluster as input reference to test subvi.

    Is there a method to change the color of the induvidual elements?

    Thanks in advance.

    Can be used with any wire Ref properties are determined by the class of the wire Ref itself.

    Generic refs are geneirc properties.

    The FTA to obtain the properties of the elements within the cluster, you will need to tell LV class is a cluster. The same for the items in the cluster.

    Please consider this nugget on the help of control references. Don't worry about understanding everytihing that I wrote in this nugget, since it was written to be entertaining at all levels. Find the section where I show

    How to cast Ref nums as of specific types.

    Ben

  • HELP required on forming the matrix of data using PL/SQL

    Hi all

    I'm new on this thread and need your help in this regard.

    I have a requirement for the construction of a matrix of 5000 X 5000 using PL/SQL. My original data tables have 5000 lines each and I need to make a correlation analysis using these data and need to store in a physical table, and not in memory. This feat feasible the simple use of PL/SQL? I understand that Oracle DB has a limit of 1000 columns (but not sure) and so I would like to know if there is a workaround for this kind of scenario. If not, what are the other alternative methods to achieve this feat? Do I need to use any 3rd party tools to do this? A quick response from experts is highly appreciated.

    Thanking you in advance all the gurus.

    Rgds

    SAI

    1006089 wrote:

    I have a requirement for the construction of a matrix of 5000 X 5000 using PL/SQL.

    Possible. But this will require a large part of the memory. As PL/SQL is a language server side, this means the server's memory. That means server potential resource problems.

    And that the server environment is a multiprocessu multi-user environment, it also means potentially several copies of this code of matrix running multiple processes, each putting a request very heavy on the resources of the server. Is no longer a matter of potential server resources, but a guarantee... (exactly the same problem if you use app server architecture and Java or .net)

    You have to ask what is the cracking of data, server-side language? The answer is SQL. No PL/SQL. SQL runs rings around PL/SQL, Java, C/C++ and other languages when it comes to complex, fast and scalable, processing of large volumes of data.

    So you ask yourself why use PL/SQL? With his expensive server memory footprint? SQL and not SQL tables that are designed to deal with massive data effectively and efficiently?

  • EMERGENCY required on forming the matrix of data using PL/SQL

    Hi all

    I'm new to this thread and need your emergency assistance in this regard.

    I have a requirement for the construction of a matrix of 5000 X 5000 using PL/SQL. My original data tables have 5000 lines each and I need to make a correlation analysis using these data and need to store in a physical table, and not in memory. This feat feasible the simple use of PL/SQL? I understand that Oracle DB has a limit of 1000 columns (but not sure) and so I would like to know if there is a workaround for this kind of scenario. If not, what are the other alternative methods to achieve this feat? Do I need to use any 3rd party tools to do this? A quick response from experts is highly appreciated.

    Thanking you in advance all the gurus.

    Rgds

    SAI

    DOUBLE WIRE!

    Now that you have published in your question in the forum SQL and PL/SQL please mark this thread ANSWERED.

  • How to add the fragment in jsf using page add tag to jdeveloper

    Hi all
    Can you tell me wat is use the syntax: tag .or how to add the fragment in the jsf page...

    Published by: 947228 on July 18, 2012 05:01

    Hello

    Why do you do this?

    Check [url https://blogs.oracle.com/jheadstart/entry/avoid_use_of_jspinclude_where] this out before continuing.

    BTW, always mention your version JDev, varnish usecase for assistance.

    Arun-

Maybe you are looking for