How to determine Oracle 10g Home programatically?

With the Oracle 9i client, I was able to figure out (in a program or install script) where the Oracle 9i home folder was by looking at the registry key /HKEY_LOCAL_MACHINE/Software/Oracle/Oracle_Home. However, I don't see anything like this for the Oracle 10g client. I see a branch entitled KEY_OraClient10g_home but I don't think that is consistant across all Oracle 10g client installs (i.e. I think I entered the name OraClient10g_home when I installed the client).
So... is there a way (programatically) to determine what the 10g home folder is? Thanks.
Tom

I just checked a fresh install of 10gR2, and a hybrid we have that is running 9iR2 with a 10g client in place. If you are looking for 10g home information, you will want to enumerate keynames under the HKLM/Software/Oracle key. You are looking for keys that begin with KEY_. These are likely Oracle homes.
While it is true that you can name your Oracle home what you want to, Oracle seems to prefix KEY_ to its home names the way 9i would create keys named HOMEX to describe the homes. Underneath the KEY_ key you will find the values ORACLE_HOME, ORACLE_HOME_KEY, and ORACLE_HOME_NAME that will give you all the information about the home that you might need.
While this means you have to write a loop to check for potential homes and a test to check for the value name you want to use, it should probably work. Worst case scenario is that you write a loop to iterate through the child keys under HKLM/Software/Oracle and check to see whether each key has the value ORACLE_HOME. Oracle names that value and sets its value, so you should always find it.

Similar Messages

  • Oracle 10g Home wont start.

    Hi Everyone,
    I am not able to start Oracle 10g home on windows...recently i installed oracle 6i forms. so when i try to set ORACLE_SID=nwc and then sqlplus sys/dba@nwc as sysdba,nothing happens...it takes me back to command prompt.
    C:\Documents and Settings\admin>set ORACLE_SID=NWC
    C:\Documents and Settings\admin>SQLPLUS SYS/DBA@PRIMARY AS SYSDBA
    C:\Documents and Settings\admin>
    but when i only type SQLPLUS, a new cmd prompt window opens & it says SQL*PLUS : Release 8.0.6.0.0 - Production on Sat Jul 17 09:39:31 2010
    <c> Copyright 1999 Oracle Corporation . All rights reserved
    Enter user-name:
    Any idea whats going on as i am a new dba in a complicated environment with no support around and i would also like to know how to run an Oracle 6i forms when i try to open up an Oracle form through Forms Runtime, i get this window where it asks me.
    #File
    #userid
    #password
    #Database:
    #Oracle*Terminal resource file:
    and some options to which i can check or uncheck.
    What do i need to run an oracle form, Application Server, Database server??Any suggestions or help would be highly appriciated, Thanks for reading
    Katheri
    katheri
    Edited by: katheri on Jul 16, 2010 11:56 PM

    Hi Katheri,
    Run sqlplus available under 10G oracle home. Your env is set to forms 6i and its using sql 8i version.
    Make sure that your database has been started. Refer the link below to administer database on windows.
    http://download.oracle.com/docs/html/B13831_01/admin.htm
    To configure forms6i refer,
    http://www.scribd.com/doc/1027764/Forms-6i-Deploying-Forms-Applications-to-the-Web-with-Oracle-Forms-Server
    Hope this helps.
    Regards,
    Mithun

  • How to configure Oracle 10g RAC on windown sever 2003

    hi all
    plz tell me
    how to configure Oracle 10g RAC on windown sever 2003 can any body help me , give be any link
    plz it is very necessary for me
    Regards

    Hello,
    There are a good doc written by Philip Newlan at www.jobcestbon.com/oracle/RacOnWindows.pdf
    Regards,
    Rodrigo Mufalani
    http://mufalani.blogspot.com

  • How to configure Oracle 10g Advanced Security to use SSL concurrently with

    How to configure Oracle 10g Advanced Security to use SSL concurrently with database User names and passwords
    In Oracle Advanced Security Documentation it is mentioned that i can use SSL concurrently with DB user names and passwords. But when i configure the client certificate on the client my DB connection is getting authenticated using the certificate, which out passing user id or password.
    We want to connect to Oracle DB over SSL channel so that the data packets are not in clear text. Also we want the user to make a connection using user id and password.
    Basically we want SSL with out authentication.
    Need your expert advice

    Read the documentation (I have given following links assuming you are running a 32 bit architecture)
    Server installations:
    http://www.oracle.com/pls/db102/to_toc?pathname=install.102%2Fb14316%2Ftoc.htm&remark=portal+%28Books%29
    Client installations:
    http://www.oracle.com/pls/db102/to_toc?pathname=install.102%2Fb14312%2Ftoc.htm&remark=portal+%28Books%29
    You can find the required books (if not using 32 bit architecture) from
    http://www.oracle.com/pls/db102/portal.portal_db?selected=3

  • How to install Oracle 10g release 2 on rhel4 release 2

    I want to know How to install Oracle 10g release 2 on rhel4 release 2 from scratch from the partitioning of the disk in rhel 4 till the post installation .
    System Configuration
    x86 32 bit
    Pentium(R) 4 CPU 3 ghz
    RAM 1 GB 2.99Ghz
    Oracle 10g release 2
    rhel 4 release 2
    Please reply me soon.
    With Regards
    Suvin Prathab
    www.sceneworks.co.cc

    Dear Suvin Prathab!
    Please have a look at this:
    [http://www.oracle.com/technology/pub/articles/smiley_10gdb_install.html]
    Yours sincerely
    Florian W.

  • How to install Oracle 10g on to Red Hat Linux 5 Server

    I'm new to both Linux and Oracle. I've been working on an installion of Oracle 10g on a Red Hat Linux 5 Server for about 2 weeks. I've been doing a lot of reading about installing Oracle on a Linux environment. I finally got to the installation portion and the Oracle Installer displayed a message that I had to have Red Hat 4 or 4 Enterprise to continue.
    How can Install Oracle 10g onto a Red Hat 5 Linux Server"? Is there an option that I can use to bypass the OS checking?
    Thanks

    Unfortunately there is no way to access metalink without a valid account. You could then just try to skip preinstall requisites with this clause:
    ./runInstaller -ignoreSysPrereqs
    or this method:
    Copy the oraparam.ini from the installation source install/oraparam.ini to /tmp directory.
    Edit the file /tmp/oraparam.ini so this file reads:
    After
    [Certified Versions]
    Linux=redhat-3,SuSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2,redhat-5
    also, make sure you have these packages installed:
    # rpm -ivh gcc-c++-4.1.1-52.el5.i386.rpm gcc-4.1.1-52.el5.i386.rpm
    libstdc++-devel-4.1.1-52.el5.i386.rpm glibc-devel-2.5-12.i386.rpm
    glibc-headers-2.5-12.i386.rpm libgomp-4.1.1-52.el5.i386.rpm
    libXp-1.0.0-8.i386.rpm compat-libstdc++-296-2.96-138.i386.rpm
    compat-libstdc++-33-3.2.3-61.i386.rpm
    ~ Madrid.

  • How to Install Oracle 10g in SLES 10 32 bit

    Hello Guys,
    I was intalling oracle 10g in SUSE LInux Enterprise Server 10, but i always have an error..
    Is there someone who can have and give a manual on how to install oracle 10g in SLES10? ANd some linux shell scripting
    manual..?

    Hi,
    have a look at:
    http://www.oratoolkit.ch/knowledge/howto/installation/otn.php
    you will find there your SLES and Oracle specific installation guide. With korn shell script you will be able to install Oracle within 60 minutes.
    Good luck!
    Cheers,
    David
    OCP 9i / 10g / 11g

  • How to download Oracle 10g Dev.Suite Patch

    Hi,
    I need to download How to download: Oracle 10g Dev.Suite Patch for WindowsXP SP3 32-bit for Developer Suite 10g.
    Direct link to the download would be appreciated.
    With regards,
    MOHAMMED AJAZ.

    Hi Sarah
    I don't have access to metalink. i was trying to register but it's asking system identifier, which is i don't have. It's looks like for commercial use.
    1. Can i register metalink for personal use? (this software i am using for practice.
    thanks.
    WITH REGARDS,
    MOHAMMED AJAZ.

  • How to Uninstall Oracle 10G release 1

    I'm a newbie in Oracle DB.
    I've been assigned to a new task to assist DBA teams to migration SQL server to Oracle server. I got a new PC which pre-installed 2 Oracles version (9i & 10G), the 9i is OK but the 10G DID NOT work properly and I'd liked to replace 10G release 1 with 10G release 2 (for testing purpose).
    I did followed the instruction how to remove the 10G release 1 using the OUI, but the process ran forever ... ( see screenshot --> http://img137.imageshack.us/img137/5555/oui10g1qb8.jpg )
    I'm also know that I can delete Oracle thru Regedit, but in some Reg. keys do not show the Oracle version (I want to keep the Oracle 9i).
    Could someone please enlight me how to uninstall Oracle 10G ?
    PC's info:
    OS : Windows XP Prof.
    1GB RAM
    50GB free space
    All the Oracle services have been disable before Uninstall.
    Thanks Advance.
    DTH.

    Thanks Marcio ...
    I'm current process the step by step to remove 10G release 1, if I've problem then I'll let you know
    Thanks again.
    DTH.

  • How to Install Oracle 10g in Windows 7 Home premium 64bit operating system

    Hi,
    I am using Windows 7 Home premium 64bit operating system. While i was installing oracle 10g i got error and not able to install. How to install the Oracle 10g databse on this operating system. Is there any patch to install this or i have to use other version of oracle with window 7 operating system?
    Thanks in advance
    Mayank Adhikari

    The argument would be who wants to install Oracle database on Windows 7. I think most probably by the developers who wants to "Try" something prior deal with a production database, right?
    For a developer, installing database using the hack is more than NOT having a local database running from the local system. I installed all the products mentioned with windows7bugs post and used the following tools to successfully connect and retrive data from the database instances.
    Toad 9.7.x.x
    SQL Developer
    SQL/Plus
    Developer 6i (Another hack, please check this link http://windows7bugs.wordpress.com/2010/03/01/installing-oracle-developer-forms-reports-6i-on-windows-7-64bit/).
    I think the discussion about whether all the features of client/server are still available with such a hacked installation is meaningless as far the information requested was strictly for Windows 7, not for a Server OS.
    regards,

  • How to configure oracle 10g with clients

    Hello sir i am a database user.
    I want to install an oracle 10g (Client server architecture)
    As i have a licenced Oracle 10g CD Pack.
    Pls help me how to install Oracle & how to configure its clients.
    As i have a server(running server 2003 ) in it and corresponding clients.
    Thanks
    Edited by: user10439074 on Oct 30, 2008 4:03 AM

    Read the documentation (I have given following links assuming you are running a 32 bit architecture)
    Server installations:
    http://www.oracle.com/pls/db102/to_toc?pathname=install.102%2Fb14316%2Ftoc.htm&remark=portal+%28Books%29
    Client installations:
    http://www.oracle.com/pls/db102/to_toc?pathname=install.102%2Fb14312%2Ftoc.htm&remark=portal+%28Books%29
    You can find the required books (if not using 32 bit architecture) from
    http://www.oracle.com/pls/db102/portal.portal_db?selected=3

  • How to setup Oracle 10g grid on a node other than SERVER

    Hi,
    We are in a process of moving the database residing on Windows servers to IBM AIX5L servers. For this purpose I came up with an idea of installing database on AIX and operate it remotely on Windows platform using 10g Grid Control and 10g Client. For this to happen perfectly, I am in middle of implementing same concept on Windows platfrom. I have made a test database on a Windows based server and I am trying to connect it with another Window based node. I know hwo to connect it using a client software but I am more interested to do it on Grid Control.
    At this stage, I have created database on server and have also configured Oracle Management Agent along with Oracle 10g Grid Control. I read oracle documentation that it is necessary to install Oracle Management Agent on server machine in order to let other nodes get connected with the server.
    I would extremely appreciate anyone who could help me in setting up 10g grid control on another node. Please note I wish to operate the database using grid control remotely. For know you can consider both computers on same network, I will go on VPN once I am able to do it on local network.
    Looking forward for your reply
    Shez

    Hi Xaheer,
    Thanks for looking into this matter. I had agent and grid running on the server and I have almost installed 10g Grid control 10.2.0.2. The place where I am stuck now is the OMS Configuration script that run after the installation in Configuration Assistant window. It just stuck here for some minutes and then displays the error. Let me paste here the lines in that appears in the detail panel of installation wizard.
    Output generated from configuration assistant "OMS Configuration"
    Command = oracle.sysman.emcp.oms.OmsPlugIn -configureOms
    Operation Stopping OPMN Processes is in progress.
    Operation EM Deploying is in progress.
    Operation Creating OMS Respository is in progress.
    Configuration assistant "OMS Configuration" failed
    The "d:\OracleHomes\agent10g\cfgtoollogs\configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.-----------------------------------------------------------------------------
    According to the oracle installation guide, I had to deconfigure the database before running the setup. I did it using this command,
    emca -deconfig dbcontrol db -repos drop
    AS far as i think, I am getting this error becouse of sysman schema which was droped during the installation and was recreated( as I read in the oracle installation guide ) is not found by the script. So in order to b ring back sysman schema, I recreated the repository using following commands.
    emca -deconfig dbcontrol db -repos drop
    emca -config dbcontrol db -repos create
    Now, the database on server is not starting up. I can just see RED downword error, u know what i mean right ? Everyting is down, Database instance, Listener and Agent Connection to Instance, and on the top pf page I can see " Enterprise Manager is not able to connect to the database instance. The state of the components are listed below."
    When I try to startup the database using the grid control it gives me this error.
    Couldnot contact the agent. Verify that the url for the agent is null.
    I am stuck in here. If you know how to fix this agent , i would really appreciate that.
    Thanks

  • How to install oracle 10g on linux 9.0

    am a student in nigeria and my name is tosin, studing oracle 10g on linux 9.0 with oracle partners NIIT. how do i install 9i and 10g on a linux 9.0.

    Hello Tosin,
    how do i install 9i and 10g on a linux 9.0. Do you mean Red Hat Linux 9 of on Linux AS? www.redhat.com
    Anyways
    http://www.puschitz.com/InstallingOracle9i.html
    Hope this will help you
    Cheers
    Ravi
    http://ravidba-oracle.blogspot.com/

  • How To Install oracle 10g

    Hello,
    I'm new to Oracle. I want to install oracle 10g (10.2.4.0 ) in windows server 2008. I want to know how should it install when we have set domain control. previously i have installed it and after that i add domain. But this time i'm going to install it after add the domain control.
    i tried this 1s. it's giving an error
    ORA-12560: TNS:protocol adapter error
    Thanks
    wbr

    831585 wrote:
    Hello,
    I'm new to Oracle. I want to install oracle 10g (10.2.4.0 ) in windows server 2008. I want to know how should it install when we have set domain control. previously i have installed it and after that i add domain. But this time i'm going to install it after add the domain control.
    i tried this 1s. it's giving an error
    ORA-12560: TNS:protocol adapter error
    Thanks
    wbrDo you get this error when running installation?
    If you get it after installation, then refer to the following blog article:
    http://arjudba.blogspot.com/2008/08/ora-12560-tnsprotocol-adapter-error-on.html
    Kamran Agayev A.
    Oracle ACE
    My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/

  • How to install oracle 10g in windows server 2008

    I want to install oracle 10 (10.2.0.4.0) in windows server 2008 R2 X64 bit version.
    Previously i have test this successfully. But not it's giving an error during the installation
    Enterprise manager configuratio failed due to the following error-
    Error starting Database Control
    Refer the log file at (path).....\emConfig.log for more details.
    You can retery configuring this database wlth Enterprise Manager later by manually running (path).....\bin\emca script.
    I tried to start the service manually from services. But it didn't work.
    I tried to run that script using command prompt. but nothing happened.
    in my start menu under oracle home db-console link also not there.
    here is my log file
    Feb 7, 2011 11:54:08 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Enter Enterprise Manager Root Password :
    ************Certificate was added to keystore
    Certificate reply was installed in keystore
    Feb 7, 2011 11:54:08 AM oracle.sysman.emcp.util.FileUtil printFileToLog
    CONFIG: Printing file(After Secure DBConsole): D:\oracle\product\10.2.0\db_1\oc4j\j2ee\OC4J_DBConsole_AX-2009_AX2009\config\http-web-site.xml
    <?xml version = '1.0' standalone = 'yes'?>
    <!DOCTYPE web-site PUBLIC "OracleAS XML Web-site" "http://xmlns.oracle.com/ias/dtds/web-site-9_04.dtd">
    <web-site port="1158" display-name="OC4J Java HTTP Web Site" secure="TRUE">
         <!-- The default web-app for this site, bound to the root -->
         <default-web-app application="default" name="defaultWebApp"/>
         <web-app application="default" name="dms0" root="/dms0"/>
         <web-app application="default" name="dms" root="/dmsoc4j"/>
         <web-app application="em" name="em" load-on-startup="true" root="/em" shared="true" />
         <!-- Access Log, where requests are logged to -->
         <access-log path="../log/http-web-access.log"/>
         <!-- Uncomment this if you want to use ODL logging capabilities
         <odl-access-log path="../log/http-web-access" max-file-size="1000" max-directory-size="10000"/>
         -->
         <ssl-config needs-client-auth="false" keystore="D:\oracle\product\10.2.0\db_1/oc4j/j2ee/OC4J_DBConsole_AX-2009_AX2009/config/server/keystore.test" keystore-password="BC062AD3D852A5B5D02E979B69DD12B3" />
    </web-site>
    Feb 7, 2011 11:54:08 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
    INFO: Database Control secured successfully.
    Feb 7, 2011 11:54:08 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
    CONFIG: Securing Database Control completed successfully .
    Feb 7, 2011 11:54:08 AM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
    Feb 7, 2011 11:54:08 AM oracle.sysman.emcp.util.DBControlUtil startOMS
    INFO: Starting Database Control (this may take a while) ...
    Feb 7, 2011 11:54:08 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: cmdType: 0
    Feb 7, 2011 11:54:08 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Starting Windows service...OracleDBConsoleAX2009
    Feb 7, 2011 11:54:08 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleAX2009' to fully start
    Feb 7, 2011 11:54:18 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleAX2009' to fully start
    Feb 7, 2011 11:54:28 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleAX2009' to fully start
    Feb 7, 2011 11:54:38 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleAX2009' to fully start
    Feb 7, 2011 11:54:48 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleAX2009' to fully start
    Feb 7, 2011 11:54:58 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleAX2009' to fully start
    Feb 7, 2011 11:55:08 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleAX2009' to fully start
    Feb 7, 2011 11:55:18 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleAX2009' to fully start
    Feb 7, 2011 11:55:28 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleAX2009' to fully start
    Feb 7, 2011 11:55:38 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleAX2009' to fully start
    Feb 7, 2011 11:55:48 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleAX2009' to fully start
    Feb 7, 2011 11:55:48 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Initialization failure for service during start
    Feb 7, 2011 11:55:48 AM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error starting Database Control
    Refer to the log file at D:\oracle\product\10.2.0\db_1\cfgtoollogs\dbca\AX2009\emConfig.log for more details.
    Feb 7, 2011 11:55:48 AM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error starting Database Control
         at oracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:646)
         at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:224)
         at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:193)
         at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:184)
         at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:436)
         at java.lang.Thread.run(Thread.java:595)
    please if any one can give me any solution to run my database console. i don't know any method. i'm new to the oracle.
    Thank you

    I have checked that. but i also say that oracle 10g (10.2.0.4 ) support for windows server 2008 r2 X64.
    Windows Server 2008 x64
    Oracle Database 10g Release 2 (10.2.0.4 or later) for Windows x64 is certified on Windows Server 2008 x64 (all editions). 32-bit Oracle Database Client (10.2.0.4) and higher versions are supported on Windows Server 2008 x64.
    I don'y think it's problem of os version or oracle version. Because when we purchase we asked from them what is the recommended version for our os. they told that 10g 10.2.0.4 is ok. previously i have installed this successfully. But now i can't.
    however thanks for tried to help me. if u can find out any other reason\s please late me know..
    thank you very much.

Maybe you are looking for

  • OBIEE 11.1.1.6.x - Report an Image in Adhoc Query

    Hello Everyone, We are trying to generate an Adhoc query on an attribute with image. We are on 11.1.1.6.2. We cannot get that to work. The column data type is BLOB.  Please share your ideas or experiences on reporting such data types. Thank you, PD

  • How to view AVI files in Powerbook G4?

    Hello again, I hope somebody could advise me on what to do to be able to view my review CD's which are in AVI format. I want to be able to use my Powerbook in my review kindly help me out. Thanks!

  • One field in a standard screen not showing.. why??

    Hi all. I want to be able to see a field in a standard screen. It is usually there but here they have hidden it using some configuration. Where do I configure it to show/unhide again? I see the field is there in the screen's layout but it is not show

  • Database Connection problem in WLS 7.0 Service Pack 7

    Hi Guys, I am a newbie in this forum. Currently, I tested running application using WLS 7.0 Service Pack 7 in Development environment. And for database I used Oracle 9i Release 2 v9.2.0.6 which is running on AIX OS. After WLS started, I had some erro

  • Production Environment Definition

    Hello again, We are just starting to look at what it will take to setup a production Forte environment. I have some general questions regarding considerations that may affect the environment definition and thought maybe some of the more experienced u