Virtuoso Universal Server

From Wikipedia, the free encyclopedia

Virtuoso Universal Server
Image:virtuoso-logo-sm.png

Virtuoso Conductor (Database Administration User Interface)
Developed by OpenLink Software
Latest release 5.0.4 / January 2008
OS Cross-platform
Genre Open Source and Commercial
Website virtuoso.openlinksw.com

Virtuoso Universal Server is a middleware and database engine hybrid that combines the functionality of a traditional RDBMS, ORDBMS, virtual database, RDF, XML, free-text, Web Application Server, and File Server functionality in a single server product offering. Rather than have dedicated servers for each of the aforementioned functionality realms, Virtuoso is a "universal server"; it enables a single multithreaded server process that implements multiple protocols. The open source edition of Virtuoso Universal Server is also known as OpenLink Virtuoso.

The software has been developed by OpenLink Software with Kingsley Idehen and Orri Erling as the chief software architects.

Contents

[edit] Database Structure

[edit] Core Database Engine

Virtuoso provides an extended object-relational model, which offers all the flexibility of relational access with inheritance, run time data typing, late binding, and identity based access. Virtuoso Universal Server database includes physical file and in memory storage and operating system processes that interact with the storage. There is one main process, which has listeners on a specified port for http, soap, and other protocols.

[edit] Architecture

Virtuoso is designed to take advantage of operating system threading support and multiple CPUs. It consists of a single process with an adjustable pool of threads shared between clients. Multiple threads may work on a single index tree with minimal interference with each other. One cache of database pages is shared among all threads and old dirty pages are written back to disk as a background process.

The database has at all times a clean checkpoint state and a delta of committed or uncommitted changes to this checkpointed state. This makes it possible to do a clean backup of the checkpoint state while transactions proceed on the commit state.

A transaction log file records all transactions since the last checkpoint. Transaction log files may be preserved and archived for an indefinite time, providing a full, recoverable history of the database.

A single set of files is used for storing all tables. A separate set of files is used for all temporary data. The maximum size of a file set is 32 terabytes, for 4G x 8K pages.

[edit] Locking

Virtuoso provides dynamic locking, starting with row level locks and escalating to page level locks when a cursor holds a large percentage of a page's rows or when it has a history of locking entire pages. Lock escalation only happens when no other transactions hold locks on the same page, hence it never deadlocks. Virtuoso SQL provides means for exclusive read and for setting transaction isolation.

[edit] Transactions

All four levels of isolation are supported: Dirty read, read committed, repeatable read and serializable. The level of isolation may be specified operation by operation within a single transaction. Virtuoso can also act as a resource manager and/or transaction coordinator under Microsoft's Distributed Transaction Coordinator ( MS DTC ) or the XA standard.

[edit] Data Integrity

Virtuoso ORDBMS database supports entity integrity and referential integrity. Virtuoso ensures that relationships between records in related tables are valid by enforcing referential integrity. Integrity constraints include:

  • NOT NULL - Within the definition of a table, Virtuoso allows data to contain a NULL value. This NULL value is not really a value at all and is considered an absence of value. The constraint of NOT NULL forces a value to be given to a column.
  • Unique Key - Uniqueness for a column or set of columns means that the values in that column or set of columns must be different from all other columns or set of columns in that table. A unique key may contain NULL values since they are by definition a unique non-valued value.
  • Primary Key - Primary key are much like unique keys except that they are designed to uniquely identify a row in a table. They can consist of a single column or multiple columns. The primary key cannot contain a NULL value.
  • CHECK Constraint - Virtuoso provides on a column an integrity constraint that requires certain conditions to be met before the data is inserted or modified. If the checks are not satisfied then the transaction cannot be completed.

[edit] Data Dictionary

Virtuoso stores all its information about all user objects in the database in the system catalog tables designated by db.dba*.

[edit] Components and Files

[edit] Components

Virtuoso is made up of client and server components. These are the components typically used to communicate with a local or remote Virtuoso server which include:

  • Virtuoso Drivers for ODBC, JDBC, ADO.NET and OLE DB
  • Conductor, a Web Based Database Administration User Interface
  • ISQL (Interactive SQL) and ISQO Utilities
  • Documentation and Tutorials
  • Samples

[edit] Files
  • Database File: {virtuoso}.db is default for a single file database, this is the relative path of the file in the format appropriate to the platform. The path is resolved relative to the directory that is current at server startup.
  • Transaction File: {virtuoso}.trx is the transaction log file.
  • Error Log File: {virtuoso}.log is that contains all the logs for the database including informational and error messages. Using this file, database administrators can trace problems and see at which times the server has started, checkpoints have been made, and other messages.
  • Lock Files: {virtuoso}.lck Virtuoso, by default, creates a file with the same name as the database filename but with the extension of .lck. This file exists when the Virtuoso server is running to prevent it starting multiple times using the same parameters, and should be automatically removed by the server upon exit.
  • Init File: virtuoso.ini is the Virtuoso configuration file, which is read from the directory that is current at server startup. This file contains an entry for all user settable options in the server.

All database installation come with two databases, a default database and a demo database. The demo database includes sample tables and tutorials, the user can log into the database with the username demo and the password demo. By default, the default database listens on port 1111 and the demo database on 1112.

[edit] History

The Virtuoso project was born in 1998 from a merger of the OpenLink data access middleware and Kubl RDBMS.

[edit] Kubl RDBMS

The Kubl ORDBMS was one of a list of relational database systems with roots in Finland. This list also includes MySQL, InnoDB and Solid RDBMS [1].

As is the case with most technology products, key personnel behind OpenLink Virtuoso, InnoDB and Solid share periods of professional overlap that provide noteworthy insight into the history database technology development in Finland. Heikki Tuuri (creator of Inno DB), Ora Lassila (W3C and Nokia Research, a technology lead and visionary in the areas RDF and Semantic Web in general alongside Tim Berners-Lee), and Orri Erling (Virtuoso Program Manager at OpenLink Software) all worked together in a startup company called Entity Systems in Finland - were they were developing Common Lisp and Prolog development environments for the early generation of PC's circa. 1986-88.

Later, Orri Erling worked with VIA International, the developer of VIA/DRE in designing a LISP based Object Oriented Data Access layer atop the company's DBMS product. The core development team of VIA, following the company's demise in 1992, went on to found Solid under the direction of Artturi Tarjanne.

Heikki Tuuri worked at Solid for a while before starting his own database development project which became Inno DB (recently acquired by Oracle in 2005).

Orri Erling started his own DBMS development work in 1994, which was to become Kubl. Development of Kubl was initially financed by Infosto Group, publisher of Finland's largest free ads paper, as part of their in-house software development project for their on-line services. The on-line version of Keltainen Pörssi was at one time said to be Finland's most popular web site with 500,000 registered users. The Kubl database was prominently displayed in a "Powered by Kubl" logo on the search results.

A free trial version of Kubl was made available for download on November 7, 1996. [2]

Kubl was marketed as a high performance lightweight database for embedded use; the development aim was to achieve top scores in Transactions Per Second tests. [3] [4] Pricing of the product was especially favorable to Linux users with a Linux license priced at $199. [5]

Kubl became the cornerstone of OpenLink Virtuoso, after the technology paths of Kingsley Idehen and Orri Erling crossed in 1998, leading to the acquisition of Kubl by OpenLink Software [6].

[edit] Functionality Realms

Virtuoso provides functionality that covers a broad range of traditionally distinct functionality realms as part of a single product offering. The realms include:

[edit] Protocols Implemented

In addition to the functionality realms above, the product implements of a broad range of industry standard Web & Internet protocols that includes:

[edit] API Support

For the database application developer and systems integrator, Virtuoso implements a variety of industry standard data access APIs (client and server) that includes:

[edit] Content Syndication & Interchange Format Support

For the Web application developer, content syndicate(s), content publishers, and content consumers, Virtuoso implements support for standards such as:

[edit] Query Language Support

[edit] Schema Definition Language Support

[edit] Usage Scenarios

Virtuoso is a solution for the following systems integration challenges:

[edit] Related Technology Areas

[edit] Data Management

[edit] Enterprise Application, Information, and Data Integration

[edit] Related products and tools

In addition to Virtuoso, OpenLink Software produces several related tools and applications.

[edit] Platforms

Virtuoso is supported on a number of 32 & 64 bit platforms including cross-platform Windows, UNIX (HP, AIX, Sun, DEC, BSD, SCO), Linux (Red Hat, SUSE), and Mac OS X.

[edit] Licensing

In April 2006 an open source version of Virtuoso was made available under the GPL license. The software is now available in Commercial and Open Source license variants. [7]

[edit] See also

[edit] External links