KPRB getAsciiStream 32k Limitation.

I have encountered an error using a Java Stored procedure trying to execute ResultSet.getAsciiStream() and ResultSet.getBytes() on a LONG column using the Oracle KPRB Driver.
I have inserted a 36469 bytes in a long field, but I am only able to retrieve 32767 bytes. The number of bytes is always 32767 in spite that I am setting the maxFieldSize to unlimited (stmt.setMaxFieldSize(0).)
When the number of bytes is less than 32k, everything work just fine.
Does anybody knows about this KPRB limitation?
Thanks.
Oscar
null

This is a known and documented Limitation
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by omontoya:
I have encountered an error using a Java Stored procedure trying to execute ResultSet.getAsciiStream() and ResultSet.getBytes() on a LONG column using the Oracle KPRB Driver.
I have inserted a 36469 bytes in a long field, but I am only able to retrieve 32767 bytes. The number of bytes is always 32767 in spite that I am setting the maxFieldSize to unlimited (stmt.setMaxFieldSize(0).)
When the number of bytes is less than 32k, everything work just fine.
Does anybody knows about this KPRB limitation?
Thanks.
Oscar
<HR></BLOCKQUOTE>
null

Similar Messages

  • Workarounds of 32K-limitation in jdbc:kprb needed!

    Hello ALL.
    Can you help me with solution of workarounds the limitation in jdbc:kprb(internal driver) for stored java?
    I try to put large string more than 32K into LONG field type using internal driver and Java Stored Procedure.
    And I get the error: "Data size bigger than max size for this type"
    I get this error in oracle 9.2.0.1.
    But it works in oracle 10.2.0.1.
    =========================================================
    Here is the example:
    import oracle.sql.CLOB;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.io.Reader;
    import java.io.CharArrayReader;
    import oracle.jdbc.pool.OracleDataSource;
    public class LongTest {
    public static void insertLong(String source, int counts)
    throws Exception {
    Connection conn = DriverManager.getConnection("jdbc:default:connection:");
    StringBuffer stringBuffer = new StringBuffer();
    for (int i = 0; i < counts; i++) {
    stringBuffer.append(source);
    Reader reader = new CharArrayReader(stringBuffer.toString().toCharArray());
    // String st = stringBuffer.toString();
    PreparedStatement pst = null;
    try {
    pst = conn.prepareStatement("insert into TEST_LONG (ldata) values (?)");
    pst.setCharacterStream(1, reader, stringBuffer.length());
    // pst.setString(1, st);
    pst.execute();
    } finally {
    if (pst != null) {pst.close();}
    =========================================================
    Here is table:
    create table test_long (ldata long)
    =========================================================
    Here is the procedure:
    create or replace procedure long_test (p_source varchar2, p_counts number) as
    language java
    name 'LongTest.insertLong(java.lang.String, int)';
    =========================================================
    Here is the test block:
    begin
    LONG_TEST('q', 33000);
    end;
    =========================================================
    Thanx!

    Please, help me with solution...
    Is it possible use oci driver from Java Stored Procedures? And how?
    Thanx

  • JDBC:KPRB string size limits-NEED HELP!

    Hello All.
    Please, I need your help.
    I have the problems in Oracle 9.2.0.6 with stored java and jdbc:kprb internal driver.
    I try to put string(more than 32K) into LONG-type field using following java class:
    import oracle.sql.CLOB;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.io.Reader;
    import java.io.CharArrayReader;
    public class LongTest {
    public static void insertLong()
    throws Exception {
    Connection con = DriverManager.getConnection("jdbc:default:connection:");
    //generate large string
    StringBuffer stringBuffer = new StringBuffer();
    for (int i = 0; i < 100000; i++) {
    stringBuffer.append("qwerty");
    String st = stringBuffer.toString();
    //put large string to long-type field
    PreparedStatement pst = null;
    try {
    pst = con.prepareStatement("insert into TEST_LONG (ldata) values (?)");
    pst.setString(1, st);
    pst.execute();
    } finally {
    if (pst != null) {pst.close();}
    But I get error from jdbc:kprb about limitation of data size for this type(LONG).
    But it works well in oracle 10.2.0.1...
    Has anybody a solution of how to do this in oracle 9.2.0.6???
    thanx!

    Hi,
    THis is a known limitation in the 92 RDBMS solved in 10g.
    Kuassi http://db360.blogspot.com

  • 32K limits stops loading OEHR objects

    Hi,
    I have a newbie at work wanting to learn APEX and so she has attemtped to upload an install the sample objects OEHR. The problem is that the 32K limit on SQL is smaller than the provided script. Seems a little silly that the script is larger than maximum size but there you have it. I have tried some simple cut up the script but cut points are not so obviouc - any ideas - does anyone have a pre cut version etc.
    cheers
    and thansk in advance
    Nigel

    @Scott: I think he is trying to import the script with SQL Worksheet, which has the limit of varchar2 with a size of 32K in PL/SQL....
    @Nigel: Try to install the script using SQL Developer (http://www.oracle.com/technology/software/products/sql/index.html)

  • Insert data 32K into a column of type LONG using the oracle server side jdbc driver

    Hi,
    I need to insert data of more than 32k into a
    column of type LONG.
    I use the following code:
    String s = "larger then 32K";
    PreparedStatement pstmt = dbcon.prepareStatement(
    "INSERT INTO TEST (LO) VALUES (?)");
    pstmt.setCharacterStream(1, new StringReader(s), s.length());
    pstmt.executeUpdate();
    dbcon.commit();
    If I use the "standard" oracle thin client driver from classes_12.zip ("jdbc:oracle:thin:@kn7:1521:kn7a") every thing is working fine. But if I use the oracle server side jdbc driver ("jdbc:default:connection:") I get the exception java.sql.SQLException:
    Datasize larger then max. datasize for this type: oracle.jdbc.kprb.KprbDBStatement@50f4f46c
    even if the string s exceeds a length of 32767 bytes.
    I'm afraid it has something to do with the 32K limitation in PL/SQL but in fact we do not use any PL/SQL code in this case.
    What can we do? Using LOB's is not an option because we have client software written in 3rd party 4gl language that is unable to handle LOB's.
    Any idea would be appreciated.
    Thomas Stiegler
    null

    In rdbms 8.1.7 "relnotes" folder, there is a "Readme_JDBC.txt" file (on win nt) stating
    Known Problems/Limitations In This Release
    <entries 1 through 3 omiited for brevity >
    4. The Server-side Internal Driver has the following limitation:
    - Data access for LONG and LONG RAW types is limited to 32K of
    data.

  • 32K HTML Row Limit - (follow up)

    Hi,
    I've run into this problem, specifically with select lists containing a large number of entries as part of a report in html db v 1.5. I've found numerous posts about this, for example :
    32k limit in some regions types
    I'm curious if the HTML DB team was able to address this in the 2.0 release?
    Thanks
    Matt

    Matt,
    There are two different 32k limits. One is the number of characters that can be edited within a text area. For example, if you’re editing SQL query regions, PL/SQL regions or processes, etc., we’re constrained by the underlying modplsq component, as Joel pointed out. This issue has been addressed in the HTML DB 2.0 SQL Workshop. You can now edit SQL Scripts that are longer than 32k characters; you can also edit PL/SQL objects (packages, functions, procedures, triggers) that are longer than 32k characters, using the Object Browser. You’re still limited to less then 32k characters in the Application Builder, we’re planning on addressing this in HTML DB 3.0.
    The second case where you have a 32k character limit is when working with select lists, and this seems to be the problem you’re referring to. A select list, including all the options, is stored in a 32k long varchar2 variable. So if you have a very large number of options, you can potentially exceed that limit. In this case I would recommend using a popup LOV instead.
    Regards,
    Marc

  • Error While Running LOV

    Hello,
    I am using APEX 4.0.1.00.03 and 11g DATABASE, and I'll explain my problem on the following lines.
    I've started using functions in PACKAGES to return results to my LOVS in APEX, so that I can change the code of LOV without having to make any change in the application (I've created a generic table type t_varchar_number). The problem is I've started to get this error:
    "ORA-06550: linea 1, columna 71: PL/SQL: ORA-0947: no hay suficientes valores ORA-01007: la variable no está en la lista de selección ORA-06550: línea 1, columna 7: PL/SQL: SQL Statement ignored ORA-01007: la variable no está en la lista de selection".
    Strangely it doesn't appear every time and if I push F5 a given number of times it will disappear and stop giving the error for a time. I've also placed a logging mechanism on the code so that I can see the query strings I use on my "execute immediate" instructions, when the error appears and there is no difference from when it doesn't give the error. Also if I run the string I place on the log manually there is no error.
    On each LOV I use the following code:
    select * from table(PACKAGE_NAME.function_name(args))
    Can anyone help me out? What other steps can I take to try and track this problem?
    Thank you,
    Miguel

    Hi Scott,
    I'm also facing the same problem as Monika.
    I have an LOV with the following query which returns 8774 records, when I copied and pasted those records into a text file it shows as 220KB in size.
    SELECT
    p.name d,
    p.pers_id r
    FROM people p,
    people_contacts pc
    WHERE SYSDATE BETWEEN NVL(start_date,SYSDATE) AND NVL(end_date,SYSDATE)
    AND     p.used_by_orc = 'Y'
    AND     pc.pers_id = p.pers_id
    AND     pc.group_id IN ('ORC','SHARED')
    ORDER BY 1
    After searching the forum, I think there's a 32K limitation on the fetched rows in tabular forms, can you please let me know how to overcome this problem?
    I'm selecting the persid in the (tabular form) SQL query updatable report.
    I'm trying to display the field as Name instead of PERSID by changing it to select list(based on named LOV) or whichever way it can work.
    Please help me.
    Thanks in advance.
    - Pradeep

  • PL/SQL function body returning SQL query - ORA-06502: PL/SQL: numeric or value error

    I'm attempting to dynamically generate a rather large SQL query via the "PL/SQL function body returning SQL query" report region option.  The SQL query generated will possibly be over 32K.  When I execute my page, I sometimes receive the "ORA-06502: PL/SQL: numeric or value error" which points to a larger than 32K query that was generated.  I've seen other posts in the forum related to this dynamic SQL size limitation issue, but they are older (pre-2010) and point to the 32K limit of the DNS (EXECUTE IMMEDIATE) and DBMS_SQL.  I found this post (dynamic sql enhancements in 11g) which discusses 11g no longer having the 32K size limitation for generating dynamic SQL.  Our environment is on 11gR2 and using ApEx 4.2.1.  I do not know which dynamic SQL method -- DNS or DBMS_SQL -- ApEx 4.2.1 is using.  Can someone clarify for me which dynamic SQL method ApEx uses to implement the "PL/SQL function body returning SQL query" option?
    As a test, I created a page on apex.oracle.com with a report region with the following source:
    declare
      l_stub varchar2(25) := 'select * from sys.dual ';
      l_sql  clob := l_stub || 'union all ';
      br     number(3) := 33;
    begin
      while length ( l_sql ) < 34000 loop
        l_sql := l_sql || l_stub || 'union all ';
      end loop;
      l_sql := l_sql || l_stub;
      for i in 1 .. ceil ( length ( l_sql ) / br ) loop
        dbms_output.put_line ( dbms_lob.substr ( l_sql, br, ( ( i - 1 ) * br ) + 1 ) );
      end loop;
      return l_sql;
    end;
    The dbms_output section is there to be able to run this code in SQL*Plus and confirm the size of the SQL is indeed larger than 32K.  When running this in SQL*Plus, the procedure is successful and produces a proper SQL statement which can be executed.  When I put this into the report region on apex.oracle.com, I get the ORA-06502 error.
    I can certainly implement a work-around for my issue by creating a 'Before Header' process on the page which populates an ApEx collection with the data I am returning and then the report can simply select from the collection, but according to documentation, the above 32K limitation should be resolved in 11g.  Thoughts?
    Shane.

    What setting do you use in your report properties - especially in Type and in Region Source?
    If you have Type="SQL Query", then you should have a SELECT statement in the Region Source. Something like: SELECT .... FROM ... WHERE
    According to the ERR-1101 error message, you have probably set Type to "SQL Query (PL/SQL function body returning SQL query)". In this situation APEX expects you to write a body of a PL/SQL function, that will generate the text of a SQL query that APEX should run. So it can be something like:
    declare
    mycond varchar2(4000);
    begin
    if :P1_REPORT_SEARCH is not null THEN
    mycond:='WHERE LAST_NAME like :P1_REPORT_SEARCH ||''%''';
    end if;
    return 'select EMPLOYEE_ID, FIRST_NAME, LAST_NAME from EMPLOYEES ' ||mycond;
    end;
    And for escaping - are you interested in escaping the LIKE wildcards, or the quotes?
    For escaping the wildcards in LIKE function so that when the user enters % you will find a record with % and not all functions, look into the SQL Reference:
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/conditions007.htm
    (You would than need to change the code of your function accordingly).
    If you are interested in escaping the quotes, try to avoid concatenating the values entered by the user into the SQL. If you can, use bind variables instead - as I have in my example above. If you start concatenating the values into the text of SQL, you are open to SQLInjection - user can enter anything, even things that will break your SQL. If you really need to allow users to choose the operator, I would probably give them a separate combo for operators and a textfield for values, than you could check if the operator is one of the allowed ones and create the condition accordingly - and than still use bind variable for inserting the filtering value into the query.

  • Error while associating a report column with a LOV

    Hi All,
    I have a region based on a SQL Report. One of the columns of this report is based upon a LOV. While running the page, i get the following error -
    report error:
    ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error.
    I have checked, the report is fetching the correct data.
    Also, the LOV base table has data corresponding to the value of the column of the report.
    What could be the problem. Please suggest.
    Thanks
    Monika

    Hi Scott,
    I'm also facing the same problem as Monika.
    I have an LOV with the following query which returns 8774 records, when I copied and pasted those records into a text file it shows as 220KB in size.
    SELECT
    p.name d,
    p.pers_id r
    FROM people p,
    people_contacts pc
    WHERE SYSDATE BETWEEN NVL(start_date,SYSDATE) AND NVL(end_date,SYSDATE)
    AND     p.used_by_orc = 'Y'
    AND     pc.pers_id = p.pers_id
    AND     pc.group_id IN ('ORC','SHARED')
    ORDER BY 1
    After searching the forum, I think there's a 32K limitation on the fetched rows in tabular forms, can you please let me know how to overcome this problem?
    I'm selecting the persid in the (tabular form) SQL query updatable report.
    I'm trying to display the field as Name instead of PERSID by changing it to select list(based on named LOV) or whichever way it can work.
    Please help me.
    Thanks in advance.
    - Pradeep

  • Advantages of using nested iViews

    Hi All,
    Could anybody point out what are the major advantages of using nested iViews? Under what circumstances is the usage of nested iViews desired or recommended? Thanks!
    cheers
    Prachi

    Hi Prachi
    The nested iviews comes handy in case where in you model expects numerable UI elements or heavy UI screen.
    Nested iview is a way of achieving componentized models and also avoids re-work.
    You could avoid error like these:-
    "Error in compiling Flex application:
    Error: Branch between 8479 and 41869 around line 0 exceeds 32K span.
    If possible, please refactor this component.
    Failed to compile AAD8T3.mxml"
    This is the well known 32K limitation from Adobe Flex 1.x. The compiled applications are not allowed to be larger than 32K. That usually happens with larger models.
    Solution:-
    In order to solve this issue, you need to redesign your application and use nested iViews (basically splitting the model into multiple components)
    To instantiate you,go through this thread:-
    Re: Multiple input forms problem
    Regards
    Navneet

  • Have XML with another embedded XML encoded in base64 - how to extract?

    Hi guys,
    I have a XML-RPC web service that returns a response like this:
    <methodResponse>
    <params>
    <param>
    <value>
    <base64>
    PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHNlYXJjaFJlc3VsdD48bnVtcm93cz4xPC9udW1yb3dzPjxmb3VuZD4xPC9mb3VuZD48d29yZGluZm8+IGJvdMOjbyA6IDU8L3dvcmRpbmZvPjxzZWFyY2h0aW1lPjAuMDA2PC9zZWFyY2h0aW1lPjxmaXJzdGRvYz4xPC9maXJzdGRvYz48bGFzdGRvYz4xPC9sYXN0ZG9jPjx3b3JkaW5mb2FsbD5ib3TDo28gOiA1IC8gNTwvd29yZGluZm9hbGw+PGl0ZW0+PHVybGlkPjE5PC91cmxpZD48dXJsPmh0dHA6Ly9jZW50cmFsL2dhcnJhcy9RdWVtX21hdG91X0pGSy9hcnRlZmF0b3MvaHRtLzc1MDUuaHRtPC91cmw+PGNvbnRlbnQ+dGV4dC9odG1sPC9jb250ZW50Pjx0aXRsZT5Tb3VuZE1BWDwvdGl0bGU+PGtleXdvcmRzPjwva2V5d29yZHM+PGRlc2M+PC9kZXNjP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base64 value is another XML embedded document that I have to extract.
    I have the following code (don't know if it's the best approach), where l_val is a CLOB and l_xml is XMLTYPE:
    l_val := DBMS_XMLGEN.convert( l_xml.extract('/methodResponse/params/param/value/base64/text()').getclobval(), 1 );How can I decode the base64-encoded contents of the l_val CLOB and store the result into another CLOB that I can then process with xmlsequence() and extract()?
    Thanks in advance. Regards,
    Georger

    Hi mdrake,
    I saw your answer on the other thread :)
    I know about the 32K limitation; that's why I need to store the decoded CLOB in another CLOB, as bigger documents will often be the case. I've been reading about this for a while, to no avail.
    Do you believe BASE64_DECODE_CLOB could be changed to return CLOB rather than VARCHAR2? Regards,
    Georger
    mdrake wrote:
    You'll need to do some work in this if the Encoded XML is bigger than 32K
    SQL> set long 10000 pages 0
    SQL> CREATE OR REPLACE FUNCTION BASE64_DECODE_CLOB (INPUT CLOB)
    2  return VARCHAR2
    3  as
    4    V_RAW_BUFFER RAW(32767);
    5    V_VARCHAR2_BUFFER VARCHAR2(32767);
    6  begin
    7    V_VARCHAR2_BUFFER := DBMS_LOB.SUBSTR(INPUT,32767,1);
    8    V_RAW_BUFFER := UTL_RAW.CAST_TO_RAW(V_VARCHAR2_BUFFER);
    9    V_RAW_BUFFER :=  UTL_ENCODE.BASE64_DECODE(V_RAW_BUFFER);
    10    V_VARCHAR2_BUFFER := UTL_RAW.CAST_TO_VARCHAR2(V_RAW_BUFFER);
    11    return V_VARCHAR2_BUFFER;
    12  end;
    13  /
    Function created.
    SQL> set serveroutput on
    SQL> --
    SQL> with XML as
    2  (
    3  select XMLType(
    4  '<methodResponse>
    5  <params>
    6  <param>
    7  <value>
    8  <base64>
    9  PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHNlYXJjaFJlc3VsdD48bnVtcm93cz4xPC9udW1yb3dzPjxmb3VuZD4xPC9mb3VuZD48d29yZGl
    uZm8+IGJvdMOjbyA6IDU8L3dvcmRpbmZvPjxzZWFyY2h0aW1lPjAuMDA2PC9zZWFyY2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9kaWZpZWQ+MTAvMDgvMjAwMiAxNjo1ODoxMCAtMDQwMDwvbW9kaWZpZWQ+PG9yZGVyPjE8L29yZGVyPjx
    jcmM+LTE5NjM3MDA5MzQ8L2NyYz48Y2F0ZWdvcnk+PC9jYXRlZ29yeT48bGFuZz5lbi11czwvbGFuZz48Y2hhcnNldD53aW5kb3dzLTEyNTI8L2NoYXJzZXQ+PHNpdGVpZD4
    0NjE1ODk0NjE8L3NpdGVpZD48cG9wX3Jhbms+MC4wMDAwMDwvcG9wX3Jhbms+PG9yaWdpbmlkPjA8L29yaWdpbmlkPjwvaXRlbT48L3NlYXJjaFJlc3VsdD4K
    10  </base64>
    11  </value>
    12  </param>
    13  </params>
    14  </methodResponse>') OBJECT_VALUE
    15  from dual
    16  )
    17  select XMLSERIALIZE(DOCUMENT XMLTYPE(BASE64_DECODE_CLOB(extract(OBJECT_VALUE,'/methodResponse/params/param/value/base64/text()'
    ).getClobVal())) as CLOB INDENT SIZE=2)
    18    from XML
    19  /
    <?xml version="1.0" encoding="UTF-8"?>
    <searchResult>
    <numrows>1</numrows>
    <found>1</found>
    <wordinfo> botπo : 5</wordinfo>
    <searchtime>0.006</searchtime>
    <firstdoc>1</firstdoc>
    <lastdoc>1</lastdoc>
    <wordinfoall>botπo : 5 / 5</wordinfoall>
    <item>
    <urlid>19</urlid>
    <url>http://central/garras/Quem_matou_JFK/artefatos/htm/7505.htm</url>
    <content>text/html</content>
    <title>SoundMAX</title>
    <keywords/>
    <desc/>
    <text>... e comunicaτπo via Internet. Clique no &lt;font color="000088&
    quot;&gt;&lt;b&gt;botπo&lt;/b&gt;&lt;/font&gt; com o logotipo Andrea em ... adqu
    irir uma atualizaτπo, clicando no &lt;font color="000088"&gt;&lt;b&gt;
    botπo&lt;/b&gt;&lt;/font&gt; com o φcone Fone de ouvido. Depois de ... &apos; Vi
    rtual Ear&apos;&apos; , bastando clicar no &lt;font color="000088"&gt;
    &lt;b&gt;botπo&lt;/b&gt;&lt;/font&gt; com φcone Ouvido. Ap≤s adquirir e </text>
    <size>18503</size>
    <rating>5.505%</rating>
    <modified>10/08/2002 16:58:10 -0400</modified>
    <order>1</order>
    <crc>-1963700934</crc>
    <category/>
    <lang>en-us</lang>
    <charset>windows-1252</charset>
    <siteid>461589461</siteid>
    <pop_rank>0.00000</pop_rank>
    <originid>0</originid>
    </item>
    </searchResult>
    SQL>And don't expect it to be the fastest soln in history.

  • Anyone else having issues writting string "memo" fields to Access 2007-2010 or SQL Server Express 2008-2012?

    I have a data cluster that I am working to write to either Access 2007 thru 2010 and/or SQL Server Express 2008 thru 2012 all on a Windows 7 64 bit OS. Some of the elements are long strings that I put delimited data for the raw trace data. The fields can be 10's of KB long. With Access I cannot stuff any string >255char into the memo field. With SQL Server Express 2008R2 - 2012 I found that if the strings are >32767 they again fail to fill the memo fields. The Access write or reads work fine otherwise, just not the listed offending fields in the cases mentioned.  Anyone else having the issue or a solution?

    If the long string field has repetitive data, you might be able to compress it using GZIP to reduce it's size below the 32K limitation you mentioned.
    GZIP compress/uncompress of string using .NET
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Keyword list length in 2.1

    Hi all... not sure if Ive done something wrong here, but have imported catalog from 1.3 to 2.1 and a weird thing happened to the keyword list. I can only go down about halfway with my scrolling.... get to the letter 'I' and no further. If I delete a word, the next one down will appear. Its almost as if LR will only show a certain number... any ideas? Mark

    A window or individual control may have such a limit, but that doesn't quite explain why a program such as Excel has long been able to display 65536 lines (recently increased) and doesn't get near explaining why long lists are perfectly achievable in database apps such as Access or countless VB apps on SQL back ends. This is a Lightroom on Windows coding issue and shouldn't be diluted by thinking Windows inherently imposes the 32k limitation.

  • While trying to access parent tab getting Error---Very ungent(Prodution)

    Hi Team,
    We are using 3.0 version. Our application having 4 parent tabs. Each parent tab has 10 tabs and reports.
    We are working from past 2 years onwards but we didn't get any issues with,
    today one of the parent tab is not working whereas rest of the parent tabs(3 parent tabs) working fine but all are in same appicaton. while click on the 4th parent tab we are getting below error like page can't be diplayed.
    The webpage cannot be found
    HTTP 404
    Most likely causes:
    There might be a typing error in the address.
    If you clicked on a link, it may be out of date.
    What you can try:
    Retype the address.
    Go back to the previous page.
    Go to and look for the information you want.
    More information
    This error (HTTP 404 Not Found) means that Internet Explorer was able to connect to the website, but the page you wanted was not found. It's possible that the webpage is temporarily unavailable. Alternatively, the website might have changed or removed the webpage.
    For more information about HTTP errors, see Help.
    Please help us as it is very urgent.
    Thanks,
    Kumar.

    Hi
    What does your tab open when it is clicked? Is it a tabular form with many rows or a larget non-tabular form?
    Your page may be hitting 32K limitation. If it is not the case, please check your alert.log for some clue.
    Zulqarnain

  • Batching SQL Statements - Return Long Raw

    I have been using the .NET Framework Data Provider for Oracle and have run into the following limitation.
    I need to batch several SQL statements at one time and return a datareader (or another object) with those values. The .NET Framework Data Provider for Oracle from Microsoft doesn't support batching up SQL statements in this manner. Additionally, the values I need to return include a LONGRAW field. From the research I've done PL-SQL can only return 32KB of data for a LONGRAW field if we were to try a different approach like using a stored procedure and a REF CURSOR.
    My questions are:
    1.) Will the ODP support batched SQL statements? For example, can I issue the following SQL statements and get a datareader?
    Select field1, field2 from table1;
    Select feild1, field2 from table2;
    Select feild1, field2 from table3;
    2.) Is there the 32 KB limitation on LONGRAW fields and PL-SQL in Oracle 8.1.7.2.0?
    3.) Any suggestions?

    1. With ODP.NET, you can batch your SQL statements using anonymous PL/SQL block. For example,
    begin
    open :1 for select * from emp;
    open :2 for select * from dept;
    open :3 for select col1 from test;
    end;
    You need to create three parameters with type OracleDbType.RefCursor and bind them as Output parameters. If you execute the above statement using OracleCommand's ExecuteNonQuery method, you would get three REF Cursors in the Value property of OracleParameter object. You can create an OracleDataReader or populate the Data Set using any or all of these REF Cursors in any order. If you execute the above statement using OracleCommand's ExecuteReader method, you would get OracleDataReader for the first REF Cursor and you would be able to get the OracleDataReader for other REF Cursors using OracleDataReader's NextResult method. Note that ODP.NET does not impose a limitation of closing the first OracleDataReader before opening the second one.
    2. Long/Long Raw 32K limitation is imposed by PL/SQL and one way to bypass that limitation is to use LOBs instead. Having LOBs in the stored procedure or anonymous PL/SQL blocks allow you to access data upto 4GB.

Maybe you are looking for