oracle的安装与plsql的环境配置
oracle的安装与plsql的环境配置
1. 首先得有oracle的安装包和plsql的安装包,安装包地址可见百度云 http://pan.baidu.com/s/1miTqhmg
2. 解压,找到set.exe文件,双击安装即可
注意: 安装的时候有两个目录是要自己创建的,否则安装不成功,自己安装进去看就行
3. Windows 64位下装Oracle 11g 64位,PLSQL Developer使用出现以下问题:
(1) database下拉框为空
(2) 强制登录会弹出PLSQL Developer并不支持Oracle 64位客户端连接。
解决办法:下载32位Oracle客户端,
下载免安装版的,http://www.oracle.com/technetwork/topics/winsoft-085727.html,我下载的是instantclient-basic-nt-11.2.0.2.0.zip。
解压instantclient-basic-nt-11.2.0.2.0.zip,放到oracle安装路径如: D:\app\ganting\product\11.2.0\instantclient
Copy files sqlnet.ora and tnsnames.oRA
from D:\app\ganting\product\11.2.0\client_1\network\admin\sample
to D:\app\ganting\product\11.2.0\instantclient\network\ADMIN
4. Set PLSQL Developer
Open PLSQL Developer, not login PLSQL Developer,Tools->>Preferences:
Oracle Home:D:\app\ganting\product\11.2.0\client_1\BIN
OCI Library:D:\app\ganting\product\11.2.0\instantclient\oci.dll
5. Set environment variables
Check Oracle installed successfully or not
1)win+R -> cmd
2)sqlplus /nolog
3)If no error, and show oracle version, oracle install successfully, or set environment variables.
ORACLE_HOME
->> D:\app\ganting\product\11.2.0\client_1
TNS_ADMIN
->> D:\app\ganting\product\11.2.0\instantclient\network\ADMIN
Path
->> D:\app\ganting\product\11.2.0\client_1\BIN
->> D:\app\ganting\product\11.2.0\instantclient\network\ADMIN
6. Open PLSQL Developer,登录发现中文表名乱码:
解决方法:
添加环境变量:NLS_LANG ->> AMERICAN_AMERICA.UTF8
添加环境变量跟Java一样就不一一讲述怎么添加了,欢迎技术交流个人微信199561xjt
7. 注册表
Regedit-> HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraClient11g_home1
8. Set sShortDate Format