Escolar Documentos
Profissional Documentos
Cultura Documentos
Terms:
Ds.ini or any other forms of storing connection credentials except for Oracle
wallet are not supported.
Setup Process:
On each machine where either Engine Manager or Engines is to be run, the setup script
(Setup.bat/sh) must be run once to setup environment variables and/or Oracle wallet.
Setup process will generate a setenv script that contains the necessary environment
variables required for all engine modules to run, this script will be called from within the
other scripts used to run the Engine Manager, Engine Starter or Engine. Note that setup
process will overwrite any files produced by previous setup.
After setup completes successfully please review setenv script and correct any entries if
necessary.
ENG_CONNECTION This parameter defines the Oracle wallet connection name to be
used by Engine modules, modify only if you are using a different name than the default
DEM_CONN.
ENG_STARTER_ID This ID must be unique for Engine Starter per machine where
Engine Starter and Engines are to be run from. It defaults to the host name but in case
where host name is too long more than 8 characters), please choose shorter unique name
like: starter1, starter2 etc
ENG_NUM_CONCURRENT This parameter defines the number of concurrent Engine
processes allowed to run on the specific host. The default would be the number of
available CPU CORES. If this number is too large/small for your requirements please
modify it to the allowed number of Engines for that host. It replaces the existing
"ComputerNames" argument in Settings.xml, which is now deprecated.
TNS_ADMIN This parameter would point to the newly created Oracle wallet or
manually modified to point to your existing Oracle wallet.
UNIX-like OS only:
ORACLE_HOME Will point to included instant client binaries within Engine
deployment if ORACLE_HOME was found to be empty.
Example of setenv.bat:
@echo off
set ENG_CONNECTION=DEM_CONN
set ENG_STARTER_ID=%COMPUTERNAME%
for /f "skip=1 delims=" %%i in ('wmic cpu get numberofcores') do if not defined
NumberOfCores set NumberOfCores=%%i
SET ENG_NUM_CONCURRENT=%NumberOfCores%
set TNS_ADMIN=%~dp0TNS_ADMIN
set PATH=%~dp0\bin;%PATH%
On each Machine where Engines are to be run, Engine Starter must be running before an
actual run is started. It can be invoked either manually as background process or as automated
startup item. Engine Starter should be invoked via EngineStarter.bat/sh and not directly.
2.
Note that currently RAC support for the engine requires an In-Memory Consumption
Driven Planning license.
Troubleshooting:
Wallet Setup
Once the setup process have completed successfully. Verify that the TNS_ADMIN directory
contains both tnsnames.ora and sqlnet.ora then follow the steps below to validate the DB
connection setup.
Verifying the wallet connection: (Windows)
1. After completing the setup process successfully CD into the Engine Root directory.
2. Run the setenv.bat batch that was generated by setup process.
3. Run tnsping %ENG_CONNECTION% Tnsping should complete successfully.
4. Run sqlplus /@%ENG_CONNECTION% Sqlplus should connect successfully and
allow you to run queries against the configured schema.
Verifying the wallet connection: (UNIX-like OS)
1. After completing the setup process successfully CD into the Engine Root directory.
2. Run the setenv.sh script that was generated by setup process.
3. Run tnsping $ENG_CONNECTION Tnsping should complete successfully.
4. Run sqlplus /@$ENG_CONNECTION Sqlplus should connect successfully and
allow you to run queries against the configured schema.
Possible issues:
1. Either tnsping or sqlplus are not found.
Solution: Make sure you have the ORACLE_HOME environment set up correctly and
that you have the ORACLE_HOME\bin directory in your PATH variable.
2. tnsping fails.
Solution: Verify that contents of tns_names.ora are correct as quoted below.
3. sqlplus fails to connect.
Solution: Verify that contents of sqlnet.ora are correct as quoted below. If they are and
the reported error is about incorrect username/password, please redo the setup or recreate
the wallet with the correct user/password credentials.
--------------------------------------------------------------------------------------------------------------------Note that all the values marked in RED are the ones configured via the setup process.
SQLNET.ORA will contain the following settings:
--------------------------------------------------------------------------------------------------------------------Note the directory for wallet is pointing to the same directory as set for the environment variable
TNS_ADMIN and contains the wallet files (cwallet.soo and ewallet.p12).
Engine Starter
Engine Starter should be executed once on each one of engine hosts.
Engine Starter script can handle 0, 3, 4 or 5 command line parameters. Any other number will
display the error and usage string.
So if you run with one argument for example you will get the usage details:
EngineStarter.bat <any parameter> - Will display the Usage.
General Usage:
EngineStarter.bat [ mandatory CONNSTR ] [ mandatory USERNAME ] [ mandatory
PASSWORD ] [ optional STARTER_ID ] [ optional ENGINES_NUM ]
Example Usage:
EngineStarter.bat
EngineStarter.bat <DB host address>:<port>/<service name> <user>
<password>
EngineStarter.bat <DB host address>:<port>/<service name> <user>
Engine Manager
Engine Manager will first look for registered and active Engine Starters. If any registered Engine
Starter is found to be inactive (non responsive) it will be removed from the list of registered
Engine Starters and thus need to be restarted again.
User can run Engine Manager by calling Start_Engine2K.bat/sh for Batch or
Start_Simulation2K.bat/sh for simulation.
Engine Manager scripts can handle 0, 1,or 4 command line parameters. Any other number of
arguments will display error and usage information. Start_Engine2K for and Start_Simulation2K
scripts are similar except that profile ID is in fact required for a batch run and not necessary for
simulation run as the actual profile ID is passed as part of the specific simulation request. Profile
ID 1 will be assumed for batch if not provided.
General Usage:
Start_Engine2K.bat [ mandatory CONNSTR ] [ mandatory USERNAME ] [ mandatory
PASSWORD ] [ optional PROFILE_ID ]
Usage Examples:
Start_Engine2K.bat
Start_Engine2K.bat <Profile ID>
Start_Engine2K.bat <DB host address>:<port>/<service name> <user> <password>
Start_Engine2K.bat <DB host address>:<port>/<service name> <user> <password>
<Profile ID>
Start_Simulation2K.bat
Start_Simulation2K.bat <DB host address>:<port>/<service name> <user>
<password>
Possible failures: