Download presentation
Presentation is loading. Please wait.
Published byRichard Webster Modified over 8 years ago
1
O lav C hristensen 1975 Honeywell Bull 1978 System/34 1988 AS/400 1990 Compagny establish 1992 BCD agent 1995 BCD Nordic www.bcdnordic.dk oc@bcdnordic.dk
2
Business Computer Design Industry leader in iSeries software and solutions 30 years experience in the IBM marketplace Over 35,000 midrange product installations Over 15,000 worldwide customers Over 5,000 Web and Application Development customers 50 Business Partners IBM Business Partner, Partner World and Tools Net Partners for many years Part of IBM’s iSeries Developer’s Road Map www.bcdnordic.dk
3
Highlights of BCD software Complete suite of affordable, easy to use and powerful products Winner of 25 Industry Awards! Excellent support, documentation, and services Complete solutions for small, medium or large companies Unlimited number of developers IBM Server Proven Excellent technical support www.bcdnordic.dk
4
Storage Engine for IBM DB2 i When using IBMDB2I storage engine under MySQL: MySQL Community Edition 5.1.33 Specify via ENGINE=IBMDB2I on SQL statements, or by setting as the active storage engine (or even the default storage engine) MySQL does it's job of interpreting, analyzing, etc, the SQL But the IBM DB2 for i storage engine is called to store the data. IBMDB2i will store the data in "ordinary" PFs, and will use LFs for indexes, etc.
5
www.bcdnordic.dk Storage Engine for IBM DB2 i That means: Tables, Indexes and Views must be created from MySQL. But once created, they can be freely accessed from MySQL, DB2 or native interfaces (like RPG F-specs, OPNQRYF, etc) Includes reading records (RPG CHAIN, READ, READ or SQL SELECT) Writing & updating records (RPG WRITE/UPDATE or SQL INSERT/UPDATE)
6
www.bcdnordic.dk Storage Engine for IBM DB2 i Gradual Transition Your apps are pure RPG today. You want to convert to PHP With IBMDB2I you can transition slowly: Start by converting databases to MySQL with the storage engine Databases are now easy to access from both RPG & PHP Convert one program at a time (over a long period of time) from RPG to PHP PHP code uses MySQL interface. When all is done, your PHP code will be portable, you can now run it (including the database) on Linux or Windows.
7
www.bcdnordic.dk Storage Engine for IBM DB2 i After converting tables to be both MySQL & DB2: Easy to access via MySQL from the PHP. Easy to use from RPG (it's still in PFs and LFs)
8
www.bcdnordic.dk Convert an Existing PF to MySQL (1 of 2)
9
www.bcdnordic.dk Convert an Existing PF to MySQL (2 of 2) mysql> CREATE TABLE CUSTFILE (- >CUSTNO NUMERIC(6, 0) NOT NULL,- >SHIPNAME CHAR(30) NOT NULL,- >SHIPADDR1 CHAR(30) NOT NULL,- >SHIPADDR2 CHAR(30) NOT NULL,- >SHIPADDR3 CHAR(30) NOT NULL,- >BILLNAME CHAR(30) NOT NULL,- >BILLADDR1 CHAR(30) NOT NULL,- >BILLADDR2 CHAR(30) NOT NULL,- >BILLADDR3 CHAR(30) NOT NULL,- >SCAC CHAR(4) NOT NULL, ->DAYSADV NUMERIC(3, 0) NOT NULL ->) ENGINE=IBMDB2I;
10
www.bcdnordic.dk Convert DB2 to be used in both Environments, without using triggers. 1.Create a Schema in MySQL. 2.Create an identical table with the same name as in DB2 in the new Schema When this is done first time a Library is created with the name of the Schema enclosed in “XXXX”. The MySQL file is created in this library. 3.Use CPYF from the old DB2 file to the new MySQL file with FMTOPT(*MAP). 4.Create a Logical File with the old name in the old library and use the new file name in the new Library as the Physical File. 5.Change the linked to any additional Logical file in the old Library to be linked to the mew file and recreate the Logical file into the old Library 6.While MySQL only have Packed numeric fields a recompilation can be needed. 7.Now you can develop you new application in PHP/MySQL without one single modification of you existing RPG application.
11
www.bcdnordic.dk Links to MySQL Information From System iNEWS magazine: MySQL and the DB2 Storage Engine for IBM i (Erwin Early) http://systeminetwork.com/article/mysql-and-db2-storage-engine-ibm-i How to Use the MySQL IBMDB2I Storage Engine for DB2 on i (Erwin Early) http://systeminetwork.com/article/how-use-mysql-ibmdb2i-storage-engine-db2-i IBM Redbooks: Discovering MySQL on IBM i5/OS http://www.redbooks.ibm.com/abstracts/sg247398.html Using IBM DB2 for i as a Storage Engine of MySQL http://www.redbooks.ibm.com/abstracts/SG247705.html
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.