If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > identity column

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-12-11, 03:10
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
identity column

db2 ese 9.5 fp8 on plinux

I have different tables with generated columns
for 1 specific table we have a strange effect
I run db2look and for all tables I can see the reset of the id, but not for was.wasuser
if I check syscat.COLIDENTATTRIBUTES the value for was.wasuser is not reflected either although I entered the command manually, to see if any change.
db2 ALTER TABLE was.wasuser ALTER COLUMN "ID" RESTART WITH 589


CREATE TABLE "BETAX "."ACTORS" (
"ID" DECIMAL(15,0) NOT NULL GENERATED ALWAYS AS IDENTITY ( START WITH +8
ALTER TABLE "BETAX "."ACTORS" ALTER COLUMN "ID" RESTART WITH 18;
CREATE TABLE "WAS "."WASUSER" (
"ID" DECIMAL(5,0) NOT NULL GENERATED ALWAYS AS IDENTITY ( START WITH +1


START NEXTCACHEFIRSTVALUE
--------------------------------- ---------------------------------
8. 18.

START NEXTCACHEFIRSTVALUE
--------------------------------- ---------------------------------
1. 1.


Am I missing something , or doing something wrong
Thanks for the updates..
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On