在使用toad 或 PL/SQL Developer 管理、连接Oracle数据库的时候,常要面对10-11-12等不同版本的数据库,时常会出现客户端版本过低或者过高导致一些功能无法顺利使用,如版本过低无法连接数据库,如无法直接使用12C的client导出11g的数据等等。为此在Windows机器上配置多个client是非常有用的,也能极大提高工作效率。
以下是本人配置的步骤:
1.Oracle官网下载安装11g的client
官网win x64各版本client下载地址:
https://www.oracle.com/technetwork/topics/winx64soft-089540.html
本人从官网爬下来的下载地址(64位三合一版):
https://download.csdn.net/download/lanxuxml/10793673
明明上传资源的时候没设置下载分数,怎么下载的时候又变成8分了,有知道怎么设置成0分的麻烦留言告知:
2.Oracle官网下载12c的client并解压至安装目录
下载地址同上。
3.win+r 输入regedit打开注册列表至\HKEY_LOCAL_MACHINE\SOFTWARE\Oracle,NEW KEY新增KEY_OraClient12c_home1,再新增NLS_LANG、ORACLE_HOME、ORACLE_HOME_NAME三个string value,填入对应的值(需要根据个人实际情况填写)。如图所示:
至此,配置完成(可以根据实际需要同样配置10的的client)。
下图是通过toad打开后的client选择,亲测均可用:
在PL/SQL Developer 中选用不通版本的client:
记得把OCI目录也选好: