473,399 Members | 4,192 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,399 software developers and data experts.

Type-2 index question

cmc
I look at the table indexes of the system tables to see what kind of indexes
in UDB V8.

Here is my command:
SELECT DISTINCT INDEXTYPE FROM SYSCAT.INDEXES

I got indextype "REG" returned.

My questions:
1. What is REG stand for (seems REGULAR) - type-2 ? What could be other
values ?
2. Where I can figure which index type is used by a table (I suppose the
best place in SYSCAT.TABLES cause onle one index type allowed in any table
but not able to find any column seems related) ? I tried INSPECT as
following:
INSPECT check table name SYSTABLES schema SYSIBM index normal results
keep AABB.lis

But not able to see anything (not even the file).

Thanks for any help
Tom
Nov 12 '05 #1
3 4557
1. REG is for regular. Others can be blok (block), clus (cluster), dim
(dimension block).

2. try this (after your inspect command): db2inspf AABB.lis AABB.out
You can now view AABB.out and find out your index type. In V8, it's
always Type-2, unless you've migrated from V7 and didn't convert
indexes from type-1 to type-2.

Keith Ponnapalli
IBM Certified Advanced Database Administrator - DB2 UDB V8.1 for Linux,
UNIX, and Windows
INFORMIX Certified Database Administrator

Nov 12 '05 #2
"cmc" <cm*****@yahoo.com> wrote in message
news:S5*******************@news20.bellglobal.com.. .
I look at the table indexes of the system tables to see what kind of
indexes
in UDB V8.

Here is my command:
SELECT DISTINCT INDEXTYPE FROM SYSCAT.INDEXES

I got indextype "REG" returned.

My questions:
1. What is REG stand for (seems REGULAR) - type-2 ? What could be other
values ?
2. Where I can figure which index type is used by a table (I suppose the
best place in SYSCAT.TABLES cause onle one index type allowed in any table
but not able to find any column seems related) ? I tried INSPECT as
following:
INSPECT check table name SYSTABLES schema SYSIBM index normal results
keep AABB.lis

But not able to see anything (not even the file).

Thanks for any help
Tom

The values for INDEXTYPE are in the Appendix D of the SQL Reference Vol 1
,where the catalog tables are documented.

If you reorg all your index, they will become type 2 if they were previously
type 1.
Nov 12 '05 #3
cmc
Seems INDEXTYPE is not a good way to tell the index is type 1 or 2 because I
suppose a REGULAR index can be type 1 or 2 UDB V8 (while other type
CLUS/DIM/BLOK must be TYPE-2).
Back to my orginal question:
Is there a direct way to tell a table is using type-1 or type-2 index
(without using INSPECT CHECK TABLE as I cannot get it work) ?

Thanks
Tom

"Mark A" <no****@nowhere.com> wrote in message
news:5e********************@comcast.com...
"cmc" <cm*****@yahoo.com> wrote in message
news:S5*******************@news20.bellglobal.com.. .
I look at the table indexes of the system tables to see what kind of
indexes
in UDB V8.

Here is my command:
SELECT DISTINCT INDEXTYPE FROM SYSCAT.INDEXES

I got indextype "REG" returned.

My questions:
1. What is REG stand for (seems REGULAR) - type-2 ? What could be other values ?
2. Where I can figure which index type is used by a table (I suppose the best place in SYSCAT.TABLES cause onle one index type allowed in any table but not able to find any column seems related) ? I tried INSPECT as
following:
INSPECT check table name SYSTABLES schema SYSIBM index normal results
keep AABB.lis

But not able to see anything (not even the file).

Thanks for any help
Tom
The values for INDEXTYPE are in the Appendix D of the SQL Reference Vol 1
,where the catalog tables are documented.

If you reorg all your index, they will become type 2 if they were

previously type 1.

Nov 12 '05 #4

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

Similar topics

15
by: Terje Slettebř | last post by:
Hi. I'm new here, and sorry if this has been discussed before; I didn't find it searching the PHP groups. (I've also read recommendations to cross-post to the other PHP groups, but if that is...
3
by: dgaucher | last post by:
Hi, I want to consume a Web Service that returns a choice, but my C++ client always receives the same returned type. On the other hand, when I am using a Java client, it is working fine (of...
100
by: E. Robert Tisdale | last post by:
What is an object? Where did this term come from? Does it have any relation to the objects in "object oriented programming"?
6
by: S.Tobias | last post by:
I'm trying to understand how structure type completion works. # A structure or union type of unknown # content (as described in 6.7.2.3) is an incomplete type. It # is ...
1
by: Rob Griffiths | last post by:
Can anyone explain to me the difference between an element type and a component type? In the java literature, arrays are said to have component types, whereas collections from the Collections...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
9
by: weirdwoolly | last post by:
Hopefully someone will be able to help. I have written a stored procedure in C++ called from a Java test harness to validate the graphic data types in C++ and their use. I have declared the...
5
by: JH | last post by:
Hi I found that a type/class are both a subclass and a instance of base type "object". It conflicts to my understanding that: 1.) a type/class object is created from class statement 2.) a...
3
by: amanjsingh | last post by:
Hi, I am trying to implement Java Web Service using Apache Axis2 and Eclipse as a tool. I have created the basic code and deployed the service using various eclipse plugin but when I try to invoke...
7
vikas251074
by: vikas251074 | last post by:
I am getting error above in following code since few days giving tension day and night. How can I solve this? I am facing since Oct.25. in line no. 362 After doing a lot of homework, I am...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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.