Restriction with DBMS_XSLPROCESSOR.CLOB2FILE

Hi,
I have to create a xml file from a table. I am using DBMS_XMLGEN.getxml to generate XML format. This is working fine if data volume less like .25 GB but if data volume increases to .5 GB then this procedure is failing and throws numeric overflow error. Can any body help me?

That has been reported before but there's no obvious solution : {thread:id=2316253}
You may want to contact Oracle Support or try alternate methods (FTP GET or UTL_FILE).
Or, if it's an option for you, generate multiple parts and combine them later with shell functions.
See Adrian Billington's great article for tips on parallelizing the process : http://www.oracle-developer.net/display.php?id=425
Edited by: odie_63 on 7 août 2012 13:33

Similar Messages

  • Error with dbms_xslprocessor.clob2file

    Hi all!
    I am experiencing an error with this command
    dbms_xslprocessor.clob2file(v_xml,'DIR','1.xml');
    where:
    v_xml is a clob ( it is well formed and with data)
    DIR is the directory where i want to output the data, it has beeen created with: EXECUTE IMMEDIATE 'create or replace directory DIR ' ||' as ' || '''D:\XMLFILES''';
    and i don't have any error in this command
    1.xml is the name of the file.
    The errors i get when i execute that command are the following:
    ORA-29283 invalid file operation
    ORA-06512 at "SYS.UTL_FILE" line 451
    ORA-29283 invalid file operation
    ORA-06512 at "XDB.DBMS_XSlPROCESSOR" line 58
    ORA-06512 at "DBA_TEST.PRUEBA_TEST" line 106
    ORA-06512 at line 2
    thx in advance!!!

    Hi, excuse me for taking so long time to respond, but yesterday i had a mayor issue to solve, but now i am again with this problem.
    I'm gonna put some more code.
    The database is in another location, and i want to write the data in a local drive, so maybe this is important for the code.
    I will put the full code so maybe there is something else important here:
    CREATE OR REPLACE PROCEDURE DBA_TEST.PRUEBA_TEST AS
    v_select VARCHAR2(2000);
    v_ctx DBMS_XMLGen.ctxHandle;
    v_xml CLOB;
    v_more BOOLEAN := TRUE;
    xmldoc dbms_xmldom.DOMDocument;
    DIR VARCHAR2(200);
    v_DIR VARCHAR2(200);
    BEGIN
    EXECUTE IMMEDIATE 'create or replace directory DIR ' ||' as ' || '''D:\XMLFILES''';
    v_DIR := DIR;
    v_select := ' select nombre, direccion, dni from clientes where anio = 2009';
    v_ctx := DBMS_XMLGen.newContext(v_select);
    DBMS_XMLGen.setRowsetTag(v_ctx, 'rec_decla');
    DBMS_XMLGen.setRowTag(v_ctx, '');
    v_xml := DBMS_XMLGen.GetXML(v_ctx);
    DBMS_XMLGen.closeContext(v_ctx);
    dbms_xslprocessor.clob2file(v_xml,v_DIR,'1.xml');
    DBMS_LOB.FREETEMPORARY(v_xml);
    END;
    Remeber that the data are in another location, no local, and i need to output these xml in the D:\XMLFILES directory.
    I tried to grant permisions
    GRANT READ, WRITE ON DIRECTORY TO DBA_USER
    , but it said that i can't give permision to itself..
    maybe there is another way to write these files witout using:
    dbms_xslprocessor.clob2file(v_xml,v_DIR,'1.xml');
    but i would like to use it.
    Thx all!!!

  • I want myJinternal frame movement to be restricted with in the jdesktoppane

    i am creating a JInternalFrame with in the JDesktopPane.
    The jinternalframe can be dragged outside the jdesktoppane.i want my JInternalFrame movement to be restricted with in the bounds of the jdesktoppane. How can i achieve this ?
    Thanks in advance,
    sankar.

    Hi,
    I'm very new into Java and stuff, but maybe using the setPreferredSize method of the desktoppane?
    Ian.

  • Number 0.124 is written into file using dbms_xslprocessor.CLOB2File

    Number 0.124 is written into file using dbms_xslprocessor.CLOB2File.
    i have done dbmds_output and checked in the Clob content the value appears as .124 but in the file it appears as 124
    Please help me to rectify this problem
    Edited by: 796208 on Oct 7, 2010 4:55 AM

    You shouldn't have the problem. Show some test cases.
    SQL> CREATE TABLE test_clob (id NUMBER,clob_col CLOB);
    Table created.
    SQL> DECLARE
      2    v_clob_locator CLOB;
      3    v_clob         CLOB;
      4  BEGIN
      5    INSERT INTO test_clob
      6    VALUES
      7      (1, EMPTY_CLOB())
      8    RETURNING clob_col INTO v_clob_locator;
      9    v_clob := 'This is test line
    10  and it coniatns 0.124 and it seems that
    11  .124 is not showing.';
    12    dbms_lob.append(v_clob_locator, v_clob);
    13    COMMIT;
    14  END;
    15  /
    PL/SQL procedure successfully completed.
    SQL> set long 10000
    SQL> SELECT * FROM test_clob;
            ID
    CLOB_COL
             1
    This is test line
    and it coniatns 0.124 and it seems that
    .124 is not showing.
    SQL> DECLARE
      2   v_clob CLOB;
      3  BEGIN
      4   SELECT CLOB_COL INTO v_clob
      5   FROM test_clob
      6   WHERE id=1;
      7   DBMS_XSLPROCESSOR.clob2file(v_clob,'TEST_DIR','clobtest.txt',0);
      8  END;
      9  /
    PL/SQL procedure successfully completed.
    SQL>
    C:\>type clobtest.txt
    This is test line
    and it coniatns 0.124 and it seems that
    .124 is not showing.
    C:\>The only thing is the last parameter (Character set id).

  • Can airplane mode be restricted with a separate passcode ?

    Can Airplane Mode be restricted with a separate passcode. I understand that thieves will snatch your phone during use and put them into airplane mode, thus disabling any GPS programs designed to find them. By adding an additional restriction to airplane mode, it should reduce "snatch and grabs"

    If there is not an option for airplane mode under settings>general>restrictions it is not currently a function available on the iPhone. Your best bet would be to set a passcode on your lock screen by going into settings>general>passcode lock to set one. This would be a great feature to add and you can go to apple.com/feedback to suggest it. I have already.

  • [ASK] Set Network Address Restriction With Script

    Hi all, i have a question about set network address restriction.. if i post in wrong category i'm very sorry about it because i don't know where i supposed to post this..
    i need to set network address restriction to every user in my tree..
    the problem is there is hundreds of user that i need to set the restriction.. i think it will take a lot of time if i do it one by one..
    i created the user with script, and i want to ask whether there is a command to set network address restriction with script or maybe there is another simple way to set network address restriction..
    thanks..

    Is the restriction going to be the same for all users? Depending on what
    "script" you use, you should be able to also set the restriction at the
    same time - its just another attribute value to set.
    Peter
    eDirectory Rules!
    http://www.DreamLAN.com

  • Outlook 2013 XLS Attachments cannot be opened in Excel 2013 due to Trusted Center restrictions with Outlook Secure Temp Folder

    Dear all,
    I'm having some serious issues with Office 2013's Trusted Center settings. In Outlook 2013 XLS Attachments cannot be directly opened in Excel 2013 with double-clicking due to Trusted Center restrictions for Excel 2013 regarding Outlook's Secure Temp Folder.
    I tried to adjust the corresponding Office 2013 Administrative Template within my GPOs but to no prevail.
    I did find out that Outlook 2013 places an attachment within the Outlook Secure Temp Folder located at "C:\Users\a.ollischer\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Outlook\PPIU10RW” before passing it to Excel 2013 in order to
    open it. It fails due to not trusting this location though I added the corresponding path to my Trusted Locations.
    What can I do in order to make this work without having to tediously save each and every attachment to "My Documents" prior to opening it? Any help would be greatly appreciated.
    Alex
    Alexander Ollischer Diplom-Wirtschaftsinformatiker (FH) Citrix & Microsoft Certified Engineer (CCEA, CCEE, MCSA, MCSE, MCDBA, MCTS) Afontis IT+Services GmbH Baierbrunner Straße 15 81379 München Deutschland Telefon (089) 74 34 55-0 Fax (089) 74 34 55-55
    mailto:[email protected] http://www.afontis.de http://www.itganzeinfach.de Amtsgericht München, HRB 109 005 Geschäftsführer: Thomas Klimmer

    Hi Maurice 7785,
    Deal and customize attachment security behavior to access such kind of blocked file format. Usually, Outlook does not allow users to open such unsafe type of attachments. It means they are blocked them by default, so you need to unblock such items using REG
    values.
    Take more help from the similar thread:
    http://social.technet.microsoft.com/Forums/en-US/53563c4b-d27f-4866-a5a8-95eb1ad1a3e6/hide-attachements?forum=outlook
    Note: Improve community discussions by marking the answers helpful otherwise respond back for further help.
    Thanks
    Clark Kent

  • Purchase group restrict with doc type

    scenario is this like i want to restrict purchase grp with doc type wise, suppose i want purchase group <b>"abc"</b> should not be used in doc type "<b>FO"</b>
    then what setting should i do?

    this you can only do with the basis person who has authorisation to make changes in user t.codes.
    in t.code PFCG, give the user role for which you want to restrict this and then choose display, goto authorisation tab and click n the display authorisation data button, here at the top you can find the organiztional levels button, you can restrict the purchasing group here itself by not specifying it in the list, thus for all t.codes he will not have authorisation for this purchasing group.
    then choose the MAterials Management : Purchasing node, here choose the Document Type in Purchase Order to give the doc. types allowed to user and Purchasing Group in Purchase Order to limit the pur. groups.
    reward if helpul

  • Internal Order restriction with Plant during PR & PO

    Hi All,
    Generally we create budget based PO for each plant.
    So we have defined internal order for each plant and we assigned those order during PR and PO creation
    But my requirement is i want to restrict the Order with respective Plant
    e.g If Order VX123 is created for plant A then Plant B can not use this order during PR and PO.
    So can it be possible in std SAP or i will go for Enhancement?
    Regards
    PR

    Dear Priyaranjan,
    You can achieve above requirement by using the Badi, at the time of creation/change of PR and PO.
    For PO use  ME_PROCESS_PO_CUST
    For PR   use ME_PROCESS_REQ_CUST
    R,
    Amala

  • Restriction with multiple variables for a characteristic present in Row

    Hi all,
    I am facing a problem when I am restricting a characteristic in the 'defaut value' section of the filter tab.
    Details of the problem is given below:
    Characteristic is restricted by 3 variables. When I execute the query for the first time there are no problems. I can enter value for all the three varaibles.
    But when I want to change the variable value, the variable screen does not list the variables and the system displays the following message.
    'variables could not be processed'.
    Diagnosis
    In the query definition, the default values of characteristic are stored as variables. The system tires to fill these variables again from the last restrictions so that it can use them as default values. In this case, however, the restriction is so complex, that the variable values cannot be reconstructed from it.
    System Response
    Procedure
    Change the restrictions in the query result if necessary.
    Kindly help to resolve this issue.
    Thanks in advance.
    Meera

    Hi All,
    Even I faced the same issue, and the issue is resolved with above solution.
    Now the second time I'm able to see the variable in Analyser, but now the output is not getting refreshed as per the variable entry for the second time.
    Thanks,
    Gaurav

  • How can access hours be restricted with airport extreme

    I want to be able to stop my kids from accessing the internet and bogging things down during the day when working from home.  Is there an easy way to do this with an Airport base station network or by setting up a guest network?  I have tried using parental controls but that limits all computer use, not just online access hours.  Any help would be appreciated.

    You do have a number of choices available to you to restrict access, either completely through AirPort's Access Control, or limiting what they will be able to access on the Internet. If your goal is to restrict them from particular sites or categories of sites, like P2P sharing torrents, one option is to use OpenDNS as your DNS provider. Through their service, you can easily configure what they can access or not.

  • Skype account restricted with NO reason

    I was using my Skype this morning as usual when i suddenly it logged me out. When i tried to log back in, it said "Skype could not recognize your details". I spoke with an agent on live chat and he said it seems like there were restrictions imposed on my Skype account but no reason was given.
    I tried to use the recovery system but it kept saying "could not recognize details...".
    So what's up with that? Just locking my account with clearly no reason as the live chat rep stated.
    Can someone look into this?
    Can provide all necessary information, please help me out - i need that Skype because I had many important contacts.
    The Skype I am inquiring about is my secondary Skype.

    I was wondering if u have ever gotten things worked out as I'm having the same problem. I've filled out the form multiple times and every time they tell me they cannot varify my account, fill the form out again. I talked to someone on live chat and they said the person should be able to do something and just reply back to their email. I did and know response. Is there a way to contact management?

  • Restrictions with object types

    Hello
    Among other restrictions Oracle 8.1.7 does not support (1) change of definitions of types that have dependent data and (2)replication of object columns and object tables.
    (1) While it is possible to add columns to existing relational tables and even change the size of columns it is not possible to do so with object types. This may expose a significant limitation for schema migration and maintainance. Is there any other support for those requirements, any workarounds other than crafting table copy scripts from scratch?
    (2) This seems to make a couple of good things in Oracle unavailable with objects. No fault tolerance through replication? No standby database? What (development and runtime efficient) options remain with objects in that category?
    Do the limitations persist in Oracle 9i?
    What about tool support in Oracle 9i? DBA Studio, for example, is rather poor in dealing with objects in 8.1.7 - no browsing and management of object schema and data, you cannot even select an existing object type for a table column.
    Are there other restrictions one should be aware of before touching objects?
    Any experiences and information greatly appreciated.
    Thanks,
    Thomas
    null

    Thomas,
    Do you have some specific applications that you have in mind to use Oracle Objects? Do you plan to use type evolution and replication?
    Oracle9i Object-Relational Technology has reached a major milestone with several 'completeness' features. As Arvind pointed out, in Oracle9i, type evolution can propogate changes to dependents. Object replication is also supported in Oracle9i.
    Although Enterprize Management tools do provide easy-to-use GUIs, there are some limitations in handling Objects, especially when there are nesting involved. Fortunately, SQL*Plus can be used to remedy some of these limitations.
    Regards,
    Geoff

  • How to restrict with a Quarter Time characteristics

    Hi
    I want to restrict the Actual Amount with Quarter,Can any body explain me  how to do the below requirement I have Quarer Time Characteristics in Cube ,Financial Year Starts from April 2011 to March2012,
    April 2011 to June 2011= Quater1
    July 2011 to September 2011= Quater2
    October 2011 to December 2011= Quater3
    January 2012 to March 2012= Quater4
    Output Expected Like Below points
    -->Suppose Use Enters  May2011 Output of the report is summation of April 2011+May 2011 in Quater 1
    -->Suppose Use Enters July 2011 Output of the report is July 2011 only in Quater 2
    LIke this the requirement was, Plz provide your Valuable Inputs to me
    Regards
    ramu

    hi ,
    You can try out the following
    1) Create a RKF with a 2 Text Variable . The RKF which we are creating is amount Restricted by CalMonth .
    2) Text Variable 1 will Take in user input and is hidden in query , Text variable 2 will be displayed in query .
    3) With the help of CMOD / Istep = 2 restrict the Calmonth to the high value = user input , low value = first month of the quarter .
    4) Test variable 2 will display the quarter .
    5) The sum up will be the natural behaviour of the report , we do not need to worry about that !!!
    Revert back with questions if any .
    --Neha

  • Does iPad mini have restrictions with keyboard size?

    Does iPad mini with retina have size restrictions?

    It can't be bigger then the screen unless you buy an external keyboard.

Maybe you are looking for