Home

Getting Started

Utilities

Indexing

Omnidex

Development

Tutorials

Quick Links

 

Utilities

OAHELPER

Prompts

Command Line Directives

 

OAHELPER

Generate an Environment Source File

Generate an Installation Script File

Generate an Environment Source File from an Existing Installation

Generate a Migration Script

Generate an Installation Script

OAHELPER can generate an index installation and build script from an existing installation. An installation script is a text file containing each step of the index installation process for a specific environment. It is used to ensure that each time the environment is re-indexed, the installation is exactly the same.

OAHELPER has two modes of operation: system prompts and command line directives. The required information is the same for both but the method in which it runs is different, as shown below.

 

Prompts

Run OAHELPER at the system prompt:

oahelper

OAHELPER displays the following menu:

1. Generate Environment Source file from a database.
2. Generate DBINSTAL Indexing/Build script from existing installation.
3. Generate Environment Source file from existing installation.
4. Generate Migration scripts from existing installation.

E to Exit oahelper.

Enter menu number, ? for help, or 'E' to Exit:

Select 2. Generate DBINSTAL Indexing/Build script from existing installation.

OAHELPER prompts for the name of the environment for which to create an installation batch file. Enter the filename (and path, if you are not in the same directory) of the environment catalog:

Environment: ordersec.env

OAHELPER prompts for the installation batch file name. Press [return] to accept the default name in brackets, enter a valid file name, or enter / to display the installation commands to the screen.

Index install script [ORDERSECIN.COM] (or / for screen output): ordersin.com

OAHELPER tells you when it has generated the install batch file. You can use it as you would any batch file or script on your operating system to reinstall OMNIDEX indexes.

Generating......Install script created

 

Command Line Directives

Command line directives are designed to allow OAHELPER to be run without prompts, through an executable batch file. The following three directives are required.

-dbinstal
Operation. This directive instructs OAHELPER to generate an installation batch script.

-dbinstal_env=envname
Existing environment file.

-dbinstal_out=filename
Output file name

 

Sample

This sample demonstrates using OAHELPER to generate an installation batch script for the ORDERS sample database using command line directives.

oahelper -dbinstal -dbinstal_env=orders -dbinstal_out=orders.in

-dbinstal tells OAHELPER that this operation will create an installation batch script for use with dbinstal.

-dbinstal_env=orders is the existing Omnidex environment catalog filespec. This environment catalog is in the current working directory. The .env file extension is assumed.

-dbinstal_out=orders.in is the output file spec.

 

 

Top