Guide to Setting Up and Executing Ingestion Task From Azure SQL to Snowflake - Copy - Copy
Guide to Setting Up and Executing Ingestion Task From Azure SQL to Snowflake - Copy - Copy
USE <db>;
EXEC sys.sp_cdc_enable_db
● Create a new user role and grant it to the Data Ingestion and Replication user. Use the
following SQL statements:
● Grant usage on the Snowflake virtual warehouse to the new role. Use the following
SQL statement:
grant usage on warehouse {warehouse_name} to role INFACMI;
● Grant usage on the Snowflake database to the new role. Use the following SQL
statement:
● Set the default role for the newly created user. Use the following SQL statement:
alter user {idmc_user} set default_role=INFACMI;
openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out rsa_key.p8 -nocrypt
To generate an encrypted version, use the following command, which omits -nocrypt:
openssl genrsa 2048 | openssl pkcs8 -topk8 -v2 des3 -inform PEM -out rsa_key.p8
From the command line, generate the public key by referencing the private key. The following
command assumes the private key is encrypted and contained in the file named rsa_key.p8.
● Select the connection type as SQL Server and fill in the database information::
Where :
- Connection : Name of the connection.
- Runtime Environment: The name of the runtime environment where you want to run
the tasks.Specify a Secure Agent, Hosted Agent, or serverless runtime environment
- SQL Server Version: Microsoft SQL Server database version.
- Authentication types: SQL Server authentication
- Domain:The domain name of the Windows user
- User Name: User name for the database login. The user name can't contain a
semicolon.
To connect to Microsoft Azure SQL Database, specify the user name in the following
format: username@host
- Password : Password for the database login. The password can't contain a semicolon.
- Host : Name of the machine hosting the database server.To connect to Microsoft Azure
SQL Database, specify the fully qualified host name.
- Instance Name: Instance name of the Microsoft SQL Server database.
- Database Name: Database name for the Microsoft SQL Server target connection
- Schema : Schema used for the target connection.
3.2. Snowflake
● Log in to the IICS console and create a new connection
● Select the connection type as Snowflake Data Cloud and fill in the database information
Where :
- Connection Name: Name of the connection.
- Runtime Environment : The name of the runtime environment where you want to run
tasks.
Select a Secure Agent, Hosted Agent, or serverless runtime environment.
- Account: The name of the Snowflake account. For example,
https://app.snowflake.com/us-east-2.aws/<123abc>/dashboard, your account name is
123abc.us-east-2.aws.
- Warehouse: The Snowflake warehouse name.
- Private Key File : Path to the private key file, including the private key file name, that
the Secure Agent uses to access Snowflake.key make in 2.2.2
- Additional JDBC URL Parameters : add database and schema values when you
connect to Snowflake:
db=mydb&schema=public
- Private Key File Password:If you generate a keypair with encypt . Password for the
private key file
● After filling in the information, click on 'Test Connection
4. Create Database Ingestion Task
● In the Informatica console, navigate to the Data Integration page.
● View the ingestion information of the ingestion tables in the Object Detail: