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 > DB2 v8 Alter Data Type

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-08-10, 23:54
nitingautam nitingautam is offline
Registered User
 
Join Date: Nov 2008
Location: Delhi, India
Posts: 15
DB2 v8 Alter Data Type

Hi,

I have a table in DB2 v8 in which a column is of INTEGER Type. It have some data as well, I want to convert it to varchar(20). I am using AQT tool, when I trying to alter it Combo box is coming as disabled.

When I try from Command Window, get following error:

Make the attributes specified compatible with the existing column,
remove the attribute specification, or specify a different column name.


I heard that we can't alter structure in DB2 v8, is it so?

Is there any command using which we can find the DB2 version?

Thanks,

Last edited by nitingautam; 06-09-10 at 00:20.
Reply With Quote
  #2 (permalink)  
Old 06-09-10, 01:53
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
That feature is not available in DB2 V8 LUW. You can find the DB2 release with the "db2level" command issued from a command line session. Believe it or not, IBM actually publishes DB2 manuals and they are available in PDF format to be downloaded for free. You will want the SQL Reference Vol 2 manual for release 8.2 (I am assuming you have 8.2, which is the same as 8.1 FP 7 or later).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 06-09-10, 03:00
nitingautam nitingautam is offline
Registered User
 
Join Date: Nov 2008
Location: Delhi, India
Posts: 15
Quote:
Originally Posted by Marcus_A View Post
That feature is not available in DB2 V8 LUW. You can find the DB2 release with the "db2level" command issued from a command line session. Believe it or not, IBM actually publishes DB2 manuals and they are available in PDF format to be downloaded for free. You will want the SQL Reference Vol 2 manual for release 8.2 (I am assuming you have 8.2, which is the same as 8.1 FP 7 or later).
When I connected to database using command line I got following output:

Database server = DB2/SUN64 9.5.5
SQL authorization ID = XXXXXX
Local database alias = XXXXXX

This means we have 8 version installed...if it is so, how to alter table in this version?
Reply With Quote
  #4 (permalink)  
Old 06-09-10, 03:37
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
yes DB2/SUN64 9.5.5 means v8 is installed
I mean.. it clearly indicates V9 ?????
db2level has to be executed on server to see server level
it would be a good idea to read some about db2
IBM DB2 9.5 Information Center for Linux, UNIX, and Windows
__________________
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
  #5 (permalink)  
Old 06-09-10, 14:23
nitingautam nitingautam is offline
Registered User
 
Join Date: Nov 2008
Location: Delhi, India
Posts: 15
It only says
Database server = DB2/SUN64 9.5.5 .

Means there is no method to change the datatype
Reply With Quote
  #6 (permalink)  
Old 06-09-10, 14:46
tonkuma tonkuma is offline
Registered User
 
Join Date: Feb 2008
Location: Japan
Posts: 2,193
(Deleted. Because of my misunderstanding)

Last edited by tonkuma; 06-09-10 at 14:52.
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