![]() |
|
![]() |
|
Utilities |
ODXAIM |
Generate Environment Source Entries
Setup & Install ODXAIM as a Windows Service
|
DirectivesODXAIM operates through the use of command line directives. Many of the option settings can also be defined within a configuration file. With the exception of the configuration filespec, all options are preceded with a - (dash). For a list of available options, run ODXAIM with the -help or -? directive.
c:\omnidex\demo>odxaim -? Valid directives are:
odxaim [cfgfile]
odxaim -shutdown [cfgfile] [-env=OAEnvFile] odxaim -gentrigger
odxaim -genodxtrans
odxaim cfgfile odxaim -help | -? odxaim -version
Start the ODXAIM Monitoring ProcessUnless ODXAIM is installed as a Windows Service, the ODXAIM monitoring process is started from a system prompt. Each ODXAIM process monitors a single OMNIDEX environment. The following directives can be used in conjunction with the -env directive, to override default settings. [-sleepint=n] - n is the number of seconds to sleep before polling the odxtrans tables for more transactions. [-sleepstep=n] - n is the incremental step value to ease performance when polling the odxtrans tables. [-sleepmin=n] - n is the minimum sleep value to wait before polling the odxtrans tables. [-sleepmax=n] - n is the maximum sleep value used (sleepstep is no longer added to sleep time). [-colsep=c] - c is the column separator character. Default ~ (tilde). [-datasep=d] - d is the data separator character. Default ^ (carat). [-nontservice] - Allows you to start an ODXAIM process, without linking to the SCM, when ODXAIM is installed a Windows service.
Start the ODXAIM process by passing either an ODXAIM configuration file specification, odxaim c:\omnidex\demo\ordersaim.cfg or the -env directive with the OMNIDEX environment file specification and any desired configuration settings. odxaim -env=c:\omnidex\demo\orders.env The first example starts an ODXAIM process using the configuration settings, including the OMNIDEX environment file specification, defined in the configuration file ordersaim.cfg. The second examples starts an ODXAIM process to monitor the OMNIDEX environemnt orders.env, using default settings.
Shut down the ODXAIM Monitoring ProcessUnless ODXAIM is installed as a Windows Service, the ODXAIM monitoring process can be shut down by passing the -shutdown directive along with either the -env directive or the configuration file specification, depending on how the process was started. odxaim -shutdown cfgfile odxaim -shutdown c:\omnidex\demo\ordersaim.cfg odxaim -shutdown -env=OAEnvFile odxaim -shutdown -env=c:\omnidex\demo\orders.env On Windows, an ODXAIM process not running as a Windows service can also be stopped by entering control+c in the same DOS window in which the process is running.
Generate the TriggersThe -gentrigger directive connects to the specified OMNIDEX environment and generates an SQL script file containing the CREATE TABLE statements for the ODXAIM transaction tables and the triggers to install on the underlying database. The OMNIDEX environment is specified either inside a configuration file odxaim -gentrigger c:\omnidex\demo\ordersaim.cfg or with the -env=OAEnvFile directive. odxaim -gentrigger c:\omnidex\demo\orders.env The following directives can be used in conjunction with the -gentrigger directive. [cfgfile] - The ODXAIM configuration file. -gentrigger must be accompanied by either a configuration file specification or -env directive. [-env=OAEnvFile] - OAEnvFile is the OMNIDEX environment catalog. -gentrigger must be accompanied by either a configuration file specification or -env directive. [-file=newtrigfile] - The output file specification for the SQL script. Can be used with either the -env directive or the configuration file specification. If omitted, ODXAIM will prompt for the output file specification. [-newenvsrc=newenvsrcfile] - Generates the environment source entry for the ODXAIM transaction tables. newenvsrcfile is the output file. Can be used with either the -env directive or the configuration file specification. [-genericaimtables=(oatablelist)] - A comma separated list of tables (no spaces) that will use the generic transaction table. Can be used with either the -env directive or the configuration file specification. [-colsep=c] - c is the column separator character. Default ~ (tilde). Only for use with the configuration file specification. [-datasep=d] - d is the data separator character. Default ^ (carat). Only for use with the configuration file specification. [-overwrite] - Instructs ODXAIM to overwrite the ouput files if they already exist. If omitted and the output file exists, ODXAIM will error. Can be used with either the -env directive or the configuration file specification.
odxaim -gentrigger c:\omnidex\demo\orders.env -file=c:\omnidex\demo\aimtriggers.sql -newenvsrc=aimsrc.src
Generate Environment Source EntriesThe -genodxtrans directive onnects to the specified OMNIDEX environment and generates the environment source file entries for the ODXAIM transaction tables. The following directives can be used in conjunction with the -genodxtrans directive. [-file=envsource] - The output file specification. [-env=OAEnvFile] - The OMNIDEX environment catalog that will be monitored by ODXAIM. [-genericaimtables=(oatablelist)] - A comma separated list of tables (no spaces) that will use the generic transaction table. [-newfile | -append] - Create a new file or append to the end of an existing file. If the file already exists and -newfile was passed, the existing file will be overwritten.
This step can be combined with the trigger generation by using the -newenvsrc directive. The -genodxtrans directive will not be used in this case. odxaim -gentrigger c:\omnidex\demo\orders.env -newenvsrc=aimsrc.src The above example is the same as the following example: odxaim -gentrigger c:\omnidex\demo\orders.env odxaim -genodxtrans c:\omnidex\demo\orders.env -newfile=aimsrc.src Both examples produce the same output but the first is simpler.
Windows ServiceODXAIM can be installed as a Windows service which can be maintained using the Windows Service Manager. The initial setup steps must be performed prior to installing ODXAIM as a service, meaning the triggers must be generated and installed on the database and the environment source entries must be added to the OMNIDEX environment catalog. The following directives are provided to install and maintain ODXAIM as a Windows service. These directives are required for installation. However, DISC recommends that the Windows Service Manager be used for maintaining the service. odxaim cfgfile To install ODXAIM as a Windows service, you must pass the fully qualified filespec of the configuration file, along with either the INSTALL or INSTALL_AUTO directive. INSTALL - Simply installs ODXAIM as a service. INSTALL_AUTO - Installs ODXAIM as a service that starts automatically when the system restarts. These settings can be changed manually using the Windows Service Manager. odxaim c:\omnidex\demo\ordersaim.cfg -ntsrvaction=INSTALL The next five options are passed with the -ntsrvaction directive to maintain the service. Please note that, with the exception of DELETE, all of these actions can also be accomplished using the Windows service manager (recommended). DELETE odxaim c:\omnidex\demo\ordersaim.cfg -ntsrvaction=DELETE START odxaim c:\omnidex\demo\ordersaim.cfg -ntsrvaction=START STOP odxaim c:\omnidex\demo\ordersaim.cfg -ntsrvaction=STOP PAUSE odxaim -ntservice=ODXAIM_SALES -ntsrvaction=PAUSE CONTINUE odxaim -ntservice=ODXAIM_SALES -ntsrvaction=continue -ntservice=unique service name
odxaim c:\omnidex\demo\ordersaim.cfg -ntsrvaction=INSTALL -ntservice=ODXAIM_Sales odxaim c:\omnidex\demo\ordersaim2.cfg -ntsrvaction=INSTALL_AUTO -ntservice=ODXAIM_Accounting
Getting HelpTo display ODXAIM help, run ODXAIM at the system prompt followed by on of the following two directives: -help -? The -help and -? directives are synonymous c:\omnidex\demo>odxaim -help Valid directives are: odxaim [cfgfile] odxaim -shutdown [cfgfile] [-env=OAEnvFile] odxaim -gentrigger odxaim -genodxtrans odxaim cfgfile odxaim -help | -? odxaim -version
Getting Version InformationTo display ODXAIM version information, run ODXAIM at the system prompt followed by the -version directive. C:\test>odxaim -version OmniAccess C:\test> |
|
DBINSTAL![]() |
DSEDIT![]() |
OACOMP![]() |
OAHELPER![]() |
ODXNET![]() |
ODXSQL![]() |
Utilities![]() |
NSADMIN |
OADECOMP |
ODXAIM |
ODXMAKE |
ODXQUERY |
REGMAINT |
REGTEST |
SNOWGEN |
SYSINFO |
VERSIONS |
VIEWGEN |