---
title: "安装cx_Oracle过程中出现的问题及解决方法"
author: "frenchmay"
date: "2011-05-27T09:24:10Z"
tags: ["Access", "Oracle", "Python", "Windows", "XP"]
categories: ["编程语言"]
slug: "cx-oracle"
draft: false
lastmod: "2011-05-27T09:24:10Z"
id: 1060631
url: "https://frenchmay.iteye.com/blog/1060631"
---

Windows xp
python 2.7
oracle 客户端9.0
服务器客户端11g

安装cx_Oracle过程中出现的问题

cx_Oracle.InterfaceError: Unable to acquire Oracle environment handle

下载\instantclient_10_2
然后把里面的动态链接库都复制到C:\Python27\Lib\site-packages下

cx_Oracle.DatabaseError: ORA-12705: Cannot access NLS data files or invalid 

environment specified
把注册表里\HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE 本级和下级目录下的NLS_lang 的

NA值修改为SIMPLIFIED CHINESE_CHINA.ZHS16GBK；
