Sybase Scan Configuration Guide for JDBC Integration
Sybase (SAP ASE) is scanned through the Generic JDBC integration using the customer-supplied SAP jConnect driver. Scans run on the customer's on-premises Worker Node. The scanner derives the dialect sybase from the URL prefix jdbc:sybase:... and uses the driver named in driver_class_name.
How the scanner connects
-
The scanner reads the credential JSON and builds the JDBC URL. If the URL contains
{db}, it is replaced withbase_databasefor the first connection. -
The
userandpasswordare passed to the driver as connection properties. Other credential fields are not forwarded to the driver, so driver options such as SSL go in the URL. -
Metadata is read through standard JDBC metadata calls: owners (schemas, such as
dbo), tables, columns, primary keys, foreign keys and indexes. -
With
is_multi_connection_supportedset to"true", the scanner loops overdatabase_list, opening one connection per database by substituting each name into{db}.
Prerequisites and permissions
The scan account requires a read-only login with access to all databases included in the scan, and the jConnect metadata procedures must be installed on the server.
Driver
-
SAP jConnect for JDBC. In jConnect 16.0 the driver ships as
jconn42.jar; older jConnect 7.x builds shipjconn4.jarwith classcom.sybase.jdbc4.jdbc.SybDriver. Confirm the driver class inside the jar you deploy and use it indriver_class_name. jConnect 16.0 requires JDK 6 or later. For more information, see SAP jConnect for JDBC 16.0 Release Bulletin. -
The driver is customer-provided, not bundled. To deploy it on the Worker Node, copy the jar into the installer's
extlib/folder and rundeploy.shwith thesync-extliboption. This briefly scales the scanners down, copies the jar to the shared extlib storage, and scales them back up. -
jTDS is not the documented or tested driver.
-
The DBA must install the jConnect metadata stored procedures (
sp_jdbc_*, installed by thesql_server.sql/installjdbcscript shipped with jConnect). Without them every metadata call fails withJZ0SJ: Metadata accessor information was not found on this database.
Database grants (SAP ASE)
-- Create the login once at the server level
sp_addlogin '<USERNAME>', '<PASSWORD>', '<DEFAULT_DB>'
go
-- In EACH database to scan
use <DB_NAME>
go
sp_adduser '<USERNAME>'
go
-- Grant SELECT on the required tables/views
grant select on dbo.<TABLE_NAME> to <USERNAME>
go
-- Alternatively, create/use a read-only group
-- and grant SELECT permissions to that group.
|
What |
Why the scanner needs it |
|---|---|
|
Login with network access to |
Open the TDS connection |
|
User (or alias) in each database |
|
|
|
Row counts and data sampling for classification |
|
|
Schemas, tables, columns, PK/FK, index metadata |
|
Default database set to |
Recommended, avoids login landing in |
Least-privilege principle: No write, DDL, sa_role, or sso_role privileges are required. Exact role/group names and whether access to the sp_jdbc_* procedures is granted to public depend on the customer's ASE configuration, so confirm these permissions with the DBA.
Connection configuration
The scan is configured through credential fields, for a single database or for multiple databases, and SSL/TLS is set in the connection URL.
Credential fields
All values are strings, including booleans.
|
Field |
Required |
Description |
|---|---|---|
|
|
Yes |
|
|
|
Yes |
Scan login. Passed to the driver. |
|
|
Yes |
Scan login password. Passed to the driver. |
|
|
Yes |
The SybDriver class of the deployed jar, e.g. |
|
|
Multi-DB only |
Comma-separated database names. Split on |
|
|
Multi-DB only |
Database substituted into |
|
|
Multi-DB only |
|
|
|
No |
ISO-8601 durations, e.g. |
|
|
No |
Generic JDBC tuning overrides. |
Single database
Put the database name directly in the URL and omit database_list, base_database and {db}.
{
"connectionUrl": "jdbc:sybase:Tds:host:10000/default_database",
"user": "<USERNAME_HERE>",
"password": "<PASSWORD_HERE>",
"driver_class_name": "com.sybase.jdbc4.jdbc.SybDriver"
}
The scanner connects to default_database and discovers every owner (schema) in it, such as dbo.
Multiple databases
Use {db} in the URL, list the databases, name a base database, and turn on multi-connection mode.
{
"connectionUrl": "jdbc:sybase:Tds:host:10000/{db}",
"user": "<USERNAME_HERE>",
"password": "<PASSWORD_HERE>",
"driver_class_name": "com.sybase.jdbc4.jdbc.SybDriver",
"database_list": "database_1,database_2,database_3",
"base_database": "database_1",
"is_multi_connection_supported": "true"
}
What happens at scan time:
-
First connection:
jdbc:sybase:Tds:...:10000/database_1(frombase_database). -
For each entry in
database_list, the scanner closes the connection, reconnects with that name in{db}and collects its schemas and tables. -
Scan profile include/exclude filters and the database count limit are applied to these names before connecting.
SSL/TLS
jConnect has built-in SSL support since 15.7 SP100 through the ENABLE_SSL connection property. Because only user and password are forwarded from the credential, set it in the URL: jdbc:sybase:Tds:<host>:<port>/{db}?ENABLE_SSL=true. The ASE server must have SSL enabled, and its certificate must be trusted by the scanner's Java truststore.
For more information, see jConnect 16.0: SSL sockets.
Supported products and capabilities
SAP ASE is supported through Generic JDBC with SAP jConnect, including metadata scans, classification, DSAR indexing and Identity Graph, with no minimum Worker Node version beyond Generic JDBC support. SAP IQ and SAP SQL Anywhere are reachable with the same driver but have not been validated by OneTrust.
Products and versions
|
Product |
Answer |
Status |
|---|---|---|
|
SAP ASE |
Scanned through Generic JDBC with SAP jConnect 16.0 over TDS. Any ASE version supported by SAP jConnect 16.0 applies; SAP does not publish a per-version list in the jConnect release bulletin. |
Supported |
|
SAP IQ |
SAP lists jConnect as a supported JDBC driver for SAP IQ, with the same |
Compatible, not validated |
|
SAP SQL Anywhere |
jConnect connects over TDS (default port 2638). SAP recommends its own SQL Anywhere JDBC driver ( |
Compatible, not validated |
Connectivity
|
Question |
Answer |
Status |
|---|---|---|
|
Where scans run |
On the customer's on-premises Worker Node. |
Supported |
|
Minimum Worker Node version |
No specific minimum version is required. Sybase scanning relies on the Generic JDBC capability, which has been available since that feature was introduced, so any Worker Node with Generic JDBC support can scan Sybase. We recommend keeping the Worker Node on a current release. |
Supported |
|
JDBC driver |
SAP jConnect ( |
Supported |
|
Bundled or customer-provided |
Customer-provided, deployed through the installer's |
Supported |
|
Authentication |
Username and password. |
Supported |
|
SSL/TLS |
jConnect |
Supported, validate in customer environment |
|
Kerberos |
jConnect supports Kerberos through connection properties, but this path has not been tested with the scanner. |
To be confirmed |
Features
|
Capability |
Answer |
Status |
|---|---|---|
|
Metadata scan |
Databases, schemas, tables, columns, primary/foreign keys and indexes. |
Supported |
|
Sampling and classification |
Uses the same scan and classification pipeline as other RDBMS connectors, with standard SELECT queries. |
Supported, validate in customer environment |
|
Full scans |
Governed by the scan profile limits. |
Supported, validate in customer environment |
|
Role / permission ingestion |
Not available for Generic JDBC sources. |
Not supported |
|
DSAR indexing |
Index entries are created whenever matching terms are found during the scan, provided indexing is enabled on the Worker Node. Behavior does not depend on the JDBC driver loaded. |
Supported |
|
Identity Graph |
Supported for Generic JDBC sources, independent of the driver. |
Supported |
|
DSAR data retrieval |
Expected to work, since it uses the standard Generic JDBC implementation. Because query behavior can vary with the customer-provided driver, it needs validation in the customer environment. |
Compatible, validation required |
Troubleshooting
|
Symptom |
Likely cause |
Fix |
|---|---|---|
|
|
jConnect jar not deployed, or |
Copy the jar to the installer |
|
|
|
Add |
|
|
|
DBA runs the jConnect metadata install script |
|
|
URL has |
Add |
|
Only one database scanned |
|
Add |
|
Login fails for one database only |
Scan login is not a user in that database, or name has a leading space |
|
|
Tables found but no data sampled |
Missing SELECT grant |
Grant SELECT on the tables or a read-only role |
|
Connection hangs or fails with SSL enabled |
Server does not accept SSL, or its certificate is not trusted |
Enable SSL on ASE; import the server certificate into the scanner's Java truststore |
|
SSL setting has no effect |
|
Move it to the URL: |