Advanced configuration for all databases
Settings of the Multi-Tier components that apply whichever database you connect to: firewalls, brokers, security, silent installers.
Advanced configuration for all databases
Settings of the Multi-Tier components that apply whichever database you connect to.
Automate Request Broker Startup (Sample Script)
OpenLink Product Support does not provide customized shell scripts to automate Broker startup or any other feature of our software.
However, we do provide a sample shell script as a courtesy to those individuals who may want general guidance before creating their own scripts.
>> Begin file
#!/bin/sh
#
# Run the OpenLink Request Broker
# For entry in /etc/rc2.d/SnnOpenLinkBroker, where nn is 90 or higher.
# Typically, nn is 98 so that it precedes the CDE login process which
# does not return.
BIN_DIR=/usr/openlink/bin
if [ "$1" = stop ]
then
echo "Shutting down OpenLink Request Broker ..."
# This code derived from the OpenLink rqbshut script.
#######################################################################
process=oplrqb
set - `ps -e | grep " $process\$" | grep -v grep`
if [ $# -eq 0 ]
then
echo $0: $process is not running
exit 1
fi
kill $1 2>/dev/null
if [ $# -eq 0 ]
then
echo $0: unable to shutdown $process
exit 1
fi
echo $0: $process shutdown complete
exit 0
echo "Shut down process but not exiting script"
fi
# Else, assume start.
# BIN_DIR=/export/home/openlink/sschadt/bin
exe=$BIN_DIR/oplrqb
if [ -x $exe ]
then
# See OpenLink installation guide for alternatives.
if id | grep "uid=0" >/dev/null 2>&1
then
# Start broker under its owner's identity.
# set - `ls -l $exe` (this line was clearing out $1)
# See if the file exists and use $? to determine outcome
ls -l $exe >/dev/null 2>&1
if [ $? -eq 0 ]
then
id="$1"
echo "The id being used is '$id'"
echo "Starting OpenLink Request Broker with '"$id"' identity."
su "$id" -c "$exe &"
echo "ps -ef | grep opl ..."
ps -ef | grep opl
exit $?
fi
fi
echo "Starting OpenLink Request Broker."
$exe >/dev/null 2>&1 &
exit $?
else
echo "OpenLink Request Broker not found: $exe"
exit 1
fi
<< end of fileConfiguring Firewalls to permit Multi-Tier Connectivity
If you use our Multi-Tier components through with a firewall, several ports must be opened to permit requests from Generic Clients to Request Broker and Database Agents (and their responses).
Some ports are user or admin configurable; some are not.
Unconfigurable Ports
TCP and UDP ports 60001 must be open. These ports are used by the Request Broker and the OpenLink License Manager, and cannot be changed.
Configurable Ports
Configurable ports are specified in the [Protocol TCP] section of your Session Rulebook (default, oplrqb.ini).
You can use any text editor to open your Rulebook, and edit this section:
[Protocol TCP]
PingWatchdog = No
PingInterval = 600
;IPAddress = 127.0.0.1
Listen = 5000
PortLow = 5000
PortHigh = 5025- The Request Broker listens on the TCP port specified in the Rulebook as
Listen. (Release 3.x and earlier listened atPortLow.)
-
ListenandPortLoware generally best set to the same value.
- The Request Broker restricts Database Agents to use only ports in the range between (and including) those specified in the Rulebook as
PortLowandPortHigh. Specific Agent ports are requested from and assigned by the operating system when an Agent is instantiated; they are not preemptively reserved.
- The span between
PortLowandPortHighis generally best set to twice the licensed number of Database Sessions. At minimum, this span should be the licensed number of Database Sessions plus 5 (and thus, not less than 10).
Related Documentation
Firewall Considerations for Multi-Tier "Enterprise" Edition Data Access Drivers
- The Request Broker host must accept (and all intervening firewalls must permit) inbound connections from all client hosts (and from the Request Broker host itself) to (and responses from) --
- TCP port
60001, in all Releases;
- UDP port
60001, in all Releases;
- TCP port
5000, in Release 3.x and earlier;
- TCP port specified by Rulebook setting
[Protocol TCP]:Listenin Release 4.x and later; default is5000; and
- TCP ports between Rulebook settings
[Protocol TCP]:PortLow(default5000) and[Protocol TCP]:PortHigh(default60000) (including the port numbers specified for these settings).
- TCP port
- The Generic Client hosts (and all intervening firewalls) must permit outbound connections to (and responses from) the Broker host on --
- TCP port
5000, in Release 3.x and earlier;
- TCP port specified by Rulebook setting
[Protocol TCP]:Listenin Release 4.x and later; default is5000; and
- TCP ports between Rulebook settings
[Protocol TCP]:PortLow(default5000) and[Protocol TCP]:PortHigh(default60000) (including the port numbers specified for these settings).
- TCP port
- If the Database Agent makes a network connection to the target DBMS (in a "three-tier" or "gateway" deployment), the database server host must accept (and all intervening firewalls must permit) inbound connections on the DBMS listen port(s) (e.g.,
5432/tcpfor PostgreSQL;1433/tcp,1433/udp,1434/tcp, and1434/udpfor SQL Server, etc.).
- If you have a stateful firewall, return packets from the Request Broker and Database Agents to the clients should be taken care of automatically. If not, you will also have to address the ephemeral client-side ports.
- The Multi-Tier Admin Assistant listens at TCP port
8000by default. This is configurable, via theHttpPortsetting in the[Startup]stanza of thewww_sv.inifile, typically found in thew3configsubdirectory of thebindirectory containing the Broker executable,oplrqb.
Related Documentation
Error Message: Unable to contact the OpenLink License Manager
Release 6.x (and Release 5.2 on some platforms) and newer drivers ship with the separate OpenLink License Manager, oplmgr.
General Guidance, for Windows, Linux, and other Unix-like OS (except macOS)
If you receive the above error message, check whether the OpenLink License Manager is running on the licensed host -- i.e., the Request Broker host for the Enterprise Edition (Multi-Tier); the client driver host for the Lite or Express Editions (Single-Tier); or the Virtuoso server host.
- on Windows, use the Task Manager or similar.
- on Unix-like OS, use a command like this (may vary, depending on your active shell) --
Shell ps -ef | grep oplmgr | grep -v grep
If the License Manager is already running, make sure that networking and firewalls are properly configured.
If networking and firewall are configured properly, and the License Manager is running, but the error persists, then kill the oplmgr process (e.g., kill -9 <PID>), and proceed as below.
If the License Manager is not running, do this:
- Ensure the proper license file(s) is/are in place, and named as we shipped them (e.g.,
pro9_lt.lic,oplrqb.lic,ee_inf_lt.lic).
- Remove or rename any expired or otherwise extraneous OpenLink license files.
- Create or modify the
OPL_LICENSE_DIRenvironment variable, and ensure that it includes each and every directory that contains one of your active OpenLink license file(s).
- Start the License Manager --
- On Windows, use the Services or Component Services control panel (often found in the Administrative Tools sub-folder).
- On Unix-like OS, set the OpenLink environment by running the appropriate script for your shell (adjusting the path as appropriate) --
shell command sh, bash, zshand related. /path/to/openlink.shkshand relatedsource /path/to/openlink.shcsh, tcshand relatedsource /path/to/openlink.csh
- Our recent distributions start the License Manager as part of the above scripts; if you see no message about
oplmgrstarting, then also execute this command --
Shell oplmgr +start
- Our recent distributions start the License Manager as part of the above scripts; if you see no message about
- On Windows, use the Services or Component Services control panel (often found in the Administrative Tools sub-folder).
- Confirm that the License Manager has started successfully --
- on Windows, use the Task Manager or similar.
- on Unix-like OS, use a command like this (may vary, depending on your active shell) --
Shell ps -ef | grep oplmgr | grep -v grep
- on Windows, use the Task Manager or similar.
- Test a connection.
Special Guidance for Release 6.x or 7.x on macOS Snow Leopard (10.8.x) and later
Note: This guidance is not relevant for Release 8.x drivers, nor with Release 6.x or 7.x installers with.mpkg dated 2014-12-04 or later.
Changes in the Gatekeeper in Snow Leopard (10.8.x), Mavericks (10.9.x), Yosemite (10.10.x), El Capitan (10.11.x), Sierra (10.12.x), High Sierra (10.13.x), Mojave (10.14.x), and Catalina (10.15.x) required updated License Manager binaries and startup scripts.
Installers produced after 2014-12-04 for Release 6.x and 7.x, and all installers for Release 8.x, include these updates. Updated oplmgr installers are also available for users with drivers installed, or driver installers dated, prior to 2014-12-04.
- If your Release 6.x or 7.x driver installer
.dmgcontains an.mpkgdated before 2014-12-04, please download this second installer package for use on macOS Catalina (10.15.x), Mojave (10.14.x), High Sierra (10.13.x), Sierra (10.12.x), El Capitan (10.11.x), Yosemite (10.10.x), Mavericks (10.9), Snow Leopard (10.8.x), or Lion (10.7.x) -- oplmgr.pkg
- Double-click to run the .pkg.
- This installer should automatically move any previously installed license files from --
Files /Library/Application Support/openlink/bin/*.lic
-- to --
Files /Library/Application Support/openlink/Licenses/*.lic
-- but some users have reported otherwise, so you may need to do this relocation yourself, with/Applications/Utilities/Terminal.app--
Shell cd "/Library/Application Support/openlink/Licenses" sudo mv ../bin/*.lic .
- Confirm that the oplmgr process is running with this Terminal.app command --
Shell ps -ef | grep oplmgr | grep -v grep
If it's running, output should look something like this --
Example 0 111 1 0 Wed09AM ?? 0:00.57 /Library/Application Support/OpenLink/bin/oplmgr -fd /Library/Application Support/OpenLink/Licenses
If it's not running, try a reboot, or manually execute the following Terminal.app command, and then check for the process again --
Shell sudo /Library/Application\ Support/OpenLink/bin/oplmgr -fd /Library/Application\ Support/OpenLink/Licenses &
- Once the oplmgr process is running, try testing the driver again.
Related Documentation
- Firewall Considerations for Multi-Tier "Enterprise" Edition Data Access Drivers
- Configuring Server-side Firewalls for Multi-Tier Connectivity
- OpenLink License Manager Networking Considerations
- Configure Multi-Tier Request Broker for Use on Machines with Multiple Network Cards
- OpenLink License Manager Usage Notes
- Start the License Manager Process
OpenLink License Manager Networking Considerations
If the License Manager discovers another License Manager is using a license with the same serial number, it will stop allocating licenses and report "License already in use".
If the License Manager cannot communicate with the network, it will do the same.
The OpenLink License Manager uses the multicast IP address 224.0.0.24 on ports 60001/udp and 60001/tcp to send and receive communications with other OpenLink components including other License Managers.
It is becoming common for operating systems to have a default firewall enabled that blocks all network traffic, such that specific ports must be explicitly opened and/or applications must be explicitly granted communications permission.
In such cases, port 60001 must be opened on both TCP and UDP, for both inbound and outbound communications, and/or oplmgr must be granted similar permissions.
If you cannot figure out how to open this port in your local environment, please contact OpenLink Software Support for assistance.
Related Documentation
Configure Multi-Tier Request Broker for Use on Machines with Multiple Network Cards
If the Multi-Tier server components are installed on a machine containing multiple network cards, even if only one is configured for network use, you may experience various issues including timeouts and network communications failures. To avoid or resolve these, take the following action:
- Use a text editor to open your Broker Rulebook; by default,
oplrqb.inifile found in the/binsub-directory of your OpenLink server components installation.
- Locate the
[Protocol TCP]section.
- Remove the semicolon (
;) which appears in front of theIPAddressparameter. For example:
INI ;IPAddress = 192.168.0.1 #Before IPAddress = 192.168.0.1 #After
- Set the IPAddress value to the address which is reachable by all client hosts (i.e., if the Broker host has an "internal" and an "external" IP address, set this value to the "external").
For example:
INI IPAddress = 83.323.137.120
- Save your changes and exit the file.
- Restart the Request Broker to activate the changes.
- Client DSNs should now be able to pass either the IP address, or any fully-qualified hostname (e.g.,
broker-host.example.com) which resolves to that address.
Configure Multiple Brokers on a Single Machine
Users often need to run two Multi-Tier Request Brokers on a single machine. Development testing, load balancing, and related issues often necessitate this. If you need to intend to test with one Broker running and one Broker down, the only thing that you need to is provide unique Listen and Administrative Assistant tcp ports during installation. If you intend to run both Brokers at the same time, read this --
1. Login to the machine that hosts the OpenLink Request Broker(s).
2. Use the bash command to open a bash shell. Alternatively, use the sh command to open a bourne shell. # This step is optional.
3. cd into the bin sub-directory of the pre-existing installation.
4. vi the oplrqb.ini file.
5. Locate the [Protocol TCP] section.
6.
Identify the TCP port passed to Listen.
For example:
[Protocol TCP]
PingWatchdog = No ; Send check-alive packets
PingInterval = 600 ; every <PingInterval> seconds
;IPAddress = 127.0.0.1 ; Overrules found interface address
PortLow = 5020
;PortHigh = 60000
Listen = 50205. Exit the file.
6. cd into the ~/openlink/bin/w3config directory.
7. vi www_sv.ini.
8. Find [Startup].
9.
Identify the TCP port passed to HttpPort.
For example:
[Startup]
HttpPort = 8005
HttpRoot = html
Timeout = 60
TclInclude = include
ScriptDirectories = /scripts
CGIDirectories = /cgi-bin
IndexPage = /index.html
10.
Exit the file.
11. If you intend to add a 6.x or newer installation to a machine hosting OpenLink's 1.x, 3.x, 4.x, or 5.x builds, it may be necessary to shutdown the existing Request Broker and restart it after the new, 6.x+ Broker is running. Plan and act accordingly.
12. Create a new install directory to host the new Multi-Tier server components.
13. Download the installation files and shell script into this directory.
14. Execute the .profile of the target database or database native client.
15.
Run the following command to start the installation:
sh install.sh16. Provide *unique* TCP ports for use by the new Request Broker and Administrative Assistant.
17.
Allow the installation to complete.
18. Execute the following command from the root of the new installation:
. ./openlink.sh
19. cd into the bin sub-directory of the installation.
20. Download the relevant license file into this directory.
21.
6.x+ users execute this command:
./oplmgr +start22.
Execute this command:
./oplrqb +loglevel 7 +logfile oplrqb.log
23.
Test a connection to the new Broker.
Remember to use this new Broker's Listen port in your DSNs or URLs.
24. Restart your pre-existing Broker, if applicable.
25.
Test a connection to your pre-existing Broker.
To Uninstall
Can be done for UDA thru 5.2
InstallShield makes it possible
article based on http://support.mobileautomation.com/support/tsarticle.asp?tsid=277
Issue:
Any application can easily be made into an unattended and silent installation if it's setup install program is based on 'InstallShield'. InstallShield is an industry standard installation packaging system for initially installing many programs.
To do this you would use a built in function of <nopInstallshield which allows you to create an answer file (ISS).
This file would be create by walking through a real installation on a test PC and literally remembering all the selections you make as you go through the install.
These settings would then be saved to an answer file (setup.iss) which is created by default in the WINNT or Windows directory.
You can then re-execute the setup.exe installation by simply pointing to the setup.iss answer file as an option. InstallShield will silently walk through the installation using all of your saved options and settings.
It is also possible to perform a silent uninstall using a similar trick.
Use the following command line options to accomplish this task.
Resolution:
Install shield options
setup.exe -rwill create answer file
setup.exe -s -a /s /f1setup.isswill execute the silent install
setup.isswill be created in the Winnt directoryTo Uninstall
Example:
"C:\WINDOWS\ISUNINST.EXE" -y -a -m -f "C:\Program Files\Path To\DeIsL1.isu"You will need to adjust the path of the ISU file for your particular application.
Configure Data Encryption (non-SSL)
"
OpenLink's Multi-Tier Universal Data Access solution permits simplex and duplex encryption, for maximum flexibility according to the user's needs. (Single-Tier does not presently support encrypted communications.)
Simplex is one-way, encrypting all communications sent from the OpenLink Generic Client to the OpenLink Server (Request Broker or Database Agent), or from the Server to the Client. Duplex simply combines these two, resulting in fully secure communications between OpenLink Client and Server.
Data encryption will have some impact on performance because additional work is being performed before the data is presented to the calling application. There is always some trade-off between security and speed. However, we have optimized our encryption algorithms to minimize this overhead.
Client configuration
Client data encryption is configured through the OpenLink Client Configuration Utility, on Windows and Mac OS, or through the HTTP-based OpenLink ODBC Administrator, on Unix.
The DataEncryption value in the odbc.ini file's [Communications] stanza may also be manually edited on Mac OS or Unix; on Windows, this setting is found in the Registry at HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\OPENLINK.INI\Communications\DataEncryption.
This section key can be set to Yes or 1 to enable data encryption, and to No or 0 to disable it.
When enabled, this setting will cause all communications from the Client to the Request Broker or Database Agent to be encrypted. This does not cause data returned from the Request Broker or Database Agent to be encrypted.
Server configuration
Request Broker and Database Agent data encryption is configured through the [Communications] stanza of the Rulebook, oplrqb.ini.
The HTTP-based OpenLink Admin Assistant may be used for this configuration (Server Components Administration >> Request Broker Administration >> Configure Request Broker's Parameters by Form >> Communications Parameters), or the Rulebook (oplrqb.ini) may be manually edited.
The DataEncryption key should be set to Yes or 1 to enable data encryption.
To disable data encryption, use No or 0.
When enabled, this setting will cause all communications from the Request Broker or Database Agent to the Client to be encrypted. This does not cause data returned from the Client to be encrypted.
Configure Intersolv, Merant or DataDirect Driver Managers to Use OpenLink Drivers
Configure Intersolv, Merant or DataDirect Driver Managers to Use OpenLink Drivers
You may configure the Intersolv, Merant or DataDirect Driver Manager to use OpenLink drivers. To proceed, take the following action:
1.
Locate and open the Driver Manager's odbc.ini file.
2.
Locate the [ODBC Data Sources] portion of the file.
3.
Add your DSN to the list.
For example:
[ODBC Data Sources]
OpenLink = OpenLink Generic ODBC Driver
4.
Create a standard OpenLink DSN in this odbc.ini file.
For example:
[OpenLink]
Driver = /home/openlink/lib/oplodbc.so.1
Host = saturnus
ServerType = Informix 7.3
FetchBufferSize = 99
UserName = informix
Password = ol_informix
Database = stores7
ReadOnly = no
5.
Save your changes and exit the odbc.ini file.
6.
Search for the Driver Manager's odbcinst.ini file.
7.
If does not exist, create one.
8.
Add the following entry to the odbcinst.ini file:
[OpenLink Generic ODBC Driver]
APILevel=1
ConnectFunctions=YYN
Driver=/usr/openlink/lib/oplodbc.sl.1
DriverODBCVer=02.50
FileUsage=0
SQLLevel=1
9.
Save your changes and exit the file.
10.
Test.
Customize Your Multi-Tier Security
Customize Your Multi-Tier Security
The following instructions will enable you to provide greater security for your database:
- List all Domain aliases (aka "ServerTypes") used in your client-side DSNs.
For example:
Example Oracle 8.0.x
- Use a text editor to open the
oplrqb.inifile which resides in the/binsub-directory of your OpenLink server components installation.
- Locate
[Domain Aliases]and determine how those listed above are resolved. For example:
INI [Domain Aliases] Oracle 8.0.x = ora80
- Locate the resolved names of the Domain Aliases under
[Mapping Rules]. For instance:
INI [Mapping Rules] ora80:*:*:*:*:*:* = accept generic_ora80.
- Determine whether any of these fields need added security.
Here is a breakdown:
Example domain_name:database:user:client_os:machine_id:app_name:operation_mode
(Note: "operation_mode" refers to read-only (ro) or read-and-write (rw) access.)
- Build rules to govern whether connection requests will be accepted or rejected by the Broker.
For instance:
Example ora80:*:scott:*:*:*:* = reject User "scott" is not allowed to connect to this service.
This rule rejects all connection attempts made by user scott, and tells them so. You can substitute any plain-text rejection message here, and it will be delivered to users who are blocked by this rule.
- Order each rule properly.
For example:
Example ora80:*:*:*:*:*:* = accept generic_ora80 ora80:*:*:*:*:msaccess:* = reject Microsoft Access is not allowed to connect to this service.
The first rule permits access to generic_ora80 in all scenarios. The second rule is never visited, since the preceding rule permits all ora80 requests.
Example ora80:*:*:*:*:msaccess:* = reject Microsoft Access is not allowed to connect to this service. ora80:*:*:*:*:*:* = accept generic_ora80
The first rule screens for and rejects connections requested by Microsoft Access. Connections not originating with Microsoft Access are passed on to the second rule, which permits all requests.
- Save your changes and exit the file.
- Restart your Broker.
Hide Login Boxes on Windows Clients
Hide Login Boxes on Windows Clients
You may prevent Data Source login boxes from appearing, on Windows clients. The following instructions assist you with this task:
1. Open your client's ODBC Data Sources utility. (Control Panel)
2. Highlight your DSN. It will appear on the utility's User, System, or File tab.
3. Click on the "Configure" button.
4. Check the "No Login Dialog Box, if you are using OpenLink's Multi-Tier drivers.
5. Search your DSN's tabs for a "Hide Login Dialog" box, if you are using OpenLink's Single-Tier drivers. Then, check the "Hide Login Dialog" box, one you find it.
6. Click OK to save your changes.
7.
Test.
Relinking Multi-Tier Database Agents for any DBMS
It is sometimes necessary to link or re-link your Multi-Tier Database Agents.
Typical reasons include:
- The existing Database Agent executable has some incompatibility with database or operating system libraries on your Broker host.
- No Database Agent executable was installed on your Broker host.
The files described below should all be part of all current agent installations. If the files discussed below are not found in your installation, you may have an older version of the software. In that case, please contact us for additional assistance.
We provide a relink script for each Database Agent.
These scripts are named using the form -- <ld><XXXX><NN>[mv].
-
ld- indicates a link script
-
XXXX- first 3 or 4 letters of database name
-
NN- database version number, to the same specificity as the corresponding Database Agents
-
mv- if the agent is multi-threaded.
Examples:
-
ldora81mvis for the multi-threaded agent for Oracle 8i.
-
ldoig2is for the single-threaded agent for Ingres II.
We have attempted to provide a set of generic link scripts for every version of Progress we support, to enable you to relink most easily. In some cases, you may need to create a custom relink script for Progress Agents. Note: Relinking Progress Agents is typically necessary only if you are running a version of Progress with a different patch level the one originally used for linking the agents shipped and you are connecting a SQL-89 Agent in shared memory mode.
Pre-requisites for relinking Database Agents
Requirements for all Database Agents
- Make a backup copy of your existing Agent(s).
- Insure that you have a
Ccompiler and library linker installed on your database server.
- Set key OpenLink linking-script environment variables, which themselves reference key database environment variables required for making native connections to your database engine.
You may prefer to adjust these values in the "
dbpaths" file situated in the same directory as your database agent link script.
- DB2
INI DB2DIR=$DB2INST
- Informix
INI INFORMIX5DIR=$INFORMIXDIR INFORMIX6DIR=$INFORMIXDIR INFORMIX7DIR=$INFORMIXDIR
- Ingres
INI INGRES6DIR=$II_SYSTEM/ingres INGRES7DIR=$II_SYSTEM/ingres
- Oracle
INI ORACLE6DIR=$ORACLE_HOME ORACLE7DIR=$ORACLE_HOME ORACLE8DIR=$ORACLE_HOME
- Progress / OpenEdge
Shell export PROGRES8DIR=$DLC export PROGRES9DIR=$DLC export PROGRES10DIR=$DLC
- Solid
INI SOLIDDIR=$SOLID
- Sybase
INI SYBASE10DIR=$SYBASE SYBASE11DIR=$SYBASE SYBASE4DIR=$SYBASE
- Unify
INI UNIFYDIR=$UNIFY../lib
- Velocis
INI VELOCISDIR=$VELOCIS
- Virtuoso
INI VIRTUOSODIR=$VIRTUOSO
- DB2
- The "
.../openlink/lib" (or similar) subdirectory that you are working with should be included in your systemPATH. If it is not already, add this directory to the systemPATHnow.
Additional Informix-specific requirements
- Informix users must have an
$INFORMIXDIR/lib/esql/directory for successful relinking. This may be obtained and installed as part of the freely downloadable Informix Client SDK, available from IBM, if not already present as part of your installation.
Additional Progress-specific requirements
- All Progress users must have a
$DLC/probuild/4gl/directory, which requires a development license from Progress.
- All Progress users must set and export
DLCandPROLOADenvironment variables.DLCpoints to the root of the Progress installation.PROLOADpoints to the$DLC/probuild/directory.
- Progress 6 users must have an HLI/C license from Progress. For Progress 7, 8, and 9, this is not required
Relinking Database Agents for all DBMS
- Ensure that all pre-requisites listed above have been addressed.
- Navigate to the "
lib" sub-directory of your OpenLink server components installation directory, e.g., "/usr/openlink/lib".
- If relinking a SQL-89 Agent for Progress (proNNN_sv) --
- Confirm that the Progress environment variable
DLCis set correctly.
- Confirm that the Progress environment variable
PROLOADis set correctly.
- Run the appropriate
mkdlcXscript, whereXis the major version number of your Progress installation (i.e., 6, 7, 8, or 9). This will produce a file calleddlcX.o.
- If you receive an error stating that any Progress library cannot be found, edit the
mkdlcXscript and remove the reference(s) to that file; then re-run themkdlcXscript. Repeat this step as needed.
- Confirm that the Progress environment variable
- Run the appropriate link script (
ldXXXNN) which will attempt to build a new database agent.
- At the end of the relink process, the new database agent executable will be automatically placed in the "
bin" subdirectory directory of your OpenLink server components installation. The new database agent binary will be named according to the typical OpenLink conventions, i.e.,XXXNN_svorXXXNN_mv.
- Navigate to the "
lib" sub-directory of your OpenLink server components installation; typically --
Shell cd ../bin
- Locate your newly linked agent.
If it has a different name than the original agent, you can rename both so that the new one takes the place of the old, or you can edit your Broker Rulebook (
oplrqb.ini) and change all occurrences of the old database agent name to the new agent name.
- Restart your Broker.
- Test.
Related
Creating Custom Relink Scripts for Drivers and Agents for Progress/ OpenEdge
Custom relink scripts may be needed when our standard scripts are incompatible with your database installation and/or environment.
The Progress probuild utility enables you to create such custom scripts.
- Locate the
buildenvscript, typically found in the$DLC/probuild/eucappdirectory.
- Ensure that the environment variable settings in the
buildenvscript are accurate for your system.
- Set and export
Example PROLOAD=$DLC/probuild export PROLOAD
- Type the following command at your command line:
Example $PROLOAD/eucapp/probuild
- At the Install Link Script Into prompt, enter the full path to your
~/openlink/bindirectory.
- Click Continue.
- Select ESQL/C Large Client Full from the product list.
- Click Continue.
- Give your relink script an appropriate name.
For example:
Example ldpro7 ldpro8 ldpro9
- Give the executable to be produced an OpenLink-style Database Agent name.
For example:
Example pro73e_sv pro83b_sv pro91b_sv
- Click Continue.
- Do not specify any special configurable elements.
- Click Continue.
- Locate the database agent object code in the
/libsub-directory of your OpenLink installation. Object code files are named similarly topro7_sv.o,pro8_sv.o, andpro9_sv.o.
- Enter the full path to the relevant Database Agent object code (
proxxx_sv.o) under "Object Files.'
- Click Continue.
- Exit
probuild.
- Repeat the relink process with your new relink script.
Changing or Resetting Access Restrictions for the Multi-Tier Request Broker's Admin Assistant
Changing User Access
- Load the Admin Assistant in a browser.
The default URL is http://broker-hostname-or-ip-address:8000/.
- Drill down to Server Components Administration -> Admin Assistant Settings -> Configure the List of Users Allowed to use the Admin Assistant.
When prompted to log in, use the defaults or whatever you've set previously.
- Click Edit, Remove, or Add as appropriate, until the list reflects your intention.
- Optionally, drill down to Server Components Administration -> Admin Assistant Settings -> Configure the Admin Assistant's Remote Access Filters.
Here you can restrict the IP addresses which may use Web browsers to access the Admin Assistant.
- When you've finished, stop and restart the Request Broker, which will automatically restart the Admin Assistant.
- Test your new settings.
Resetting to Defaults
The default username and password of the Multi-Tier Admin Assistant are both admin.
If you cannot log in with these values, you may have changed them during installation.
You can reset these through the following steps:
- Access the machine which hosts the Multi-Tier server components.
- Open a CMD/DOS or Unix terminal session.
- Navigate to the
/bin/w3configsub-directory of the server-side installation.
- Run
setuporsetup.exe. This program will reset both username and password to the defualt -- i.e., "admin".
Set Isolation Levels
Set Isolation Levels
You may use OpenLink's +initsql parameter to change your database isolation level. The following instructions will assist you with this task:
1. Insure that your database supports the operation which you want to implement. Verify the syntax which that database will accept.
2.
Create a file in the /bin sub-directory of your OpenLink server components installation.
This file should contain only the isolation level syntax.
For example:
-Dsrv TXN_ISOLATION, SERIALIZABLE
3.
Open the oplrqb.ini file which resides within the same /bin sub-directory.
4.
Locate the [generic_XXXXX] section which corresponds to the database agent which you use.
For example:
[generic_inf7]
Program = inf7_mv.exe
Environment = INFORMIX7
OpsysLogin = Yes
ReUse = always
;Directory = c:\temp
;ConnectOptions =
;ReadOnly =
;CommandLine =
5.
Locate the "CommandLine" parameter, and pass the file which you have created.
For example:
CommandLine = +initsql yourisolationfile
6.
Remove any semicolon (;) which may appear in front of CommandLine.
7. Save your changes and exit the oplrqb.ini file.
8.
Restart the OpenLink Request Broker by typing the following commands from the same /bin sub-directory:
./oplshut
./oplrqb +loglevel 7 +logfile oplrqb.log
9.
Test.
Details of Multi-Tier Rulebook ConnectOptions , and Single-Tier and Multi-Tier DSN Options
For connections to DB2
| Option Setting | Details | Example |
|---|---|---|
<Native DB2 DSN> (no flag) |
Pass a native DB2 DSN, if the DB2 DBMS runs on a different machine than the OpenLink Request Broker and Database Agent. | My_DB2_DSN
|
For connections to Informix
| Option Setting | Details | Example |
|---|---|---|
<Informix Instance Name> (no flag) |
Pass an Informix Instance Name, if connecting via TCP/IP stack (i.e., not shared memory). | inf10inst1
|
For connections to Ingres
| Option Setting | Details | Example |
|---|---|---|
<Ingres vnode> (no flag) |
Pass an Ingres vnode, if the Ingres DBMS runs on a different machine than the OpenLink Request Broker and Database Agent. | Ing_vnode
|
For connections to Microsoft SQL Server
| Option Setting | Details | Example |
|---|---|---|
-H <hostname or IP address> |
Required Fully-qualified domain name (i.e., DNS-resolvable hostname) or IP address of the SQL Server host machine. | -H sql-host.example.com |
-V <version> |
Required TDSVer value.
Optimal settings are 10.0 for SQL Server 2008 and later, 9.0 for SQL Server 2005 , 8.0 for SQL Server 2000, 7.0 for SQL Server 7.x.
|
-V 9.0 |
-P <port number> |
TCP Port at which the target SQL Server instance is listening.
Not required if -I or -S is properly set.
Required otherwise.
|
-P 1433 |
-I <instance-name> |
SQL Server instance name on the specified host (-H).
Only the actual "InstanceName".
This option should be used in preference to the -S option below for connecting to a named instance.
|
-I mssql2k5 |
-S <FQDN of database host>\\<instance-name> |
Not recommended.
-H and -I are preferred. Specifies a target SQL Server instance by combining the host and instance names as "<FQDN>\\<instance>", e.g., "sql-host.example.com\\demo-instance".
Note the double backslash ("\\") required between the host and instance names.
|
-S sql-host.example.com\\mssql2k5 |
-F <fail-over server name> |
Specifies the fail-over server name for Database Mirroring. | -F failover-host.example.com |
-O <value> |
Determines whether stored procedures are created on the server for every call to SQLPrepare().
Acceptable values are "2" (Full), "1" (Partial, the default), and "0" (None).
Effects of this setting.
|
-O 1 |
-L <language> |
The name of a Microsoft SQL Server-supported national language. The default language is English. | -L English |
-C <character set> |
The name of the character set the OpenLink driver should deliver to the client application, to be translated from the Server's character set. By default, this is taken from the application's environment. Only valid for non-Unicode drivers. Unicode drivers always deliver UCS-2 on Windows and UCS-4 on Mac OS X and Unix-like OS. | -C ISO-8859-1 |
-A |
Turn off ANSI NULL handling.
Effects of this setting.
|
-A |
-E |
Require SSL Strong Data Encryption for communications between Database Agent or Lite Driver and SQL Server. If SQL Server is not configured to support SSL, connections will fail. This is not necessary when the SQL Server is configured to require SSL communications; the Agent/Driver automatically support that requirement. | -E |
-R |
Require SSL Server Certificate Verification for SSL communications.
Has no effect if SSL is not active.
Not necessary in most cases.
Will cause failure in server-forced SSL connections if -D (below) is not also set correctly. |
-R |
-D <path to file> |
Full path including filename of Certificate Authority File to be used for SSL Certificate Verification. | /usr/local/certs/auth.caf |
-Z |
Turn on Snapshot Serializable Isolation. | -Z |
-M |
Turn on Multiple Active Result Sets (MARS), enabling concurrent processing of multiple statements, queries, and/or result sets, on a single database connection. | -M |
-N <size> |
Network Packet Size determines the number of bytes per network packet transferred between the Microsoft SQL Server and the Database Agent or Lite Driver.
This attribute can have significant impact on performance.
The default, and often optimal, setting is 8000.
The maximum supported by Microsoft SQL Server is 32767.
|
-N 0 |
For connections to MySQL
| Option Setting | Details | Example |
|---|---|---|
-H <hostname or IP address> |
Required Fully-qualified domain name (i.e., DNS-resolvable hostname) or IP address of the MySQL host machine. | -H mysql-host.example.com |
For connections to JDBC Data Sources
| Option Setting | Details | Example |
|---|---|---|
<JDBC Connection URL> (no flag) |
Required. Pass a JDBC connect URL as appropriate for the target JDBC Driver. | jdbc:openlink://test.example.com:5000/UID=sa/PWD=admin/READONLY=N/FBS=10/SVT=SQLSERVER/DATABASE=pubs/OPTIONS=-H sqlhost.example.com -V 8.0 -P 1433/ |
| NOTE. The JDBC Driver classname must be passed as the Database DSN attribute, and the associated jar file must be in the active CLASSPATH. |
For connections to ODBC Data Sources
| Option Setting | Details | Example |
|---|---|---|
<local ODBC DSN> (no flag) |
Required. Pass an ODBC DSN as defined on the Broker host. | my_odbc_dsn |
For connections to Oracle
| Option Setting | Details | Example |
|---|---|---|
<Oracle SQL*Net or Net Service Name> (no flag) |
Pass an Oracle Service Name, as defined in tnsnames.ora.
|
oracle.example.com |
<Oracle Connection String> (no flag) |
Pass an Oracle connection string. | "scott/tiger@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle-host.example.com)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=oracle.example.com)))" |
For connections to PostgreSQL
| Option Setting | Details | Example |
|---|---|---|
-H <hostname or IP address> |
Required Fully-qualified domain name (i.e., DNS-resolvable hostname) or IP address of the PostgreSQL host machine. | -H postgresql-host.example.com |
For connections to Progress / OpenEdge
The following options are not required for Shared Memory-mode connections -- which are only possible with SQL-89 drivers, and only when those drivers have been linked to exactly the same Progress library versions as are installed on the current host.
These options are all required for Sockets-mode connections. Any connection may be made in sockets mode if Progress instance has been started with this mode enabled.
Connection must be made in sockets mode when using --
- a Single-Tier Driver (whether SQL-89 or SQL-92),
- a SQL-92 Driver (whether Single-Tier or Multi-Tier),
- a Multi-Tier Database Agent (whether SQL-89 or SQL-92) that is not located on the same host as the Progress instance, and
- a SQL-89 Driver (whether Single-Tier or Multi-Tier) that has not been linked to the exact same Progress library versions as are installed on the current driver host.
| Option Setting | Details | Example |
|---|---|---|
-S <socket service name or port number> |
Socket service port number, or associated service name as set in /etc/services or equivalent.
|
-S 1234 |
-H <hostname or IP address> |
Fully-qualified domain name (i.e., DNS-resolvable hostname) or IP address of the Progress host machine. | -H progress-host.example.com |
-N tcp |
Always use this value. | -N tcp |
For connections to Sybase
| Option Setting | Details | Example |
|---|---|---|
-H <hostname or IP address> |
Required Fully-qualified domain name (i.e., DNS-resolvable hostname) or IP address of the Sybase host machine. | -H sybase-host.example.com |
-V <version> |
Required TDSVer value.
Sets the Sybase network protocol version the driver will use to communicate with the target instance.
Acceptable values are 4.6 for Sybase SQL Server 4.x, and 5.0 for all other Sybase versions.
|
-V 5.0 |
-P <port number> |
Required Sybase listen port | -P 4100 |
-S <instance names> |
Sybase instance name. Generally not necessary when host and port are correctly specified, but sometimes required even then. | -S MySybaseInstance |
-N <size> |
Network Packet Size determines the number of bytes per network packet transferred from the Sybase server to the Database Agent or Lite Driver.
This attribute can have significant impact on performance.
When set to 0 (default), the driver uses the default packet size as specified in the Sybase server configuration.
When set to -1, the driver computes the maximum allowable packet size on the first connect to the data source and saves the value in the system information.
When set to an integer from 1 to 10, this indicates a multiple of 512 bytes (for example, Packet Size of 6 means to set the packet size to 6 * 512 equal 3072 bytes).
For this setting to have any impact, the server must be configured for a maximum network packet size greater than or equal to the value specified here.
|
-N 0 |
-C <character set> |
The name of the character set the OpenLink driver should deliver to the client application, to be translated from the Server's character set. By default, this is taken from the application's environment. Only valid for non-Unicode drivers. Unicode drivers always deliver UCS-2 on Windows and UCS-4 on Mac OS X and Unix-like OS. | -C ISO-8859-1 |
-O <value> |
Determines whether stored procedures are created on the server for every call to SQLPrepare().
Acceptable values are "2" (Full), "1" (Partial, the default), and "0" (None).
Effects of this setting.
|
-O 1 |