473,378 Members | 1,527 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,378 software developers and data experts.

converting existing DB2 v8.1.1.72 AIX 5.2 to 64-bit. Need info please.

I am surprised at how little info there is on this topic. We converted
to DB2 v8.1.1.72 painlessly a few months ago. For specific reasons, we
stayed on 32-bit. Our OS is AIX 5.2 and our hardward is 64-bit P570
LPAR.

I need to convert the DB2 DB to 64-bit now. Research suggests that
this is a simple 'db2iupdt -w64 command' that will soft link our
binaries to the 64-bit cousins. All standard migration steps apply
such as take full offline backup of course. I need to understand how
this will affect our clients and what other hidden steps there may be.
Any help?

Thanks.

Nov 12 '05 #1
4 3296
techme wrote:
I am surprised at how little info there is on this topic. We converted
to DB2 v8.1.1.72 painlessly a few months ago. For specific reasons, we
stayed on 32-bit. Our OS is AIX 5.2 and our hardward is 64-bit P570
LPAR.

I need to convert the DB2 DB to 64-bit now. Research suggests that
this is a simple 'db2iupdt -w64 command' that will soft link our
binaries to the 64-bit cousins. All standard migration steps apply
such as take full offline backup of course. I need to understand how
this will affect our clients and what other hidden steps there may be.
Any help?

Thanks.

I think the reason why there is not much info is because it really is
rather simple.....
If you have hand written external UDF or procedures (e.g. in C) it would
be good to also convert them. While running 32bit libraries in a 64 bit
environment is supported it certainly has a higher risk of breaking....

If you have SQL Procedures created prior to V8.2 I would recreate them
for the same reason (x-compiled to C)

All the 32 bit client chit-chat is handled by DRDA.

Cheres
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #2
Thanks. That's reassuring. Seems consistent with some of the other
sparse info that i was able to obtain.

Maybe somebody else can chime in with any other lessons learned or
gotchas.

Thanks again - Doug.

Nov 12 '05 #3
See also the posting in comp.databases.ibm-db2:

DB2 UDB LUW 8.2:clp 32 bit connect to 64 bit engine

I can now answer the question: it is not be solved at this time.

So if using a mixed environment the LIBPATH must be taken care of.

An additional db2 command van be created setting LIBPATH:

main(argc,argv,argenv)
int argc;
char *argv[];
char *argenv[];
{ static char ar_1[]="/usr/opt/db2_08_01/lib";
static char ar_2[]="/usr/opt/db2_08_01/bin";
static char ar_3[1000000]="\0";
static char ar_4[1000000]="\0";
char *po_1;
po_1=(char *)getenv("LIBPATH");
if(po_1==(char *)NULL) putenv(ar_1);
else {strcat(ar_3,ar_1);
strcat(ar_3,po_1);
putenv(ar_3);
}
po_1=(char *)getenv("PATH");
if(po_1==(char *)NULL) putenv(ar_2);
else {strcat(ar_4,ar_2);
strcat(ar_4,po_1);
putenv(ar_4);
}
if(strcmp(argv[0],"db2")) exit(5);
execve("/usr/opt/db2_08_01/bin64/db2",argv,argenv);
}

Bernard Dhooghe
techme wrote:
I am surprised at how little info there is on this topic. We converted
to DB2 v8.1.1.72 painlessly a few months ago. For specific reasons, we
stayed on 32-bit. Our OS is AIX 5.2 and our hardward is 64-bit P570
LPAR.

I need to convert the DB2 DB to 64-bit now. Research suggests that
this is a simple 'db2iupdt -w64 command' that will soft link our
binaries to the 64-bit cousins. All standard migration steps apply
such as take full offline backup of course. I need to understand how
this will affect our clients and what other hidden steps there may be.
Any help?

Thanks.


Nov 12 '05 #4
Serge Rielau wrote:
techme wrote:
I am surprised at how little info there is on this topic. We converted
to DB2 v8.1.1.72 painlessly a few months ago. For specific reasons, we
stayed on 32-bit. Our OS is AIX 5.2 and our hardward is 64-bit P570
LPAR.

I need to convert the DB2 DB to 64-bit now. Research suggests that
this is a simple 'db2iupdt -w64 command' that will soft link our
binaries to the 64-bit cousins. All standard migration steps apply
such as take full offline backup of course. I need to understand how
this will affect our clients and what other hidden steps there may be.
Any help?

Thanks.

I think the reason why there is not much info is because it really is
rather simple.....
If you have hand written external UDF or procedures (e.g. in C) it would
be good to also convert them. While running 32bit libraries in a 64 bit
environment is supported it certainly has a higher risk of breaking....

If you have SQL Procedures created prior to V8.2 I would recreate them
for the same reason (x-compiled to C)

All the 32 bit client chit-chat is handled by DRDA.

Cheres
Serge

I wanted to elaborate on the external UDF/Procedures (hereafter
"routines") statement that Serge makes. DB2 does support running 32-bit
routines in a 64-bit instance provided they are cataloged as FENCED NOT
THREADSAFE. This means that any NOT FENCED routines you have MUST BE
MIGRATED or they simply will fail to load. The default for any external
routines (JAVA the exception, which is default FENCED THREADSAFE) is
exactly this so you should be fine unless you explicitly specified
otherwise in your creation scripts. For JAVA, ensure you've installed a
64-bit JDK on your server and set the JDK_PATH correctly and you'll be
fine -- there's no need to recompile the class/JAR files.

There are actually two phases to executing a 32-bit routine. DB2 will
first attempt to load the routine's library normally, in a 64-bit FMP.
This will fail, as you cannot load a 32-bit library into a 64-bit
process. When the agent gets this failure information back, it will
then retry the processing with a 32-bit FMP, where it will succeed. The
implementation was done this way so that customers would not have to
change any routine creation scripts they had, however it does add a
significant overhead to any 32-bit routine processing.

Therefore, if you have the capability of recompiling any external
routine libraries you have to 64-bit, it is advisable from a strictly
performance standpoint to do so.
Nov 12 '05 #5

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

Similar topics

7
by: Jus! | last post by:
Hi. I am reading bits(1's & 0's) from a file and i wa wondering what is the most efficient method of converting these strings to individual int's? eg. File contains: 110001 010011 etc......
29
by: Armand Karlsen | last post by:
I have a website ( http://www.zen62775.zen.co.uk ) that I made HTML 4.01 Transitional and CSS compliant, and I'm thinking of converting it into XHTML to learn a little about it. Which XHTML variant...
2
by: Mark Flippin | last post by:
I'm converting the backend of an Access 2000 database to SQL Server 2000. The existing database has user and group security through a specific workgroup file. Under the "user and group...
19
by: silentlights | last post by:
Hi, Can you help me conver a char array into an integer. I am trying something like.. char carray; int numb; carray = 1; carray = 5; carray = 1;
1
by: scott | last post by:
Hi all, trying to use base64. Ill get right to the problem. I am converting a string into base 64. No problem there. That base64 string can then be converted back to the orignal string. No...
32
by: robert d via AccessMonster.com | last post by:
I'm looking at converting DAO to ADO in my app. All of my DAO connections are of the following structure: Dim wsName As DAO.Workspace Dim dbName As DAO.Database Dim rsName As DAO.Recordset ...
15
by: dm1608 | last post by:
We have a number of COBOL programs, and some were currently developing, that simply read TEXT based reports and scrap the reports for various information. I'm curious to know if anyone has...
2
by: cablepuff | last post by:
template <typename ContainerType> ContainerType rsa_encrypt_list(const std::string&, const typename ContainerType::reference, const typename ContainerType::reference); const BigInteger...
4
by: Jeff | last post by:
Hey ..NET 2.0 In my code am I trying to convert an int value into a decimal: decimal d = 0; int k = 87664; d = Convert.ToDecimal(k/100);
2
by: joe shoemaker | last post by:
I would like to convert url into md5 hash. My question is that md5 hash will create collision at 2^64. If you do long(value,16), where value is the md5 hash string, would value returned from...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.