Environment: DB2 UDB LUW.
The be able to use on-line reorg, indices must be of type-2.
1. How to migrate a 8.1 database that was created on 7.1 (with type-1
indices)at once to type-2 indices
2. how to check that indeed all indices are type-2 indices (or in
general how to know if an index is type-1 or type-2).
Bernard Dhooghe 8 5194
"Bernard Dhooghe" <no***@attgloba l.net> wrote in message
news:25******** *************** ***@posting.goo gle.com... Environment: DB2 UDB LUW.
The be able to use on-line reorg, indices must be of type-2.
1. How to migrate a 8.1 database that was created on 7.1 (with type-1 indices)at once to type-2 indices
You can regorg the index, which will autmatically migrate them (if not
already migrated) unless you use the cleanup option on the reorg.
You can also use the CONVERT option of the reorg to convert them to type-2
(without reorging them). 2. how to check that indeed all indices are type-2 indices (or in general how to know if an index is type-1 or type-2).
I believe the INSPECT INDEX command can tell you, but it is supposedly
slower than the reorg with convert option. Bernard Dhooghe
The REORG command in V8 has an option to CONVERT the indexes of any
table from Type 1 to 2.
I'm not sure but I think the syscat.indexes has a column that will
indicate the type.
All indexes will stay of Type 1 on any table after migrate, even new
ones created, until the convert has been done.
HTH, Pierre.
Bernard Dhooghe wrote: Environment: DB2 UDB LUW.
The be able to use on-line reorg, indices must be of type-2.
1. How to migrate a 8.1 database that was created on 7.1 (with type-1 indices)at once to type-2 indices
2. how to check that indeed all indices are type-2 indices (or in general how to know if an index is type-1 or type-2).
Bernard Dhooghe
--
Pierre Saint-Jacques - Reply to: sesconsjunk at attglobaljunk dot com
Reconstruct address: Remove the two junk and replace at and dot by
their symbols.
IBM DB2 Cerified Solutions Expert - Administration
SES Consultants Inc.
"Pierre Saint-Jacques" <se*****@attglo bal.net> wrote in message
news:41******** ******@attgloba l.net... The REORG command in V8 has an option to CONVERT the indexes of any table from Type 1 to 2. I'm not sure but I think the syscat.indexes has a column that will indicate the type. All indexes will stay of Type 1 on any table after migrate, even new ones created, until the convert has been done. HTH, Pierre.
REORG INDEXES will always convert type-1 indexes to type-2 indexes unless
you use the CLEANUP option.
If you use the CONVERT option on the REORG, the indexes will be converted to
type-2, but will not actually be reorged.
"Mark A" <no****@nowhere .com> wrote in message news:<Sh******* *********@news. uswest.net>... "Pierre Saint-Jacques" <se*****@attglo bal.net> wrote in message news:41******** ******@attgloba l.net... The REORG command in V8 has an option to CONVERT the indexes of any table from Type 1 to 2. I'm not sure but I think the syscat.indexes has a column that will indicate the type. All indexes will stay of Type 1 on any table after migrate, even new ones created, until the convert has been done. HTH, Pierre.
REORG INDEXES will always convert type-1 indexes to type-2 indexes unless you use the CLEANUP option.
If you use the CONVERT option on the REORG, the indexes will be converted to type-2, but will not actually be reorged.
REORG is on table level. So to migrate indexes, a table by table
approach is needed at this time.
Knowing for sure if an index is type-1 or type-2 is something more
than nice to know. But I don't find a command for this (or a
documented syscat indicator).
Bernard Dhooghe
Bernard,
you can use only :
db2 "inspect check tablespaces tbspaceid <nn> results keep inspect.out",
after that you have to format the output:
db2inspf inspect.out inspect.rpt
You will find a line in the report like:
"The index type is 2 for this table"
after a convert to index-type2.
regards,
Joachim Müller
"Bernard Dhooghe" <no***@attgloba l.net> schrieb im Newsbeitrag
news:25******** *************** ***@posting.goo gle.com... "Mark A" <no****@nowhere .com> wrote in message
news:<Sh******* *********@news. uswest.net>... "Pierre Saint-Jacques" <se*****@attglo bal.net> wrote in message news:41******** ******@attgloba l.net... The REORG command in V8 has an option to CONVERT the indexes of any table from Type 1 to 2. I'm not sure but I think the syscat.indexes has a column that will indicate the type. All indexes will stay of Type 1 on any table after migrate, even new ones created, until the convert has been done. HTH, Pierre.
REORG INDEXES will always convert type-1 indexes to type-2 indexes
unless you use the CLEANUP option.
If you use the CONVERT option on the REORG, the indexes will be
converted to type-2, but will not actually be reorged.
REORG is on table level. So to migrate indexes, a table by table approach is needed at this time.
Knowing for sure if an index is type-1 or type-2 is something more than nice to know. But I don't find a command for this (or a documented syscat indicator).
Bernard Dhooghe
"Joachim Müller" <jo*****@dougla s-informatik.de> wrote in message news:<ce******* ***@news.dtag.d e>... Bernard,
you can use only : db2 "inspect check tablespaces tbspaceid <nn> results keep inspect.out", after that you have to format the output: db2inspf inspect.out inspect.rpt
You will find a line in the report like:
"The index type is 2 for this table" after a convert to index-type2.
regards, Joachim Müller
Joachim,
This is what I was looking for, thank you. Works fine (Remark: the
check does not need a s on tablespace: inspect check tablespace
tbspaceid ...).
Bernard
You can also use the following command.
db2 "load query table <tablename>"
If the output returns as below, then all the indices on the table are type 2.
Tablestate:
Normal
If the indices are type-1, then it will clearly spell out as Type 1.
Anand no***@attglobal .net (Bernard Dhooghe) wrote in message news:<25******* *************** ****@posting.go ogle.com>... "Joachim Müller" <jo*****@dougla s-informatik.de> wrote in message news:<ce******* ***@news.dtag.d e>... Bernard,
you can use only : db2 "inspect check tablespaces tbspaceid <nn> results keep inspect.out", after that you have to format the output: db2inspf inspect.out inspect.rpt
You will find a line in the report like:
"The index type is 2 for this table" after a convert to index-type2.
regards, Joachim Müller
Joachim,
This is what I was looking for, thank you. Works fine (Remark: the check does not need a s on tablespace: inspect check tablespace tbspaceid ...).
Bernard ag************* @hotmail.com (AnandG) wrote in message news:<c1******* *************** ****@posting.go ogle.com>... You can also use the following command.
db2 "load query table <tablename>"
If the output returns as below, then all the indices on the table are type 2. Tablestate: Normal
If the indices are type-1, then it will clearly spell out as Type 1.
Anand
Works also you mention.
..
A table with type-1 indexes shows:
Tablestate:
Normal
Type-1 Indexes
With type-2:
Tablestate:
Normal
Thank you for the info.
Bernard. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Philip Nelson |
last post by:
Our next meeting will take place shortly and the "official"
announcement is attached below. If you would like more information about
our group then don't hesitate to drop me a line on teamdba@scotdb.com.
We have tried to put together an interesting agenda which will give a
useful day to both LUW and z/OS users.
While traditionally our group has been "mainframe oriented", over the last
year or so we have managed to build up a good LUW...
|
by: mailar |
last post by:
Hi ,
Can some one help me find out the differences between DB2 for LUW and
DB2 for z/Series .
Also, can someone tel me what considerations do I need to make if I
wish to write some SQL UDFs which will be used on all of these
platforms(LUW and z/Series OS)
Thanks in advance
mailar
|
by: mike |
last post by:
Hi all,
What do you people do (if anything) to help with
automated access-plan checking of static-SQL
on DB2 LUW v8.2.2 ?
Sometimes after we rebind, DB2 will choose a
"bad" plan in certain circumstances. We have
thousands of stored procedures with static-sql
and it would be nice to have some automatic
|
by: aj |
last post by:
Its not on the DB2 supported environment page, but is anyone
running DB2 LUW 8.2 on Red Hat Advanced Server 2.1 (kernel 2.4)?
DB2 LUW 8.1 /is/ validated for Red Hat Advanced Server 2.1.
On OS upgrade is in the works, but I need to upgrade to DB2
8.2 first (bug fix).
Any help appreciated.
aj
|
by: RSL101 |
last post by:
HI,
I am hoping to get your opinions about "Tivoli Monitoring for
Databases". Our enterprise environment is AIX/Red Hat Linux, running a
lot of IBM P series and E servers. We need to monitor LUW UDB
performance and some MS SQLSERVER performance going forward.
We are considering Tivoli monitoring because it offers a suite of
products pluggable as our company expands. There are: Tivoli monitors
for network (the new Netview) product,...
| |
by: aj |
last post by:
DB2 LUW 8.1 fixpak 14
Red Hat EL AS 4.4
I'm trying to diagnose some nocturnal CPU pressure, and am trying to
understand the dynamic statement cache as it applies to LUW. The only
doc/redbooks I am finding are for Z/OS, which I am completely ignorant
of.
I am using only Java and JDBC in my applications. No static SQL.
|
by: F |
last post by:
Is DB2 on z/OS same as DB2 on LUW ? Will my DB2 DBA on one environment have
to retrain again on the other ?
Thanks
|
by: Mark A |
last post by:
When upgrading DB2 LUW from 8.2 to 9.1 the following command is issued as
part of the upgrade:
db2 migrate database <db-name>
Does the migrate command make changes to every data and index page? Any
estimate on how long it takes to run based on number of pages in the
database?
|
by: Christian T |
last post by:
Hallo,
Is SSL protocol in LUW only supported for IBM DB2 Driver for JDBC and SQLJ
type 4 ?
I want my NATIVE DB2 client to connect to DB2 server using SSL protocol (not
using SQLJ/JDBC)
Is this supported yet?
If yes, can someone point me to a HOWTO
|
by: Lennart |
last post by:
I'm trying to read up on the possibility to migrate a db2 V9.5 server
to 64 bit, and continue running 32 bit application servers (via db2
runtime client, or otherwise). Does anyone have links to this kind of
information? I've google around a bit, and searched the db2 docs
without much success so far? Is it at all possible, what restrictions
apply for such a setup, etc is the kind of questions I would like to
find info about.
Thanx in...
|
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...
| |
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,...
|
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...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| | |