Databases: Moodle & Oracle database

Databases: Moodle & Oracle database

Dhafer Qahtani發表於
Number of replies: 7

hello all-

NOW, I am using MySql database in Moodle 1.5.3 version. I am looking for using Oracle databse.

- Can I replace MySql with Oracle database? How?

- MySQL is completely supported by Moodle where as the others might not be.  Does this mean we will get less frequent updates or that we will get less functionality if we use Oracle?

your help is highly appreicated...

評比平均分數: -
In reply to Dhafer Qahtani

Re: Databases: Moodle & Oracle database

Tim Tate發表於
Our house DB is Oracle, and the admins would prefer not to add MySQL to the mix, so I'm really interested in at least trying to get Moodle working with Oracle too, but I can't find any good info.  Can someone at least suggest a starting point?  Is it as simple as making a change in a configuration file?  The DB is abstracted through ADODB, right?  Pleeeease help out here, someone....
In reply to Tim Tate

Re: Databases: Moodle & Oracle database

Marcus Green發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片
Although the db is abstracted through adob there are sufficient differences between the way Oracle and MySQL work that doing a conversion would be wildly more complex and involved than simply using MySQL. Your best bet is to get your people to live with running a little MySQL, it is not at all difficult.
In reply to Tim Tate

Re: Databases: Moodle & Oracle database

Andrew McMillan發表於
Just because access to the database is done through ADODB doesn't make an application database independent. Moodle works well with either PostgreSQL or MySQL, so there is _some_ database independence however.

The places in the code that distinguish between these two are very likely to be the places to look for that Oracle support might need to be differentiated also. In most cases I expect that the answer will tend towards the PostgreSQL branch since the PostgreSQL developers have endeavoured to follow the SQL standard and have tended to use Oracle-like constructs elsewhere. As a consequence it's much closer, though it will still be a reasonable amount of work.

We recently had a client who asked for this (similarly because they have been convinced to spend lots of money on Oracle for other business needs) but once we set them going against PostgreSQL they stopped asking. The question may rear it's head again though so maybe they will pay us to do it, and we'll contribute it to the community.

I won't hold my breath however - Moodle works just fine with PostgreSQL for these people. With an open-source DB the value of adhering to a corporate standard only really applies if you are doing the DBA work and don't have appropriately skilled staff.

Regards,
Andrew McMillan.
In reply to Tim Tate

Re: Databases: Moodle & Oracle database

Jonathan Joseph發表於
I'm in the same boat, though in my case I need to get it to work with Firebird. It appears nobody on the database team is too keen to expand support to other databases which is a shame.

In reply to Dhafer Qahtani

Ideas de como transportar el diseño de Moodle de MySQL a Oracle

Pedro Dagoberto Almaguer Prado發表於

Dado que en MySQL solo está el diseño de las estructuras de datos y no hay programación de reglas de negocios por medio de Triggers o Stored Procedured, es fácil hacer una traducción del Diseño en MySQL a cualquier otro servidor de base de datos como Oracle, Interbase, Firebird y MsSQL.

Solo hay que tomar en cuenta las siguientes consideraciones:

  1. Sacar las equivalencias de formato de los campos en MySQl y la nueva base de datos.
  2. Para los campos que en MySQL tienen definido que son de autoincremento, esta operación deberá de programarse por medio de un trigger before insert en Interbase y Firebird o su equivalente en Oracle u otra que acepte trigger.
  3. Crear los indices primarios y los foreign key en las nuevas bases de datos de forma similar a lo definido en MySQL.

El hecho de que por ahora en la base de datos MySQL usada por Moodle no se haya programación en Trigger o Stored Procedured, esto simplifica el trabajo de transformación de MySQL a cualquier otro servidor de base de datos.

Nosotros estamos por ahora haciendo esta traducción de MySql a Firebird e interbase http://www.prado.com.mx en cuanto lo tengamos listo publicaremos nuestro resultado, para pasar a Oracle se puede usar el producto Firacle que traduce de Firebird a Oracle.

Espero que mi aportación le sea útil en lo que piensa hacer.

Reciba un afectuoso saludo desde Monterrey, México.

Pedro D. Almaguer Prado
pedro@prado.com.mx

In reply to Pedro Dagoberto Almaguer Prado

Re: Ideas de como transportar el diseño de Moodle de MySQL a Oracle

Martín Langhoff發表於
Pedro,

para hacer un Port a Ora o Firebird, fíjate en los esquemas de Postgres, que funcionan casi sin modificaciones en Oracle. De cualquier manera, Eloy LaFuente está trabajando en un esquema para definir las tablas mucho más portátil, que nos va a permitir usar MSSQL, Oracle o casi cualquier otra RDBMS moderna. Y estoy viendo cómo hacer para ayudarlo con el port a Oracle desde NZ.

Veo que estás en Mx, vas al CONSOL2006? Yo voy a estar haciendo una presentación sobre Moodle en Ciudad de México en Agosto!
In reply to Martín Langhoff

Re: Ideas de como transportar el diseño de Moodle de MySQL a Oracle

OMAR RICARDO MOLINA MOLINA發表於
Hola ...

Quisiera que alguien me ayudara en el siguiente problema:

Necesito pasar las notas finales que registra cada docente de los cursos que desarrollo en moodle, a una base de datos que tengo en oracle....

Por donde empiezo? donde puedo conseguir información al respecto?

Gracias....