How to unset or remove ORACLE_HOME from PATH variable in UNIX

Hi,
below is my PATH on one of the server :
oracle@bccdb1d[DUMMY] /optware/sybase/work/jaya => echo $PATH
/optware/oracle/10.2.0.2_Q407/bin:.:/usr/local/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/FXboks/bin
Now I don't want the ORACLE_HOME path to be there in $PATH. I tried below steps to unset it but wasn't successful:
oracle@bccdb1d[DUMMY] /optware/sybase/work/jaya => export ORACLE_HOME=''
oracle@bccdb1d[DUMMY] /optware/sybase/work/jaya => echo $PATH
/optware/oracle/10.2.0.2_Q407/bin:.:/usr/local/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/FXboks/bin
Now even after unsetting it I still see the ORACLE_HOME within the PATH variable.
Need help.
Thanks,
Kalyan

either edit your .profile in your home location...vi .profile --this will then be in effect each and every time you login
or make a new profile that you can use such as vi .temp_profile - and then add what ever variables you want to take effect and then execute the profile eg. <. .temp_profile> --this will allow you to choose how you want the $PATH variable to react
or you can reset just the path to what you want by doing: export PATH=<what ever you want listed in your path variable> --this will need to be done each time after logging in                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • 11g installation warning - how to remove OH from PATH

    Hi all,
    I am getting the following warning when installing 11g on linux 4.0.
    I am using the same Oralce Base where 10g is installed.
    Please let me know how I can remove Oralce_home from PATH variable..
    Checking PATH environment variable...
    Check complete. The overall result of this check is: Failed <<<<
    [b]
    Problem: The installer has detected that the PATH environment variable includes other ORACLE_HOME locations in it.
    Recommendation: Restart the installer after removing other ORACLE_HOME locations from PATH environment variable.
    ========================================================
    Checking LD_LIBRARY_PATH environment variable...
    Check complete. The overall result of this check is: Failed <<<<
    Problem: The installer has detected that environment variable LD_LIBRARY_PATH includes other ORACLE_HOME locations in it.
    Recommendation: Restart the installer after removing other ORACLE_HOME locations from LD_LIBRARY_PATH environment variable.
    ========================================================
    Thanks,

    What operating system are you on?
    Okay, assuming unix of some sort and not Windblows...
    This is a nice trick I figured out long ago and is how I am able to easily run multiple versions of oracle with multiple Oracle_Homes on the same servers (unix):
    You can easily set your path in your .profile, or .bash_profile, or .cshrc (ugh).
    # Set up the PATH <jww>
    PATH=$HOME:.:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/contrib/bin
    export PATH
    echo $PATH > $HOME/ORIGINAL_PATH
    Then..... (here's the main part)
    I set up a case script that I accept input based on the ORACLE_SID, which then executes (sources) an oraenv file (of sorts). This file then sets the path for the database based on instance name and version of software requirements.
    #!/bin/ksh
    # orcl
    export ORACLE_SID=orcl
    export ORACLE_BASE=/u01/oracle/product
    export ORACLE_HOME=$ORACLE_BASE/10.2
    export ORAENV_ASK=NO
    alias admin='cd /u01/oracle/product/admin'
    export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
    #Set up the PATH environment
    ORIGINAL_PATH=`cat $HOME/ORIGINAL_PATH`
    PATH=$ORACLE_HOME/bin:$ORACLE_HOME/ldap/bin:$ORACLE_HOME/Apache/Apache/bin:$ORIGINAL_PATH
    ## adding the following parameters required for certain oracle utilities (wallet, sqlldr, etc.)
    # jww, 01/08/2008
    ## for Oracle 10G
    export LD_LIBRARY_PATH_64=$ORACLE_HOME/lib:/usr/lib
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib32
    ## According to Oracle NOTE: 418548.1
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
    echo ""
    echo " Verifying environment variables set properly: "
    echo " ============================================= "
    env |grep 'ORACLE_SID' | grep -v '$ORACLE_SID'
    env |grep 'ORACLE_BASE'
    env |grep 'ORACLE_HOME'
    echo ""
    Hope this helps...
    Ji Li

  • I see this was not answered or any info on the web site so I will ask again "How do I completely remove CC from my computer"

    I see this was not answered or any info on the web site so I will ask again "How do I completely remove CC from my computer"?
    And don't talk about CC cleaner.
    Howard

    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.apple.com/kb/HT1923

  • How can I permanently remove apps from my ipad, iphone and ipod (which are in icloud)?

    How can I permanently remove apps from my iphone, ipad, ipod operating in the iCloud?

    Apps don't operate in the cloud - they're either downloaded to your device, or they're in your Purchased list. You can't permanently remove the history of apps you've purchased, but you can hide them. See this link:
    http://support.apple.com/kb/HT4919
    Matt

  • How to eliminate or remove zeros from 1D array

    How to eliminate or remove zeros from 1D array. Let say I have 1D array having foolowing elements
    "0 0 0 0 0 4 0 0 9 0 0 1 4 0 0 0 0 0 0 0 0 10 9 0 0"
    So after removing or eliminating zeros it will become as follow
    "4 9 1 4 10 9"
    So can any body guide me how can I do that? See attached Image for details.
    Thanks 
    JK

    altenbach a écrit :
    hchiam wrote:
    Here are 2 example .vi's I made based on altenbach's removeZeroes.png in this discussion thread: 
    It seems pretty pointless to post those because no new useful information is given.
    Currently, only the input is defined in the connector pane, making them useless as subVIs.
    unlike my example using integers, an "=0", like any "equal" comparison, is potentially dangerous with DBLs.
    Reshaping a 2D array to 1D before removing zeroes is pretty pointless because a 2D output cannot be recovered. A more interesting scenario would be to remove some columns or rows (e.g. that are all zeroes) from a 2D array.
    You should also clean up the front panel, e.g. properly zero the upper left corner, make the controls/indicators nicely labeled, sized and arranged, and maybe even add scrollbars to the arrays.
    Thank you for those comments.
    Now the input and output are defined (in the updated attachments) for use as example subVI's.  I also cleaned up a few visual details, but I leave the rest for others to cater to their specific uses if they don't want to use this as a subVI (or at least as-is), such as changing the icons or changing to integers instead of doubles.
    I'm not sure about what you mean exactly with "=0" being "potentially dangerous with DBLs".  I'm guessing you had a certain case scenario in mind.  Although the subVI's seem to work fine within my larger program and situation, my situation may not generalize with regards to this point.
    I reshaped from 2D to 1D, with a 1D output, because it could be helpful for things like when later processing just needs a 1D array.  For example, in my situation I had to remove a huge spike of unnecessary "0"'s from a previous subVI that were affecting the output display of a certain histogram.  So it turned out a 1D array output was helpful, and you never know what problems come up, so I included the 2nd example.
    Hopefully if someone is looking for this, they can just use or play with an example subVI (granted that they know how to plug things in for their context).  I was hoping to post a subVI people could put to direct use.

  • How can I completely remove iMessage from a iPad?

    Sorry I posted this a minute ago but I am not sure it did go through.  Let me post another one here...
    How can I completely remove iMessage from a iPad?  I know how to turn off iMessage on settings but I don't want the iPad to know my iPhone number at all.  How?  Thanks!  Jay

    jay.song wrote:
    Sorry I posted this a minute ago but I am not sure it did go through.  Let me post another one here...
    How can I completely remove iMessage from a iPad?  I know how to turn off iMessage on settings but I don't want the iPad to know my iPhone number at all.  How?  Thanks!  Jay
    Other post is here:
    How can I completely remove iMessage from a iPad (generation 2)?

  • How can I completely remove iMessage from a iPad (generation 2)?

    How can I completely remove iMessage from a iPad (generation 2)?  I know how to turn off iMessage on the iPad but I don't want this iPad to know my iPhone number at all.  Thanks.

    You can't. Default Apple Apps cannot be removed. If you sign out of your Apple Id in Settings->Messages->Send & Receive->Apple ID then the iPad will have no knowledge of your Phone number.

  • How do I completely remove Lightroom from my iMac?

    How do I completely remove Lightroom from my iMac?

    Hi,
    Do you mean you would like to remove Azure Backup Agent?
    If so you can remove it in Control Panel:
    Press the Windows logo key + Q to open the Apps menu, and then click Control Panel.
    Under the Programs item, click Uninstall a program.
    In Uninstall or change a program, click Azure Backup Agent.
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to Add and Remove Apps from Launchpad?

    I have noticed that I have apps missing in launchpad that I do have in my apps folder.
    How do I add these to launchpad.
    On the flip side, then how can I remove apps from launchpad that I hardly ever use?

    Did you check the second page of Launchpad?
    Click the second white dot in the bottom middle of the Launchpad screen.
    Hope  information from these articles helps.
    http://support.apple.com/kb/PH4524
    http://www.macobserver.com/tmo/article/how_to_get_the_most_from_the_macs_launchp ad
    Best.

  • How do i completely remove headers from email messages

    Hi everyone. Can someone tell me how to completely remove the headers from showing up in messages i send, forward or receive? I know how to make the headers shorter, but that's not what i want to do. I want to completely remove them from all outgoing and incoming messages. Thanks!

    Hi lpagillo.
    Not sure what you mean. You cannot remove the headers from the messages themselves. If what you want is them to not show up so that they don’t take up space on the screen, choose None in Preferences > Viewing > Show header detail.

  • How the **** do you remove bookmarks from the bookmarks toolbar?

    I have just sat down for one hour to remove bookmarks from bookmarks toolbar - very easy to add more impossible in my case to remove them

    thank you so much after trying to find out how to do it for over an hour you solved it in a few seconds ........ thank you not so mad madperson

  • How can i update/Remove Items from AR Invoice using SDK?

    Hi All,
    I have 1 problem with update or remove item from sales order. here is the source code of mine.
    If inv.GetByKey(DocumentNumber) = True Then
                        inv.CardCode = cardcode
                        Dim ercode As Integer
                        Dim ind As Integer = 1
                        For Each drow As DataGridViewRow In gv.Rows
                            If gv.Rows.Count = ind Then Exit For
                            ercode = drow.Cells("No").Value
                            inv.Lines.SetCurrentLine(ercode)
                            'inv.Lines.ItemCode = drow.Cells("itemcode").Value
                            'inv.Lines.ItemDescription = drow.Cells("itemname").Value
                            inv.Lines.Quantity = drow.Cells("qty").Value
                            inv.Lines.Price = drow.Cells("price").Value
                            ind = ind + 1
                        Next
                        errorcode = inv.Update
                        If errorcode <> 0 Then
                            PublicVariable.oCompany.GetLastError(errorcode, errorsms)
                        Else
                            errorcode = 0
                        End If
                    Else
                        errorsms = "Not found Invoice Document Number"
    End If
    After update, it error "[INV1.Quantity][line:1],'Field cannot be updated (ODBC -1029)'"
    Does anybody know about this?
    Thanks
    TONY

    Hi $riniva$ Rachumallu,
    This is my mistake that not test manually in application.
    Thanks
    TONY

  • How do I completely remove Bing from Safari

    I have tried to remove Bing from Safari by doing the following:
    1) Checked that default search enging is google
    2) Turned off extensions (and deleted install.mac extension)
    3) Searched fo Bing in finder without success
    All the discussion suggestions complete the steps above, but they have not worked for me. I'd really like to stick with Google and dont really want to try other search engines
    Kind regards

    Look to the right of Safari's address window.  You should have a search engine window.  Click on the SE icon inside the window & select Manage Search Engines.

  • How do i prevent removed apps from syncing when connecting to iTunes

    I've "removed" apps from my iPad to free up space but when I connect to my computer, the apps "appear" to still sync. 
    To the upper right of the screen, it will show there are 65 apps (I removed 20 apps).  These are active apps and that is correct  When I click on the status bar at the bottom of the screen (the Apps section), it shows there are 85 apps taking up space on my iPad.
    Also, where the apps are listed, the apps that were "removed" from my iPad air have an option to "Install".   I don't understand why they're still syncing.  TIA for your help!

    This does not help but it does offer some insight. I have NEVER noticed this before. Take a look at the dialog box in the is screenshot. Note that it says that even if the app is deleted from the iTunes library, it will not be removed for any iOS devices when you sync.
    As an experiment, I deleted the AOL On app from my iTunes library and followed the prompts to put the app in the trash - not keep it in the mobile sync folder. I synced my iPad - and the app is still on the device even though it does NOT appear in my list of apps in iTunes when the iPad is connected and selected. I have never seen that happen before.
    If the app is not in your library, I always assumed that it would be erased when you sync since it is no longer in iTunes. I deleted the app in iTunes and then deleted it on the iPad and then synced again and now it is gone everywhere.
    Bizarre....

  • How do I add/remove programmes from computer.It is an OSX 10.7.5

    How do I add/remove programmes on my OSX 10.7.5 please

    Sorry its not an ipad it is a desktop computer

Maybe you are looking for