We are using the zendDBi database and trying to tune a MySQL table from an existing DB2 table. Using the method found here:
http://wsip-174-79-32-155.ph.ph.cox.net/wiki/index.php/MySql/DB2StorageEngineDocument
(under "Existing IBM I DB2 Tables" at the bottom pages).
This works for most tables, but for one table in particular, it does not work.
I managed to create a MySQL table and copy the FRM files, however, when I try to access the table through mysql, I get the error "Received error 2102" The file was modified and may not be compatible with the definition of the MySQL table "from IBMDB2I"
I read a similar article here:
http://forums.zend.com/viewtopic.php?f=77&t=104778
However, the FID file is not created. (this worked for another table). Here is what I have tried so far:
- Checked file permissions in mysql frm file
- Check permissions in a DB2 table
- Using the flush tables command in MySQL
- Manually creating a FID file with the correct ID number
- Set IBMDB2I as the default engine in my.conf
- Make sure the table does not contain zoned decimal fields.
I wonder what to try next.
Here is the SQL create statement for the source table from iSeries Navigator. As you can see, there are only 2 data types.
CREATE TABLE GB1555AFGD.Z1OCTLSP (
ZZSALE CHAR(10) NOT NULL DEFAULT '' ,
ZZAGRP CHAR(4) NOT NULL DEFAULT '' ,
ZZPCOD CHAR(1) NOT NULL DEFAULT '' ,
ZZDAMT DECIMAL(17, 4) NOT NULL DEFAULT 0 ,
ZZPPCT DECIMAL(5, 2) NOT NULL DEFAULT 0 ,
ZZBCHK DECIMAL(17, 4) NOT NULL DEFAULT 0 ,
ZZOLMT DECIMAL(17, 4) NOT NULL DEFAULT 0 ,
ZZOBJT DECIMAL(17, 4) NOT NULL DEFAULT 0 ,
ZZTCHK DECIMAL(17, 4) NOT NULL DEFAULT 0 ,
ZZMGID CHAR(10) NOT NULL DEFAULT '' ,
ZZMPCT DECIMAL(5, 2) NOT NULL DEFAULT 0 ,
ZZLSAL DECIMAL(17, 4) NOT NULL DEFAULT 0 ,
ZZBRNO CHAR(35) NOT NULL DEFAULT '' ,
ZZBNKA CHAR(17) NOT NULL DEFAULT '' ,
ZZDDTP CHAR(1) NOT NULL DEFAULT '' ,
ZZTXNO CHAR(3) NOT NULL DEFAULT '' ,
ZZSPM1 CHAR(60) NOT NULL DEFAULT '' ,
ZZSPM2 CHAR(60) NOT NULL DEFAULT '' ,
ZZSPM3 CHAR(60) NOT NULL DEFAULT '' ,
ZZSPM4 CHAR(60) NOT NULL DEFAULT '' ,
ZZROM CHAR(6) NOT NULL DEFAULT '' ,
ZZCKCD CHAR(1) NOT NULL DEFAULT '' ,
ZZFAXYN CHAR(1) NOT NULL DEFAULT '' ,
ZZPRNYN CHAR(1) NOT NULL DEFAULT '' ,
ZZFAX CHAR(35) NOT NULL DEFAULT '' ,
ZZTIME CHAR(8) NOT NULL DEFAULT '' ,
ZZTIMEC CHAR(1) NOT NULL DEFAULT '' ,
ZZEMLYN CHAR(1) NOT NULL DEFAULT '' ,
ZZEMAIL CHAR(60) NOT NULL DEFAULT '' ,
ZZRCAP CHAR(1) NOT NULL DEFAULT '' ) ;
, , , , . 7.1, , , v3r2 v5r4. , , - ?