Snowflake Connection Configuration: Difference between revisions

From QPR ProcessAnalyzer Wiki
Jump to navigation Jump to search
Line 5: Line 5:


# Create a new account to Snowflake in the Snowflake site: https://www.snowflake.com/ (or use existing account). The account is created to a certain cloud and site, so consider a location that is close to the QPR ProcessAnalyzer hosting site.
# Create a new account to Snowflake in the Snowflake site: https://www.snowflake.com/ (or use existing account). The account is created to a certain cloud and site, so consider a location that is close to the QPR ProcessAnalyzer hosting site.
# In '''Account''' > '''Users''', click '''User''' button to create a new user. Define '''User Name''' QPRPA and define a strong password.
# In '''Account''' > '''Roles''', click '''Role''' button to create a new role. Define '''Name''' QPRPA.
# In '''Account''' > '''Roles''', click '''Role''' button to create a new role. Define '''Name''' QPRPA.
# In '''Account''' > '''Users''', click '''User''' button to create a new user. Define '''User Name''' QPRPA and define a strong password. Check that the '''Force user to change password on first time login''' is disabled.
# Select the created users, and click '''Grant to User'''.
# In '''Compute''' > '''Warehouses''', click '''Warehouse''' button to create a new warehouse. Define '''Name''' QPRPA, and select suitable '''Size''' for the warehouse. In the '''Advanced Warehouse Options''', check that '''Auto Resume''' and '''Auto Suspend''' are enabled. Set the '''Suspend After''' time based on your performance requirements (for example 5 minutes is a good initial value).
# In '''Compute''' > '''Warehouses''', click '''Warehouse''' button to create a new warehouse. Define '''Name''' QPRPA, and select suitable '''Size''' for the warehouse. In the '''Advanced Warehouse Options''', check that '''Auto Resume''' and '''Auto Suspend''' are enabled. Set the '''Suspend After''' time based on your performance requirements (for example 5 minutes is a good initial value).
# Select the created warehouse and in the '''Privileges''' section, select '''Privilege''' button. To '''Role''' select the QPRPA role and select '''Privileges''' select '''MONITOR''', '''OPERATE''' and '''USAGE'''.
# Select the created warehouse and in the '''Privileges''' section, select '''Privilege''' button. To '''Role''' select the QPRPA role and select '''Privileges''' select '''MONITOR''', '''OPERATE''' and '''USAGE'''.
# In '''Data''' > '''Databases''', click '''Database''' button to create a new database. Define '''Name''' QPRPA.
# In '''Data''' > '''Databases''', click '''Database''' button to create a new database. Define '''Name''' QPRPA. To '''Role''', select the QPRPA role. To '''Privileges''', select '''USAGE'''.
# Select the created database, and in the '''Privileges''' section, click '''Privilege'''.  
# Select the created database, and click '''Schema'''. Define '''Name''' QPRPA.
# Select the created database, and click '''Schema'''. Define '''Name''' QPRPA.
# Select the created schema, and in the '''Privileges''' section, click '''Privilege'''. To '''Role''', select the QPRPA role. To '''Privileges''', select '''CREATE VIEW''', '''CREATE TABLE''', '''CREATE FILE FORMAT''', '''USAGE'''.
# Select the created schema, and in the '''Privileges''' section, click '''Privilege'''. To '''Role''', select the QPRPA role. To '''Privileges''', select '''CREATE VIEW''', '''CREATE TABLE''', '''CREATE FILE FORMAT''', '''USAGE'''.

Revision as of 22:06, 27 January 2022

This page describes how to configure Snowflake and QPR ProcessAnalyzer for the Snowflake connection.

Snowflake configuration

These instructions provide an example how to configure Snowflake. The configuration can also be done differently based on needs and other usage of the same Snowflake account.

  1. Create a new account to Snowflake in the Snowflake site: https://www.snowflake.com/ (or use existing account). The account is created to a certain cloud and site, so consider a location that is close to the QPR ProcessAnalyzer hosting site.
  2. In Account > Roles, click Role button to create a new role. Define Name QPRPA.
  3. In Account > Users, click User button to create a new user. Define User Name QPRPA and define a strong password. Check that the Force user to change password on first time login is disabled.
  4. Select the created users, and click Grant to User.
  5. In Compute > Warehouses, click Warehouse button to create a new warehouse. Define Name QPRPA, and select suitable Size for the warehouse. In the Advanced Warehouse Options, check that Auto Resume and Auto Suspend are enabled. Set the Suspend After time based on your performance requirements (for example 5 minutes is a good initial value).
  6. Select the created warehouse and in the Privileges section, select Privilege button. To Role select the QPRPA role and select Privileges select MONITOR, OPERATE and USAGE.
  7. In Data > Databases, click Database button to create a new database. Define Name QPRPA. To Role, select the QPRPA role. To Privileges, select USAGE.
  8. Select the created database, and in the Privileges section, click Privilege.
  9. Select the created database, and click Schema. Define Name QPRPA.
  10. Select the created schema, and in the Privileges section, click Privilege. To Role, select the QPRPA role. To Privileges, select CREATE VIEW, CREATE TABLE, CREATE FILE FORMAT, USAGE.