473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

DDL for Creating the Auxilliary table associated with a CLOB column

Hi - I would be grateful for guidance on the following.

The following concerns the DDL for Creating an Auxilliary Table that is
associated with the CLOB column of a 'base' Table.
(I have just recently gained exposure to DB2 UDB for Windows, my
experience lies with DB2 for OS/390.)

Within OS/390, the DDL for defining the AUXilliary Table is listed
below. However, the syntax is not accepted by UDB for Windows.
I have obviously tried several variations but have had no success.

It would be a great help if anyone could provide the Windows DDL.

OS/390 DDL: -

CREATE AUXILIARY TABLE ND00UNIT.AUX_NEW_bUSINESS (Table name example)
IN ND00UNIT.TSNWBSLO (Tablespace name)
STORES ND00UNIT.NEW_BUSINESS (The associated `base` table that contains
CLOB)
COLUMN CLOB_DATA (Name of CLOB column)

Nov 12 '05 #1
2 3449
al**********@btinternet.com wrote:
Hi - I would be grateful for guidance on the following.

The following concerns the DDL for Creating an Auxilliary Table that is
associated with the CLOB column of a 'base' Table.
(I have just recently gained exposure to DB2 UDB for Windows, my
experience lies with DB2 for OS/390.)

Within OS/390, the DDL for defining the AUXilliary Table is listed
below. However, the syntax is not accepted by UDB for Windows.
I have obviously tried several variations but have had no success.

It would be a great help if anyone could provide the Windows DDL.

OS/390 DDL: -

CREATE AUXILIARY TABLE ND00UNIT.AUX_NEW_bUSINESS (Table name example)
IN ND00UNIT.TSNWBSLO (Tablespace name)
STORES ND00UNIT.NEW_BUSINESS (The associated `base` table that contains
CLOB)
COLUMN CLOB_DATA (Name of CLOB column)

DB2 for LUW doesn't have anything like an auxillary table to store LOBs
(there alo is no ROWID column required to store the LOB).
If you want to control the placements of LOBs you can define a separate
tablespace and associate it with the table during teh CREATE TABLE command.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #2
Thanks Serge for a very swift reply.
(I need to complete this task asap).

I was starting to think along those lines: that is, there is no
mandatory technical requirement to physically store LOB columns on a
seperate tablespace.

Much appreciated

Nov 12 '05 #3

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

Similar topics

3
by: jcwhui | last post by:
Hello all, Yes, it is another Oracle 8.0 question. We are just too small to force our customer to migrate to newer Oracle. My problem is I need to copy the value of the long column in table A...
1
by: Chris | last post by:
I use websphere connection pooling and had a failure attempting a CLOB.createTemporary. tempClob = CLOB.createTemporary(conn, true, CLOB.DURATION_SESSION); Here's an excerpt of the exception...
7
by: sql-db2-dba | last post by:
Does DB2 just fudge it when it is an empty table? Is there a "formula" for average row size when you have variable length records. Or you really have to know what your application is packing into...
0
by: joe pribele | last post by:
I have this stored procedure that takes some xml as input. What I need to is use xml as a table so that I can join other tables to the xml and get information back that matches the criteria. I...
0
by: aniendow | last post by:
Hi All, I am trying to upload a TAB delimited file into a database table. Considering the performance issue I thought EXTERNAL TABLE is my best option but with one problem, My table has CLOB...
2
by: Jason | last post by:
Hi, I was wondering if anyone could advise me on this. Right now I am setting up a DB2 UDB V8.2.3 database with UTF8 character set, which will work with a J2EE application running on...
1
by: Veeru71 | last post by:
When I am SELECT'ing a CLOB column from command prompt, the output is getting truncated after a certail limit (8 K ??) How do I get the full data out of a CLOB column? Are there any string...
0
by: msmithuk | last post by:
Hi, I am writing a PL/1 program which will be reading a DB2 Table which has a column defined as a CLOB. Therefore, I should use DCLGEN to obtain accurate SQL DECLARE TABLE statements. However...
1
by: ll | last post by:
Hi all, I've inherited a site and am currently looking to redesign a page that displays a table of course curriculum, with each row representing a "Topic" of the curriculum. There is a courseID...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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,...
0
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...
0
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
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...

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.