IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SQLCODE = -148, REASON 09


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sonipankaj

New User


Joined: 23 Nov 2005
Posts: 10

PostPosted: Mon Dec 14, 2009 9:37 pm
Reply with quote

Hi,

I have a Db2 table which is having its Clone table as well. I had the requirement to add few more columns in it. However, db2 didn't allow me to add these column because of its clone. So, I have dropped the clone and ran alter to add these columns. It went fine. Now, I am trying to again run the alter to re-create its clone table. But, I am getting the SQLCODE =-148 REASON 09. I have found somewhere on net that it is because of active versioning and it should not be active for Clone table. fyi, I've ran the REORG after adding the columns.

Can anyone tell me more about this "Versioning in Db2", like how to deactivate it and what will be the impact, etc ?

Thanks
Soni
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Tue Dec 15, 2009 11:30 am
Reply with quote

Hi Soni,

Take a look @ DB2 V9 Administration Guide and search for "Table space versions". It has all the information you need.

Sushanth
Back to top
View user's profile Send private message
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Tue Dec 15, 2009 12:12 pm
Reply with quote

Soni,

Find the value of VERSION column in SYSIBM.SYSTABLES for this table.

VERSION The version of the data row format for this table.
A value of zero indicates that a version-creating alter operation has never occurred against this table.
A value of -1 indicates that the view has been regenerated because a column of the base table has been altered.
A value of 800 indicates that a successful CREATE VIEW or ALTER VIEW statement has occurred against this table in Version 8 or later.


Hope this helps.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Reorg abended with REASON=X'00E40347' DB2 2
No new posts REASON 00D70014 in load utility DB2 6
No new posts SQLCODE = -122 while using the scalar... DB2 4
No new posts SQLCODE = -16002 when using XMLEXISTS DB2 1
No new posts Error 0C1 Reason Code 1 with branch i... PL/I & Assembler 3
Search our Forums:

Back to Top