Free Oracle Client For Mac
I want to install SqlPlus client on my Mac, which is 64-bit.Firstly, I installed sqlplus for 64-bit, but I had error:'Segmentation fault: 11'Then I installed sqlplus for 32-bit, but still have a problem it says:../libsqlplus.dylib: no suitable image found ../libsqlplus.dylib: mach-o, but wrong architecture
I have used many tutorials, but still didn't solve this problem.
From the Darwin Kernel version looks like you are running the client on a 10.4 version of MACOSX. The client is supported only on Leopard (10.5).
Oracle Database For Mac
1 Answer
The 11gR2 64-bit instant client works on 10.8.5. It doesn't matter if the database you're connecting to is still 10g, you can use the 11g client. I'm not aware of any reason to still use the old version, unless maybe you need a specific ojdbc
version; but presumably there are use cases or it wouldn't still be listed prominently for download. Anyway, this demonstrates a fresh install:
You can create a tnsnames.ora
anywhere; I put this in the same instant client_11_2
directory:
The 32-bit version works fine too:
You can of course move or rename the instanstclient_11_2
directory to anything you want, just make sure your DYLD_LIBRARY_PATH
, TNS_ADMIN
and (to make life easier) PATH
environment variables follow it. If you have more than one version installed make sure the variables only point to one version at a time so you pick up the right libraries etc. (If you do have multiple versions, making TNS_ADMIN
somewhere central makes much more sense as you only need to maintain one copy of tnsnames.ora
).
I'd need to check, but I think you might have to still use the 32-bit version if you're connecting from Java; it has to batch the architecture of Java itself so I guess it depends which version of that you have installed.
Alex PooleAlex Poole