Oracle ADWC
Autonomous Data Warehouse Cloud (ADWC) is a fully-managed, high-performance elastic cloud service providing analytical capability over data stored in the database and Oracle Object Store.
Type Name
oracle
Connection Properties
Template name: oracleadwc
Appropriate translator name: oracleadwc
Properties:
- tns (the service name of the Oracle ADWC instance, which can be found in the
tnsnames.ora
file within the wallet) user-name
password
(default: empty )wallet
( a path to a ZIP file or a Base64 string presentation of the ZIP-file; see note below)tns_admin
( a path to the unzipped wallet directory; default:dvserver/standalone/deployments/wallets/wallet_<tns>/
; the path should end with '/')jdbc-properties
(arbitrary extra properties)new-connection-sql
(default:alter session set nls_sort = BINARY
)min-pool-size
(default:2
)max-pool-size
(default:70
)
Note: The wallet
property is stored in the SYSADMIN.Connections
table as a Base64 string even when set as a path to a ZIP file. In the import script, it will also be presented as a Base64 string, therefore the ZIP file does not need backing up for migration.
tns_admin
is available since v4.0.7keyStorePWD
and trustStorePWD
removed in v4.0.7
Examples
1. Example with wallet
as a path to a ZIP file:
CALL "SYSADMIN.createConnection"("name" => 'adwc', "jbossCLITemplateName" => 'oracleadwc', "connectionOrResourceAdapterProperties" => 'tns=<tns>, user-name=<user-name>, password=<password>, wallet=d:/adwc_wallet.zip', "encryptedProperties" => '') ;;
CALL "SYSADMIN.createDataSource"("name" => 'adwc', "translator" => 'oracleadwc', "modelProperties" => 'importer.useFullSchemaName=false, importer.TableTypes="TABLE,VIEW", importer.importIndexes=false, importer.schemaPattern="ADMIN",importer.defaultSchema="ADMIN"', "translatorProperties" => 'trustStorePWD=<trustStorePWD>, keyStorePWD=<keyStorePWD>', "encryptedModelProperties" => '', "encryptedTranslatorProperties" => '');;
2. Example with wallet
as a Base64 string:
CALL "SYSADMIN.createConnection"("name" => 'adwc', "jbossCLITemplateName" => 'oracleadwc', "connectionOrResourceAdapterProperties" => 'tns=<tns>, user-name=<user-name>, password=<password>, wallet=<Base64 string>', "encryptedProperties" => '') ;;
CALL "SYSADMIN.createDataSource"("name" => 'adwc', "translator" => 'oracleadwc', "modelProperties" => 'importer.useFullSchemaName=false, importer.TableTypes="TABLE,VIEW", importer.importIndexes=false, importer.schemaPattern="ADMIN",importer.defaultSchema="ADMIN"', "translatorProperties" => 'trustStorePWD=<trustStorePWD>, keyStorePWD=<keyStorePWD>', "encryptedModelProperties" => '', "encryptedTranslatorProperties" => '');;
Translator Properties
Translator Properties Shared by All JDBC Connectors
(Properties listed in alphabetical order)
To view the full table, click the expand button in its top right corner
Name | Description | Default value |
---|---|---|
comparisonStringConversion
| Sets a template to convert Examples
SQL
|
|
| Database time zone, used when fetching date, time, or timestamp values | System default time zone |
| Specific database version, used to fine-tune pushdown support | Automatically detected by the server through the data source JDBC driver, if possible |
forbidNonMatchingNames | Only considered when importer.tableNamePattern is set. When set to FALSE , allows creation of tables with names that do not match the tableNamePattern . Tables with non-matching names will only be accessible until the server restarts | TRUE |
ForceQuotedIdentifiers
| If | TRUE |
| Maximum size of prepared insert batch |
|
OrderByStringConversion | Sets a template to convert Examples
SQL
|
|
supportsConvertFromClobToString
| If TRUE , indicates that the translator supports the CONVERT /CAST function from clob to string |
|
| Forces a translator to issue a Example
SQL
|
|
supportsOrderByAlias
| If If |
|
supportsOrderByString
| If If |
|
TrimStrings | If |
|
| if |
|
| Embeds a / comment / leading comment with session/request id in the source SQL query for informational purposes |
|
The names of the translator properties are case-sensitive.
Translator Properties Specific for Oracle ADWC
Name | Description | Default value |
---|---|---|
dateAsTimestamp | When set to TRUE, the Data Virtuality Server treats Oracle date data type as timestamp data type | FALSE |
maxTableNameLength
| Maximum length of a table name | 30 |
maxColumnNameLength
| Maximum length of a column name. Please note that five chars of defined maximum length will be reserved for internal purposes and cannot be used for column identifier | 30 |
OracleSuppliedDriver | Indicates that the Oracle-supplied driver (typically prefixed by ojdbc ) is being used. Set to FALSE when using DataDirect or other Oracle JDBC drivers | TRUE |
Data Source Properties
Data Source Properties Shared by All JDBC Connectors
(Properties listed in alphabetical order)
To view the full table, click the expand button in its top right corner
Name | Description | Default |
---|---|---|
importer.autoCorrectColumnNames
| Replaces . in a column name with _ as the period character is not supported by the CData Virtuality Server in column names |
TRUE
|
| Database catalogs to use. Can be used if the Only for Microsoft SQL Server and Snowflake:
| Exasol:
SQL
All others: empty |
importer.defaultSchema
|
Please note that writing into a data source is only possible if this parameter is set. | Empty |
importer.enableMetadataCache | Turns on metadata cache for a single data source even when the global option is turned off. Together with importer.skipMetadataLoadOnStartup=true , it allows using materialized views after server restart when the original source is unavailable |
FALSE
|
importer.excludeProcedures
| Case-insensitive regular expression that will exclude a matching fully qualified procedure name from import | Empty |
importer.excludeSchemas
| Comma-separated list of schemas (no % or ? wildcards allowed) to exclude listed schemas from import. A schema specified in defaultSchema or schemaPattern will be imported despite being listed in excludeSchemas . Helps to speed up metadata loading | Oracle:
SQL
All others: empty |
| Case-insensitive regular expression that will exclude a matching fully qualified table name from import. Does not speed up metadata loading. Here are some examples: 1. Excluding all tables in the (source) schemas
SQL
2. Excluding all tables except the ones starting with "public.br" and "public.mk" using a negative lookahead:
SQL
3. Excluding "tablename11" from the list ["tablename1", "tablename11", "company", "companies"]:
SQL
| Empty |
| Fetch size assigned to a resultset on loading metadata | No default value |
| If set to |
|
importer.importIndexes
| If set to TRUE , imports index/unique key/cardinality information |
FALSE
|
importer.importKeys
| If set to TRUE , imports primary and foreign keys |
FALSE
|
| If set to Please note that it is currently not possible to import procedures which use the same name for more than one parameter (e.g. same name for |
|
importer.loadColumnsTableByTable | Set to TRUE to force table by table metadata processing | FALSE /TRUE only for Netsuite and SAP Advantage Database Server |
importer.loadMetadataWithJdbc
| If set to TRUE , turns off all custom metadata load ways |
FALSE
|
importer.loadSourceSystemFunctions | If set to TRUE , data source-specific functions are loaded. Supported for Microsoft SQL Server and Azure | FALSE |
importer.procedureNamePattern
| Procedure(s) to import. If omitted, all procedures will be imported. % as a wildcard is allowed: for example, importer. will import foo , foobar , etc. W orks only in combination with importProcedures | Empty |
| If set to |
|
importer.renameDuplicateColumns
| If set to TRUE , renames duplicate columns caused by either mixed case collisions or autoCorrectColumnNames replacing . with _ . The suffix _n where n is an integer will be added to make the name unique |
TRUE
|
importer.renameDuplicateTables
| If set to TRUE , renames duplicate tables caused by mixed case collisions. The suffix _n where n is an integer will be added to make the name unique |
TRUE
|
importer.replaceSpecSymbsInColNames | If set to TRUE , replaces all special symbols (any symbols not in the ^A-Za-z0-9_ sequence) to the _ symbol in column names of tables |
FALSE
/
TRUE
only for BigQuery |
importer.schemaPattern
| Schema(s) to import. If omitted or has "" value, all schemas will be imported. % as wildcard is allowed: for example, importer.schemaPattern=foo% will import foo , foobar , etc. To specify several schema names or/and patterns, values should be comma-separated and enclosed within double quotes:
importer.schemaPattern="schema1,schema2,pattern1%,pattern2%" . For proper escaping of special characters depending on the type of data source, check Escaping special characters in schema names or use wildcards instead: "[schema_name]" can be rewritten as "%schema%name%" . Helps to speed up metadata loading | Empty |
importer.skipMetadataLoadOnStartup
| If set to |
FALSE
|
importer.tableNamePattern
| Table(s) to import. If omitted, all tables will be imported. % as a wildcard is allowed: for example, importer.tableNamePattern=foo% will import foo , foobar , etc | Empty |
importer.tableTypes
| Comma-separated list (without spaces) of table types to import. Available types depend on the DBMS. Usual format: Other typical types are | Empty |
importer.useCatalogName
| If set to TRUE , uses any non-null/non-empty catalogue name as part of the name in source, e.g. "catalogue"."table"."column" , and in the CData Virtuality Server runtime name if useFullSchemaName is TRUE . If set to FALSE , will not use the catalogue name in either the name in source or the CData Virtuality Server runtime name. Should be set to FALSE for sources that do not fully support a catalogue concept, but return a non-null catalogue name in their metadata - such as HSQL | TRUE / FALSE only for Hive and EXASOL |
importer.useFullSchemaName
| If set to Please note that this may lead to objects with duplicate names when importing from multiple schemas, which results in an exception |
TRUE
|
importer.useProcedureSpecificName
| If set to TRUE , allows the import of overloaded procedures (which will normally result in a duplicate procedure error) by using the unique procedure specific name in the CData Virtuality Server. This option will only work with JDBC 4.0 compatible drivers that report specific names |
FALSE
|
importer.widenUnsignedTypes
| If set to TRUE , converts unsigned types to the next widest type. For example, SQL Server reports tinyint as an unsigned type. With this option enabled, tinyint would be imported as a short instead of a byte |
TRUE
|
Escaping wildcards in importer.catalog
available since v4.0.8
Default values
and importer.catalog='EXA_DB'
importer.useCatalogName=FALSE
available since v4.4
importer.loadSourceSystemFunctions
is available since v4.6
set to importer.importProcedures
TRUE
by default for CData connector since v4.7
Data Source Properties Specific for Oracle ADWC
Name | Description | Default value |
---|---|---|
importer.loadAllOracleTableComments | Set to FALSE to prevent importing table comments during data source creation | TRUE |
importer.loadAllOracleColumnComments | Set to FALSE to prevent importing column comments during data source creation | TRUE |