In this section: |
Configuring the adapter consists of specifying connection and authentication information for each of the connections you want to establish.
How to: Reference: |
In order to connect to a SQLBase data source, the adapter requires connection and authentication information.
You supply this information using the SET CONNECTION_ATTRIBUTES command. You can enter connection and authentication information in the Web Console or the Data Management Console configuration pane. The consoles add the command to the server profile you select: global (edasprof.prf), user (user.prf), or group (group.prf) if supported on your platform.
You can declare connections to more than one SQLBase data source using the SET CONNECTION_ATTRIBUTES commands. The actual connection takes place when the first query is issued. If you issue multiple SET CONNECTION_ATTRIBUTES commands:
You can configure the adapter from either the Web Console or the Data Management Console.
or
From the Data Management Console, expand the Adapters folder.
The Adapters folder opens.
The Add Adapter to Configuration pane opens.
The SQLBase adapter is under the SQL group folder.
The following list describes the connection attributes for which you can supply values. To complete the attribute declaration, click the Configure button.
Logical name used to identify this particular set of connection attributes. The default is CON01.
Location URL for the SQLBase data source.
Primary authorization ID by which you are known to the data source.
Password associated with the primary authorization ID.
Name for the SQLBase JDBC driver.
See SQLBase documentation for the specific driver release you are using.
Select a profile from the drop-down menu to indicate the level of profile in which to store the CONNECTION_ATTRIBUTES command. The global profile, edasprof.prf, is the default.
If you wish to create a new profile, either a user profile (user.prf) or a group profile if available on your platform (using the appropriate naming convention), choose New Profile from the drop-down menu and enter a name in the Profile Name field (the extension is added automatically).
Store the connection attributes in the server profile (edasprof).
ENGINE SQLBAS SET CONNECTION_ATTRIBUTES connection 'URL'/userid,password
where:
Indicates the adapter. You can omit this value if you previously issued the SET SQLENGINE command.
Is the connection name.
Is the URL to the location of the SQLBase data source.
Is the primary authorization ID by which you are known to the target database.
Is the password associated with the primary authorization ID.
The following SET CONNECTION_ATTRIBUTES command connects to a books database using the SQLBase Driver, with an explicit user ID (MYUSER) and password (PASS). To ensure security, specifying connection attributes from the Web Console or DMC will encrypt the password before adding it to the server profile.
Note: Consult vendor documentation for the exact name, port, and path.
ENGINE SQLBAS SET CONNECTION_ATTRIBUTES CON1 'jdbc:sqlbase://edared30:2155/island'
How to: |
If multiple connections have been defined, the connection named in the first SET CONNECTION_ATTRIBUTES command serves as the default connection.
ENGINE SQLBAS SET DEFAULT_CONNECTION connection
where:
Indicates the adapter. You can omit this value if you previously issued the SET SQLENGINE command.
Is the connection defined in a previously issued SET CONNECTION_ATTRIBUTES command. If this name was not previously declared, the following message is issued:
FOC1671, Command out of sequence
Note:
FOC1671, Command out of sequence.
The following SET DEFAULT_CONNECTION command selects CON1 as the defaultconnection.
ENGINE SQLBAS SET DEFAULT_CONNECTION CON1
How to: |
The SET AUTODISCONNECT command controls the persistence of connections when using the adapter for each of the connections you want to establish.
ENGINE SQLBAS SET AUTODISCONNECT ON {FIN|COMMIT}
where:
Indicates the adapter. You can omit this value if you previously issued the SET SQLENGINE command.
Disconnects automatically only after the session has been terminated. FIN is the default value.
Disconnects automatically only after COMMIT or ROLLBACK is issued as a native SQL command.
iWay Software |