---
title: "character_set_database - OceanBase 数据库 V4.3.1 | OceanBase 文档中心"
description: character_set_database character_set_database 用于设置默认数据库的字符集。 属性 描述 参数类型 string 默认值 utf8mb4 取值范围 utf8mb4 binary gbk gb18030 utf16 生效范围 Global Session 是否可以为空 是
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

文档反馈![](https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*P8CuR4UJ_FkAAAAAAAAAAAAADiGDAQ/original) OceanBase 数据库分布式版 - V 4.3.1

# character_set_database

更新时间：2026-04-10 11:58:02

[编辑](https://github.com/oceanbase/oceanbase-doc/edit/V4.3.1/zh-CN/700.reference/800.configuration-items-and-system-variables/200.system-variable/300.global-system-variable/900.character_set_database-global.md)  

`character_set_database` 用于设置默认数据库的字符集。

| **属性** | **描述** |
| --- | --- |
| 参数类型 | string |
| 默认值 | utf8mb4 |
| 取值范围 | - utf8mb4 - binary - gbk - gb18030 - utf16 |
| 生效范围 | - Global - Session |
| 是否可以为空 | 是 |

 上一篇 下一篇 ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
