This is an old revision of the document!


DRAFT

Omnidex SQL: CREATE ENVIRONMENT

Description

Syntax

CREATE ENVIRONMENT environment_name
  [ CENTURY_THRESHOLD year ]
  [ DATA_CACHE int ]
  [ METADATA_CACHE int ]
  [ MAX_THREADS int ]
  [ NODE node_name 
    [ <PARTITIONED | UNPARTITIONED> ]
    [ HOST <LOCALHOST | host_name | host_ip_address>  
      [ PORT port_number ] ]
    [ ENVIRONMENT “filespec” ] ]
   IN “filespec”
   [ WITH options ] 

Discussion

ENVIRONMENT environment_name

The environment_name is a logical name for the environment. It is only used when fully declaring a table or database name, using the syntax, “environment.database.table” or environment.database. The environment_name has a maximum of 32 characters and must start with a letter.

CENTURY_THRESHOLD year

The century threshold determines whether a year that is expressed without the century (such as 12/31/80) is recognized as being in the current century (12/31/2080) or in the previous century (12/31/1980). Years that are later than the century threshold are considered part of the last century while years that are earlier than the century threshold are considered part of the current century.

DATA_CACHE
METADATA_CACHE
MAX_THREADS
NODE
PARTITION and UNPARTITIONED
HOST
PORT
ENVIRONMENT
IN "filespec"

WITH options

Examples

Simple

CREATE ENVIRONMENT daily_transactions IN "C:\data\daily_trans.xml"

Century Threshold

CREATE ENVIRONMENT daily_transactions 
  CENTURY_THRESHOLD 1950
  IN "C:\data\daily_trans.xml"

Nodes

 
Back to top
dev/sql/create_environment.1259126489.txt.gz · Last modified: 2012/10/26 14:25 (external edit)