DB2 Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDB2 Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old May 8th, 2004, 09:08 PM
ningyong ningyong is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Singapore
Posts: 168 ningyong User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 12 sec
Reputation Power: 5
Send a message via AIM to ningyong Send a message via Yahoo to ningyong
migration of db2 to MySQL

migration of db2 to MySQL



I am having some problem with migrating my existing db2 v5 (about 20 tables) to MySQL 3.23.

Could anyone pls tell me how to migrate them? Thanks in advance...

Reply With Quote
  #2  
Old May 9th, 2004, 02:42 PM
DGNichols DGNichols is offline
www.plasmified.com
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 22 DGNichols Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 53 m 24 sec
Reputation Power: 0
Import dBase to MySQL easily with EMS MySQL Manager.

ningyong,

The easiest way to do this is with a client specifically written to transfer the tables. EMS MySQL Manager is capable of automatically importing tables from Excel, Access, and DBF databases, and data from CSV. This client can read the dBase file, parse it, and upload it directly into your MySQL database. EMS MySQL Manager is shareware and is available for download at the following URL:

http://ems-hitech.com/mymanager

Let me know if you have any further questions.

Dan Nichols
DGNichols@plasmified.com

-------------------------

http://www.plasmified.com
Plasmified Custom Computers

Fully Customizable PCs, Best Prices On The Market!

-------------------------
Comments on this post
pabloj disagrees: Spammer!!! dBase has nothing to do with DB2

Reply With Quote
  #3  
Old May 9th, 2004, 10:56 PM
fractalvibes fractalvibes is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2003
Location: Waco, Texas
Posts: 632 fractalvibes User rank is Sergeant (500 - 2000 Reputation Level)fractalvibes User rank is Sergeant (500 - 2000 Reputation Level)fractalvibes User rank is Sergeant (500 - 2000 Reputation Level)fractalvibes User rank is Sergeant (500 - 2000 Reputation Level)fractalvibes User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 14 h 11 m 13 sec
Reputation Power: 22
Yes, I would find some tools to do this, as you might find some datatype issues, especially with date/timestamp - type columns between DB2 and other databases. Also some numeric types perhaps. DB2 V5 is going back a ways - mainframe data?

fv
__________________
...because that is the way we have always done it. We've been doing it like that for 80 Years! (How do we change that mindset?)

Reply With Quote
  #4  
Old May 10th, 2004, 02:47 AM
ningyong ningyong is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Singapore
Posts: 168 ningyong User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 12 sec
Reputation Power: 5
Send a message via AIM to ningyong Send a message via Yahoo to ningyong
Thanks

Quote:
Originally Posted by fractalvibes
Yes, I would find some tools to do this, as you might find some datatype issues, especially with date/timestamp - type columns between DB2 and other databases. Also some numeric types perhaps. DB2 V5 is going back a ways - mainframe data?

fv


Thanks for your reply....

No, it's no mainframe data. There are total 15 tables with around 2000 records (each table).

Reply With Quote
  #5  
Old May 14th, 2004, 03:35 AM
ningyong ningyong is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Singapore
Posts: 168 ningyong User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 12 sec
Reputation Power: 5
Send a message via AIM to ningyong Send a message via Yahoo to ningyong
Thanks

Quote:
Originally Posted by DGNichols
ningyong,

The easiest way to do this is with a client specifically written to transfer the tables. EMS MySQL Manager is capable of automatically importing tables from Excel, Access, and DBF databases, and data from CSV. This client can read the dBase file, parse it, and upload it directly into your MySQL database. EMS MySQL Manager is shareware and is available for download at the following URL:

http://ems-hitech.com/mymanager

Let me know if you have any further questions.

Dan Nichols
DGNichols@plasmified.com

-------------------------

http://www.plasmified.com
Plasmified Custom Computers

Fully Customizable PCs, Best Prices On The Market!

-------------------------


Thanks for your useful information, I will update you once i tested.

Reply With Quote
  #6  
Old May 17th, 2004, 10:01 PM
ningyong ningyong is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Singapore
Posts: 168 ningyong User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 12 sec
Reputation Power: 5
Send a message via AIM to ningyong Send a message via Yahoo to ningyong
assign a number infront of each record

I am having some problem with assigning a number for each displayed record.

For display 10 record and number should assigned as
1 record1
2 record2
3
.
.
.
.
10 record10

This is my code, may i know what's wrong? I have tried to count the names and assign a number (1,2...)according to the number of names displayed.

<?php
do {
$name=$row_Recordset1['SES_NAME'];
$count=count($name);
for ($i =0; $i <$count; $i++){

if($count >=0){
$j=$count + 1;}else{
$j=1;}

echo $j. $name; }

} while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>

Reply With Quote
  #7  
Old May 21st, 2004, 04:08 AM
DGNichols DGNichols is offline
www.plasmified.com
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 22 DGNichols Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 53 m 24 sec
Reputation Power: 0
Assigning Row Numbers to Database Output

ningyong,
I took a minute to write a solution for you. This code should work if you simply replace the code you provided with it. It will automatically break each database row into an array called $myrow. This will only display the first column in the query you submitted to the database. If you would like to display the second, substitute $myrow[0] with $myrow[1].

<?php
$j = 0;
while ($line = mysql_fetch_array($Recordset1, MYSQL_ASSOC)) {
while ($myrow = mysql_fetch_row($Recordset1)) {
echo $j++ . ".) " . $myrow[0] . "<br>";
}}
?>

Reply With Quote
  #8  
Old May 21st, 2004, 05:15 AM
ningyong ningyong is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Singapore
Posts: 168 ningyong User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 12 sec
Reputation Power: 5
Send a message via AIM to ningyong Send a message via Yahoo to ningyong
Thanks

Quote:
Originally Posted by DGNichols
ningyong,
I took a minute to write a solution for you. This code should work if you simply replace the code you provided with it. It will automatically break each database row into an array called $myrow. This will only display the first column in the query you submitted to the database. If you would like to display the second, substitute $myrow[0] with $myrow[1].

<?php
$j = 0;
while ($line = mysql_fetch_array($Recordset1, MYSQL_ASSOC)) {
while ($myrow = mysql_fetch_row($Recordset1)) {
echo $j++ . ".) " . $myrow[0] . "<br>";
}}
?>



Thank you so much.... It works.....

Reply With Quote
  #9  
Old September 14th, 2006, 12:54 PM
sobhan.maddinen sobhan.maddinen is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 1 sobhan.maddinen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 11 sec
Reputation Power: 0
Migration of DB2 tables to MySQL

[QUOTE=DGNichols]ningyong,

The easiest way to do this is with a client specifically written to transfer the tables. EMS MySQL Manager is capable of automatically importing tables from Excel, Access, and DBF databases, and data from CSV. This client can read the dBase file, parse it, and upload it directly into your MySQL database. EMS MySQL Manager is shareware and is available for download at the following URL:

URL

Let me know if you have any further questions.

Dan Nichols
URL

-------------------------

Hi Dan Nichols,

Could you please send the complete details to migrate the tables from DB2 to MySQL.

I have gone through the above answer but not succeded.

So could you please give us step by step solution for this.

Thanks and Regards
Sobhan Maddineni.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDB2 Development > migration of db2 to MySQL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway