Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PL/SQL developer with oracle 32-bit/64-bit client

I have Oracle 64-bit client installed to run with my weblogic application. I learnt that pl-sql developer doesn't work with oracle 64-bit client so now i have both 32-bit and 64-bit clients installed on my machine and my ORACLE_HOME variable points to 64-bit client.

I am not able to start pl/sql developer even i specify the 32-bit client in Tools->Preferences of pl-sql developer version 8.0.4.

I changed my oracle client to 32-bit client then i was able to start pl-sql developer but my application doesn't work.

Is there a way i can run PL/SQL developer whilst pointing ORACLE_HOME to 64-bit oracle client. I am not sure specifying the ORACLE_HOME explicitly in Tools->Preferences of pl sql developer (for user/default as well as system preferences) has any effect as it picks the oracle home from the environment variable i believe.

Thanks, Adithya.

like image 899
Adithya Avatar asked Dec 21 '12 07:12

Adithya


People also ask

Can Oracle 32 and 64 bit client coexist?

You can install Oracle 32-bit and Oracle 64-bit on the same server. The two installs must reside in different ORACLE_HOME directories though. So install Oracle 32-bit in a different directory than your 64-bit version and they will both coexist quite nicely.

Can 32 bit Oracle client connect 64 bit database?

Yes you can do that, there's no limitation regarding that (64-bit, 32-bit).

Is Oracle client required for PL SQL Developer?

To connect to an Oracle database, the 32 bit PL/SQL Developer version requires a 32 bit Oracle Client and the 64 bit PL/SQL Developer version requires a 64 bit Oracle Client.

What is the difference between 32 bit and 64 bit Oracle client?

1) 32bit Oracle is the Oracle that runs on all operating systems. It has a 4gig (or less, depending on OS) address limit. It uses 32bit pointers which are limited to 4gig. Now, 64bit can address a much larger memory space.


1 Answers

You'll need to install the two clients into separate Oracle Home locations, for example I've gone for C:\OracleHome and C:\OracleHome32

Then set up an Environment Variable, called TNS_ADMIN with the folder that contains your default TNSnames.ora file as the value (for me it is C:\OracleHome\network\admin)

Keep your preferences in PL/SQL Developer, and make sure you also specify the OCI library (mine is C:\OracleHome32\oci.dll)

Finally, using regedit.exe, add a second key under ORACLE (HKEY_LOCAL_MACHHINE\SOFTWARE\ORACLE). I've called mine KEY_OraClient11g_home1 and KEY_OraClient11g_home2. Create the same 4 strings in the second key, with the appropriate changes to the data (e.g. ORACLE_HOME should have C:\OracleHome32 as it's data field in my example)

Restarting all applications should now let you use PL/SQL Developer seamlessly, whilst also defaulting to the 64-bit Oracle home for your weblogic application.

like image 139
michristofides Avatar answered Sep 22 '22 09:09

michristofides