Smaller Footprint Oracle Client Software

Do you need to bundle Oracle Client Software with your application and want something leaner than the Oracle Instant Client? Do you need a quick and simple way to make a native Oracle 10 connection from your Windows PC?

Here’s an option that will provide Oracle 10 native connectivity (not ODBC) under Windows 32-bit using as few Oracle files as possible. Compressed size is 10 Megs compared to 17 Megs for the Oracle Client Basic Lite package.

Oracle10Client.zip

To install, you simply unzip the contents. The oracle key file contains a registry path that must correspond to the folder in which you have installed the client software. In the zip file, bin / oracle.key has

SOFTWARE\ORACLE\myOracle10Client

and the oracle10.reg file has

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\myOracle10Client]
“Oracle_Home”=”C:\\Program Files\\Oracle\\myOracle10Client”

You can use the oracle10.reg file to create the required registry entry.

You should update these files to point to the location in which you install the client software.

You can assemble this distribution yourself by paring down an Oracle 10 Client install to just:

BIN/
NETWORK/
RDBMS/
nls/
oracle10.reg
oracore/

./BIN:
ORASLAX10.DLL
TNSPING.EXE
oci.dll
oracle.key
oraclient10.dll
oracommon10.dll
oracore10.dll
orageneric10.dll
orahasgen10.dll
oraldapclnt10.dll
oran10.dll
orancds10.dll
orancrypt10.dll
oranhost10.dll
oranl10.dll
oranldap10.dll
oranls10.dll
orannzsbb10.dll
oranro10.dll
orantcp10.dll
orantns10.dll
oraocr10.dll
oraocrb10.dll
oraplp10.dll
orapls10.dll
orasnls10.dll
orasql10.dll
oraunls10.dll
orauts.dll
oravsn10.dll
oraxml10.dll

./NETWORK:
ADMIN/
mesg/

./NETWORK/ADMIN:
SAMPLE/
sqlnet.ora
tnsnames.ora

./NETWORK/ADMIN/SAMPLE:
SQLNET.ORA
TNSNAMES.ORA

./NETWORK/mesg:
tnsus.msb

./RDBMS:
mesg/

./RDBMS/mesg:
ocius.msb
oraus.msb

./nls:
data/

./nls/data:
lx00001.nlb
lx10001.nlb
lx1boot.nlb
lx20001.nlb
lx200b2.nlb
lx20367.nlb
lx207d0.nlb

./oracore:
zoneinfo/

./oracore/zoneinfo:
readme.txt
timezlrg.dat
timezone.dat

I should mention how this list was assembled. Initially, I used a very expensive product called AppSight (now BMC AppSight). Once I discovered by Mark Russinovich’s sysinternals, that worked just as well.

Advertisements
Published in: on April 23, 2008 at 6:27 pm  Comments (8)  
Tags: , ,

su for Windows XP

Ever wanted to perform an action as the administrator (super-user) in Windows / Windows XP but you didn’t want to go to the bother of switching users?

I’ve worked out a shortcut that does just that.

%windir%\System32\runas.exe /user:myMachine\adminUser "C:\Program Files\Internet Explorer\IEXPLORE.EXE c:"

Replace myMachine with your computer’s name. Put the name of the administrator account in for adminUser.

Here’s how it looks on my computer:

%windir%\System32\runas.exe /user:orion\root "C:\Program Files\Internet Explorer\IEXPLORE.EXE c:"

When you run this shortcut, you’ll be prompted to enter the password for your admin account.

It works very well for most tasks. You may notice that you have to manually refresh Explorer windows running as admin using this shortcut. For instance, if you rename a file or add a folder the change won’t appear automatically, but if you press F5, it shows up.

This works for Windows 2000 and for Windows XP. I it does not work well under Windows Vista, but then you don’t need it for Vista as the OS makes it easy to elevate your privileges when needed.

Published in: on February 27, 2008 at 12:34 am  Comments (7)  
Tags: , ,