Oracle client without registry

We have several clients who start our app using a batch-file. In this batch-file several oracle-oriented environment variables can be set. In this way they can eliminate the need of registry entries and they can start different Oracle apps with their specific Oracle needs.

Our DOA-app will not start if the registry-key HKLM\SOFTWARE\ORACLE value ORACLE_HOME is not present. You can overwrite the value in the batchfile but the key has to be there.

Is their anyway to create a batch where the DOA-app can start when the registry-key is not present.
 
Direct Oracle Access uses the registry to find the Oracle Home directory where the Oracle Net library resides (oci.dll for Oracle Net 8.0.5 and later).

You can however use the OCIDLL variable in the OracleCI unit to explicitly point to this library. You can also use the OCIDLL= command line parameter. For example:

YourApp.exe ocidll=k:\ora817\bin\oci.dll

I think that Oracle Net itself needs the same registry section though, so this exercise may be pointless.

------------------
Marco Kalter
Allround Automations
 
Back
Top