Any ideas to convert oracle XML or CLOB type collections

Hi all

Have actively tried to convert collections of oracle XML or CLOB objects to be stored in the table of database for logging purposes. Tried to look for clues. You can help.

Here is the script that I created temporarily to try the code:

DROP TABLE insert_table;

CREATE TABLE insert_table
(
Serial NUMBER (9),
first name VARCHAR2 (35),
name VARCHAR2 (35),
E-mail VARCHAR2 (65).
home_phone NUMBER (10),
work_phone NUMBER (10),
CONSTRAINT serial_pk PRIMARY KEY (serial)
);

DELETE FROM temporary_table;

INSERT INTO temporary_table VALUES (1, "Arthur", "Wright", "[email protected]", 5439021232, NULL);
INSERT INTO temporary_table VALUES (2, 'will', "Ball", "[email protected]", 4379021000, NULL);
INSERT INTO temporary_table VALUES (3, 'Kerwin","Mike","[email protected]", 9018236733, 6621232356);
INSERT INTO temporary_table VALUES (4, 'Krammer', 'Cone', '[email protected]', NULL, 3238483323);

DROP TYPE obj_detail FORCE
/
DROP TYPE obj_detail_list FORCE
/

CREATE or REPLACE TYPE obj_detail AS OBJECT
(Serial NUMBER (9),
full_name VARCHAR2 (70).
Department VARCHAR2 (10),
assessment VARCHAR2 (1))
/

CREATE or REPLACE TYPE obj_detail_list AS TABLE OF THE obj_detail
/

DECLARE
CTX DBMS_XMLGEN.ctxHandle;
XML CLOB.
obj_det_list obj_detail_list: = obj_detail_list ();
BEGIN
SELECT obj_detail (series,
last_name. first name,
"Software."
« A »)
LOOSE COLLECTION obj_det_list
Of insert_table;

CTX: = DBMS_XMLGEN.newContext ("SELECT * FROM TABLE (obj_det_list)'");
Dbms_output.put_line (ctx);

XML: = DBMS_XMLGEN.getXML (ctx);
Dbms_output.put_line (xml);

DBMS_XMLGEN.closeContext (ctx);
END;
/

Hello

"" "You're almost there. '"

The error you have is because you try to refer to a local variable (the collection) in a static SQL string.
A solution would be to use a binding in the query variable, but only VARCHAR2 with DBMS_XMLGEN are allowed.

However, you can bind the collection using a REF CURSOR:

SQL> DECLARE
  2    ctx          DBMS_XMLGEN.ctxHandle;
  3    xml          CLOB;
  4    obj_det_list obj_detail_list := obj_detail_list();
  5
  6    rc           sys_refcursor;
  7
  8  BEGIN
  9
 10   SELECT obj_detail(serial,
 11                     last_name || first_name,
 12                     'Software',
 13                     'A')
 14   BULK COLLECT INTO obj_det_list
 15   FROM temp_table;
 16
 17   OPEN rc FOR SELECT * FROM TABLE(obj_det_list);
 18
 19   ctx := DBMS_XMLGEN.newContext(rc);
 20   xml := DBMS_XMLGEN.getXML (ctx);
 21   DBMS_OUTPUT.put_line (xml);
 22
 23   DBMS_XMLGEN.closeContext(ctx);
 24   CLOSE rc;
 25
 26  END;
 27  /



 
  1
  WrightArthur
  Software
  A
 
 
  2
  BallWill
  Software
  A
 
 
  3
  MikeKerwin
  Software
  A
 
 
  4
  ConeKrammer
  Software
  A
 


PL/SQL procedure successfully completed
 

You don't even need DBMS_XMLGEN:

DECLARE

  xml          CLOB;
  obj_det_list obj_detail_list;

BEGIN

 SELECT obj_detail(serial,
                   last_name || first_name,
                   'Software',
                   'A')
 BULK COLLECT INTO obj_det_list
 FROM temp_table;

 SELECT xmltype(cursor(select * from table(obj_det_list))).getClobVal()
 INTO xml
 FROM dual;

 DBMS_OUTPUT.put_line (xml);

END;
/

Tags: Oracle Development

Similar Questions

  • procedure for converting long on the clob type

    Please you need to process long migrate on the clob, with variables type
    V_SRC_TABLE (LONG) to V_TRAGT_TABLE (CLOB)

    SOURCE AND TARGET HAVE TWO COLUMNS

    SOURCE_TABLE
    VARACHAR2
    LONG


    TARGET_TABLE
    VARACHAR2
    CLOB

    Hello

    Assuming you want to convert data always source_table target_table knowing the column names, let's say:

    SQL> CREATE TABLE source_table(col1 VARCHAR2(10), col2 LONG);
    
    Table created.
    
    SQL> CREATE TABLE target_table(col1 VARCHAR2(10), col2 CLOB);
    
    Table created.
    

    You can simply copy the data using SQL:

    INSERT INTO target_table SELECT col1, TO_LOB(col2) FROM source_table;
    

    Or, as a procedure:

    CREATE OR REPLACE PROCEDURE migrate_to_clob IS
    
    BEGIN
    
      EXECUTE IMMEDIATE 'INSERT INTO target_table SELECT col1, TO_LOB(col2) FROM source_table';
    
    END;
    

    It will be useful.

  • Hi, I m looking for a decoding of the 0x6101be5 fault code. Any idea to solve this problem?

    Hi, I m looking for a decoding of the 0x6101be5 fault code. Any idea to solve this problem?

    Type of the printer is Photosmart D5460

    Thanks a lot for hel

    steviedanielle

    It could be a work around. each time u replace each cartridge. Turn on the printer and check if that make all the difference... Although the chances of losing these cartridges are more unless your next printer uses the same cartridge

  • Automatic resizing of the pop-ups of sizing does not correctly after you convert the project RH9 RH10 until.  Any ideas?

    We went just at RH10 (upgrade came with the Adobe Technical Communication Suite 4 upgrade).  We have successfully converted four projects that had come from RH9 to RH10.  I think my only problem is that all my popups that have been configured to open it in the topic as "display in the sizing Auto popup" are open as if they were under "default page" (see image map screen below):

    Popups_Not_Autosizing_RH10.gif

    We run IE9 and Windows 7 ops system browser.  These pop-up windows worked well and is size so that we can click out of them and go back to the main topic before we converted the project.  ANY IDEAS?

    P.S. I tried already to remove the option of automatic resizing of popup display, then by saving the topic, then change back and nothing happened.  I do not change my css or the master page that popups were assigned and that worked before the conversion.

    Thank you!!  I wonder if I'll have to redo any mapping of the image to each of the popups in order to get the autosizing popups to work.  Please notify.

    Post edited by: DNCopeland I discovered another employee who has already climbed to the RH10 could open the same project and see the pop-ups that open as automatically resized for her, not as a page by default the entire window because they are for me.

    Sorry to barge here, but I wanted to pass along my experience with this bug.

    I found this automatic resizing (or custom also) pop-ups in image maps have been works well in Rh9 and broken in Rh10 in the Topic Previewer (glasses icon) BUT NOT in the real WebHelp output.

    Yes, DHCopeland, are statement that you see in the viewer section, or have tried to generate and display in actual production?

    I always test if there is no improvement after installing 10.0.1 HR patch. So far, it seems that the patch does not address this bug. I'll try another machine.

    John Daigle

    Adobe Certified RoboHelp and Captivate instructor

    Evergreen, Colorado

    www.showmethedemo.com

  • convert date oracle xml datetime

    can someone show it please how to convert sysdate xml datetime as the 2010-01-27 T 09: 32:09.633

    Thanks in advance,
    Pradeep

    I think passage clause expects an xmltype but here's sysdate, DATE.

    You're right: my test case was on 11.2.0.1.

    10.2.0.4 t would be

    SQL> select * from v$version where rownum = 1
    /
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    1 row selected.
    
    SQL> select * from xmltable('xs:dateTime(.)' passing xmlelement(e, sysdate))
    /
    COLUMN_VALUE
    -------------------------------------
     2010-02-27T00:00:00.000000+00:00
    1 row selected.
    
  • ORA-03113 "reading" XML of CLOB

    Hello

    I use XMLTable for reading XML to insert data into the DB table. I have:

    PROCEDURE IMPORT_XML)

    p_plik VARCHAR2,

    p_tp_id NUMBER,

    number of p_commit_po: = 500) IS

    l_blob_id TERYT_PLIKI.tp_blob_id%type;

    l_blob BLOB;

    XMLTYpe l_teryt_xml;

    L_Name varchar2 (100);

    l_type varchar2 (100);

    l_date varchar2 (100);

    -l_part varchar2 (100);

    XMLType l_rows;

    l_commit number (6);

    l_cnt_rows NUMBER: = 0;

    procedure do_commit is

    Start

    l_commit: = l_commit + 1;

    l_cnt_rows: = l_cnt_rows + 1;

    If l_commit > = p_commit_po then

    commit;

    l_commit: = 0;

    end if;

    end do_commit;

    BEGIN

    -# variable l_BLOB contains BLOB from a column of table #.

    Err.d ("convert BLOB CLOB type...', 'IMPORT_XML', 70 ');

    declare

    dest_lob CLOB.

    src_lob BLOB;

    the sum integer: = DBMS_LOB. LOBMAXSIZE;

    dest_offset integer: = 1;

    offset integer: = 1;

    number of blob_csid: = nls_charset_id ('AL32UTF8');

    lang_context integer: = 0;

    the warning integer: = DBMS_LOB. WARN_INCONVERTIBLE_CHAR;

    Start

    dest_lob: = empty_Clob();

    DBMS_LOB. CREATETEMPORARY (dest_lob, false);

    DBMS_LOB. OPEN (dest_lob, DBMS_LOB. LOB_READWRITE);

    DBMS_LOB. OPEN (l_blob, DBMS_LOB. LOB_READONLY);

    DBMS_LOB. () CONVERTTOCLOB

    dest_lob,

    l_blob,

    amount,

    dest_offset,

    offset,

    blob_csid,

    lang_context,

    (caveat);

    DBMS_LOB. Close (l_blob);

    l_teryt_xml: = XMLType (dest_lob);

    commit;

    DBMS_LOB. FREETEMPORARY (dest_lob);

    end;

    l_rows: = l_teryt_xml.extract('/teryt/catalog/row');

    l_commit: = 0;

    If l_name = "TERC" then

    Err.d ("name =" |) L_Name, cm, 80);

    for r in (SELECT x.*

    FROM XMLTable ('/ rank ' ADOPTION l_rows)

    ["COLUMNS"WOJ"PATH of the VARCHAR2 (20) ' col[@name="WOJ "]',

    ["VARCHAR2 (20)"POW"PATH" col[@name="POW"]',

    ["Path"GMI"VARCHAR2 (20) ' col[@name="GMI "]',

    PATH of VARCHAR2 (2) "RODZ" "col[@name="RODZ"]',"

    PATH of VARCHAR2 (50) "NAME" "col[@name="NAZWA"]',"

    PATH of VARCHAR2 (50) "NAZDOD" "col[@name="NAZDOD"]',"

    "[" "STAN_NA PATH" VARCHAR2 (10) ' col[@name="STAN_NA"] "

    ) x

    ) loop

    INSERT INTO TERYT_TERC (WOJ, POW, GMI, RODZ, NAME, NAZDOD, STAN_NA, TP_ID)

    VALUES (r.WOJ, r.POW, r.GMI, r.RODZ, r.NAZWA, r.NAZDOD, r.STAN_NA, P_TP_ID);

    do_commit;

    end loop;

    elsif l_name = "SIMC" then

    Err.d ("name =" |) L_Name, cm, 80);

    for r in (SELECT x.*

    FROM XMLTable ('/ rank ' ADOPTION l_rows)

    "WOJ" VARCHAR2 COLUMNS (3) path "col[@name="WOJ"]',"

    ["" POW"VARCHAR2 (3) path" col[@name="POW"]',

    "GMI" VARCHAR2 (3) PATH "col[@name="GMI"]',"

    PATH of VARCHAR2 (2) "RODZ_GMI" "col[@name="RODZ_GMI"]',"

    ["" RM"VARCHAR2 (3) path" col[@name="RM"]',

    "MZ' VARCHAR2 (3) PATH" col[@name="MZ"]', "

    PATH of VARCHAR2 (60) "NAME" "col[@name="NAZWA"]',"

    "SYM' VARCHAR2 (7) PATH" col[@name="SYM"]', "

    PATH of VARCHAR2 (7) "SYMPOD" "col[@name="SYMPOD"]',"

    PATH of VARCHAR2 (10) "STAN_NA" "col[@name="STAN_NA"]"

    ) x

    ) loop

    INSERT INTO TERYT_SIMC (WOJ, POW, GMI, RODZ_GMI, RM, MZ, NAME, SYMBOL, SYMPOD, STAN_NA, TP_ID)

    VALUES (r.WOJ, r.POW, r.GMI, r.RODZ_GMI, r.RM, r.MZ, r.NAZWA, r.SYM, r.SYMPOD, r.STAN_NA, P_TP_ID);

    do_commit;

    end loop;

    elsif l_name = "ULIC" then

    Err.d ("name =" |) L_Name, cm, 80);

    for r in (SELECT x.*

    FROM XMLTable ('/ rank ' ADOPTION l_rows)

    "WOJ" VARCHAR2 COLUMNS (3) path "col[@name="WOJ"]',"

    ["" POW"VARCHAR2 (3) path" col[@name="POW"]',

    "GMI" VARCHAR2 (3) PATH "col[@name="GMI"]',"

    PATH of VARCHAR2 (2) "RODZ_GMI" "col[@name="RODZ_GMI"]',"

    "SYM' VARCHAR2 (7) PATH" col[@name="SYM"]', "

    PATH of VARCHAR2 (7) "SYM_UL" "col[@name="SYM_UL"]',"

    PATH of VARCHAR2 (5) "CECHA" "col[@name="CECHA"]',"

    PATH of VARCHAR2 (50) "NAZWA_1" "col[@name="NAZWA_1"]',"

    PATH of VARCHAR2 (50) "NAZWA_2" "col[@name="NAZWA_2"]',"

    PATH of VARCHAR2 (10) "STAN_NA" "col[@name="STAN_NA"]"

    ) x

    ) loop

    INSERT INTO TERYT_ULIC (WOJ, POW, GMI, RODZ_GMI, SYM, SYM_UL, CECHA, NAZWA_1, NAZWA_2, STAN_NA, TP_ID)

    VALUES (r.WOJ, r.POW, r.GMI, r.RODZ_GMI, r.SYM, r.SYM_UL, r.CECHA, r.NAZWA_1, r.NAZWA_2, r.STAN_NA, P_TP_ID);

    do_commit;

    end loop;

    elsif l_name = "WMRODZ" then

    Err.d ("name =" |) L_Name, cm, 80);

    for r in (SELECT x.*

    FROM XMLTable ('/ rank ' ADOPTION l_rows)

    "RM" VARCHAR2 COLUMNS (5) path "col[@name="RM"]',"

    PATH of VARCHAR2 (50) "NAZWA_RM" "col[@name="NAZWA_RM"]',"

    PATH of VARCHAR2 (10) "STAN_NA" "col[@name="STAN_NA"]"

    ) x

    ) loop

    INSERT INTO TERYT_WMRODZ (RM, NAZWA_RM, STAN_NA, TP_ID)

    VALUES (r.RM, r.NAZWA_RM, r.STAN_NA, P_TP_ID);

    do_commit;

    end loop;

    end if;

    validation work;


    When I'm loading file of type "SIMC" (the file size is approximately 32 MB), all right.

    When I am trying to load the "NEW" type (size file is about 80 MB), there's an ORA-03113.


    The problem is with the LOOP SELECTION, because

    Err.d ("name =" |) L_Name, cm, 80);

    connects name = ULIC


    What can I do to fix this?

    My DB is: Oracle Database 11 g Release 11.2.0.4.0 - 64 bit Production

    As Jason said, there are a bunch of useless stuff in there:

    -The VALIDATION inside the loop: do not do, commit only once, after that the job is done.

    -FOR lines: do not do this, use only one (possibly multi-table) INSERT SELECT.

    -BLOB CLOB conversion: not necessary, use the XMLTYPE constructor.

    -Extract from the XML document, that the work of the intermediate parties do in the whole structure directly.

    Basically, your procedure can be simplified to this couple of statements:

    -- insert XML into a temporary binary XMLType table, for performance :
    insert into tmp_xml values ( xmltype(l_blob, nls_charset_id('AL32UTF8')) );
    
    -- multitable insert into the target tables :
    INSERT FIRST
    WHEN l_name = 'TERC' THEN INTO
      TERYT_TERC (WOJ, POW, GMI, RODZ, NAZWA, NAZDOD, STAN_NA, TP_ID)
      VALUES (WOJ, POW, GMI, RODZ, NAZWA, NAZDOD, STAN_NA, P_TP_ID)
    WHEN l_name = 'SIMC' THEN INTO
      TERYT_SIMC (WOJ, POW, GMI, RODZ_GMI, RM, MZ, NAZWA, SYM, SYMPOD, STAN_NA, TP_ID)
      VALUES (WOJ, POW, GMI, RODZ_GMI, RM, MZ, NAZWA, SYM, SYMPOD, STAN_NA, P_TP_ID)
    WHEN l_name = 'ULIC' THEN INTO
      TERYT_ULIC (WOJ, POW, GMI, RODZ_GMI, SYM, SYM_UL, CECHA, NAZWA_1, NAZWA_2, STAN_NA, TP_ID)
      VALUES (WOJ, POW, GMI, RODZ_GMI, SYM, SYM_UL, CECHA, NAZWA_1, NAZWA_2, STAN_NA, P_TP_ID)
    WHEN l_name = 'WMRODZ' THEN INTO
      TERYT_WMRODZ (RM, NAZWA_RM, STAN_NA, TP_ID)
      VALUES (RM, NAZWA_RM, STAN_NA, P_TP_ID)
    SELECT x.*
    FROM tmp_xml t
       , XMLTable('/teryt/catalog/row'
           PASSING t.object_value
           COLUMNS "WOJ"      VARCHAR2(20) PATH 'col[@name="WOJ"]',
                   "POW"      VARCHAR2(20) PATH 'col[@name="POW"]',
                   "GMI"      VARCHAR2(20) PATH 'col[@name="GMI"]',
                   "RODZ"     VARCHAR2(2)  PATH 'col[@name="RODZ"]',
                   "NAZWA"    VARCHAR2(50) PATH 'col[@name="NAZWA"]',
                   "NAZDOD"   VARCHAR2(50) PATH 'col[@name="NAZDOD"]',
                   "STAN_NA"  VARCHAR2(10) PATH 'col[@name="STAN_NA"]',
                   "RODZ_GMI" VARCHAR2(2)  PATH 'col[@name="RODZ_GMI"]',
                   "RM"       VARCHAR2(3)  PATH 'col[@name="RM"]',
                   "MZ"       VARCHAR2(3)  PATH 'col[@name="MZ"]',
                   "SYM"      VARCHAR2(7)  PATH 'col[@name="SYM"]',
                   "SYMPOD"   VARCHAR2(7)  PATH 'col[@name="SYMPOD"]',
                   "SYM"      VARCHAR2(7)  PATH 'col[@name="SYM"]',
                   "SYM_UL"   VARCHAR2(7)  PATH 'col[@name="SYM_UL"]',
                   "CECHA"    VARCHAR2(5)  PATH 'col[@name="CECHA"]',
                   "NAZWA_1"  VARCHAR2(50) PATH 'col[@name="NAZWA_1"]',
                   "NAZWA_2"  VARCHAR2(50) PATH 'col[@name="NAZWA_2"]',
                   "NAZWA_RM" VARCHAR2(50) PATH 'col[@name="NAZWA_RM"]'
         ) x
    ;
    

    where TMP_XML is defined as follows:

    create global temporary table tmp_xml of xmltype
    xmltype store as securefile binary xml;
    
  • Using functions Oracle XML - sys_xmlgen and dbms_xmlgen

    I am new to Oracle 10 g and XML. I've been reading and practice with examples and understand a point of what is happening.

    Here's my problem: I have a student athlete who can have many rewards. How can I get several scholarships to work with sys_xmlgen or dbms_xmlgen? Or is this even possible?
    The data is stored in tables, XMLType.
    This problem uses several tables as a sport table, table of students and a table of prices.

    There is an example of output of a student with multiple tags within the tag of the student price:

    < student schoolSidNumber = '999-12-6745' fulltimeEnrollmentTermHere = 'S1' fulltimeEnrollmentYearHere = "2003" action = "none" firstName = "Import" lastName = 'Test' recruited 'M' = sex = 'Y' comments = date of birth "Created from the process of import." = '1971-09-12' Address1 = "123 University Drive" city = 'University City' State 'IN' = >
    < guardianName warden = "Mr. & amp; Ms. Import Test' homeFlag = 'Y' Address1 = "123 Avenue House" city = 'Brazil' state 'IN' = / >
    < year value "2008" action = 'none' = >
    < sport sportCode = "MBB" initialCounterFlag = 'Y' action = 'save' / >
    < aidLimits sportCode = "MBB" grantInAidAmt = "10000" costAttendAmt = "11000" / >
    < price action = 'save' saAidId = '0' fundCode = 'ATHLETES' sportCode = "MBB" rolloverFlag = "N" awardPeriod = "FY" awardAmount = "5000" awardDate = "2005-08-13" / >
    < price action = 'save' saAidId = '0' fundCode = "INST" sportCode = "MBB" rolloverFlag = "N" awardPeriod = "FY" awardAmount = "2000" awardDate = "2005-08-13" / >
    < continuingEligibility classDescription = "FRESHMAN" degreeDeclareDate = "" academicIneligible = "N" degreeReqHours = '120' degreeId = '1' saCumulativeGpa = "3,397" "
    totalDegreeHours = "26" / >
    < term action = 'save' termCode = 'S1' hoursAttempted = '12' hoursEarned = '12' gpa = "4.0" fullTimeFlag = "Y" / >
    < term action = 'save' termCode = 'S2' hoursAttempted = hoursEarned "14" = "14" gpa = '3.0' fullTimeFlag = 'Y' / >
    < / year >
    < original acceptedDate = "2002-04-01" >
    < testScore p1Score = '400' p2Score = '400' testCode = "S" testDate = "1999-05-31" / >
    < / original >
    < / student >

    I know I could do with dbms_output.put_line tags, but I want to take full advantage of Oracle XML.
    Any help would be greatly appreciated.

    Published by: user9507990 on August 5, 2009 08:37

    OK, I probably messed up a bit with joins (got duplicates), but here's the idea:

    SELECT
    xmlelement("students",
     xmlagg(
      xmlelement("student",
                 xmlattributes(stu.student_id as "studentId",
                               stu.student_last_name as "lastName",
                               stu.student_first_name as "firstName"),
       xmlagg(
        xmlelement("sport",
                   xmlattributes(spo.sport_actc_code as "sportCode",
                                 spo.sport_term_code as "termCode")
        )
       ),
       xmlagg(
        xmlelement("award",
                   xmlattributes(awd.award_fund_code as "fundCode",
                                 awd.award_accept_amt as "awardAmount",
                                 to_char(awd.award_accept_date, 'YYYY-MM-DD') as "awardDate")
        )
       )
      )
     )
    )
    FROM students stu
         JOIN sports spo ON spo.sport_pidm = stu.student_pidm
         JOIN terms ter ON ter.term_code = spo.sport_term_code
         JOIN awards awd ON awd.award_aidy_code = ter.term_aidy_code AND awd.award_pidm = stu.student_pidm
    GROUP BY stu.student_id, stu.student_last_name, stu.student_first_name
    ORDER BY stu.student_id;
    

    The query uses the XMLELEMENT and XMLAGG to build the structure:
    The root element is 'students', to which we add several child nodes of "student".
    XMLATTRIBUTES is used to set the attributes of an element.

    Another solution would be to produce a "gross" in canonical format (...) xml document Oracle from using DBMS_XMLGEN this query:

    SELECT stu.student_id, stu.student_last_name, stu.student_first_name,
           spo.sport_actc_code, spo.sport_term_code,
           awd.award_fund_code, awd.award_accept_amt, to_char(awd.award_accept_date, 'YYYY-MM-DD') award_accept_date
    FROM students stu
         JOIN sports spo ON spo.sport_pidm = stu.student_pidm
         JOIN terms ter ON ter.term_code = spo.sport_term_code
         JOIN awards awd ON awd.award_aidy_code = ter.term_aidy_code AND awd.award_pidm = stu.student_pidm
    ORDER BY stu.student_id, spo.sport_actc_code, awd.award_fund_code;
    

    And then apply an XSL transformation to achieve the desired result.

    Hope that helps.

    Published by: odie_63 on August 6, 2009 14:44

  • Can merge is more events in pictures. any ideas what may be wrong?

    Can merge is more events in pictures. any ideas what may be wrong?

    Of course - Photos has no events, so there are no everts to merge

    You can combine the albums (which your iPhoto events have been converted to) easily (not command fusion but easy to do) - display the sidebar (menu display ==> see the sidebar) and open the source album, then drag the photos into the destination album and if wanted to remove from the source album

    LN

  • How to retrieve the image BLOB from database and display the image in rtf file using the Oracle XML Desktop 5.6.2 publication server?

    Hi all

    Here I have the image BLOB in the database files,

    I want to show the image to PDF using file to rtf using Oracle Xml Desktop Publisher,

    Hi all

    I found the solution for reading Image BLOB of data base & display in Pdf format.

    (1) read the image from DB.2) and then copy the picture using IO. UtilsCopy method to copy the picture

    (3) then encode with base64 converter then you will get the tag XML with Base64 as string then placed in your XML Code & preview the output, you will find the image

    Photo = (BlobDomain) currentRow.getAttribute ("Image");

    ByteArrayOutputStream OutputStream = new ByteArrayOutputStream();

                        Byte [] imageByte;
                          Byte [] b = null;
                        try {}
                        
                            IOUtils.copy (photo.getInputStream (), outputStream);
                            BS = outputStream.toByteArray ();
                            outputStream.flush ();
                            System.out.println("==="+BS.) Length);
                            Encoded byte [] is Base64.encodeBase64 (bs).;
                            encodedString = new String (encoded);
  • A videoagrapher sent me to edit MOV files. When I try to read up on the timeline just stuck... can not play at all. any idea?...

    A videoagrapher sent me to edit MOV files. When I try to read up on the timeline just stuck... can not play at all. any idea?...

    Hi Gilad,

    It seems more an audio problem for me.

    Please select all the clips on the timeline, right-click and select 'Remove' to separate the audio from the videos.

    Once done select Audio only in the timeline and right click to select "Render and replace. Once done, save and close the project.

    Try reading to check if it works.

    You can also try to export an XML file i.e tab of project selection.

    Go to file > export > Final Cut Pro XML

    After creating a new project > import the XML file, and then open the sequence to check.

    Vinay

  • Any idea when will be released PeopleTools 8.54?

    Hi all

    Any idea when will be released PeopleTools 8.54?

    Thank you

    Sundaram.

    I don't think that GA date has been announced. However, considering the Oracle now has plans to release versions PT in all 12-18 months, it should be around mid-2014.

    http://www.Oracle.com/us/products/applications/PeopleSoft-Enterprise/Tools-tech/con8932-1872835.PDF

  • PDF/A, when I have a standard PDF file and add some text to it, and then save as PDF/A, there is an error.  Any ideas?

    PDF/A, when I have a standard PDF file and add some text to it, and then save as PDF/A, there is an error.  Any ideas?

    Preflight check should give you an idea of the problem. It may be that the file must be flattened before attempting the conversion. Not all aspects of a PDF file can be converted to PDF/A.

  • DB XML webservice - CLOB

    Hello!

    I am trying to create a Web service based on a procedure that can take a CLOB as parameter-IN (Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0).

    So far I've discovered that the XML <>= PLSQL mapping does not support CLOB but ObjectTypes:
    [Guide of Oracle® XML Developer DB | http://docs.oracle.com/cd/B28359_01/appdev.111/b28369/xdb_web_services.htm#CHDGBFID]

    ObjectTypes using I managed to create a Web service that can send the CLOB data as a response (based on the get_pjtest of the procedure below), but I can't the CLOB data in the DB (see procedure put_pjtest below).

    Basically, I tried to create a new line by using the put_pjtest procedure and the first response (1234567891011...) clob data, when I check the CLOB column is just gibberish (strange symbols etc..).

    UPDATE: it works well up to 60000 ~ characters, where is the limit?

    What I am doing wrong? Are there examples on the webservices XML DB, used in combination with CLOB?

    Thank you very much
    Paul

    ------------------------------------------------------------------------------------------
    create or replace type pjtestobj as object)
    AText varchar2 (100)
    clob aclob
    )
    /

    create the table pjtests
    (the number (10) ID not null)
    pjtest pjtestobj);

    declare
    v_pjtest pjtestobj;
    CLOB v_aclob;
    Start
    BECAUSE me in 1... LOOP OF 5000
    v_aclob: = v_aclob | To_char (i);
    END LOOP;

    v_pjtest: = pjtestobj ('abc', v_aclob);
    insert into pjtests values (2, v_pjtest);
    commit;
    end;

    create or replace PROCEDURE (get_pjtest)
    P_ID IN pjtests.id%TYPE,
    p_pjtest OUT pjtestobj) AS
    BEGIN
    Select pjtest
    in p_pjtest
    of pjtests
    where id = p_id;
    END;

    create or replace procedure (put_pjtest)
    P_ID IN pjtests.id%type,
    p_pjtest IN pjtestobj) AS
    BEGIN
    insert into pjtests values (p_id, p_pjtest);
    END;
    --------------------------------------------------------------

    Published by: paulj on 4 February 2013 17:31

    I confirm that the limit is 64 k: 65534 works, 65535 fails (corrupt content).

    After some timeout errors, I managed to get this working for content over 64 k using a wrapper XMLType instead of a UDT:

    create or replace procedure saveLobContent (p_wrapper in xmltype) is
    begin
    
      insert into tmp_xml values (p_wrapper);
    
    end;
    
    SQL> DECLARE
      2    req_text   clob :=
      3  '
      4    
      5      
      6        
      7          ' || rpad(to_clob('X'),80000,'X') || '
      8        
      9      
     10    
     11  ';
     12
     13    req        utl_http.req;
     14    res        utl_http.resp;
     15    buf        varchar2(32767);
     16    reqlen     pls_integer;
     17    amt        pls_integer := 32767;
     18    offs       pls_integer := 1;
     19
     20  BEGIN
     21
     22    req := utl_http.begin_request('http://localhost:8080/orawsv/DEV/SAVELOBCONTENT', 'POST', 'HTTP/1.1');
     23    utl_http.set_authentication(req, 'DEV', 'dev');
     24    utl_http.set_header(req, 'Transfer-Encoding', 'chunked');
     25    utl_http.set_header(req, 'Content-Type', 'text/xml');
     26
     27    reqlen := dbms_lob.getlength(req_text);
     28    utl_http.set_header(req, 'Content-Length', reqlen);
     29
     30    while (offs < reqlen) loop
     31      dbms_lob.read(req_text, amt, offs, buf);
     32      utl_http.write_text(req, buf);
     33      offs := offs + amt;
     34    end loop;
     35
     36    res := utl_http.get_response(req);
     37    utl_http.read_text(res, buf);
     38    dbms_output.put_line(buf);
     39
     40    utl_http.end_response(res);
     41
     42  END;
     43  /
    
    
    
      
        
        
      
    
    
    PL/SQL procedure successfully completed
    
    SQL>
    SQL> select length(x.lobcontent)
      2  from tmp_xml
      3     , xmltable('/LobContent' passing object_value
      4         columns lobcontent clob path '.'
      5       ) x ;
    
    LENGTH(X.LOBCONTENT)
    --------------------
                   80000
     
    
  • Not able to process the new camera Nikon D4s NAVE files, any idea on when a new plug-in from RAW?

    Current user CS6/cloud but have not been able to treat my NAVE of the new camera Nikon D4s files.  Any idea on when and if a fix or a new plug-in supporting this camera will be available?

    Support for the Nikon D4S has been added to the next 8.4 Raw camera which is currently in beta late stage (formerly Release Candidate).

    https://blogs.Adobe.com/lightroomjournal/2014/02/camera-raw-8-4-RC-and-DNG-Converter-8-4-r c-now - available.html

    You can download it now and take it for a spin. Does not work on Mac OS X 10.6.x, Windows XP or Vista.

    CC: http://labs.adobe.com/technologies/cameraraw8-4-cc/

    CS6: http://labs.adobe.com/technologies/cameraraw8-4/

  • any idea when the new 4.2 version to be released?

    any idea when the new 4.2 version to be released?
    I heard that she is supposed to have additional and assistants to request themes an iphone app...
    Eagerley expectations its release... no idea how much more days.left...

    pauljohny wrote:
    any idea when the new 4.2 version to be released?
    I heard that she is supposed to have additional and assistants to request themes an iphone app...
    Eagerley expectations its release... no idea how much more days.left...

    Even if you're a Pearl Diver, don't hold your breath. 'Days' are not the unit to measure this. Assuming that Oracle suite model press releases there will be a public beta hosted for a few months, followed by a few weeks the release candidate running on apex.oracle.com. Even if they were to announce something this week, you are not likely to be install 4.2 locally until the 4th quarter.

Maybe you are looking for