Is my Oracle Home used?

Hi,
I have a task to uninstall all the unused Oracle Homes from a server.
But before doing that, I want to know whether there are any databases running on that particular home or not? How do I find that?
I checked /etc/oratab file and confirmed that there are no databases associated with this unused Oracle Homes.
Do I have to check some other location? Is there any command to check whether this Oracle Home is being used or not?
Please help me out!
Thanks!

Source:
http://tonguc.oracleturk.org/index.php/2006/09/21/how-to-get-oracle_home-from-sql-or-plsql/
select NVL(substr(file_spec, 1, instr(file_spec, '\', -1, 2) -1) , substr(file_spec, 1, instr(file_spec, '/', -1, 2) -1)) folder from dba_libraries where library_name = 'DBMS_SUMADV_LIB';Use the above to connect every database and make sure that the oracle home you're trying remove aren't present.
HTH
-Anantha

Similar Messages

  • Cloning 9i ORACLE HOME using 10g oem.

    Gang,
    Has anyone tried to copy 9i ORACLE_HOME using 10G OEM. Does it automatically make changes to the oraInventory for new ORACLE_HOME. Any help will be greatly appriciated.
    Thanks
    Parvesh

    Hi Per,
    I am facing the same problem. I've created a TAR in which I've asked for the source of ohsel.exe or a way to add an
    e.g. '-y'. We also saw that probably the Windows PATH environment is the only issue to solve.
    Did you already find a solution?
    Fred

  • Installing & Uninstalling Oracle Home

    We have installed multiple Oracle Versions in same machine like below.
    Ora9i_db_Hom
    - Oracle 9i Database 9.2.0.2.0
    - Oracle Universal Installer 10.1.0.2.0
    - Oracle 9iR2 Patch Set 9.2.0.5
    - Oracle 9iR2 Patch Set 9.2.0.8
    OraDb11g_home1
    - Oracle Database 11g 11.2.0.1.0
    Ora_9205_Home
    - Oracle 9i Database 9.2.0.2.0
    - Oracle Universal Installer 10.1.0.2.0
    - Oracle 9iR2 Patch Set 9.2.0.5
    - Oracle 9iR2 Patch Set 9.2.0.8
    OraDB10g_Home1
    - Oracle Database 10g 10.2.0.1.0
    - Oracle Database 10g Release 2 Patch Set 3 10.2.0.4.0
    The reason for this installation was to upgrade 9i & 10g Database to 11g. We upgraded all the database to 11g and its running on 11g now. Now I would like to remove the old versions (9i & 10g).
    My Question is,
    1. If I Remove 9i Oracle Home using OUI, will it effect any of the database that is running on the machine?
    2. For some reason if I want to install 9i again after uninstalling, will that be a problem?
    Edited by: ManoRangasamy on Nov 30, 2010 9:42 AM

    Well, the obvious answer about databases being affected has to include any 9i database if the 9i home/software is removed. Other than that, no, assuming none of the other databases have any dependencies related to 9i (e.g., database links).
    If you think you may have to reinstall 9i, don't remove it in the first place. If you can afford the disk space to keep it, what is the harm in keeping it on the system? You really don't want the brain damage of messing around with older versions of OUI.

  • Deregister oracle-home

    I'm trying to clone ebs 12.2.3 appsTier into an existing Environment (document 1383621.1). Adcfgclone Fails because Oracle-Homes are registered in Oracle Inventory. When I try to deregister the Oracle-Homes with " runInstaller -detachHome" I get the error message that detacheHome is not a valid Option.
    I have no FMW_HOME in the target Environment, so I used runInstaller from $ORACLE_HOME/oui/bin.
    How to deregister the Oracle-Homes?

    Please see (R12.2 : How To Create, Update or Rebuild The Central Inventory For Oracle Applications E-Business Suite ? (Doc ID 1588609.1)), Procedure 2: Detaching an Oracle Home using the Oracle Universal Installer
    If you still get the same error, please post the command you are running along with the complete error message.
    Thanks,
    Hussein

  • Want to use single oracle home for multiple database releases

    Hi,
    I have following 3 different databases.
    Oracle7 Server Release 7.3.4.4.0
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit
    I want to access these databases using single oracle home. Please advise which client version I have to install to access these. I tried using Oracle Release 9.2.0.1.0 client but I am not able to connect to oracle 7 by using this.I am ready to have multiple oracle homes.But what client version I have to install and where can I get it.Your help will be highly appreciated.

    ... and 7 is using oracle 8.1.7 client.From your sales representative. 8i is no longer available for downloading,because desupported since many years.
    Werner

  • Using patch plans for 12.1.0.2 target oracle home fails with 'PREREQ_MESG: Unable to get the version of OPatch'

    We are attempting to use patch plan to apply PSU and one-offs to a new 12.1.0.2 database oracle home.  Our EM version is 12.1.0.4.
    We are experiencing the same issue described in ''Bug 20271609 : Unable to get the version of OPatch".   This bug is closed as 'duplicate bug to filer' but we do not appear to have visibility into what patch/bug fixes the issue.
    Description from the above mentioned bug is our same issue.  We do not have this issue when we use patch plans against an 11.2.x oracle_home target.  It is unique to 12.1.0.2 oracle_home target.
    Description from the bug:
    The Plan failed in step "Run Prerequisite Checks" with the following errors:
    PREREQ_NAME: Minimum Version of OPatch
    PREREQ_DESC: Check if the required version of OPatch is present on the target
    PREREQ_TYPE: PATCH_TOOL_CHECK
    PREREQ_STATUS: FAILED
    PREREQ_MESG: Unable to get the version of OPatch at
    /u01/app/oracle/product/12.1.0/dbhome_2/Opatch
    We have opened an SR to see if we can get more info on what was already identified as a bug.  Has anyone else experienced this issue?  If so, can you share any patches or workarounds (other than manually applying patches) that you found useful?
    Thanks.

    You'll probably get the same info from Support, but the workaround is to use the Patch Database (however that doesn't work if there's no DB target associated to that home).   If you were trying to do patchign out of place (clone home, patch, then move db's), EM can do this for you.   If you're just installing a new DB Home and trying to patch, then i don' think there's another workaround.  The base bug is marked fixed though, so a backport for the 12.1.0.6 plugin should be available very soon.  I would ask the support analyst to request the backport for your plugin/patch level...

  • Rogue Oracle Homes when using Opatch

    Hi, I am using Opatch ( in this case to check for one off patch conflicts ) before applying PSU 11.1.0.7.6
    The Opatch session appears to be picking up rogue Oracle Homes ( presumably from past cloning sessions or previous installs ). It also is throowing an error
    Home name= APPSIAS_LPROD, Location= "/fs03/LPROD/lprodora/iAS"
    Home name= APPSIAS_LDEV2, Location= "/fs19/LDEV2/ldev2ora/iAS"
    Home name= APPSIAS_LUAT, Location= "/fs22/LUAT/luatora/iAS"
    Home name= OraDb11g_LUAT, Location= "/fs22/LUAT/luatdb/product/11.1.0/db"
    Home name= ORACLE_HOME1, Location= "/fs03/LPROD/lproddb/8.1.7"
    Home name= APPSDB_LDEV2, Location= "/fs19/LDEV2/ldev2db/9.2.0"
    Home name= OraDb11g_LUAT1, Location= "/fs22/LUAT/luatdb/product/11.1.0/db_1"
    Home name= OraDb11g_LPROD, Location= "/fs03/LPROD/lproddb/product/11.1.0/db"
    Home name= APPSDB_LUAT, Location= "/fs29/LUAT/luatdb/product/11.1.0/db"
    INFO:Throwable Occured: OracleHomeInventory gets null oracleHomeInfo
    The throwable is converted into Exception and stored in Result Object.
    where is Opatch picking these homes up from and how do I reset Opatch to pick up the proper Homes
    Jim

    This seems to be an EBS install. See if MOS Doc 742477.1 (How to create, update or rebuild the Central Inventory for Applications R12) can help remove these bogus HOMEs
    HTH
    Srini

  • Error : - when removing un - used oracle home

    Hi All,
    I need to remove the oracle home which is not being used and i 've followd the below process and end up with the following error
    oracle:@lnxora05 /oracle/product/10.2.0.3oct07/oui/bin >./runInstaller -silent -detachhome ORACLE_HOME='/oracle/product/10.2.0.3oct07' ORACLE_HOME_NAME='ORACLE_HOME_10_2_0_3_OCT07'
    While executing the above, am getting the error
    The inventory pointer is located at /etc/oraInst.loc
    The inventory is located at /oracle/oraInventory
    The Oracle home '/oracle/product/10.2.0.3oct07' could not be detached as it does not exist.
    'DetachHome' failed.
    I tried oracle:@lnxora05 /oracle/product/10.2.0.3oct07/oui/bin >detachHome.sh also but same error.
    Can any one help me to resolve this error
    Thanks in advance !!!

    Team,
    The error is nothing going to do...
    I just verified inventory.xml file and found that it has been removed.
    No need to bother about the error........

  • Need of Two Oracle Home in R12

    I am a newbie apps dba and was going through the oracle documentation. Where I learnt that in r12 there are two ORACLE_HOME 10.2.0 and 10.3.0. I tried to research regarding the same but couldn't find anything conclusive enough that would clear my fundamentals regarding the need for having 2 ORACLE_HOME. Of what I have understood , 10.2.0 is Developer Home which hosts the Apache, forms server etc and 10.3.0 hosts the JAVA/html server etc. Is my understanding correct regarding the same ? and what is the use and advantage of having two Oracle Homes? Do explain me in laymen terms as I am still a newbie!

    BhaviSavla;
    I guess you dint understand what I have said!!! I HAVE ALREADY READ THAT THOUSAND TIMES!!! Please think double&triple time while you are talking wiht Hussein Sawwan about EBS related questions. I am sure about Hussein Sawwan  understand your question as he understand other questions and already he has been answered your question(If you have ability to understand what you read)
    I strongly suggest you about TO BE KIND-RESPECT with forum users which are trying to help other people here.
    And I am still not able to understand the actual advantage of having TWO ORACLE_HOME...After read something, If you still understand than dont blame forum users. Choose easy way... Rise SR!
    Kindly do not post just to increase your number of posts on this forum!! If you cannot help me in anyway with this, kindly do not post!If you dont follow OTN forum site consistently than DO NOT MAKE COMMENT about people here If the topic is Hussein Sawwan.
    I must remind you something... He has more than 50k post wiht 51k points which mean he made post here like your_post_count*1500times... Wiht other words, his each post equal to 1 point, which mean his each post has meaning which are helpful!
    Do you have capability to calculate how mch time he spend here?
    Dont thing so!
    Moderator, I belive this question is already answered If the poster read notes! Please close or lock this thread!
    Thanks
    Helios

  • Multiple oracle home installation

    I am going to install oracle 11g2 on hpux server. The server already has 10g on it and the plan is to run both for sometimes.
    Unfortunately, IUnfortunately, I don’t have prior experience installing multi-homed oracle software and I
    need help on how to supply the oracle home directory name to the installer:
    Do I have to supply the installation (OUI) with the oracle home directory: i.e
    Exiting oracle home: /u00/app/oracle/product/10.2.0/db_1
    For the new oracle home: /u00/app/oracle/product/11.2.0/db_2
    Is this correct?
    thank you,
    Lou

    What I did was create two profiles. My OS is similar, but NOT the same
    My default is Oracle 11.
    However I need a way to go back between Oracle Homes so I created an "o10g.profile" and a "o11g.profile"
    o10g.profile
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    export ORACLE_BASE=/u01/app/oracle
    unset ORACLE_HOME
    export ORACLE_HOME=/u01/app/oracle/product/10.2.0
    #export DISPLAY=localhost:0.0
    export TZ=CST6CDT
    export ORA_OCI_NO_OPTIMIZED_FETCH=1
    ORA_OCI_NO_OPTIMIZED_FETCH=1; export ORA_OCI_NO_OPTIMIZED_FETCH
    export ORACLE_SID=STANDBY
    export ORACLE_TERM=xterm
    #export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
    export NLS_LANG=AMERICAN;
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    export LD_LIBRARY_PATH
    # Set shell search paths
    unset PATH
    PATH=/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin; export PATH
    export PATH=$PATH:$ORACLE_HOME/bin
    #CLASSPATH
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
    CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlibNotice the unset ORACLE_HOME at the top, this is key. Also the unset PATH.
    Now compare it to my o11g.profile file
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    export ORACLE_BASE=/u01/app/oracle
    unset ORACLE_HOME
    export ORACLE_HOME=/u01/app/oracle/product/11.2.0
    #export DISPLAY=localhost:0.0
    export TZ=CST6CDT
    export ORA_OCI_NO_OPTIMIZED_FETCH=1
    ORA_OCI_NO_OPTIMIZED_FETCH=1; export ORA_OCI_NO_OPTIMIZED_FETCH
    export ORACLE_SID=PRIMARY
    export ORACLE_TERM=xterm
    #export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
    export NLS_LANG=AMERICAN;
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    export LD_LIBRARY_PATH
    # Set shell search paths
    unset PATH
    PATH=/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin; export PATH
    export PATH=$PATH:$ORACLE_HOME/bin
    #CLASSPATH
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
    CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlibIts probably a great idea to review the document Srini refers to. However this is a short and sweet example. In my case I can issue a
    source o10g.profileAnd be on Oracle 10. So to install the other version I created the profile for it and then then used it to switch to that ENV for the install.
    Best Regards
    mseberg

  • Multiple Oracle home

    Hi ,
    I have some doubt which needs to be cleared.
    If I will install multiple oracle home like ORACLE_HOME=/u01/app/oracle/product/10.1.0/asm
    ORACLE_HOME=/u01/app/oracle/product/9.2.0
    ORACLE_HOME=/u01/app/oracle/product/10.2.0
    ORACLE_HOME=/u01/app/oracle/product/crs
    Now in this when I will set export ORACLE_HOME then which version will be picked up.
    Is ORAENV isgoing to come into picture.
    Please throw some light on it.
    Mk

    asifkabirdba wrote:
    You have installed your oracle product (db,application server) using one of os user like oracle,appl,oraprod ect. When you log in to your OS by using OS user then .profile file executed automatically to export necessary environmental variables. You did not mention your OS. Normally you will find it to your OS user home directory. You can edit this file to set your desired ORACLE_HOME.
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
         . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    unset USERNAME
    ORACLE_HOME=/oracle/product/102
    ORACLE_SID=ogtest
    LD_LIBRARY_PATH=$ORACLE_HOME/lib
    TNS_ADMIN=/oracle/product/102/network/admin/
    export ORACLE_HOME
    export ORACLE_SID
    export LD_LIBRARY_PATH
    export TNS_ADMIN
    export PATH=$PATH:$ORACLE_HOME/bin
    Regards
    Asif KabirAsif,
    Your advice to hard code the Oracle environment directly into the profile is poorly thought out. And a direct carry over of 'worst practices' unfortunately taught in some Oracle related classes.
    The OP did correctly identify oraenv (as described in the "Administrator's Reference for UNIX-Based Operating Systems" at http://www.oracle.com/pls/db102/portal.portal_db?selected=4) as the preferred solution. Putting THAT into the profile (using ORAENV_ASK as described in the manual) is OK.
    I'll leave you to figure out why the difference - I've posted many times about that in these forums.
    /Hans

  • CRS install fails Oracle home incompatibility checks  ( 10G )

    Hi,
    I'm trying to install RAC for 10.2.0 . The first step is to install cluster Ready Services ( On red hat linux ) . When it does the product specific prequisite checks, it fails on "Checking for Oracle home incompatibilities".
    I get the error " Oracle clusterware cannot be installed into an existing oracle home".
    I did a previous attempt at an install which failed. I have completely deleted the
    /oracle/product/10.2.0/crs directory which was previously created.
    If I check the environment variables, I get :
    [oracle@rac1 db_1]$ env | grep -i home
    HOME=/oracle
    ORACLE_HOME=/oracle/product/10.2.0/db_1
    So, in my thinking there is no trace now of a previous home for CRS.
    So why am I getting the error ??
    Thanks
    George

    It seems taht you have not cleared the inventory..As menioned earlier use OUI to remove the oracle_home from inventory. In case you do not wish to use the existing ORACLE_HOME=/oracle/product/10.2.0/db_1 or any other Oracle Installation on this server, then you can go ahead and remove the inventory itself.
    You can use Note:239998.1 for the various files to be removed for cleaning up CRS..
    - Amit
    http://askoracledba.blogspot.com/

  • Multiple APEX instances sharing the same Oracle Home?

    Can someone tell me if it is possible to have multiple APEX installations where the database instances are sharing the same Oracle Home? If so, how would this be set up?
    So, if I have development and test running on the same home, I want a separate APEX instance for each. We can do this when different Oracle homes are used (separate httpd running) but not for the same home.
    Thanks

    Thanks - We have tried putting 2 dad entries in file, but not sure how you connect. You only specify a port number, so how does it connect that to a db???

  • Forms installation problem - how do I create a new default Oracle home?

    I am new to Oracle so please forgive my utter ignorance. My impression of Oracle because of how an installation
    has to be done is taking a nosedive. I thought Microsoft was bad with all the re-booting but the explanation that I
    read in Anubhav Seth's post about installing Dev 6i before 8i and the suggestion (not a requirement) to format the
    harddisk and reinstall Windows just leaves me with my jaw hanging open. I'm having a little trouble swallowing that
    one.
    Here's my situation... I'm running 8i at home and I am using it for the Oracle courses that I am taking at a local
    university. So 8i with its SQL*Plus has been all I have needed to date. Now we have a project to do that involves forms.
    So I go to the OTN page for downloads and downloaded file 6irel2nt.exe which is 264 MB in size. This file, I assume,
    has forms in it -- what else I don't know because things are not explained all that well on the web site or I don't know
    where to look (which implies poor organization of the web pages).
    I run the 6irel2nt.exe file and end up with 11,128 new files on my computer. That's nice. I run the setup file and a step or
    two into it it complains that my 'Ora81' home is already being used and that I need to install it into another Oracle Home.
    Now I'm trying to find out how I create another Oracle Home. I perform a search in GOOGLE on "creat default Oracle
    home" and basically get nowhere. My $50+ "Oracle 8i A Beginner's Guide" from Oracle Press mentions Oracle Home
    on one page (pg. 170) but is completely useless in this case. My $184 worth of Oracle University manuals (which
    are really PowerPoint slides) is useless too. My next step will be to comb through the FAQs. All this because I cannot
    believe that I have to totally uninstall one product to get another to install and then reinstall the first one. That is INSANE!
    If I have gone way off track please feel free to blast me but if this is true then all I can say is that the folks at Oracle need
    a lesson in KISS (Keep It Simple Stupid)! Computers and computer software are supposed to make our lives simpler
    not complicate the holy hell out of them. I'll get off my soapbox now. Sorry about the whining.

    I ended up uninstalling 8i and then I installed Dev 6i (Forms) and then I reinstalled 8i. I had some problems
    installing Dev 6i because of this error "path.vrf(86): Unbound variable 'path_too_long_prompt'". Right after this error
    appears I get a dialog that states, "The Oracle Installer cannot update the system path variable to %new_path%
    because it is too long. Please restrict your system path to 127 characters and make sure D:\Oracle\OraWin95\bin
    is included in your path."
    The path D:\Oracle\OraWin95 was what I set up for this installation.
    What I did to work around this problem was this...
    (1) Go to Start - Accessories - System Tools - System Information.
    (2) Click on the Tools menu
    (3) Select System Configuration Utility
    (4) Select the Autoexec.bat tab
    (5) I added D:\Oracle\OraWin95\bin to my PATH variable and unchecked the checkbox next to one of the several
    lines that I have that build my PATH variable. (I have several PATH lines that simply add a path to the system
    variable %path%). After the installation is complete you can go back and turn back on the paths that you had disabled.
    After installing 8i I did have a problem connecting to the database. I got this error:
    Error: ORA-01034 Oracle not available
    I believe this happened because I had forgotten to turn back on some of my PATH information that I mentioned
    earlier. After checking one of my PATH variables and rebooting, this problem disappeared.
    When reinstalling 8i and when the installation asks for an SID and you enter the SID you had used in the original
    installation you may get a notice that says the SID already exists. I think this happens because the uninstall does not
    clean up the registry totally, so I entered a different one. Later on, after the installation has been completed and you
    are connecting to your database, you will be prompted to select an SID -- just make sure that you select the SID from
    the latest installation.
    I should've mentioned first that in preparing for this whole ridiculous exercise I created a directory under my Oracle
    directory that I was going to use as the new 'Oracle home.' So I guess that's all one has to do to create a new Oracle
    home -- just have another directory ready to install 'stuff' into.
    All in all, this a pretty asinine exercise. Oracle really needs to fix this mess. I honestly thought Microsoft was bad but
    this takes the cake. I wonder if SQL Server is this screwed up.

  • Creating a new database in a new Oracle home

    Hi,
    I'd like to add a new database using dbca, but I want it in a different Oracle Home to the other databases on the server. I notice that in the dbca I do not get an option to specify a new Oracle home. I assume it is because this tool is only for database creation and not instance creation. Do I therefore need to do a full Oracle install in order to create a second Oracle home?
    Many thanks.
    ****Ignore this, I know what I'm doing now****
    Edited by: user11201026 on Aug 6, 2009 3:52 AM

    You need to better understand what an ORACLE_HOME is. An Oracle home has nothing to do with a Oracle database.
    ORACLE_HOME defines the location of an installation of an Oracle software installation.
    Where you decide to put a database is irrelevant to the location of an ORACLE_HOME.
    One ORACLE_HOME can have zero, one, or many databases.
    But you can not have an ORACLE_HOME without an installation of Oracle software.
    The concept docs are at http://tahiti.oracle.com.

Maybe you are looking for

  • Creative Labs Customer Supp

    Or moreover, the lack thereof. First you come out with the Zen Vision player with documentation so sparse that sellers like Amazon.com are asking for additional user manuals to post [at least they were when I bought mine]. Then for customer support y

  • How do I get these windos to communicate? I am lost...

    I am a computer science student who was not happy with the scope of entry level programming classes. I am taking it on my self to learn the nuts and bolts of Java. Right now, I am working with GUIs for the first time and I am lost with this (probably

  • Issue with VC/2 - not fetching the invoice details

    Hi All, We have an issue with TCode VC/2 in ECC 6. This is not fetching( not showing) the Invoice documents under the header "Last SD Documents". It is fetching the sales documents like orders, credit memo/debit memo requests but not the invoice docu

  • Adding modem device to a zone

    Hi, Im trying to add a modem to a zone, but not having much fun. Zones dont seem to have a /devices/ "directory" and so Im presuming you can't install drivers to the kernal and add them like that. Im also presuming that because of this, a modem would

  • Where is my UDF?

    Hi brothers, anyone can help me? How can i get the correct UniqueUID of an UDF from a system or a user form? I have seen something like this: oUDF = SBO_Application.Forms.GetForm( -m_SboForm.Type, m_SboForm.TypeCount); ... but this code is not safe.