473,513 Members | 2,478 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Archiving blobs

Hello -

Quick question - does anyone know of a good way to archive a blob?

Some background - Our application (Java Web Application) uses a DB2
table with a blob column of length 75000 to store some data. The data
in this table needs to be in the system for approximately 60 days and
then we want to archive the data "somewhere else" for legal purposes.
We have put together a archive process using some Cobol programs on the
mainframe to retrieve the data from the tables and write them out to
files that will then be shipped off to tape.

However, we have run into a slight problem with the blob table.
Through our Cobol program, the largest variable can be essentially 32K
in length. As such, our 75000 byte field doesn't fit into a variable.
We could put together some code to read the data out in multiple parts,
and then some how get it into files but the process of getting the data
back in (if necessary for legal review) is complicated.

I'm looking for ideas, or ideas for a solution to pulling this data out
in such a way that it would be easy to shove it back in again if
necessary. Any ideas are welcome - our environment consists of Java,
Cobol Programs, DB2 Stored procedures, and UNIX shell scripts on
Solaris and AIX.

If anyone has any ideas or has done this before - I would appreciate
some feedback.

Thanks in advance for your help!

Kevin

Nov 12 '05 #1
1 2560
Typically, blobs are internally structured to match the data - if so, just
map the structure to a COBOL structure.
Otherwise use an OCCURS DEPENDING ON byte array in Cobol to overcome the 32K
string length limit, and read into that array. (Isn't this how your COBOL's
SQL precompiler handles BLOB declarations anyway?)

We did the job using EXPORT utility to offload, TSM to archive, then DELETE
to remove the data after verifying that offloaded data has been dual copied.
ALl of this is driven by a pair of perl scripts.

"Kevin" <kd**@dcx.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Hello -

Quick question - does anyone know of a good way to archive a blob?

Some background - Our application (Java Web Application) uses a DB2
table with a blob column of length 75000 to store some data. The data
in this table needs to be in the system for approximately 60 days and
then we want to archive the data "somewhere else" for legal purposes.
We have put together a archive process using some Cobol programs on the
mainframe to retrieve the data from the tables and write them out to
files that will then be shipped off to tape.

However, we have run into a slight problem with the blob table.
Through our Cobol program, the largest variable can be essentially 32K
in length. As such, our 75000 byte field doesn't fit into a variable.
We could put together some code to read the data out in multiple parts,
and then some how get it into files but the process of getting the data
back in (if necessary for legal review) is complicated.

I'm looking for ideas, or ideas for a solution to pulling this data out
in such a way that it would be easy to shove it back in again if
necessary. Any ideas are welcome - our environment consists of Java,
Cobol Programs, DB2 Stored procedures, and UNIX shell scripts on
Solaris and AIX.

If anyone has any ideas or has done this before - I would appreciate
some feedback.

Thanks in advance for your help!

Kevin

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2858
by: Ole Hansen | last post by:
Hi, Is it at all possible to insert BLOBs using the Array Interface? Today I have an application using the array interface. It works fine but so far I haven't been using BLOBs. I insert...
7
6880
by: Howard Lowndes | last post by:
My situation is that I am interacting PHP 4.1.2 to PostgreSQL 7.2.2 I have no difficulty inserting and managing BLOBs into the Large Object system table, and I have a user table called images...
7
4009
by: Nilabhra Banerjee | last post by:
Hi, I am still not sure whether the BLOBS are actually stored in the database or they have the pointer to the database for that file in the filesystem. If I remove the files (sources) for BLOBS...
5
3400
by: SunSmile | last post by:
Hi, I am logging my exceptions to a word document(*.doc). After the size of word document is 5KB. I am archiving the word document to *.doc.1 Here when I am archiving the word document to...
2
2793
by: Jerry LeVan | last post by:
Hi, I am just getting into large objects and bytea "stuff". I created a small db called pictures and loaded some large objects and then tried to do a restore. Here is how I got the dump. ...
4
2497
by: Paul H | last post by:
Could some one give me some pointers on basic archiving techniques? I have developed several databases but never been faced with this issue. Here is the basic scenario.. Suppose I have the...
2
1669
by: Knokmans | last post by:
Hi, first, this concerns db2 v8 and v9 on AIX and Linux/intel Until now we used a "user exit" when we want to archive logfiles. We changed the user exit executable a bit so we receive an email...
3
4875
bvdet
by: bvdet | last post by:
Following is an example that may provide a solution to you: """ Function makeArchive is a wrapper for the Python class zipfile.ZipFile 'fileList' is a list of file names - full path each name...
6
1677
by: Salad | last post by:
I'm going to implement an archival database for my app. I have Table1 and Table2. Table2 is a duplicate structure of Table1. I appended records with "ID between 1 and 100", then "ID between 300...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7162
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7539
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7101
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7527
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5686
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3234
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3223
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.