This is an old revision of the document!


Administration: Raw Data Files

Raw Data Files

Environments and Raw Data Files

Omnidex allows logical databases to be created around raw data files. Similar to a relational database, the Omnidex administrator creates an Omnidex Environment File that declares a complete database with table and column definitions, table constraints and Omnidex indexes. The tables simply point to the raw data files as their source of data. Omnidex applications can then query the database without any concern whether the underlying data came from a relational database or raw data files.

Once connected to this Omnidex Environment File, statements can be issued that join the tables together, as shown in the example below:

SELECT        TABLE1.COL1,
              TABLE2.COL1
  FROM        TABLE1
  JOIN        TABLE2 ON TABLE1.COL2 = TABLE2.COL2
  WHERE       TABLE1.COL3 = 'value' AND
              TABLE2.COL3 = 'value';

This approach transforms individual raw data files into a comprehensive database accessible using standard SQL. Queries can then perform the full range of functions, including criteria, SQL functions, aggregations, grouping and ordering.

The instructions for referencing the raw data files in CREATE TABLE statements vary based on the file type. Consult the documentation on Types of Raw Data Files for instructions on creating Omnidex Environment Files.

Combining Raw Data Files and Relational Databases

Raw data files often supplement a relational database. For example, a transaction log or a supplemental data file may contain information that is ideal to correlate with a relational database. Companies that have been importing that data into the relational database can avoid that extra work, and use Omnidex to join those two data sources together instead.

An Omnidex Environment File can include more than one database, and each database can be of a different type. An Omnidex Environment File can have one database that points to the underlying relational database, and a second database that points to a series of raw data files. When connected to this Omnidex Environment File, applications can issue SQL statements that join tables from both databases.

Once connected to this Omnidex Environment File, statements can be issued that join the tables together, as shown in the example below:

SELECT        ORACLE1.COL1,
              FILE2.COL1
  FROM        ORACLE1
  JOIN        FILE2 ON ORACLE1.COL2 = FILE2.COL2
  WHERE       ORACLE1.COL3 = 'value' AND
              FILE2.COL3 = 'value';

Additional Resources

See also:

 
Back to top
admin/rawdata/environments.1299635979.txt.gz ยท Last modified: 2012/10/26 14:46 (external edit)