Creating the Looker user
Create a Looker database user with a secure password.
Grant read permissions on the schema(s) that you would like to use in Looker.
Setting up a PDT schema
If using PDTs, create a scratch schema for PDTs to be written into.
Configuring a connection
To connect a SAP HANA database to Looker:
In the Admin section of Looker, select Connections, and then select New Connection.
Fill out the connection details (see the Connecting Looker to your database documentation page for more information):
- Name: The name of the connection. This is how you will refer to the connection in LookML projects.
- Dialect: SAP HANA.
- Port: The database port. The default port is 30015.
- Host: Hostname.
- Database: The name of your database.
- Username: The database username.
- Password: The user password.
- Schema: The default schema to use when none is specified. Entering a schema is optional.
- Persistent Derived Tables: Check this box to enable persistent derived tables.
- Temp Database: Schema to use for PDTs.
- Additional Params: Any additional SAP HANA JDBC connection properties.
- PDT and Datagroup Maintenance Schedule: A
cronexpression that indicates when Looker should check datagroups and persistent derived tables. Read more about this setting in our PDT and Datagroup Maintenance Schedule documentation.
- SSL: Check to enable SSL.
- Verify SSL: Check to enforce strict hostname verification.
- Max Connections: The default is 25.
- Connection Pool Timeout: The default is 120 seconds.
- SQL Runner Precache: To cause SQL Runner not to preload table information and to load table information only when a table is selected, uncheck this option. Read more about this setting in our SQL Runner Precache documentation.
- Database Time Zone: Specify the time zone used in the database. Leave this field blank if you do not want time zone conversion. See the Using time zone settings documentation page for more information.
Click Test These Settings to verify a connection.
If you have any issues, check out our Testing Connections documentation.
Click Add Connection to save these settings.
Test the connection in SQL Runner. Navigate to SQL Runner, select your connection and schema, and then check if you can see your database tables.
For Looker to support some features, your database dialect must also support them.
In Looker 22.10, SAP HANA supports the following Looker features:
After completing the database connection, configure authentication options.