473,625 Members | 2,658 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_NE W_bUSINESS (Table name example)
IN ND00UNIT.TSNWBS LO (Tablespace name)
STORES ND00UNIT.NEW_BU SINESS (The associated `base` table that contains
CLOB)
COLUMN CLOB_DATA (Name of CLOB column)

Nov 12 '05 #1
2 3463
al**********@bt internet.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_NE W_bUSINESS (Table name example)
IN ND00UNIT.TSNWBS LO (Tablespace name)
STORES ND00UNIT.NEW_BU SINESS (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
12175
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 to another table B's long column. Unfortunately, "insert into table_a select long_column from table_b" doesn't work. I also thought of changing table_a's long column to clob,
1
11485
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 and stack-trace. java.lang.ClassCastException: com.ibm.ejs.cm.proxy.OracleConnectionProxy at oracle.jdbc.driver.OracleConnection.physicalConnectionWithin
7
19951
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 those varchar columns. Bill Leung leungb@aptea.com
0
1644
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 can use dxxshredxml to put it into a regular table and everything works great. but when I try to put it into a temp table it doesn't work. I get an error saying Session.ACCESSMASK doesn't have a column name ACCESS_MASK_ID. Do I have to use a...
0
3057
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 columns but when I tried to create EXTERNAL TABLE with CLOB column Oracle is giving error saying "column type is not supported in external organised table." :confused: But I have to upload the flat file data along with the CLOB columns... how...
2
10286
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 WebSphere Application Server. I have two questions: 1. How many characters, such as Chinese, Japanese, can a CHAR(128) or
1
8142
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 manipuration functions for CLOB fields to read it in multiple chunks ? Thanks in advance.
0
1594
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 I do not have authority, at this company, to use DCLGEN and am trying to learn more about CLOBs, so trying to bypass any formal processes. Is there anyone who could supply the relevant SQL DECLARE TABLE and
1
2633
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 that exists throughout the site, identifying each course. Within each row of the aforementioned table, there are 4 columns, consisting of MainTopics, their associated SubTopics, uploaded LectureNotes for that MainTopic, and finally a DeleteRow...
0
8251
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
8182
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
8635
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...
1
8352
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8494
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...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4085
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1800
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1496
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.