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

  1. The scanner reads the credential JSON and builds the JDBC URL. If the URL contains {db}, it is replaced with base_database for the first connection.

  2. The user and password are 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.

  3. Metadata is read through standard JDBC metadata calls: owners (schemas, such as dbo), tables, columns, primary keys, foreign keys and indexes.

  4. With is_multi_connection_supported set to "true", the scanner loops over database_list, opening one connection per database by substituting each name into {db}.

Prerequisites and permissions

Note:

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 ship jconn4.jar with class com.sybase.jdbc4.jdbc.SybDriver. Confirm the driver class inside the jar you deploy and use it in driver_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 run deploy.sh with the sync-extlib option. 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 the sql_server.sql / installjdbc script shipped with jConnect). Without them every metadata call fails with JZ0SJ: Metadata accessor information was not found on this database.

Database grants (SAP ASE)

CODE
-- 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 host:port

Open the TDS connection

User (or alias) in each database

use <db> / connect with /{db}; without it the connection to that DB fails

SELECT on tables and views

Row counts and data sampling for classification

EXECUTE on sp_jdbc_* in sybsystemprocs (public by default)

Schemas, tables, columns, PK/FK, index metadata

Default database set to base_database

Recommended, avoids login landing in master

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

connectionUrl

Yes

jdbc:sybase:Tds:<host>:<port>/<database>. Use {db} in place of the database name for multi-database scans. Driver options are appended to the URL, e.g. ?ENABLE_SSL=true.

user

Yes

Scan login. Passed to the driver.

password

Yes

Scan login password. Passed to the driver.

driver_class_name

Yes

The SybDriver class of the deployed jar, e.g. com.sybase.jdbc4.jdbc.SybDriver. Set it explicitly, there is no built-in default for the sybase dialect.

database_list

Multi-DB only

Comma-separated database names. Split on , with no trimming, so no spaces: database_1,database_2,database_3.

base_database

Multi-DB only

Database substituted into {db} for the first connection. If the URL has {db} and this is missing, the connection fails with No specific database specified for parameterized url.

is_multi_connection_supported

Multi-DB only

"true" makes the scanner iterate database_list. Without it, only base_database is scanned.

jdbc_query_timeout, network_timeout, jdbc_login_timeout

No

ISO-8601 durations, e.g. PT30M. Override global defaults.

fetch_size, auto_commit, isolation_level

No

Generic JDBC tuning overrides.

Single database

Put the database name directly in the URL and omit database_list, base_database and {db}.

JSON
{
  "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.

JSON
{
  "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:

  1. First connection: jdbc:sybase:Tds:...:10000/database_1 (from base_database).

  2. For each entry in database_list, the scanner closes the connection, reconnects with that name in {db} and collects its schemas and tables.

  3. 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 jdbc:sybase:Tds: URL. The jConnect metadata procedures must be installed on the IQ server. For IQ 16.1 SP05 PL09 and later, SAP pairs IQ with jConnect 16.0.

Compatible, not validated

SAP SQL Anywhere

jConnect connects over TDS (default port 2638). SAP recommends its own SQL Anywhere JDBC driver (jdbc:sqlanywhere:), which is not pure Java and needs native libraries; jConnect is the pure-Java option that fits the Worker Node.

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 (jconn42.jar for jConnect 16.0, jconn4.jar for older 7.x builds). jTDS is not supported.

Supported

Bundled or customer-provided

Customer-provided, deployed through the installer's extlib/ folder and deploy.sh sync-extlib.

Supported

Authentication

Username and password.

Supported

SSL/TLS

jConnect ENABLE_SSL=true in the connection URL. Requires SSL on the server and the server certificate in the scanner's Java truststore.

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

ClassNotFoundException: com.sybase...SybDriver

jConnect jar not deployed, or driver_class_name does not match the class in the jar

Copy the jar to the installer extlib/ folder and run deploy.sh sync-extlib; check the class name inside the jar

No suitable driver found for [sybase]

driver_class_name missing

Add driver_class_name

JZ0SJ: Metadata accessor information was not found

sp_jdbc_* procedures not installed

DBA runs the jConnect metadata install script

No specific database specified for parameterized url

URL has {db} but no base_database

Add base_database

Only one database scanned

is_multi_connection_supported missing or not "true"

Add "is_multi_connection_supported": "true"

Login fails for one database only

Scan login is not a user in that database, or name has a leading space

sp_adduser in that DB; remove spaces in database_list

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

ENABLE_SSL set as a credential field instead of in the URL

Move it to the URL: ...?ENABLE_SSL=true