Skip to main content
Skip table of contents

Connection and Data Source Management

You are looking at an older version of the documentation. The latest version is found here.

In the Data Virtuality Server, different data sources can be queried using specific connectors. On this page, you will find the syntax and lists of parameters for dedicated stored procedures; for more general information on their use, please refer to the Connecting Data Sources chapter.

SYSADMIN.createConnection

This procedure creates a connection:

SQL
SYSADMIN.createConnection(IN name string, IN jbossCLITemplateName string, IN connectionOrResourceAdapterProperties string, IN encryptedProperties string)

It takes the following parameters:

ParameterDescription
nameName of the new connection
jbossCLITemplateNameName of the CLI template used
connectionOrResourceAdapterPropertiesProperties of the new connection; optional
encryptedPropertiesOptional encrypted properties

The actual JNDI name will be formed from the given name and the CLI template name joined with the minus sign (like template-name).

SYSADMIN.importConnection

This procedure imports a connection which will not fail if a connection cannot be established:

SQL
SYSADMIN.importConnection(IN name string, IN jbossCLITemplateName string, IN connectionOrResourceAdapterProperties string, IN encryptedProperties string)

It takes the following parameters:

ParameterDescription
nameName of the imported connection
jbossCLITemplateNameName of the CLI template used
connectionOrResourceAdapterPropertiesProperties of the new connection; optional
encryptedPropertiesOptional encrypted properties

The actual JNDI name will be formed from the given name and the CLI template name joined with the minus sign (like template-name).

SYSADMIN.removeConnection

This procedure removes a connection:

SQL
SYSADMIN.removeConnection(IN name string)

It takes a single parameter: name of the connection to be removed.

SYSADMIN.createDataSource

This procedure creates a data source:

SQL
SYSADMIN.createDataSource(IN name string, IN translator string, IN modelProperties string, IN translatorProperties string, encryptedModelProperties string, encryptedTranslatorProperties string)

It takes the following parameters:

ParameterDescription
nameName of the new data source
translatorName of translator
modelPropertiesModel properties; optional
translatorPropertiesTranslator properties; optional
encryptedModelPropertiesOptional encrypted model properties
encryptedTranslatorPropertiesOptional encrypted translator properties
If the data source is based on a modular connector, the modular connector should be deployed via the SYSADMIN.deployModularConnector procedure before creating the data source. Please refer to Modular Connectors Management for more details.

SYSADMIN.importDataSource

This procedure imports a data source:

SQL
SYSADMIN.importDataSource(IN name string, IN translator string, IN modelProperties string, IN translatorProperties string, encryptedModelProperties string, encryptedTranslatorProperties string)

It takes the following parameters:

ParameterDescription
nameName of the imported data source
translatorName of translator
modelPropertiesModel properties; optional
translatorPropertiesTranslator properties; optional
encryptedModelPropertiesOptional encrypted model properties
encryptedTranslatorPropertiesOptional encrypted translator properties
If the data source is based on a modular connector, the respective modular connector should be deployed via the SYSADMIN.deployModularConnector procedure before importing the data source. Please refer to Modular Connectors Management for more details.

SYSADMIN.recreateConnection

This procedure removes the specified connection and then recreates it using the stored template name and properties:

SQL
SYSADMIN.recreateConnection(IN name string)

SYSADMIN.removeDataSource

This procedure removes the specified data source:

SQL
SYSADMIN.removeDataSource(IN name string)

SYSADMIN.refreshDataSource

This procedure refreshes the specified data source:

SQL
SYSADMIN.refreshDataSource(IN name string, OUT reply integer NOT NULL RESULT)

The procedure may have one of the following return values:

Return valueDescription
-1Value returned when refreshing a virtual or system schema (VIEWS, SYS, SYSADMIN, PG_CATALOG, UTILS, SYSADMIN_VDB, SYSLOG, and INFORMATION_SCHEMA)
1Everything is OK
0The procedure has already been called by someone else

SYSADMIN.refreshSchema

This procedure refreshes the specified schema, physical or virtual:

SQL
SYSADMIN.refreshSchema(IN name string)

SYSADMIN.refreshAllDataSources

This procedure refreshes all data sources:

SQL
SYSADMIN.refreshAllDataSources() 

SYSADMIN.refreshAllSchemas

This procedure refreshes all schemas:

SQL
SYSADMIN.refreshAllSchemas() 

SYSADMIN.testConnection

This procedure checks the connection with the given properties:

SQL
SYSADMIN.testConnection(IN jbossCLITemplateName string, IN connectionOrResourceAdapterProperties string, IN translator string, IN translatorProperties string)

SYSADMIN.getDataSourceMetadataDiff

This procedure returns metadata difference for the specified data source:

SQL
SYSADMIN.getDataSourceMetadataDiff(IN name string)

SYSADMIN.getAllDataSourcesMetadataDiff

This procedure returns metadata differences for all data sources:

SQL
SYSADMIN.getAllDataSourcesMetadataDiff() 

SYSADMIN.getCatalogs

This procedure returns the list of data source catalogs:

SQL
SYSADMIN.getCatalogs"("connectionName" => 'connection_name')

It takes a single parameter, the connection name, and returns values which can be used in creating a data source:

Database

Returned values

Additional Information

BigQuery

projectId

Connection without a projectId cannot be created

PostgreSQL

database list


Redshift

database list


Snowflake

database list


SQL Server

database list


SYSADMIN.getSchemas

This procedure returns the list of data source schemas:

SQL
SYSADMIN.getSchemas"("connectionName" => 'connection_name')

It takes a single parameter, the connection name, and returns values that can be used in creating a data source:

Database

Returned values

Additional Information

BigQuery

Schemas within a project

Connection without a projectId cannot be created

Oracle

Namespace within a database

Connection without a database cannot be created

PostgreSQL

Schemas within a database

Without specifying a database, PostgreSQL only lists system schemas and the default one (public) for the default database (postgres)

Redshift

Schemas within a database

Redshift cannot list schemas without specifying a database

Snowflake

Schema list per database

Lists all schemas if the db property is not specified in the connection. If it is specified, only schemas within this database are listed

SQL Server

Schema list per database

All schemas are listed regardless of a database being specified 

Connection Properties Validation

Connection properties are validated against the CLI templates when a connection is created, edited, deleted, and tested. Connection parameters not present in the CLI template are not accepted.


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.