---
title: "解决PL/SQL登录时的一个问题"
author: "我是小仙321"
date: "2013-04-22T15:23:38Z"
tags: []
categories: ["数据库"]
slug: "pl-sql"
draft: false
lastmod: "2013-04-23T11:27:44Z"
id: 1851425
url: "https://java-future.iteye.com/blog/1851425"
---

安装了win64的Oracle11gR2，然后安装了PL/SQL，登录时出现初始化错误，提示：[make sure you have the 32 bits oracle client installed](http://blog.csdn.net/microfhu/article/details/7585174)。

解决办法：

下载instantclient-basic-nt-11.2.0.2.0.zip，解压。放到某处，如：D:\\instantclient-basic-nt-11.2.0.2.0

先不登录，进入到PL/SQL，工具→首选项，OCI库填入：D:\\instantclient-basic-nt-11.2.0.2.0\\instantclient\_11\_2\\oci.dll，确定。

在环境变量的系统变量中，添加变量：

变量名:TNS\_ADMIN

变量值：D:\\myoracle\\product\\11.2.0\\dbhome\_1\\NETWORK\\ADMIN

(来源于Oracle的安装目录)

问题即解决。

中文乱码问题：

添加环境变量：

变量名：NLS\_LANG

变量值：AMERICAN\_AMERICA.UTF8