how can I find out which Oracle Home the connection is using?

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
kevinherring
Posts: 64
Joined: Wed 04 Jan 2006 15:32

how can I find out which Oracle Home the connection is using?

Post by kevinherring » Wed 06 Jun 2007 10:35

Hi
As the subject states, I am trying to confirm which Oracle Home the driver is using at run-time.
I can itterate through OracleHomes ok, and print the available ones out.
There is also the OracleConnection.Home property but this is blank, which the documentation says means the default is being used. How can I find out what the default is?

I have no ORACLE_HOME environment variable on my machine; the path to my home is hard coded into the 'path' system variable.

Thanks
Kevin

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Wed 06 Jun 2007 11:04

Try OracleConnection.Homes.DefaultHome.

kevinherring
Posts: 64
Joined: Wed 04 Jan 2006 15:32

Post by kevinherring » Wed 06 Jun 2007 11:09

oops, didnt see that one hiding in there! Thanks Alexey, that's great.

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Wed 06 Jun 2007 11:36

You are welcome.

Post Reply