Un set ORACLE_HOME & TNS_ADMIN environment varaibles

AIX: 5.2
DB: 10g Rel 2
Do we need to un set ORACLE_HOME & TNS_ADMIN environment varaibles prior to Oracle installation?
I
$ echo $SHELL
/usr/bin/ksh
DN

If you already have some other oracle installed on that box then make sure to change ORACLE_HOME otherwise set it to where you want the binaries to be and TNS_ADMIN also is not going to effect the installation. If you unset it then while installing you need to specify the path for oracle binaries and if you set it then installer will pick the path from that variable.
Daljit Singh

Similar Messages

  • Setting ORACLE_HOME as Environment variable in Windows

    Hi,
    I have a problem.
    I am using Oracle Application Server 9.0.4. on Windows 2000 server .
    There are 2 homes, one for mid tier and one for Infra.
    Now when I look in PATH variable of the environment variables, i can see both homes specified there.
    But when issue echo %ORACLE_HOME% from command prompt then i can see nothing.
    And there is no ORACLE_HOME environment variable, so i created a ORACLE_HOME variable and assigned the Oracle home path to it.
    Now when i issue the command echo %ORACLE_HOME% i can see the value of the ORACLE_HOME,
    So is this the correct way to set the ORACLE_HOME?
    Is this the way to create the ORACLE_HOME environment variable.
    Thanks & Regards,
    Avinash.
    Pune.
    India.

    So is this the correct way to set the ORACLE_HOME?
    Is this the way to create the ORACLE_HOMEenvironment
    variable.No. Not on Windows platforms.
    The Oracle Home paths are already set via Windows
    Resgistry values. Check HKLM\Software\Oracle\ (HOMEx
    or KEY_<home name>) for ORACLE_HOME settings.
    This is used by programs via PATH and when calling a
    program that uses the oracle.key files from OH\bin.
    Setting it via system environment could override
    individual settings, which may lead to unwanted
    results or issues.True for some areas.
    And yet, for Patching you MUST set the Oracle_Home variable, in which case Virag's response is the correct method.

  • TNS_ADMIN Environment Variable

    Hi,
    I am trying to install Oracle AS 10g Standard Edition one on my system.The problem is
    1. That when I try to install Oracle Portal with Metadata Repository 3.4GB option, I get the error that the environment variable TNS_ADMIN is set to a directory which does not exist.I have checked the environment variables but there is no such variable named TNS_ADMIN.
    2. After this the system asks to provide 3 more files
    3. Abnormal installation termination errors appear and I have to cancel the installation.
    Help will be greatly appreciated,
    Daya

    Hi,
    Yes, the Oracle Installer also looks for TNS_ADMIN in the registry - it's usually in HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOMEID.
    Howevern the environment overrides the registry - so if TNS_ADMIN is set in the environment, then that takes precedence over the TNS_ADMIN setting in the registry.
    As mentioned by deltondm, depending on the Platform, you can set the TNS_ADMIN environment variable & try to proceed with the installation.
    Regards,
    Sandeep

  • How to set ORACLE_HOME environment variables in win 2003

    Can anyone tell me how to set ORACLE_HOME environment variables in Win2003
    Please tell me the significance of that also.It will be really helpful if u can help me out from Path variable seting of JAVA SDK also... Thanks in advance...

    hi
    use this code IN FORMS60 variable in Regedit
    \\server\DATA\store\Forms;
    Rizwan

  • How to set ORACLE_HOME for database and apps server in same server

    Hi, I have problem here to set ORACLE_HOME in .bash_profile for database and apps server. please help me to set this Oracle Home.
    Thanks
    -jebatco

    If you mean to have both simultaneosly set on the same OS session, of course that's not possible. But you can configure them on your profile, and choose them when needed. The following is an excerpt from my .bash_profile
    export EDITOR=vi
    umask 022
    alias O='cd ${ORACLE_HOME}'
    o10()
    {       export ORACLE_SID=db102
            export ORACLE_BASE=/home/oracle/base
            export ORACLE_HOME=$ORACLE_BASE/OraHome10
            export LD_LIBRARY_PATH=$ORACLE_HOME/lib
            export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
            export TNS_ADMIN=$ORACLE_BASE/OraHome11/network/admin
            export PS1='[\u@\h_10 \W]\$ '
    o11()
    {       export ORACLE_SID=db11
            export ORACLE_BASE=/home/oracle/base
            export ORACLE_HOME=$ORACLE_BASE/OraHome11
            export LD_LIBRARY_PATH=$ORACLE_HOME/lib
            export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
            export PS1='[\u@\h_11 \W]\$ '
    xe()
    {       export ORACLE_SID=XE
            export ORACLE_BASE=/usr/lib/oracle/xe/app/oracle
            export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/server
            export LD_LIBRARY_PATH=$ORACLE_HOME/lib
            export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
            export TNS_ADMIN=/home/oracle/base/OraHome11/network/admin
            export PS1='[\u@\h_XE \W]\$ '
    }If I want to set Oracle 10g environment I type "o10" at OS prompt, "o11" for 11g, and so on.

  • Resolution of TNS_ADMIN Environment variable

    In ODAC Release 3 the managed ODP supports TNS_ADMIN environment variable. As it nowhere found in the documentation and judging from this thread it is an undocumented leftover feature that can be removed anytime.
    Are there are any plans on removing this feature? The environment TNS_ADMIN variable has the huge benefit that pretty much all oracle client components support it (managed as well as unmanaged) and it's very easy to maintain. A single setting and a single tnsnames.ora that works for all x86, x64, unmanaged and managed applications - it's really great...

    Please do not remove support for TNS_ADMIN environment variable.  As the original poster stated "The environment TNS_ADMIN variable has the huge benefit that pretty much all oracle client components support it (managed as well as unmanaged) and it's very easy to maintain. A single setting and a single tnsnames.ora that works for all x86, x64, unmanaged and managed applications - it's really great..."  In addition, this is our standard way to set the TNS_ADMIN setting on all our servers and desktops, not what which version of Oracle is used.  Making the ODP.Net driver so it does not support this would just make things confusing.  If users want to use the TNS_Admin environmental variable to identify where the TNSnames.ora files is then ODP.Net should support it.
    Keeping support for the TNS_ADMIN environmental setting in the ODP.Net driver does not hurt anything and give your customers the option of whether they want to continue using the environmental variable or one of the new ways to set where the tnsname.ora file is. But taking it way could cause issues for you customers and have a negative impact on them.  This change could also discourage developers from using the new ODP.Net driver, which would be a shame because the benefits of using it are huge.  The biggest issue with using web.config/ machine.config settings is that the directory structure on the developer machine probably does not match the directory structure on the Dev/QA/Prod server. so this would mean the developer has to change it to the "server" setting before deploying and change it back when running locally.  This is hard to maintain and very likely that the local setting is accidently deployed to the server. 

  • How to set ORACLE_HOMES on Windows 2000 for 11i

    How to set ORACLE_HOMES on Windows 2000 for 11i
    As am newbie on windows.
    Its very urgent.

    To set ORACLE_HOME on Windows:
    C:\> set ORACLE_HOME=<location>
    i.e.
    C:\> set ORACLE_HOME=d:\oracle\proddb\10.2.0
    To verify:
    echo %ORACLE_HOME%
    In Apps 11i, you do not have to set it manually, just source the environment file and this will set all environment variables for you.
    - To source the application env file, run envshell.cmd under %APPL_TOP%
    - To source the database env file, run <SID>_<hostname>.cmd under %RDBMS_ORACLE_HOME%

  • How to set ORACLE_HOME in Fedora core 3

    hi every body
    how can i set oracle_home in fedora core 3?
    and i am a new linux user. please your solutions are clearly
    help me!!!!!!

    From http://www.dbspecialists.com/presentations/oracle10gsolaris.html
    In $ORACLE_HOME/bin (the bin directory under your Oracle home) you will find a shell script called oraenv. This script can be called from .profile or .bash_profile to set up a user’s environment automatically whenever they log onto the database server.
    and
    $ export ORACLE_SID=dev101ee
    $ export ORAENV_ASK=NO
    $ . /usr/local/bin/oraenv
    Message was edited by:
    james_gordon

  • Post-Installation of RAC: main directory and file to set ORACLE_HOME ?

    Folks,
    Hello. I am installing Oracle 11gR2 RAC using 2 VMs (rac1 and rac2) whose OS are Oracle Linux 5.6 in VMPlayer according to the website http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
    I have just finished installing Grid infrastructure and RAC database 11gR2 successfully.
    After that, I add the entries into the file /home/ora11g/.bash_profile as below:
    export ORACLE_SID=racdb2;
    export ORACLE_HOME=/u02/11g_db/ora11g/racdb;
    export GRID_HOME=/u01/app/grid;
    PATH=$GRID_HOME/bin:$ORACLE_HOME/bin:$PATH; export PATH;
    After that, I run the following command:
    [ora11g@rac2 /]$ /u02/11g_db/ora11g/racdb/bin/srvctl config database -d racdb
    Its output:
    ORACLE_HOME environment variable is not set.
    ORACLE_HOME should be set to main directory that contains Oracle products.
    Set and export ORACLE_HOME and then re-run.
    My questions are:
    First, I have added entries into the file /home/ora11g/.bash_profile. Why it still says "ORACLE_HOME environment variable is not set" ? Is this way wrong ?
    Second, what are the main directory and the file to set ORACLE_HOME ?
    Thanks.

    Folks,
    Hello. Thanks a lot for replying. I reboot OS and run the commands as below:
    [ora11g@rac2 bin]$ ./srvctl config database -d racdb
    Its output:
    PRCD-1027 : Failed to retrieve database racdb
    PRCR-1070 : Failed to check if resource ora.racdb.db is registered
    Cannot communicate with crsd
    [ora11g@rac2 bin]$ ./sqlplus
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Mar 9 15:28:59 2012
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Enter user-name: SYS
    Enter password: SYS
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    Enter user-name: SYSTEM
    Enter password: SYSTEM
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    Enter user-name: SYSMAN
    Enter password: SYSMAN
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    [ora11g@rac2 bin]$
    As we see the outputs above for the 2 commands "srvctl" and "sqlplus", my questions are:
    First, why cannot retrieve database racdb ?
    Second, sqlplus is poped up. Why users SYS, SYSTEM, SYSMAN cannot log in ?
    Third, does my RAC database installation have problems ?
    Thanks.

  • Set Oracle_home or use -oh option

    Hi All,
    Im installing Oracle Application server 10g, on XP laptop, which already has got Oracle 9 DB, Orcle Developer in different homes ORA9DB, DEFAULT_HOME respectively. i have installed Oracle Appserver in OASHOME new home.
    After installation wanted to check patch level, and trying to run opatch.bat located in OASHOME, opatch directory.
    i get Oracle home not defined, set oracle_home or use-oh message.
    i did try to set oracle home by giving set oracle_home=c:\oashome, but still the error remains...
    Thanks in advance

    Hi,
    I once got lucky with this by setting the ORACLE_HOME environment variable in the System Properties ( My computer -> Properties -> Advanced -> Environment Variables). Can you try to see if it works for you ?
    Regards,
    Sandeep

  • How to set Multi User Environment in the weblogic 5.1 and 6.1 server..(Urgently)

    Hi all,
    I need to know how to set Multi User Environment in the weblogic 5.1
    properties file..
    Here my question is..:)
    1) I have a database with multiple users and having different privileges
    for the users.. and i need to use all the privileges when user aceess
    the database through weblogic server connectionPool.
    2)According to the user privileges i need access the database tables
    content and gives the frontEnd(jsp).
    3)How to modify dynamically weblogic.properties file in the weblogic
    5.1.
    If anybody having idea reg. this issues pl...help me..
    Thanks in advance
    Chandu([email protected],[email protected])

    Hi. A JDBC connection pool is a set of identical, interchangeable, pre-made
    connections, and the controls to make sure only one user uses a particular
    connection at any one time. If you want to have different DBMS users, you can
    have a separate pool for each DBMS user, which may contain as many or few
    connections as you want. Some applications has a pool for the accounting
    applications, and another for the sales applications etc. Some do have a
    separate pool for john, jane, joe etc, each with one connection. Pools
    can be created and destroyed dynamically using the dynamic pool API.
    Joe
    softstar wrote:
    >
    Hi all,
    I need to know how to set Multi User Environment in the weblogic 5.1
    properties file..
    Here my question is..:)
    1) I have a database with multiple users and having different privileges
    for the users.. and i need to use all the privileges when user aceess
    the database through weblogic server connectionPool.
    2)According to the user privileges i need access the database tables
    content and gives the frontEnd(jsp).
    3)How to modify dynamically weblogic.properties file in the weblogic
    5.1.
    If anybody having idea reg. this issues pl...help me..
    Thanks in advance
    Chandu([email protected],[email protected])

  • Setting up the environment

    Hello
    I have just started working on Weblogic server 8.1 on a Windows XP machine.
    In order to set up the environment I ran the batch file 'setWLSEnv.cmd'.
    I noticed that the new settings for PATH and CLASSPATH variables did not reflect
    in the values of PATH and CLASSPATH when viewed through the control panel on my
    machine. Also WEBLOCIG_CLASSPATH did not show up either on my control panel.
    Are these settings visible only to the Weblogic server and does this mean that
    I need to run the batch file 'setWLSEnv.cmd" everytime I want to start the Weblogic
    server.
    Thanks for your help.
    Naveen

    You don't need to do anything in the environment to use a MIDI keyboard, it just needs to be connected via a MIDI input. If you select an Audio instrument track (as opposed to Audio or external MIDI track) you should see the track strip at the left hand side and a button labelled 'Input'. Click and hold on this and a hierarchical menu appears for you to select an instrument plug in, so select one and then play on your keyboard.

  • Setting up the environment in WLS 7.0 and deplying?

    Hi,
    Previously I have used WLS 6.1.
    I have set up the properties file and the required folders in the mydomain folder for the classes. It worked fine for me.
    Now when I am using WLS 7.02.
    This looks complicated. I have seen the documentation, it tells about different folders other than config like stage and server.
    My question is can I use the same old environment setting as in 6.1 in 7.02 and deploy the applications as before.
    If not, am I missing anything.
    If anyone has worked on WLS 7.02, please let me know how you have set up the environment and deplyed the applications.
    Thanks in Advance
    Rama
    [att1.html]

    "rama" <[email protected]> wrote in message news:[email protected]..
    Hi,
    Previously I have used WLS 6.1.
    I have set up the properties file and the required folders in the mydomain folder for the classes. It worked fine for me.
    Now when I am using WLS 7.02.
    This looks complicated. I have seen the documentation, it tells about different folders other than config like stage and server.
    You dont have to setup anything extra for 7.x deployment. The server and stage directories will take suitable defaults.
    See 'Using WebLogic Server 6.x Deployment Protocol' in http://e-docs/wls/docs70/programming/deploying.html
    My question is can I use the same old environment setting as in 6.1 in 7.02 and deploy the applications as before.
    If not, am I missing anything.
    If anyone has worked on WLS 7.02, please let me know how you have set up the environment and deplyed the applications.
    Thanks in Advance
    Rama
    [att1.html]

  • How to set ORACLE_HOME used by SQL Developer?

    I need to use OCI/Thick driver with SQL Developer to get OS authentication working. I have 64-bit windows and 64-bit oracle installed. I also have 32-bit instant client in another ORACLE_HOME, because the libs of 64-bit ORACLE_HOME won't work with SQL Developer. Quite trivial setup if the SQL Developer would just take the hint an start using the right ORACLE_HOME. I have tried making a start.bat containing following...
    set ORACLE_HOME=C:\oracle\product\11.1.0\instantclient_11_1
    start sqldeveloper.exe
    ..but it doesn't have any effect. I can't change ORACLE_HOME in registry, because it would mess up other services requiring 64-bit oracle.

    It might be a little late for the original post, but maybe someone else will need it:
    I found that the way to solve such issue is by specifying the TNSNAMES of the wanted oracle_home. That'll do it.
    It could be done in Tools -> Preferences -> Database -> Advanced -> Tnsnames directory.
    Screenshot:
    http://i40.tinypic.com/2nk2rs4.png
    Tested on Oracle SQL Developer 3.2.20.09 and 4.0.0.12

  • SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

    Hi all,
    In windiws 2008 server i have installed 11g wtih 11g Client for Pro*c . so there is two Oracle_Home resides. In the same machine i have installed 11g Forms and reports with weblogic server.
    Now i am not able to connect with the Database in SQL Prompt.more over if i issue SQLPLUS i am getting this below error
    "+Error 6 initializing SQL*Plus+"
    "*Message file sp1<lang>.msb not found*"
    "*SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory*"
    Here my Question and doubt is how i have to solve this issue.i want to use this 11g Database and 11g Forms and reports in single server. how to do this ?
    Kindly share your Advice.
    Regards
    Hamid

    Hameed wrote:
    "+Error 6 initializing SQL*Plus+"
    "*Message file sp1<lang>.msb not found*"
    "*SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory*"
    Here my Question and doubt is how i have to solve this issueIt is clearly said - set ORACLE_HOME prior to runing sqlplus.

Maybe you are looking for

  • IWork (Pages) does not work after last system update!

    since some days (after last system update) iWork programms are not starting any more! macosx 10.7.5 new update solution atemd: cancel p-ram and p-list, re-installing iwork from DVD and update it from http://support.apple.com/kb/DL1563 macbookpro 2.53

  • My iTunes won't delete the lyrics.

    I deleted the lyrics and press ok. But when i opened the get info part then click lyrics again, it would still appear. Any solutions? I've tried deleting the song and reinstalling itunes already. But it's still not working. Please help!

  • COLLECTIONS POP UP AFTER REBUILDING?

    AFTER FICO SCORE GOES UP ...OLD COLLECTIONS ARE STARTING TO REPORT WHY?

  • Display Bex Query in Web

    Hi, I want to display the Bex query directly in web.What are the possible ways that i can do, for the user to view the report in the web.Can anyone tell me how to configure RRMX in this case or how to do the settings for user to navigate from user me

  • Communication lost between labview 6.0 opc to rslinx

    I am reading i/o tags from an allen bradley 5/05 through rslinx using ethernet settings. Everything works fine, I read and write to the tags all day. However, If I go online through the ethernet it seems like all the bandwidth is used up and labview