Archive for the ‘English’ Category

MediaWiki Project

Tuesday, February 22nd, 2011

MediaWiki is the wiki application that underlies Wikipedia and many other websites. It is written in PHP and licensed as open source under the GPL. Historically, it has run on MySQL, but it does have a sophisticated database abstraction layer that provides support for PostgreSQL, IBM DB2, and other databases.

MediaWiki

Our main goals for this project are to:

  • integrate DB2 support with the new MediaWiki installer being developed for the 1.17release;
  • debug the core wiki functionality on DB2;
  • implement search, possibly taking advantage of DB2’s Full Text Search features.

This project is being developed by AndréCésarDaniel and Diego.

IMS Industry Bundle

Sunday, September 28th, 2008

What is a pureXML Industry Bundle?

An industry bundle is composed of test scripts and test XML messages to illustrate how to create, index and populate an XML table, how to query the stored XML using XQuery or SQL/XML and return portions of XML, how to create views on the XML messages, how to shred the XML into relational format.

What are the goals of an industry bundle?

An industry bundle for an industry has the following goals:
- to help software developers, systems programmers, and database administrators get started with DB2 9 in the context of an industry using the XML messages that are often used as an exchange format in that industry
- to enable technical IT staff to quickly demonstrate to their colleagues the capabilities of the pureXML support in DB2, e.g., the ability to:
* store, index, and query XML easily without needing to convert the XML
(shred) to relational format
* store, index, and query well formed XML conforming to specific XML
schemas in a uniform way
* query stored XML and relational data together in a straightforward way
* process stored XML as though it is relational so that existing tools
and software can still be used
* shred XML messages into relational form where required

What is IMS?

In service to the community of organizations and individuals enhancing learning worldwide through the use of technology, IMS GLC is a global, nonprofit, member association that provides leadership in shaping and growing the learning and educational technology industries through collaborative support of standards, innovation, best practice and recognition of superior learning impact.

More information at IMS.

My industry bundle was related to IMS, so I got a bunch of IMS schemas, examples and with DB2 I created the “IMS Industry Bundle”. You can download it here.

Marcelo Sousa, DB2 Ambassador

DB2 on Campus @ UM – 03/10/08

Saturday, September 27th, 2008

Friday (2008/10/3;10:00-13:00 14:30-17:30)
Anfiteatro A4, Complexo Pedagógico I, Campus de Gualtar

Getting Started with DB2
Raul F. Chong – IBM Toronto Lab
(Speech in English)

- Find out what DB2 Express-C is all about.
- Understand DB2 architecture, tools, security.
- Learn how to administer DB2 databases.
- Write SQL, XQuery, stored procedures.
- Develop database applications for DB2.
- Practice using hands-on exercises.
- Prepare for the DB2 on Campus exam.

DB2 on Campus @ UM – 02/10/08

Saturday, September 27th, 2008

Thursday (2008/10/02; 14:30-16:00)
Anfiteatro A4, Complexo Pedagógico I, Campus de Gualtar

Web 2.0 demos with DB2
Raul F. Chong – IBM Toronto Lab
(Speech in English)

DB2 version 9.5 is a hybrid data server that allows users to store both, relational and XML data natively.  IBM is making this technology available for free using the DB2 Express-C edition.  Raul F. Chong, the DB2 on Campus program manager, will be visiting your university to show you this new and exciting technology using Web 2.0 demos.

Raul will also describe the DB2 Student Ambassador program, a volunteer offering specifically designed to students.  Getting to know this product is important for application developers using Service Oriented Architecture (SOA) since it can improve performance considerably.  Having this free edition of DB2, allows students incorporate the latest technologies in their application at no cost.

Online Testing System ready for testing!

Wednesday, April 9th, 2008

Our very own open-source online testing system is ready for testing. This will be a part of the future DB2 on Campus website having a vital role in it has it provides the authentication and testing mechanism that will be used. You can check out how to install it (Linux) here and send feedback to db2minho [at] gmail.com. Finding vunerabilities in the code would be of great assistance! :)

Open Source Online Test System

Monday, March 24th, 2008

Well the latest project developed within our group is the OSOTS. Here’s a quick preview.

If you want you can visit the project here and get the code from our git repository.

DB2 Express-C merchandise

Monday, March 24th, 2008

You can check out some nice DB2 Express-C merchandise here. Please don’t buy that ugly hat! :P

Screen-cast: METS Standard with IBM DB2 Express C using XForms as user-interface and Ruby on Rails as a Rest Web-services #1

Thursday, March 6th, 2008

Originally posted at:

The database manager shared memory set cannot be allocated.

Thursday, January 10th, 2008

Mysteriously my DB2 instance stop starting and dumps:

SQL1220N The database manager shared memory set cannot be allocated.

Don’t ask why this happened but you can increase the amount of shared memory by changing the kernel parameters. You can do that in two ways, by brute force or changing /etc/sysctl.conf:

(1) echo 268435456 > /proc/sys/kernel/shmall

However this will return to the default value at boot time. Therefore you should edit /etc/sysctl.conf, which is loaded at boot time and load it right now:

(2) echo “kernel.shmmax = 268435456″ >> /etc/sysctl.conf && systcl -p

There is no need to reboot in either ways, so if you continue to have problems you probably need expand your memory.

Note the 268435456 value which is 256MB in bytes:

$ echo “268435456/2^20″|bc -l
256


DB2 9: Creating database objects & Storing validated XML data

Tuesday, January 8th, 2008

I’m currently developing a Industry Format bundle based on XML standard – METS. To do such thing I had to learn some basic but still powerful features of DB2 9. At the moment my bundle only registers some XML schemas and use them to validate the insertion of some XML samples.

I’ll keep my promise to teach everything I learn, then I will teach three things:

1. register XML schemas

2. insert XML documents without validation

3. validate XML documents insertion

XML

Registering XML schemas

If you dont know what schema registration is, you can understand it as “give my DBMS the ability to verify XML structure correctness against a specified XML schema”. By the way, you can easily create your own schemas to your XML documents with an IBM tool named WebSphere Studio. All you have to do is load the XML sample and select Generate -> XML Schema.

I’ll assume that you read the Express-C: Starting tutorial so that I can use the test.items as my table example.

Assume that you have a XML schema in schemapath named xschema.xsd and remember that XML schemas are only XML documents that dictate the sctructure other XML documents.

So, to registrate it you should run in the CLP:

register xmlschema ‘xschema.xsd’ from ‘schemapath/xschema.xsd’ test.xschmema complete;

…or from your favorite shell:

db2 “register xmlschema ‘xschema.xsd’ from ‘schemapath/xschema.xsd’ test.xschmema complete;”

This should work, however there is something you should know. When a XML schema becomes too large it’s good practice to separate it in several files. In those cases the schema registration becomes quite different.

Assume that xschema.xsd was divided in two XML schemasxschema1.xsd and xschema2.xsd. The schema registration should be like this:

register xmlschema ‘xschema1.xsd’ from ‘schemapath/xschema1.xsd’ test.xschema
add xmlschema document test.xschema add ‘xschema2l.xsd’ from ‘schemas/xschema2.xsd’
complete xmlschema teste.xschema

Inserting XML documents

You can insert XML documents in a given table as you insert a string or an integer:

insert into items values (96, ‘João Moura’,’student ambassador‘)

However in most cases it’s kind of difficult to insert the XML document in one single line or one by one, so we use a simple script to specify a list of XML documents and eventually their schema. Here is an example saved in “script.del”:

1,”João Moura”,<xds fil=”joaoinfo.xml” sch=”xschema.xsd”>
2,”Quim Barreiros”,<xds fil=”quiminfo.xml” sch=”xschema.xsd”>
3,”Nuno Veloso”,<xds fil=”nunoinfo.xml”>
4,”João Ferreira”, </xds></xds></xds>

You can say the values to insert and possibly omit some. Although XDS (XML Data Specifier) tag syntax is self-explanatory its worth noting:

<XDS ../> – the tag itself
FIL=’ ‘ – the name of XML document
SCH=” – the XML schema describing the document structure

And then use it to import several entries in using only one line:

import from script.del of del xml from ‘dirofxmldocuments’
insert into test.items

All that it does is execute sequential insert‘s reading the output from script’s rows.

Validating XML documents

I’m tired of writing so i’ll be quick:

import from script.del of del xml from ‘dirofxmldocuments’
xmlvalidate using xds
insert into test.items

Conclusion

This is all I can give you for now but be aware of more tutorials and remember:

The more knowledge you share with others the more knowledge will be shared with you.

Hope you enjoy.