[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-25。"],[],[],null,["# Exasol\n\nEncrypting network traffic\n--------------------------\n\nIt is a best practice to encrypt network traffic between the Looker application and your database. Consider one of the options described on the [Enabling secure database access](/looker/docs/enabling-secure-db-access) documentation page.\n\nThe Exasol JDBC drivers support encrypted connections. If you're interested, see [Exasol's documentation](https://docs.exasol.com/connect_exasol/drivers/jdbc.htm).\n\nCreate a Looker user\n--------------------\n\nFirst, create a designated Looker user and give it the ability to create sessions: \n\n CREATE USER LOOKER IDENTIFIED BY \"\u003cpassword\u003e\";\n GRANT CREATE SESSION TO LOOKER;\n\n| **Note:** Put the password in double quotes. Otherwise, it will be stored as case-insensitive; *ChangeIt* will be stored as *CHANGEIT*.\n\nGive the Looker user the appropriate `SELECT` permissions for the schema or tables that you plan to access from Looker: \n\n GRANT SELECT ON \u003ctables that will be used by LOOKER\u003e;\n\nAlternatively, you can grant all privileges: \n\n GRANT ALL PRIVILEGES ON SCHEMA \u003cYOUR_SCHEMA\u003e TO LOOKER;\n\nAlternatively, if you do not want to have to re-run `GRANT` statements on newly created tables in the future: \n\n GRANT SELECT ANY TABLE TO LOOKER;\n\nPersistent derived tables\n-------------------------\n\nIf you want to enable [PDTs](https://docs.looker.com/data-modeling/learning-lookml/derived-tables#adding_persistence) for your Looker connection to Exasol, run this command: \n\n CREATE SCHEMA LOOKER_SCRATCH;\n ALTER SCHEMA LOOKER_SCRATCH CHANGE OWNER LOOKER;\n\nAlternatively, you can grant all privileges: \n\n GRANT ALL PRIVILEGES ON SCHEMA LOOKER_SCRATCH TO LOOKER;\n\nEnable symmetric aggregates\n---------------------------\n\nTo allow Exasol to take advantage of [symmetric aggregates](/looker/docs/best-practices/understanding-symmetric-aggregates), create the `hexstring2dec` function: \n\n OPEN SCHEMA \u003cYOUR_SCHEMA\u003e;\n\n create or replace function hexstring2dec(hexstring in varchar(32)) return decimal(36,0)\n is\n pos smallint;\n current_hexstring char(1);\n current_hexstring_dec smallint;\n hexstring_length smallint;\n res decimal(36,0);\n begin\n if hexstring is null then\n return null;\n end if;\n hexstring_length := length(hexstring);\n res := 0;\n pos := 1;\n while pos \u003c= hexstring_length\n do\n current_hexstring := substr(hexstring,pos,1);\n if current_hexstring in ('A','B','C','D','E','F') then\n current_hexstring_dec := ascii(current_hexstring) - ascii('A') + 10;\n else\n current_hexstring_dec := to_number(current_hexstring);\n end if;\n res := (res * 16) + current_hexstring_dec;\n pos := pos + 1;\n end while;\n return res;\n end hexstring2dec;\n /\n\n GRANT EXECUTE ON FUNCTION hexstring2dec;\n\nCreating the Looker connection to your database\n-----------------------------------------------\n\nFollow these steps to create the connection from Looker to your database:\n\n1. In the **Admin** section of Looker, select **Connections** , and then click **Add Connection**.\n2. Select **Exasol** from the **Dialect** drop-down menu.\n\n | **Note:** If you are on a [Looker (Google Cloud core)](/looker/docs/looker-core-overview) instance and you don't see your dialect listed in the **Dialect** drop-down menu, see the [Looker (Google Cloud core) documentation](/looker/docs/looker-core-dialects#supported_dialects_for) to verify that the dialect is supported for Looker (Google Cloud core) instances.\n3. Fill out the connection details. The majority of the settings are common to most database dialects. See the [Connecting Looker to your database](/looker/docs/connecting-to-your-db) documentation page for information.\n\n4. To verify that the connection is successful, click **Test** . See the [Testing database connectivity](/looker/docs/testing-db-connectivity) documentation page for troubleshooting information.\n\n5. To save these settings, click **Connect**.\n\nFeature support\n---------------\n\nFor Looker to support some features, your database dialect must also support them.\n\nExasol supports the following features as of Looker 25.14:"]]