# coding=utf-8 import cx_Oracle import os os.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.UTF8'
instant client 安装完, 只要path 里有安装目录, cx_oracle 就能找到对应的dll 。 所以注册表里应该没有相关内容。
我是用cx_Oracle 有2个地方: 1、 windows 环境变量 要设置成 和oracle 一样的字符集。 我的是 NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK 2、python 里用 utf-8 # coding=utf-8 import cx_Oracle import os os.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.UTF8'
37,720
社区成员
34,239
社区内容
加载中
试试用AI创作助手写篇文章吧