company logo

Create test data (Linux)

Typically, the dictionary is stored in the project root (e.g. ~/Sample). In the example, the script file has been stored in a sub directory OSI (~/Sample/osi/Sample.osi). When generating another project than Sample, an appropriate OSI script file has to be provided.

    ~/odaba/Sample$ ./OSI.sh

This procedure is properly initialized when generating the Sample project but has to be adapted to specific requirements when generating other projects.

The load protocol is written to console as shown in the example below.

2010-10-01 16:23:17 - Running /usr/local/lib/odaba/tools/OSI with:

  ini-file: Sample.osi

  script file:

New database created at '/home/testuser/odaba/Sample.dat'

Starting company transaction: 19:42:08.51

Storing company transaction: 19:42:08.79

Stopping company transaction: 19:42:08.84

Starting person transaction: 19:42:08.87

Storing person transaction: 19:42:24.92

Stopping persons transaction: 19:42:25.39

Create child/parent relations: 19:42:25.54

Created: 19:42:41.17

Notes:

When there is no odaba.ini stored in the ODABA system folder or when it contains an invalid reference to the ode.sys database, instead of the message

New database created at 'Sample.dat'

the following message will appear:

Undescribed Error : 98 in LDBHandle::Open (Sample.dat,InputArea,ik_name,,,)

which may be ignored.

Due to random name generation some errors may appear on console and/or in the error log file as:

Error 64 in Property::insert (Error in Field: Company )

Error 152 in Property::insertReference (Error in Field: children of Structure: Person )

This only means that the script created two persons with the same name and the database rejected the data. Nevertheless, one may safely continue with the next steps.