Creating the Looker user
Create a Looker database user with a secure password.
CREATE USER LOOKER PASSWORD <SOME_PASSWORD>
Grant read permissions on the schema(s) that you would like to use in Looker.
GRANT SELECT ON SCHEMA <YOUR_SCHEMA> TO LOOKER
Setting up a PDT schema
If using PDTs, create a scratch schema for PDTs to be written into.
CREATE SCHEMA LOOKER_SCRATCH OWNED BY LOOKER
Configuring a connection
To connect a SAP HANA database to Looker:
In the Admin section of Looker, select Connections, and then click Add 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.
For Looker to support some features, your database dialect must also support them.
In the latest release of Looker, SAP HANA supports the following Looker features:
After completing the database connection, configure authentication options.