Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

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:
Learn four approaches for automating Excel logic, along with advantages and disadvantages of each. Read all about it in the free whitepaper: “Tapping into Excel Logic from Java: Four Server-Based AlternativesDownload Now!
  #1  
Old May 23rd, 2003, 03:42 PM
pnebb1 pnebb1 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 5 pnebb1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
oracle to MySQL for a novice

A client has an application created in Java for an oracle database. He needs it converted to a mySQL database.

I have only worked with PHP/MySQL applications. Any pointers here on things to look for or how to proceed?

Many thanks,
Patty

Reply With Quote
  #2  
Old May 26th, 2003, 09:08 AM
tommy.pr tommy.pr is offline
»» ¤ ««
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2003
Location: Indonesia
Posts: 905 tommy.pr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 h 33 m 25 sec
Reputation Power: 6
Send a message via Yahoo to tommy.pr
I have work with PHP-Oracle once. And it's not the very complicated one. So, I'm not the top expert. But I'm open for discussion.

Reply With Quote
  #3  
Old May 26th, 2003, 10:53 AM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Pembroke Pines, Florida, USA
Posts: 2,298 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 1 h 54 m 21 sec
Reputation Power: 41
Converting from Oracle to MySQL??? The simplest and sincerest advice I can give you is "DON'T". You don't know what you are getting yourself into.

MySQL has so many more limitations than Oracle that you will probably have some real problems getting the same logic to work in MySQL. This is especially important if you have no experience with databases beyond MySQL.

Now, once we get beyond this, yes, it is possible to put data from an Oracle database into MySQL. Depending on the features used in the Oracle database, though, the difficulty level ranges from somewhat troublesome to nearly impossible.

If the Oracle database has any views, triggers, or stored procedures, you will have to live without them in MySQL. The best you can hope for is to use InnoDB tables so you at least have foreign key integrity. Also, there is the question of datatypes. MySQL's range of available datatypes for columns is quite limited, so you might have to do some research there.

In all honesty, I would say you need to post some information about the Oracle database's structure to get any further advice.

IF the customer really wants a (free) open source database system to handle this work, PostgreSQL , SAP DB or Firebird will be much better choices. I recommend PostgreSQL first, because it is probably the most mature open source DBMS available, and its syntax and feature set are very similar to Oracle. Again, however, if you have no knowlege of DB systems beyond MySQL, I think you are going to need some serious study to be able to understand the abilities of enterprise-level SQL systems. Be prepared to do your homework .
__________________
The real n-tier system:

FreeBSD -> PostgreSQL -> [any_language] -> Apache -> Mozilla/XUL

Amazon wishlist -- rycamor (at) gmail.com

Reply With Quote
  #4  
Old May 27th, 2003, 11:03 PM
dotcomguy dotcomguy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: #devshed @ irc2.beyondirc.net
Posts: 231 dotcomguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 40 sec
Reputation Power: 6
Send a message via ICQ to dotcomguy Send a message via AIM to dotcomguy Send a message via Yahoo to dotcomguy
Quote:
Originally posted by rycamor
Again, however, if you have no knowlege of DB systems beyond MySQL, I think you are going to need some serious study to be able to understand the abilities of enterprise-level SQL systems. Be prepared to do your homework .

This is worth repeating. There is a lot more to DB design than what MySql offers. If this application was originally designed for Oracle, you can almost guarantee it's way more complex than stuff you've done in Mysql.

I agree with rycamor that it would be much genter on your sanity if you used another RDMS such as Mysql. Actually if you remove some of the things such as triggers you may very well break the application because the application relies totally on the database. You could even find yourself recoding a lot of things in the app to make up for those losses.
__________________
.

Reply With Quote
  #5  
Old May 28th, 2003, 12:31 AM
kfickert's Avatar
kfickert kfickert is offline
Capt'n
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2001
Posts: 537 kfickert User rank is Lance Corporal (50 - 100 Reputation Level)kfickert User rank is Lance Corporal (50 - 100 Reputation Level)kfickert User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 4 h 1 m 44 sec
Reputation Power: 7
I have to agree with the other folks. I haven't used Oracle since 8i, but if you have it either stick with it or move to another enterprise system such as DB2. I can understand wanting to move from oracle. Our former CTO circa 2000 - 2001 read all the reviews and flashy ads in magaizes and failed to heed our advice and we had nothing but problems with Oracle.

MySQL has its place, and it is not a stand in for Oracle. If you are going to port, you might as well start from the ground up. You'll proably spend less time.
__________________
Why? Because Forms just look cooler in OS X...

Dutch, it's like German...but not!

Reply With Quote
  #6  
Old May 28th, 2003, 12:37 AM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,350 Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 17 h 51 m 11 sec
Reputation Power: 674
Just wanted to add that converting from just about ANY database to any other database, is a royal pain in the neck. Unfortunately, SQL stands for "Structured Query Language", not "Standard Query Language" and every vendor has their own dialect. Also, there are a bunch of functions that may be available on one engine, but not on another --- e.g., each engine has different string manipulation functions. After you add stored procs, triggers, constraints, user defined types etc. in the mix, porting becomes a really involved process.

I was involved in a project which was originally written to work with SQLBase (now Centura). Getting the code to also work on Oracle was relatively easy, since SQLBase was founded by an ex-Oracle person and used similar syntax, and also the project only used a few stored procedures. Dunno if the reverse is that easy though. BTW, the higherups decided to make a version of the product, to work with SQL Server. That's when things got rather hairy in a hurry

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > oracle to MySQL for a novice


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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