🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #3033

Re: Oracle a MySQL

#3033
From: Cristian Gutierrez
Date: Wed, 15 Jun 2005 21:16
23 lines
3031 bytes
Hoy en la tarde, jgarrido@dcc.uchile.NOSPAM.cl dijo:
>   Necesito pasar los datos de una tabla en una BD Oracle en un servidor 
> externo a una BD MySQL en mi pc.
>
>   He bajado varias aplicaciones que se supone que hacen eso, sin embargo 
> todas me piden tener instalado Oracle en mi PC. Hay alguna manera de 
> hacerlo sin tener que instalar cosas de Oracle?

Lo primero que se me ocurre es obtener un dump de la tabla en el Oracle;
cocinas un poco la definicion de la tabla para MySQL, y para las filas
puedes hacer un script Perl/PHP que coloque las comas, comillas y punto
y comas donde deban ir, y despues cargas en MySQL. Ahora, si es una
cantidad no despreciable de tablas, quizas esto no "escale" muy bien (en
esfuerzo humano, al menos).

O quizas llevar la idea un poco mas al extremo y hacer un script
Perl/PHP/whatever que haga un SELECT de la tabla en Oracle y los
respectivos INSERTs en MySQL; te ahorras hacer el dump pero igual
necesitas definir la(s) tabla(s) de alguna manera...

-- 
Cristian Gutierrez                          /* crgutier@dcc.uchile.cl */
"It is easier to change the specification to fit the program than vice versa." 
Technical Details
Message-ID: <87ll5bjp75.fsf@guti.no-ip.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.kjsl.com!news1.nivel5.cl!news.cec.uchile.cl!helcaraxe.dcc.uchile.cl!guti.no-ip.org!news
References: <d8q2a5$84n$1@localhost.localdomain>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,d3b608829f0e4491
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.kjsl.com!news1.nivel5.cl!news.cec.uchile.cl!helcaraxe.dcc.uchile.cl!guti.no-ip.org!news
From: Cristian Gutierrez <crgutier@dcc.uchile.cl>
Newsgroups: chile.comp.programacion
Subject: Re: Oracle a MySQL
Date: Wed, 15 Jun 2005 17:16:30 -0400
Organization: DCC - Universidad de Chile
Lines: 23
Message-ID: <87ll5bjp75.fsf@guti.no-ip.org>
References: <d8q2a5$84n$1@localhost.localdomain>
NNTP-Posting-Host: anakena.dcc.uchile.cl
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: helcaraxe.dcc.uchile.cl 1118871006 17120 192.80.24.6 (15 Jun 2005 21:30:06 GMT)
X-Complaints-To: newsmaster@dcc.uchile.cl
NNTP-Posting-Date: Wed, 15 Jun 2005 21:30:06 +0000 (UTC)
Face: iVBORw0KGgoAAAANSUhEUgAAADwAAAA8AgMAAABHkjHhAAAADFBMVEUWFhZfX1+ioqL6+vr8
 dj+QAAAAAWJLR0QAiAUdSAAAAg5JREFUeNql0s9r02AYB/B4GIHuoAgVVmG9CVYwf4ILrht40Ynd
 dEXioWUsA3PaQQ8LKHpYLnbTThwiHbWYV9Sj9rL36NUObGkPUrVzuIs/6BvyluZ9ljcxaXI2lzwf
 eJOH9/k+AvhP/7j/Fv65OxMzmynhqO1zH/So+29NLeqvh6YU8WADmemIP4lxL8pxp6p3o2aZegZl
 R3YyaBJNaaGHKkqgxOXQNkKXzLQR+g9C6+b5kfcQevgmpYRuIrRZn5BCryO0US3ogW1BdV0J+3dz
 grpXmQXYfuf5nkLH5ksK/SIrnq/rg26ioTmdygtupwgWHSvoTnvF4CZl17dOYNoWy9yNPOzXfstg
 tYtXuR9o0JwlL+HgeWGBW8ZgGBbFnWUhw33Sbdz6TvHN1ey8a3YGIN+6T2C5PYFdD2sA6d5FAu9v
 LH3WBbAJBgmIDJ3ioooFoCzPNDq5in82TX7egsdXcE+0pZ3sEr+fxW7XoCvS3HRS4f7rrGHojRP0
 6A72TOtuoBrZnVvz5kGIzVejX0jpvi2bF0Q+iz1TWuXFwbOkP7/hrrdaH58u+HakX7wwSsF8/eDT
 wf45417kFwIPd7yIcWDS52UDApevuZ86p0PLK1tuZHpoBN8YLgOM9pswfft/vO9oMf9g6UbMYNij
 /jDYglZwHRCYIIgx56aO4earyPlD89R0Mvo/9kR9HfgIgorhXaQc58oAAAAASUVORK5CYII=
User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)
Cancel-Lock: sha1:CgoFVThMiOzI/W1Ss3wc0dt41MI=