473,749 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

copy a db2/zos table with a blob column

I have to add a date column to a db2/zos table with a blob column.

Can I rename the blob table to old,
create a new table with the date column,
then insert/select the data from the old table?

Do I have to select data from the main table and the aux table or is the aux
table done automatically?

What's the best way to handle this?

Thanks.
Nov 12 '05 #1
3 7310
Hello,

ALTER TABLE creator.tablena me ADD date-column name DATE [NOT NULL WITH
DEFAULT ['default date']]

Cheers - Walter.
"Carmine" <ca************ @iqfinancial.co m> schrieb im Newsbeitrag
news:1e******** *************** **@posting.goog le.com...
I have to add a date column to a db2/zos table with a blob column.

Can I rename the blob table to old,
create a new table with the date column,
then insert/select the data from the old table?

Do I have to select data from the main table and the aux table or is the aux table done automatically?

What's the best way to handle this?

Thanks.

Nov 12 '05 #2
Thanks for the help.

How about if I want to unload a table with a blob column
and load it into a new table with a blob column?
Do I need to do anything with the rowid or the aux table
or do i just load into the main table?

Thanks.

"Walter Schneider" <wa************ **@telekom.at.n ospam> wrote in message news:<41******* *************** @newsreader01.h ighway.telekom. at>...
Hello,

ALTER TABLE creator.tablena me ADD date-column name DATE [NOT NULL WITH
DEFAULT ['default date']]

Cheers - Walter.
"Carmine" <ca************ @iqfinancial.co m> schrieb im Newsbeitrag
news:1e******** *************** **@posting.goog le.com...
I have to add a date column to a db2/zos table with a blob column.

Can I rename the blob table to old,
create a new table with the date column,
then insert/select the data from the old table?

Do I have to select data from the main table and the aux table or is the

aux
table done automatically?

What's the best way to handle this?

Thanks.

Nov 12 '05 #3
Hello,

as long as the total length of any row (blob column + other columns) does
not exceed the length of 32760 bytes (this is the maximim supported record
length of z/OS flat files), you may unload a table with blob columns like
any other table with the UNLOAD Utility or the DSNTIAUL sample program and
use the unload dataset and the generated load control to load the data into
other tables with the LOAD Utility.

To unload larger blobs, you must write your own program and invent your own
solution (e.g. sequenced records) for how to store fat blob data in z/OS
flat files.

If you have DB2 Connect in place (usually, a personal edition is shipped
together with DB2 for z/OS), try the export/import functions of that
product! This way, you may unload your table to a Windows/Unix/LinuX machine
where each single lob will be unloaded to a seperate file (if your table
contains millions of rows with lob data, you'll get millions of lob files of
course...)

Cheers - Walter.

"Carmine" <ca************ @iqfinancial.co m> schrieb im Newsbeitrag
news:1e******** *************** **@posting.goog le.com...
Thanks for the help.

How about if I want to unload a table with a blob column
and load it into a new table with a blob column?
Do I need to do anything with the rowid or the aux table
or do i just load into the main table?

Thanks.

"Walter Schneider" <wa************ **@telekom.at.n ospam> wrote in message

news:<41******* *************** @newsreader01.h ighway.telekom. at>...
Hello,

ALTER TABLE creator.tablena me ADD date-column name DATE [NOT NULL WITH
DEFAULT ['default date']]

Cheers - Walter.
"Carmine" <ca************ @iqfinancial.co m> schrieb im Newsbeitrag
news:1e******** *************** **@posting.goog le.com...
I have to add a date column to a db2/zos table with a blob column.

Can I rename the blob table to old,
create a new table with the date column,
then insert/select the data from the old table?

Do I have to select data from the main table and the aux table or is
the aux
table done automatically?

What's the best way to handle this?

Thanks.

Nov 12 '05 #4

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

Similar topics

4
13738
by: Corrine | last post by:
Hi, I am creating a global temporary table that is session-specific. I insert a BLOB into this table, and then select the BLOB from this table into a ResultSet. The ResultSet sees this BLOB object, and I am able to get the binary input stream from this blob. However, when I invoke InputStream.read(byte) on this input stream, I get the following exception: java.io.IOException: ORA-01410: invalid ROWID
2
10261
by: Stanley Sinclair | last post by:
About to create a table which will "include" a BLOB. Am not sure how large to make the container and the tablespace. What I see says that BLOB is stored "separately." However, I don't know where. With a table kinda like: CREATE TABLE BLOB_TABLE ( BLOB_ID INT,
1
4586
by: Davor | last post by:
I have to migrate database from AIX DB2 to MS Sql Server 2000. In one table there is field with GIF image. I have tried with "Import/Export Data" wizard on SQL server to import that table. All other fields are successfully migrated except for that field with gif image (I get only "GIF89A" as value in that field on MS SQL). Also, "Import/Export Data" wizard on SQL server "sees" that field as LONG VARCHAR???? (isn't this supposed to be...
7
2210
by: 2803stan | last post by:
I have a table which saves doctors' notes about patients. The format of the material is rich text format +/- embedded graphic(s) (.bmp, ..gif, .tif, .jpg, etc). The size of a note is unpredictable: maybe 4k, maybe 100k. Majority under 32k. Figure five under 32k for one over. At this moment all rows saved as BLOBs. Would I be better off to redo this as two tables: one for VARCHAR(32K)
10
7404
by: John Smith | last post by:
I know that uploading an image to a database has been covered, oh, about 3 trillion times. However, I haven't found anything covering uploading to a MySQL database with .net. Please don't recommend storing the image to the filesystem and only keeping a pointer to that in the table. I want to dump the image to a table. My code dumps the data into the table, however, I get the following error when trying to view the image "the image ......
2
17668
by: deepgun74 | last post by:
I have a blob column that is 4MB in length. I need to change it to store a 3GIG binary. 1) What is the maximum size a BLOB column can support? 2) How do i alter the size of an existing BLOB column? 3) I have an another column that is of type LONG VARCHAR. I would like to alter it to a CLOB as there is a size limit of 32KB on LONG VARCHAR. What is the best way to approach this conversion? Any help would be greatly appreciated.
7
10159
by: greywire | last post by:
So I need to load lots of data into my database. So I discover LOAD DATA INFILE. Great! This little gem loads my CSV in blazing times (compared to parsing the file and doing INSERT for each row). Its still slow on large files, but just barely acceptable. Only one problem. It truncates fields to 256 characters, even on a text field.
9
7997
by: matt | last post by:
hello, im doing my first ASP.NET app that inserts & retrieves files from Oracle (no need for a discussion on *that*!). i learned first-hand of the somewhat awkward technique for inserting binary data into an Oracle BLOB column via ADO.NET. since my files are larger than 33k, it seemed had to use this technique: http://support.microsoft.com/default.aspx?scid=kb;en-us;322796
4
7243
by: =?ISO-8859-1?Q?Hans_M=FCller?= | last post by:
Good morning folks, I cannot read a binary file into a mysql database. Everything I tried did not succeed. What I tried (found from various google lookups...) is this: con = MySQLdb.connect(to server) cur = con.cursor() cur.execute("insert into data values('file1', %s)", (open("test.jpg", "rb").read(), ))
0
8996
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9566
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9388
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9254
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6800
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.