moodle and other database integration ผศ. ดร. เด่นพงษ์...

22
MOODLE and Other MOODLE and Other Database Database Integration Integration ผผ ผผ . . ผผ ผผ . . ผผผผผผผผ ผผผผผผผผ ผผผผผผผผ ผผผผผผผผ ผผผผผผผผผผผผผผผผผผผผผผผผผผผ ผผผ ผผผผผผผผผผผผผผผผผผผผผผผผผผผผผผผผผผ ผผผผผผ

Upload: dennis-derek-williamson

Post on 28-Dec-2015

250 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

MOODLE and Other MOODLE and Other Database Database

IntegrationIntegrationผศผศ..ดรดร . . เด�นพงษ์� สุ�ดภั�กด� เด�นพงษ์� สุ�ดภั�กด�ผ��ช่�วยอธิ�การบด�ฝ่�ายว�ช่าการ

และผ��อ"านวยการสุ"าน�กนว�ตกรรมการเร�ยนการสุอน

มหาว�ทยาล�ยขอนแก�น

Page 2: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

KPIs MonitoringKPIs Monitoring

• Student Centered Learning (Education Act.)– Technology integrated learning– Life Long Learning

• Internal quality assurance KPIs monitoring• External quality assurance KPIs monitoring• University management monitoring• Learning achievement monitoring• University ranging

Page 3: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

Database IntegrationDatabase Integration

• Various existing information systems• Student Information System

– Student Portfolio (AVS, Oracle)– Student Enrolment (AVS, Oracle)

• Staff Information System– Mailing System (LDAP)– Personnel System (FoxPro)– e-Office (MS SQL)– Management Information System (Oracle)

Page 4: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

Various Database UseVarious Database Use

• MySQL• MS SQL• Oracle• Generic ODBC• FoxPro• PostgreSQL• LDAP• IMAP• RADIUS

Page 5: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

MOODLE Base MOODLE Base DatabaseDatabase

• MOODLE database is recommended to be neither MySQL or PostgreSQL

• There is no easy solution for using other database, so it is not recommended

• Integrate by using connection tools that embedded in MOODLE– Authentication– Enrolment

Page 6: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

ADODB ConnectivityADODB Connectivity

• MOODLE runs on FreeBSD, Linux, Mac OS X, and Windows

• MOODLE is compatible with a huge range of databases through ADODB (Active Data Objects Database) integration

• ADODB supports MySQL, PostgreSQL, Interbase, Firebird, Informix, Oracle, MS SQL, Foxpro, Access, ADO, Sybase, FrontBase, DB2, SAP DB, SQLite, Netezza, LDAP, and generic ODBC, ODBTP

Page 7: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

KKU OpenLDAP KKU OpenLDAP ServerServer

Page 8: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

Student Information Student Information SystemSystem

Page 9: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

Authentication Authentication MechanismMechanism

Page 10: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

KKU LDAP Server KKU LDAP Server (Faculties)(Faculties)

Page 11: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

External Database External Database (Students)(Students)

Page 12: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

Synchronisation and Synchronisation and MappingMapping

Page 13: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

Enrolment MethodsEnrolment Methods

Page 14: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

External Database External Database EnrolmentEnrolment

Page 15: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

Database Enrolment Database Enrolment ConditionsConditions

• Course idnumber between two databases must be identical

• Large database search may slowdown both MOODLE server and external database server

• More than 250,000 records for KKU enrolment

• Redundant external database server may needed

Page 16: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

Oracle ConnectionOracle Connection

• ADODB with PHP and Oracle• Oracle instant client have to be

installed in MOODLE server• PHP requires oci8 extension• OCI8 extension is the standard method

for accessing Oracle 8i, 9i or 10g (and later)

• Coding requires ADODB library (MOODLE is ADODB ready)

Page 17: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

oci8 Extension for oci8 Extension for PHPPHP

How to: http://e-learning.kku.ac.th/mediawiki/index.php/Admin_Tips:Oracle_and_Ubuntu_ConnectionHow to: http://e-learning.kku.ac.th/mediawiki/index.php/Admin_Tips:Oracle_and_Ubuntu_Connection

Page 18: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

MOODLE ADODB MOODLE ADODB LibraryLibrary

• Locate at lib/adodb/drivers• External database character set must

be known for Thai (UTF-8 is the common one)

• External database character set must be indentify in MOODLE configuration pages.

Page 19: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

External Database External Database SettingSetting

• Create view table for ADODB read-only connection (user authentication needed)

• Data mapping on required parameters– User field– Course field

• Institution ICT policy in place• Personal connection between

programmers speed up the connection!

Page 20: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

Recommended ServerRecommended Server

• Linux-based webserver running Apache.

• PHP with PHP accelerator• Webserver and database server should

sit on separate machines• For a large site, load-balance and

MySQL cluster may be necessary

Page 21: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

Large Site Large Site ConfigurationConfiguration

Page 22: MOODLE and Other Database Integration ผศ. ดร. เด่นพงษ์ สุดภักดี ผู้ช่วยอธิการบดีฝ่ายวิชาการ

Institute of Learning and Teaching Institute of Learning and Teaching InnovationInnovation

IT Center BuildingKhon Kaen University

Khon Kaen, 40002THAILAND

Tel/Fax. 0-4320-2899e-mail: [email protected]

Web: http://ilti.kku.ac.th/

MOODLE: http://e-learning.kku.ac.th/