company logo

Database acces via OShell

OShell acts similar to a common shell of the operating system. The difference is, that drives correspond to databases defined in data sources and directories in the file system correspond global and local collections, i.e. extents and local collections in object instances. Details for OShell commands are provided in ODABA Utilities /OShell.

In order to run an OShell script, an ini-file ( OShell.ini ) is required. The TestBrowser delivery provides both, an OShell.ini file and an OShell.cmd file for calling the OShell. When changing the environment after installing a TestBrowser system provided with default configuration, one has to adopt, probably, the common file as well as the ini-file.

When calling OShell.ini with ini-file parameter, only, a command prompt appears requesting further input. One may, however, also prepare OShell scripts in advance (like command procedures) and passing those as additional (second) parameter to the program call.

The Example below shows some features when running an OShell script simply by calling OShell.cmd.


Running L:\odet\OShell.exe with:

  ini-file: OShell.ini

  script file:

ODABA>cd TBDat

TBDat>cc TopEntries

TBDat/TopEntries>li

  1

  150

  200

  278

TBDat/TopEntries>loc 0

TBDat/TopEntries>p

  __AUTOIDENT=1

  name=API

  path=%ROOT_PATH%

  size=0

  directory=Y

  deleted=N

  read_only=N

  last_loid=0

  rel_path=

  notes=

  suite=Y

  test=N

  displayname=API

TBDat/TopEntries>co sk_Name

TBDat/TopEntries>li

  actions

  API

  OSI

  Utilities

TBDat/TopEntries>loc API

TBDat/TopEntries>p

  __AUTOIDENT=1

  name=API

  path=%ROOT_PATH%

  size=0

  directory=Y

  deleted=N

  read_only=N

  last_loid=0

  rel_path=

  notes=

  suite=Y

  test=N

  displayname=API

TBDat/TopEntries>cc entries

TBDat/./entries>p count

  count=6

TBDat/./entries>li

  actions

  ClientServer

  data

  expected

  Local

  odaba

TBDat/./entries>loc Local

TBDat/./entries>cc entries

TBDat/../entries>p count

  count=19

TBDat/../entries>li

  actions

  Application

  Binary

  data

  Database

  Date

  DateTime

  Dictionary

  EnumeratorDefinition

  expected

  GlobalVariable

  IndexDefinition

  ObjectSpace

  Property

  PropertyDefinition

  String

  Time

  TypeDefinition

  Value

TBDat/../entries>q