> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-fbfa8bee.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 如果通过 ODBC 使用 Oracle 时遇到编码问题怎么办？

> 本页介绍了如果通过 ODBC 使用 Oracle 时遇到编码问题该如何处理

如果您通过 Oracle ODBC 驱动程序将 Oracle 用作 ClickHouse 外部字典的数据源，则需要在 `/etc/default/clickhouse` 中将 `NLS_LANG` 环境变量设置为正确的值。更多信息，请参见 [Oracle NLS\_LANG FAQ](https://www.oracle.com/technetwork/products/globalization/nls-lang-099431.html)。

**示例**

```sql theme={null}
NLS_LANG=RUSSIAN_RUSSIA.UTF8
```
