Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #1  
Old August 27th, 2003, 03:54 AM
GeneraliAG GeneraliAG is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 1 GeneraliAG User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
"Oracle Error: -22275/ORA-22275:invalid LOB locator specified"/dbms_lob.freetemporary

/* Function pck_raw.if_read_long_raw() */

function if_read_long_raw(ps_tableName in varchar2, ps_rawColumn in varchar2, ps_pkColumn in varchar2, pde_pkValue in number, pb_blobData out nocopy blob, pde_ht_id out number)
return number is

de_id number default 0;
de_status number default 1;
de_return number default 1;

begin
de_id := pck_raw.if_create_empty_blob();
pde_ht_id := de_id;

pck_message_proz.ipr_debug_message('id geholt. id: '||de_id);

/* 1 */
de_status := pck_raw.if_read(ps_tableName,ps_rawColumn, ps_pkColumn, pde_pkValue, de_id);

/* 2 */
select htb_blob into pb_blobData from ht_blob where htb_instanz = de_id;

return de_return;
end if_read_long_raw;

/* 1 */
/* Reads a Long raw from the specified Table an Column and stores the Data into table
"ht_blob" with the primary key de_id */

/* 2 */
/* Selects the written Blob from this table "ht_blob" into the overgiven blob */


/* This is a piece of my package */
/* this part creates a temporary blob, calls the function below and frees the temp. blob */

-------------------------------

bl_file blob;

dbms_lob.createtemporary(bl_file,true);

-- Read a long-Raw from DB into bl_file
de_status := pck_raw.if_read_long_raw('druckdokumentenzst','drdz_dokument', 'drdz_instanz', de_key_instanz, bl_file, de_ht_id);

/* 3 */
dbms_lob.freetemporary(bl_file);

--------------------------------

Now my problem is, that when i call dbms_lob.freetemporary(bl_file) /* 3 */ a
"Oracle Error: -22275/ORA-22275: invalid LOB locator specified" occours.

Does anyone know why??

Thanks for helping..

Flo..
Comments on this post
Gran Roguismo agrees!

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > "Oracle Error: -22275/ORA-22275:invalid LOB locator specified"/dbms_lob.freetemporary


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway