LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-15-2005, 04:01 AM   #1
yussef
Member
 
Registered: Sep 2004
Location: St Andrews, United Kingdom
Distribution: Ubuntu Breezy 5.10
Posts: 31

Rep: Reputation: 15
ORACLE to MySQL


Ok here is the thing i have to migrate a ORACLE sql query to a MySql script; cqn someone help me do that? pleeaase

here is the code:
Code:
CREATE TABLESPACE TOPUP_DATA
       
       DEFAULT
       STORAGE ( 
       INITIAL 4096000
       NEXT 655360
       MINEXTENTS 1
       MAXEXTENTS 12
       ) 
  ;
CREATE TABLESPACE TOPUP_INDEX
       
       DEFAULT
       STORAGE ( 
       INITIAL 901120
       NEXT 163840
       MINEXTENTS 1
       MAXEXTENTS 12
       ) 
  ;

CREATE TABLE TOPUPOWN.CFG_OPERATOR_CURRENCY (
       COC_OperatorId       VARCHAR2(3) NOT NULL,
       COC_CurrencyDPSKiosk VARCHAR2(3) NOT NULL,
       COC_CurrencyOperator VARCHAR2(3) NOT NULL
)
       PCTFREE 10
       TABLESPACE TOPUP_DATA
       STORAGE ( 
              INITIAL 8
              NEXT 8
              MINEXTENTS 1
              MAXEXTENTS 11
       ) 
;


ALTER TABLE TOPUPOWN.CFG_OPERATOR_CURRENCY
       ADD  ( PRIMARY KEY (COC_OperatorId, COC_CurrencyDPSKiosk)
       USING INDEX
              TABLESPACE TOPUP_INDEX
              STORAGE ( 
                     INITIAL 8
                     NEXT 8
                     MINEXTENTS 1
                     MAXEXTENTS 11
              ) ) ;


CREATE TABLE TOPUPOWN.CFG_OPERATOR_MSG_FIELDS (
       COM_OperatorId       VARCHAR2(3) NOT NULL,
       COM_Order            NUMBER(2) NOT NULL,
       COM_OperatorOpCode   NUMBER(1) NOT NULL,
       COM_OperatorMsgField VARCHAR2(50) NULL,
       COM_DPSKioskMsgField VARCHAR2(50) NULL,
       COM_DataType         NUMBER(1) NULL,
       COM_Long             NUMBER(4) NULL,
       COM_DefaultValue     VARCHAR2(100) NULL
)
       PCTFREE 10
       TABLESPACE TOPUP_DATA
       STORAGE ( 
              INITIAL 32
              NEXT 8
              MINEXTENTS 1
              MAXEXTENTS 11
       ) 
;
THANKS!!
 
Old 06-15-2005, 07:04 AM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
What? You want us to do it for you? Good luck.
 
Old 06-15-2005, 11:42 AM   #3
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Rep: Reputation: 32
If you do it yourself and post what is going wrong (if it does) then maybe someone will help.
 
Old 06-15-2005, 04:21 PM   #4
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Quote:
What? You want us to do it for you? Good luck.
Hm... I actually feel guilt about... well... hmm... sounding arrogant.

So I want to make it up to you, OP, by pointing you to an article worth its weight in gold (whatever that means):
http://www.catb.org/~esr/faqs/smart-questions.html

hth --Jonas
 
Old 06-16-2005, 01:22 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Hint: I think you'll find you can't specify storage in MySQL ...
 
Old 06-16-2005, 02:38 AM   #6
yussef
Member
 
Registered: Sep 2004
Location: St Andrews, United Kingdom
Distribution: Ubuntu Breezy 5.10
Posts: 31

Original Poster
Rep: Reputation: 15
thnx chris...
Yeah i figured this out... can't define storage.
I think I am done with migrating it

Thanks anyway
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between Oracle Server and Oracle Database ganninu Programming 3 02-27-2007 01:06 AM
xhost + as user oracle not working, need to see oracle install GUI enzo250gto Linux - Software 2 02-11-2007 11:27 AM
what is good, mysql or oracle?? gajaykrishnan General 4 08-21-2004 02:11 PM
Oracle 9i R2 and MySQL 4.0.X support ravishankar Linux - Newbie 2 10-03-2003 09:47 PM
mySQL vs oracle 8/9i hamster Linux - Software 10 04-29-2003 08:55 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration