Print Thread
Oracle Home
#32729 02/14/08 05:41 PM
Joined: Aug 2006
Posts: 6
R
Member
OP Offline
Member
R
Joined: Aug 2006
Posts: 6
In PL/SQL developer, you can change your default oracle home when connecting to a database. Query reporter don't have this option so you can flip flop between oracle homes. Is there a solution to this? Thanks!

Re: Oracle Home
#32730 02/14/08 07:04 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
The Query Reporter use the Primary Oracle Home by default. This is the home that is listed first in the PATH environment variable.

To use a different home, you can change the PATH, or use the OracleHome command-line parameter. For example:
Code
"C:\Program Files\QueryReporter" OracleHome=OraDb11g_home1
Note that this is the logical name of the home, and not a registry key name or directory name.


Marco Kalter
Allround Automations
Re: Oracle Home
#32731 03/18/08 10:23 PM
Joined: Aug 2006
Posts: 6
R
Member
OP Offline
Member
R
Joined: Aug 2006
Posts: 6
Marco,

Where should I put the command line parameter? I tried putting it on the properties screen but
I noticed that in your example, the command line didn't include ".exe" as in "QueryReporter.exe". I'm a bit confused.

Sonny

Re: Oracle Home
#32732 03/19/08 03:12 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
You should indeed use the shortcut properties. If forgot to include the extension, which is indeed also present:
Code
"C:\Program Files\QueryReporter.exe" OracleHome=OraDb11g_home1


Marco Kalter
Allround Automations
Re: Oracle Home
#32733 03/19/08 10:13 PM
Joined: Aug 2006
Posts: 6
R
Member
OP Offline
Member
R
Joined: Aug 2006
Posts: 6
Marco,

Here's the command line I put in there - "C:\Program Files\Query Reporter\QueryReporter.exe" OracleHome=OraHome81

It didn't work for me. I got an error message saying "Unknown Parameter ORACLEHOME=". Note that there's no spaces before and after the equal sign on the command line. But when I put the spaces, I don't get the error message anymore but it don't list the 8.1 databases. It still lists the 10g databases.

Re: Oracle Home
#32734 03/20/08 03:18 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
Hmm, can you modify your PATH environment variable and change it so that the BIN subdirectory of your primary oracle home is listed first?


Marco Kalter
Allround Automations
Re: Oracle Home
#32735 03/20/08 05:03 PM
Joined: Aug 2006
Posts: 6
R
Member
OP Offline
Member
R
Joined: Aug 2006
Posts: 6
It works when I put the 8.1 path first before the 10g path. But I don't want to go with this solution since I will always have to change the PATH everytime I want to access the other database list.

Re: Oracle Home
#32736 03/21/08 03:32 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
Note that you can configure each database list by using the Oracle Net Configuration Assistant. You can also create a single tnsnames.ora file for both homes, and use the TNS_ADMIN variable to point to this file.


Marco Kalter
Allround Automations
Re: Oracle Home
Marco Kalter #33791 04/14/09 12:01 PM
Joined: Feb 2001
Posts: 16
Farmington, CT USA
Member
Offline
Member
Joined: Feb 2001
Posts: 16
Farmington, CT USA
Try creating a .cmd file which changes your path to see the 8i bin directory before the 10g and then invokes the queryreporter as above.

Create a shortcut to run the .cmd file and point the icon to the queryreporter.exe.

this should allow you access to a secondary oracle home for the program.

use the regular shortcut to get to the 10g stuff.


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.044s Queries: 15 (0.018s) Memory: 2.5318 MB (Peak: 3.0392 MB) Data Comp: Off Server Time: 2024-05-16 13:04:41 UTC
Valid HTML 5 and Valid CSS