dbms_lob.read errors out with ORA-21560

Ask a Question related to Oracle Server, Design and Development.

  1. #1

    Default dbms_lob.read errors out with ORA-21560

    OS: Solaris 2.6
    RDBMS: Oracle 8.1.7.0
    CharSet: UTF8
    CLOB Data: Chinese

    We're experiencing a problem with a JDBC app that retrieves CLOBs from
    a table. On about 3 or 4 of the CLOBs, the app errors out with
    'DBMS_LOB.READ: ORA-21560 - argument is null, invalid, or out of
    range'. However, the other rows with their associated CLOBs can be
    read w/o issue.

    Note in the error that there is a glaring space between the words
    "argument" and "is". According to Oracle, the normal error should
    specify an index of the argument list, such as 2 or 3, right in the
    space between those two words. Not so in this case.

    I tested it with a small PL/SQL script, attempting to read in the
    maximum allowable 32k increments with dbms_lob.read, and failed with
    the exact same error on those same rows. Here's the kicker: If I
    simply reduce the read increment in the argument to dbms_lob.read to
    between 16k - 20k, all the records can be read just fine.

    Also, *all* rows are able to be read with dbms_lob.substr(loc,
    32767,1) w/o issue.

    I see that others have had this error before working with CLOBs, but
    there have been no resolutions posted to their postings. Any help
    will be greatly appreciated.
    El Toro Guest

  2. Similar Questions and Discussions

    1. Irregular read-only errors
      I'm getting the infamous "Cannot update. Database or object is read-only" error, however I'm very unsure as to what could be causing it. My best...
    2. supress errors at the page level? Undefined index errors.
      I'm creating a simple reply form, and if a form item isn't answered I get an error: "Notice: Undefined index: rb_amntspent in...
    3. #21560 [Asn->WFx]: imagettfbbox() returns different values in 4.3.0 and 4.2.1
      ID: 21560 Updated by: pajoye@php.net Reported By: ljpersson at hotmail dot com -Status: Assigned +Status: ...
    4. #21560 [Com]: imagettfbbox() returns different values in 4.3.0 and 4.2.1
      ID: 21560 Comment by: kyle at putnamcabinets dot com Reported By: ljpersson at hotmail dot com Status: Assigned...
    5. getting .mdb database errors? read this ..
      I have had loads of problems trying to WRITE data to my DB, using iis 5.1 on my local winxp machine, even though permissions were set correctly in...
  3. #2

    Default Re: dbms_lob.read errors out with ORA-21560

    On 9 Jul 2003 22:20:13 -0700, [email]medawsonjr@yahoo.com[/email] (El Toro) wrote:
    >I see that others have had this error before working with CLOBs, but
    >there have been no resolutions posted to their postings. Any help
    >will be greatly appreciated.

    You are not running on the most recent 8.1.7 release, which is
    8.1.7.4. I would recommend upgrading to the latest patch release,
    and/or find out on Metalink whether your error has been addressed.


    Sybrand Bakker, Senior Oracle DBA

    To reply remove -verwijderdit from my e-mail address
    Sybrand Bakker Guest

  4. #3

    Default Re: dbms_lob.read errors out with ORA-21560

    > >I see that others have had this error before working with CLOBs, but
    > >there have been no resolutions posted to their postings. Any help
    > >will be greatly appreciated.
    >
    >
    > You are not running on the most recent 8.1.7 release, which is
    > 8.1.7.4. I would recommend upgrading to the latest patch release,
    > and/or find out on Metalink whether your error has been addressed.
    >
    >
    > Sybrand Bakker, Senior Oracle DBA
    >
    > To reply remove -verwijderdit from my e-mail address
    I guess I should've clarified above where I looked when I stated "I
    see that others have had this error" (I guess I assumed people here
    would know by now that I exhaust all avenues before using this forum).

    To clarify, I've searched all google newsgroups, the web, and MetaLink
    on this issue. There have been 0 resolutions posted for people who've
    had my problem.

    Another clarification: We're bumping our heads against the wall
    because another site with 8.1.7.0 and Solaris 2.6 was able to import
    this schema and run the JDBC app without issue. So, while my initial
    idea was that a patch would help, this latter test that we performed
    early on with the software company who developed the app gave us
    doubts.
    El Toro Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139