How to version a XMLType field or any column

First of all this is my first post regrading oracle.
Second I did read the documentation but I havnt got anyinfo how I can do it. It shows a ref to an external resource like an HTML or xml file residing on file system of the machine.
Thanks

I have some problems using the Versioning feature of XMLDB. dbms_xdb_version.MakeVersione, dbms_xdb_version.CheckOut and dbms_xdb_version.CheckIn work fine, but updating CheckedOut Resources fails with "ORA-31167: XML nodes over 64K in size cannot be inserted." if the file is too big.
I'm using the following statement:
UPDATE RESOURCE_VIEW SET res =
updateXML(res,'/Resource/Contents/binary/text()',:LOB,'xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd"') WHERE equals_path(res,:PATH) = 1;
Is there any other way to update the resource?
Regards,
Thomas Hoekstra

Similar Messages

  • How to create new form fields in several columns (spreadsheet) and have them named consecutively?

    Hopefully someone can help.  I created a new form from an Excel spreadsheet, but the form field recognition didn't "take" well and very little of the spreadsheet translated into form fields.  I need to create new fields (31) for each column (about 10) and I want the fields in each column to have a keyword from the parent column and the fields numbered consecutively.  I'm really hoping I don't have to do this manually!
    Next, is there a way to total the values in a column of fields (the same as the SUM function in Excel?) or does the form user have to dig out a calculator and add everything?
    Can I create an email (submit) button and direct how (ie email) and by what method the form is sent?
    Once the form is completed, is there a way for the user to lock it before sending it - ie a button they could press to make it no longer fillable?  Or can I set the document to be a regular .pdf once it leaves the host machine?
    I think that's it!  Hopefully someone can help soon - this is a work project that could be potentially very time consuming if I have to create each form field manually.  Thank you for any assistance!
    Cheers,
    LostintheNorth

    LostintheNorth wrote:
    Rats!  Thank you for your link - I may take you up on that... however for the purposes of this form I'm more than halfway done, so I might as well keep plugging away.  A workaround I found was to creat 32 of something I only need 31 of, then delete the parent.  Somehow even playing with spacing on the "create multiple fields" option as the fields are being created only gets the vertical alignment close - no matter what I do I still end up manually aligning (vertically) 31 little boxes for each column so they fit visually.  Grrrr.
    Yes, this can be very tricky. If you don't get the exact right offset between each field, the difference will accumulate and after a while it will be completely off.
    You just have to play around with it, until you get it right. Or almost right, and then adjust it manually.
    Another thing I've noticed, is that when you select one field and right click for properties, you get an expanded version, as opposed to select/shift/enter for a bunch of cells only yields an abbreviated properties box - what's up with that?  Is there a way to change this?  For instance, I had set the properties for a column of 31 cells to be number, 1 decimal place.  Halfway through my project, the lady I am doing the favor for tells me she would like 2 decimal places, requiring me to manually change each box for 62 cells!  Apparently cell formatting is not an option in the abreviated properties dialogue!  Is there a fix for that?
    No, there isn't. Some propeties you have to set manually (or get right the first time, before copying and pasting...). There is a way to do it with a script, but it's a bit complex and requires using an undocumented method.
    This next question is a bit more complicated, and may not be possible.  The form I am creating is for payroll purposes, so at the moment it is generic (31 days) and the user fills in the month manually. Is it possible to get the form to recognize a month value (or create a pulldown menu with a selection of months to choose from) and limit the days accordingly?  Or better yet, run a calendar function so that weekends and stat holidays are highlighted on the affected row?  Kind of like what you can do with an Excel spreadsheet, which is what I designed the form in at the start (then printed to .pdf - the form field recognition did NOT work well on my spreadsheet!  hence me doing every cell manually).  Is this even possible, and if so, is it something I could learn to do?
    Yeah, it's possible, but requires quite a bit of scripting knowledge. If you wish, contact me personally (by PM or email at try6767 at gmail dot com) and I could possibly create this for you.
    If you want to do it yourself, you would have to learn a lot about both the Date object in JS and about the various date printing and scanning methods in Acrobat JS.

  • Hi Gurus! how to count number of records in any column of ALV Grid report

    Hi Guys!
    I want to know how can we count the number of records in any column selected by the user. Like for oe customer there might be 20 sale order that means for 10 customer there will be 200 Sale order. So if i select cutomer number column ti should give 10 out put and whern select sale order it should give 200 as output.
    -Anurag Jain

    Hi,
    Either you can use the hotspot_click event or double_click to show the Pop-up info of the Sales Order count or customer Count depending on the selection.
    In the hotspot_click event  method you have E_ROW_ID E_COLUMN_ID..using these you can find the Sales Ordert or customer Number.. Loop the internal table and find the Count.
    In the double_click event  method you have E_ROW E_COLUMN..using these you can find the Sales Ordert or customer Number.. Loop the internal table and find the Count.

  • How can I place two fields from one column side by side?

    Hello experts,
       I need your help: I have a column which has two different fields. One is Sales, the second is Sales Todate.
    My boss want me to get the difference btn them as well as the percentage. Now, here is my challenge: I can easily filter them but I want them to be side by side; but when I filter one appear on top of the other like below
    Sales                           
    Sales
    Sales
    Sales
    Sales
    SalesTodate
    SalesTodate
    SalesTodate
    SalesTodate
    SalesTodate
    However, I want them appearing like below:    that way, I can place the difference column beside them.
    Sales
    SalesTodate
    Sales
    SalesTodate
    Sales
    SalesTodate
    Sales
    SalesTodate
    Sales
    SalesTodate
    Any help will be appreciated..  I have tried a case statement, still the problem persist
    Chuck
    On the side: Does anyone know how to place the question in such a way when one answers I can mark correct or helpful, I am still not able to.. I hate it, when I place a question I go through create then discussion, is that the right way?

    Hi
    Just drag the column to measure label area in pivot table @ columns.
    So the table has to drag and drop to column area on the top so it will get display like
    Sales     SaleToDate
    And the measure label to row side drag and drop it
    sales      saletodate
    values     values
    Regards,
    VG

  • How can I relate the fields a table column to the headers of the columns in another table?

    Here is my problem:
    I have a table where the first column is a list of types of characteristics and I want to compare that column with a table which has some columns, each one with a type of charasteristic.
    It's like relating a column to a file (the header file).
    PD: My level is beginner.

    Well I don´t want the space on both sides of the input text to be that big either so that doesn´t solve the problem.

  • How to update xmltype field in the table

    hi
    I have table in DB which contains xmltype field. When I am dragging this table by wizard on a panel and run my project I cannot edit any field in this table and save its data it shows an error. But when I am not using xmltype field in a table then my program runs well.
    How can I fix this proble?

    repost

  • How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version

    How to add the clearing document no. & payment method in FBL3 tcode. Can any one explain me step by step process how to add that two fields. This is ABAP 3.1 version. It's urgent requirement.
    Moderator Message: Duplicate thread locked. Please carry on with this thread: How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version
    Message was edited by: Suhas Saha

    Did you read the note provided in How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version ?
    Regards,
    Raymond

  • How can i set a long String to a xmltype field in oracle9i use PHP?

    i can set xml String to xmltype field with:
    $sql_insert_sql = "insert into g_province (p_id,p_regionid,p_provincenameobj,solt)
    values (g_province_q.nextval,'".$_GET['region_id']."',sys.XMLTYPE.createXML('".$xml_con."'),0)";
    but if $xml_con too long,i can not set this content into xmltype fields.
    then , i use :
    <?
    //(tabel_name:articles)DDL; //just for test;
    //create table articles (id number(11),content sys.xmltype);
    //----------This is insert test----------------------------------
    $conn = @OCILogon("in_user","user_in","bigfish");
    $stmt = @OCIParse($conn,"insert into articles (id,content) values(1,xmltype(EMPTY_CLOB())) RETURNING content INTO:CONTENT");
    $clob = @OCINewDescriptor($conn,OCI_D_LOB);
    OCIBindByName($stmt,':CONTENT',&$clob,"1",OCI_B_CLOB);
    OCIExecute($stmt,OCI_DEFAULT);
    if ($clob->save("<root><a>JUST TEST</a></root>")){
    OCICommit($conn);
    echo "Insert succes!";
    else{
    echo "Insert default!";
    //---------------Insert end-----------------------------------------
    //---------------Select start---------------------------------------
    $sql = "select content from articles order by id desc";
    $stmt = @OCIParse($conn,$sql);
    @OCIExecute($stmt,OCI_DEFAULT);
    @OCIFetchInto($stmt,&$rows,OCI_RETURN_LOBS);
    echo "<br>Content is:\"".$rows[0]."\"";
    //---------------Select end-----------------------------------------
    ?>
    run it ,display these errors:
    Warning: ociexecute(): OCIStmtExecute: ORA-22816: unsupported feature with RETURNING clause in /home/www/bigfish/sgtest/testclob.php on line 12
    Warning: save(): OCILobWrite: OCI_INVALID_HANDLE in /home/www/bigfish/sgtest/testclob.php on line 13
    Insert default!
    Content is:""
    Warning: Unknown(): ociclose_session: OCISessionEnd: ORA-00600: internal error code, arguments: [729], [28], [space leak], [], [], [], [], [] in Unknown on line 0
    how can i set long content to xmltype fields??

    geng sun,
    Ora-00600 is an internal Oracle error. You will need to open a tar with Oracle.

  • How can i set a long String to a xmltype field use PHP?

    i can set xml String to xmltype field with:
    $sql_insert_sql = "insert into g_province (p_id,p_regionid,p_provincenameobj,solt)
         values (g_province_q.nextval,'".$_GET['region_id']."',sys.XMLTYPE.createXML('".$xml_con."'),0)";
    but if $xml_con too long,i can not set this content into xmltype fields.
    then , i use :
    <?
    //(tabel_name:articles)DDL; //just for test;
    //create table articles (id number(11),content sys.xmltype);
    //----------This is insert test----------------------------------
    $conn = @OCILogon("in_user","user_in","bigfish");
    $stmt = @OCIParse($conn,"insert into articles (id,content) values(1,xmltype(EMPTY_CLOB())) RETURNING content INTO:CONTENT");
    $clob = @OCINewDescriptor($conn,OCI_D_LOB);
    OCIBindByName($stmt,':CONTENT',&$clob,"1",OCI_B_CLOB);
    OCIExecute($stmt,OCI_DEFAULT);
    if ($clob->save("<root><a>JUST TEST</a></root>")){
    OCICommit($conn);
    echo "Insert succes!";
    else{
    echo "Insert default!";
    //---------------Insert end-----------------------------------------
    //---------------Select start---------------------------------------
    $sql = "select content from articles order by id desc";
    $stmt = @OCIParse($conn,$sql);
    @OCIExecute($stmt,OCI_DEFAULT);
    @OCIFetchInto($stmt,&$rows,OCI_RETURN_LOBS);
    echo "<br>Content is:\"".$rows[0]."\"";
    //---------------Select end-----------------------------------------
    ?>
    run it ,display these errors:
    Warning: ociexecute(): OCIStmtExecute: ORA-22816: unsupported feature with RETURNING clause in /home/www/bigfish/sgtest/testclob.php on line 12
    Warning: save(): OCILobWrite: OCI_INVALID_HANDLE in /home/www/bigfish/sgtest/testclob.php on line 13
    Insert default!
    Content is:""
    Warning: Unknown(): ociclose_session: OCISessionEnd: ORA-00600: internal error code, arguments: [729], [28], [space leak], [], [], [], [], [] in Unknown on line 0
    how can i set long content to xmltype fields??

    geng sun,
    Ora-00600 is an internal Oracle error. You will need to open a tar with Oracle.

  • How to get node value of XML file from XMLTYPE field of databases

    Hi,
    I want to select node value of XML from XMLTYPE field of oracle db into java code.
    Feel free to answer me if you have any idea about it.
    Thanks

    For XMLType refer
    http://www.oracle.com/oramag/oracle/01-nov/o61xml.html
    http://www.lc.leidenuniv.nl/awcourse/oracle/appdev.920/a96620/xdb04cre.htm

  • I use "element 12" and want  like in the old PS version due Automating and Contact  II upload multiple filesand print them with any columns and rows on the same page . How does it work?

    I use "element 12" and want  like in the old PS version due Automating and Contact  II upload multiple filesand print them with any columns and rows on the same page . How does it work?

    Can you supply a link?

  • How associating an XMLSchema to an XMLType Field with the database model ?

    How can I precise the XMLSchema to an XMLType Field with the database model ?
    I know how to do it in a SQL Syntax :
    CREATE TABLE xwarehouses (
    warehouse_id NUMBER,
    warehouse_spec XMLTYPE)
    XMLTYPE warehouse_spec STORE AS OBJECT RELATIONAL
    XMLSCHEMA "http://www.oracle.com/xwarehouses.xsd"
    ELEMENT "Warehouse";
    , but we have decided to generate the script with the Jdeveloper database modeler tools, and we don't how to precise this with using this tools ?
    Anyone could help me ?

    I'm not sure that it answers your question but under the tools menu there is an option called register schema with XDB.

  • I forgot my administrator password, how can i reset it without losing any of my work? MacBook5,1 version 10.6.8 (I had my laptop for 7 seven years, its an old model).

    I forgot my administrator password, how can i reset it without losing any of my work?
    MacBook5,1 version 10.6.8 (I had my laptop for 7 years, its an old model).

    For Snow Leopard and earlier with installer DVD
         Mac OS X 10.6- If you forget your administrator password,
         OS X- Changing or resetting an account password (Snow Leopard and earlier).
    For Snow Leopard and earlier without installer DVD
        How to reset your Mac OS X password without an installer disc | MacYourself
        Reset OS X Password Without an OS X CD — Tech News and Analysis
        How To Create A New Administrator Account - Hack Mac

  • I have a US Mac living in the UK. I tried to download both the British and American version. Both state "You cannot use the application Firefox with this version of MAC OSX". Any suggestions how to proceed?

    I have a US Mac living in the UK. I tried to download both the British and American version. Both state "You cannot use the application Firefox with this version of MAC OSX". Any suggestions how to proceed?

    Firefox 4 requires at least OS X 10.5 and an Intel Mac. You can get the latest version of Firefox 3.6 which works on OS X 10.4 from http://www.mozilla.com/en-US/firefox/all-older.html

  • How to write xml from odi model directly to XMLType field in database?

    I've created xml model and populated it with data.
    How can I save it directly to the XMLType field in Oracle 10g database?

    You only have the option of all or nothing, you don't have the option of writing one file for each of the root elements.
    SYNCHRONIZE to FILE
    See the Driver doc at: http://download.oracle.com/docs/cd/E14571_01/integrate.1111/e12644/appendix_xml_driver.htm#CHDICHDB
    and specifically: http://download.oracle.com/docs/cd/E14571_01/integrate.1111/e12644/appendix_xml_driver.htm#CHDGDDDF

Maybe you are looking for