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

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

Postby 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
kevinherring
 
Posts: 64
Joined: Wed 04 Jan 2006 15:32

Postby Alexey » Wed 06 Jun 2007 11:04

Try OracleConnection.Homes.DefaultHome.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Postby kevinherring » Wed 06 Jun 2007 11:09

oops, didnt see that one hiding in there! Thanks Alexey, that's great.
kevinherring
 
Posts: 64
Joined: Wed 04 Jan 2006 15:32

Postby Alexey » Wed 06 Jun 2007 11:36

You are welcome.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43


Return to dotConnect for Oracle