Setting up PLSQL Developer to access native 64 -bit Oracle
Due to the 64 -bit Oracle 11.2.0.1 installed on the native Windows Server 2008 R2 X64 , when trying to access it using PLSQL Developer , it reports that the oci.dll file cannot be loaded. It turns out that oci.dll is 64 -bit, so naturally the 32 -bit application PLSQL Developer cannot be loaded.
After testing, the solution is as follows:
1. Download 32 -bit instantclient-basic-win32-11.2.0.1.0.zip
Oracle official website address: http://www.oracle.com/technetwork/topics/winsoft-085727.html
And extract it to a directory, such as C:\oracle\instantclient_10_2 ;
2. Copy the system's tnsnames.ora to this directory;
如D:\app\wangshaoxuan\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.oraà
C:\oracle\instantclient_10_2;
3. Set Oracle_Home and OCI Library in PLSQL Developer , as shown below
4. Edit the following bat file in the PLSQL Developer directory , replace its shortcut, and start PLSQL Developer :
@echo off
set path=C:\oracle\instantclient_10_2
set ORACLE_HOME=C:\oracle\instantclient_10_2
set TNS_ADMIN=C:\oracle\instantclient_10_2
set NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
start plsqldev.exe
Note: The first half of NLS_LANG must be AMERICAN_AMERICA , because the instant client does not support other languages; the second half can be adjusted according to the character set of your database.
Appendix: View Database Character Sets :
C:\Users\Administrator>sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Fri Dec 16 01:53:13 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> conn sys/sys@whcg as sysdba
connected.
SQL> select userenv ('language') from dual;
USERENV('LANGUAGE')
--------------------------------------------------
SIMPLIFIED CHINESE_CHINA.ZHS16GBK