ORA-12738: Express Instant Client: unsupported client national character set string ORACLE 报错 故障修复 远程处理

文档解释

ORA-12738: Express Instant Client: unsupported client national character set string

Cause: Only UTF8 and AL16UTF16 are allowed to be used as the national character set. Instant Client has only minimal character sets.

Action: Do not use Express Instant Client for this character set

ORA-12738: Express Instant Client:不支持的客户端国家字符集字符串错误

官方解释

ORA-12738: Express Instant Client错误表示数据库客户端试图连接到不支持的国家字符集,或者数据库使用的字符集与客户端使用的字符集不匹配。

常见案例

在Windows上,远程登录服务器尝试使用“express instant client”连接数据库,但是发生了 ORA-12738: Express Instant Client错误。

正常处理方法及步骤

(1)确认两台机器的字符集都是一致的,可以使用命令SHOW NLS_CHARACTERSET查看当前机器使用的字符集。

(2)如果两台机器使用的字符集不一致,可以在远程登录服务器上使用命令ALTER SESSION SET NLS_LANG.CHARACTERSET=[]来设置当前会话使用的字符集,[]处填写数据库使用的字符集。

(3)确认Oracle客户端支持此字符集,可以查看OTL文档( online Technical Library)来查询数据库支持的字符集。

(4)重新安装Oracle客户端,在安装时指定对应的字符集,或者在安装完成后重新设置Oracle客户端的环境变量。


数据运维技术 » ORA-12738: Express Instant Client: unsupported client national character set string ORACLE 报错 故障修复 远程处理