Movatterモバイル変換


[0]ホーム

URL:


✨ As of November 2023, Arcion has become a part of Databricks.Learn more here
SAP ASE

Source SAP ASE (Sybase ASE)#

The following steps referthe extracted Arcion self-hosted CLI download as the$REPLICANT_HOME directory.

I. Set up connection configuration#

Specify our ASE connection details to Replicant with a connection configuration file. You can find a sample connection configuration filesybasease_src.yaml in the$REPLICANT_HOME/conf/conn directory.

For connecting to ASE, you can choose between two methods for an authenticated connection:

Connect with username and password#

For connecting to SAP ASE with basic username and password authentication, you have the following two options:

You can specify your credentials in plain YAML in the connection configuration file like the following sample:

type:SYBASE_ASEhost:HOSTNAMEport:PORT_NUMBERdatabase:'DATABASE_NAME'username:'USERNAME'password:'PASSWORD'client-charset:iso_1max-connections:20max-retries:10retry-wait-duration-ms:1000

Replace the following:

  • HOSTNAME: hostname of the SAP ASE server
  • PORT_NUMBER: port number of the SAP ASE server
  • DATABASE: the name of the SAP ASE database to connect to
  • USERNAME: the username of theDATABASE user
  • PASSWORD: the password associated withUSERNAME

Feel free to change the following parameter values as you need:

  • max-connections: the maximum number of connections Replicant opens in AlloyDB
  • max-retries: number of times Replicant retries a failed operation
  • retry-wait-duration-ms: duration in milliseconds Replicant waits between each retry of a failed operation.
  • client-charset: theJDBC character set name.

If you want to usethebcp utility to extract data from your source ASE, you need specify some additional parameters in the connection configuration file. For more information, seeUsebcp Utility for Extraction.

You can store your connection credentials in a secrets management service and tell Replicant to retrieve the credentials. For more information, seeSecrets management.

Connect using SSL#

To connect to ASE using SSL, simply enable SSL in Replicant’s connection configuration file:

ssl:enable:true

If you want to add certificate to other KeyStore, specify the KeyStore’s location in the connection configuration:

ssl:enable:truetrust-store:path:"PATH_TO_TRUSTSTORE"password:"TRUSTSTORE_PASSWORD"ssl-store-type:'TRUSTSTORE_TYPE'key-store:path:"PATH_TO_KEYSTORE"password:"KEYSTORE_PASSWORD"

Replace the following:

Additional parameters#

client-charset[v23.07.31.03]

Allows you to specify a custom JDBC character set—for example,iso_1. For a full list of supported character sets and their SAP ASE names, seeSAP ASE character set names.

II. Set up Extractor configuration#

To configure replication mode according to your requirements, specify your configuration in the Extractor configuration file. You can find a sample Extractor configuration filesybasease.yaml in the$REPLICANT_HOME/conf/src directory.

Arcion supports bothsnapshot andrealtime modes for SAP ASE. For more information, see the following two sections:

Use snapshot mode#

For operating in snapshot mode, you can make changes under thesnapshot section of the configuration file. For example:

snapshot:threads:32fetch-size-rows:10_000min-job-size-rows:1_000_000max-jobs-per-chunk:32extraction-method: {BCP|QUERY}per-table-config:    -schema:tpchtables:partsupp:split-key:ps_partkeysupplier:split-key:s_suppkeyorders:split-key:o_orderkeynation:split-key:n_regionkey

Theextraction-method parameter specifies what extraction method to use to extract data from Source ASE. You can set it to any of the following two values:

BCP

Replicant usesASE’sbcp utility to extract data. For more information, seeUsebcp Utility for Extraction.

QUERY (Default)

Replicant uses JDBC connection to extract the data.

Important: When usingBCP as the extraction method with filters, orsplit-key in Extractor configuration, make sure that the Replicant user has access privilege to create views in data schema.

For more information about the Extractor parameters forsnapshot mode, seeSnapshot mode.

Userealtime mode#

For real-time replication, follow these instructions:

1. Grant necessary permissions#

First, make sure that the ASE accountyou specify in the Replicant connection configuration file possessesthe following permissions:

2. Specify Extractor parameters#

Specify extraction parameters under therealtime section of the configuration file. For example:

realtime:threads:1fetch-size-rows:100000fetch-interval-s:1_traceDBTasks:trueheartbeat:enable:truecatalog:tpchschema:blitzzinterval-ms:10000
Important:Always enable heartbeat table. Otherwise, truncation point does not move forward.

For more information about the Extractor parameters forrealtime mode, seeRealtime mode.

Additional real-time parameters#

cdc-log-fetch-timeout-s
Sets the timeout for CDC log scan in seconds.

Default:600.

dump-transactions[v23.08.31.4]

{true|false}.

Specifies the behavoir of dumping committed transaction logs.

true#
  1. Replicant disables automatic log dump on the ASE server.
  2. Replicant manually dumps commited transaction logs acccording to the value you set inpurge-interval-s.
false#

The current ASE server settings control dumping of commited transaction logs.

Default:true.

purge-interval-s[v23.08.31.4]
Controls the frequency of truncation point update and transaction log dump in seconds. This parameter takes effect only if sufficient logs exist and page number has changed from the last update. If you setdump-transactions tofalse, Replicant only updates the truncation point.

Default:60.

Limitations#

Handling secondary truncation point#

When a replication starts, Replicant establishes a$replication_truncation_point entry in thesyslogshold system table. This indicates an ongoing replication process. While Replicant is working, it advances the replication truncation point at regular intervals, according to the amount of data that has already been copied to the target.

Once Replicant establishes the$replication_truncation_point entry, you must keep Replicant running at all times to prevent the database log from becoming excessively large. To stop the replicant task permanently, remove the replication truncation point:

dbcc settrunc('ltm','ignore')

After removing the truncation point, you cannot resume the replication job. If automatic trunction is enabled, ASE continues to automatically truncate the log at the checkpoints.

For a detailed explanation of configuration parameters in the Extractor file, readExtractor Reference.

Usebcp utility for extraction#

Note:bcp is only supported for snapshot mode.

You can configure Replicant to use thebcp (bulk copy program) utility for extracting data from your Source ASE. To do so, follow the steps below:

Specify connection details#

In yourSAP ASE connection configuration file, specify thebcp connection details under a new fieldbcp-connection:

bcp-connection:host:HOSTNAMEport:PORT_NUMBERusername:'USERNAME'password:'PASSWORD'sybase-dir:'SYBASE_SETUP_DIRECTORY'ocs-dir-name:'OCS_DIRECTORY_NAME'

Replace the following:

Specify the extraction method in Extractor configuration file#

In yourSAP ASE Extractor configuration file, set the value ofextraction-method toBCP. This tells Replicant to useASE’sbcp utility for extraction.

Important: When usingBCP as the extraction method with filters, orsplit-key in Extractor configuration, make sure that the Replicant user has access privilege to create views in data schema.

[8]ページ先頭

©2009-2026 Movatter.jp