Env variable confusion - newbie install

Hello,
I have completed the installation sequence for db 10g (10.2.0.1) on RHEL 4.3 (x86_64). I am somewhat confused by this installation procedure wrt env. variables such as ORACLE_HOME, ORACLE_SID, ORACLE_BASE, etc.
The pre-installation guidelines are clear in saying that .bash_profile (in this case) for user 'oracle' should NOT set these variables prior to installation:
8. If the ORACLE_SID, ORACLE_HOME, or ORACLE_BASE environment variable is set
in the file, then remove the corresponding lines from the file. (Preinstallation Tasks 2-41)
User 'oracle's .bash_profile does not get updated during installation; subsequent login as 'oracle' shows that the env. variables are not set via other means. Is there a post-installation step I'm missing?
Thank you again,
Scott

oraenv uses the ORACLE_SID to set the ORACLE_HOME and PATH - including making sure the ORACLE_HOME/bin is unique in the PATH
But ... unless there is a database instance involved, ORACLE_SID is meaningless. It really does not have meaning until dbca is used to create a database, or the manual counterpart to dbca is invoked and oratab is updated.
I have found there is a Catch-22 related to the oratab/oraenv which seems to have caused oraenv to be undervalued.
However, due to the possibility of several ORACLE_HOMEs and several databases, since Oracle7 I have used the following sequence in my .profile
export PATH=$PATH:/usr/local/bin # if not already done
export ORAENV_ASK=NO
ORACLE_SID=orcl
. orenv
export ORAENV_ASK=
and then I am able to source /usr/local/bin/oraenv on demand to set te SID, HOME and PATH for any database.
It's so useful, I add entries for each ORACLE_HOME into the oratab, regardless of whether it represents a database or not. For example, I will have entries for GridAgent, OMS, and so on.
I can not explain why the oraenv is not better discussed in the documentation. It misses a major 'feature'.

Similar Messages

  • PATH env. variable value if Oracle is installed

    Hi,
    When Oracle is installed on the machine,in such case if we type on command prompt "PATH" and enter (on Windows machine) then we see the first value pointing to the ORACLE INSTALLED directory.I want to know, does this value persist till we uninstall Oracle from machine?
    What will happen if 2 applications want to share the same path, one application wants to chage the path value which will update ORACLE INSTALLED directory,and other one wants to keep it as it was earlier ?
    Waiting for reply.
    Thanks,
    Rupesh

    Agreed ! What I want to confirm is that the first value in PATH env. variable.
    Does it remain same always ?
    Like, if I type PATH on command line and press ENTER, I can see value of PATH variable as :
    D:\ORACLE\BIN;C:\PRO\BIN;D:\ABC\BIN;....; and so on.
    First value in above string is always ORACLE_HOME\bin directory. So, does it mean that, if Oracle is installed on machine, then PATH variable always sets it first place to search to ORACLE_HOME/bin directory ? is it so ? please suggest me.
    Thanks,
    Rupesh

  • Get CGI env variables in a database procedure using new APEX Listener

    I already posted this question in the Apex Listener forum and still no replies after one week. The original post is here:
    Get CGI environment from APEX Listener within database procedure
    So please forgive me for posting in this forum as well, but there is a lot more activity here.
    I'd like to know how I can get the CGI environment from the APEX Listener. For example, if I want to write a procedure that inserts into a table the originating IP Address of the client making the web request, how do I get it?
    I am familiar with the Oracle Http Server and mod_plsql, and I know how to call OWA_UTIL.GET_CGI_ENV to get this sort of information. How do I do it using the APEX Listener?
    In particular, how do I do this when calling a custom procedure (not in an Apex workspace)? When I try it now, I get an error from owa_util. The cgi env seems to be empty or not initiated (owa.num_cgi_vars is null or zero).
    Specific set-up:
    I have a web server running the latest JDK, Glassfish, and 1.1.4 Apex Listener. It connects to another server running the latest 11.2 database. Apex is installed and running, but I am not really developing a traditional Apex application in a workspace. I mainly use it like you would use mod_plsql. In other words, I have custom pl/sql packages that are called directly via URL. The requests are forwarded by the listener to the database, and the DB executes the procedure and returns output using htp.p to send text back to the browser. And it works just fine for this purpose. But if I want to call GET_CGI_ENV to get information like the IP Address, web browser making the request, etc. I can't seem to get it with the OWA packages.
    Can anyone shed some light on this? If Apex Listener is not designed to do this, is there some kind of workaround I can use to forward this sort of information to the database for each request?

    I have not tried owa_util.print_cgi_env from SQL Workshop yet, as I have not created an APEX workspace. I have had no need for a workspace because of the way I am using APEX as a method for calling custom packages and stored procedures. In other words, I am using APEX strictly for the mod_plsql functionality. I just use it to forward requests to the database to execute pl/sql code, but I don't develop anything in APEX. My application is a web service with no screens and no direct user interface, which is why I did not need to create APEX forms. The front end is a mobile app that makes calls to the web service.
    But I have tried calling owa_util.print_cgi_env in one of my stored procedures and it returns no data, even when calling it from the web front-end.
    So I am beginning to believe that if the OWA toolkit works with APEX, then it must only be enabled when invoked within a workspace. Stand-alone procedures can be called via APEX, but apparently doing so does not initiate the CGI env variables. This set-up used to work under the OHS with mod_plsql. The embedded pl/sql gateway also works this way.
    Is there a procedure call that APEX is making to set the environment before each SQL Workshop request?
    My security model currently blocks access to all packages and procedures except for my custom packages. I am using the APEX Listener configuration to allow only the packages listed by name in a white list. But I thought I allowed all access when I first tried calling the OWA packages. I'll have to try that again.

  • Do I need to set  system env variables for weblogic and SOA server installation?

    Hi All,
       I already have two weblogic application servers on my machine(that were installed by others).
    I observed some environment variables were also set in System variables(ORACLE_HOME,WEB_SERVER_HOME etc) section in Env variables section(Start Menu---> Computer --> properties ---).But why do we need to have system environment variables wherein we already have those variables in files like setDomainEnv.bat or/and setSOADoaminEnv.bat for each server.
    And one more thing system variables will be applicable for all servers(the whole machine) right.It may spoil the installation of new servers and present servers as variables should be unique to each server.
        I want to install weblogic and SOA server installation.
    So Can I remove the existing system variables(as they will applicable for every server) and install weblogic and SOA server installation without setting up the environment variables?
    Especially I have multiple Weblogic servers,In that case how it would be to have environment variables(JAVA_HOME,WL_HOME,ORACLE_HOME etc)?
    Please guide me on this to installl SOA suite .
    Thanks in advance

    Hi All,
       I already have two weblogic application servers on my machine(that were installed by others).
    I observed some environment variables were also set in System variables(ORACLE_HOME,WEB_SERVER_HOME etc) section in Env variables section(Start Menu---> Computer --> properties ---).But why do we need to have system environment variables wherein we already have those variables in files like setDomainEnv.bat or/and setSOADoaminEnv.bat for each server.
    And one more thing system variables will be applicable for all servers(the whole machine) right.It may spoil the installation of new servers and present servers as variables should be unique to each server.
        I want to install weblogic and SOA server installation.
    So Can I remove the existing system variables(as they will applicable for every server) and install weblogic and SOA server installation without setting up the environment variables?
    Especially I have multiple Weblogic servers,In that case how it would be to have environment variables(JAVA_HOME,WL_HOME,ORACLE_HOME etc)?
    Please guide me on this to installl SOA suite .
    Thanks in advance

  • Dynamic ORACLE_HOME in env variable PATH  not working

    Hi,
    We have an issue whereby we want the PATH to be dyanmic with respect to the ORACLE_HOME.
    Have implemented the solution in 'ORA-12557: TNS:Protocol Adapter Not Loadable' While Running OUI [ID 735400.1 but not working.
    We have Windows 2008 R2 server with Oracle 11.2.0.3 client installed.
    First when did set to check environment varibales, fouND no env. variable for ORACLE_HOME even though in registry so have set ORACLE_HOME as user env variable.
    Have changed system env variable PATH to have  %ORACLE_HOME%\bin; at very start
    when do PATH to check value shows
    literally as %ORACLE_HOME%\bin at start rather than translating to the real physical location as it does with other logical variables.
    How can we ensure translates the ORACLE_HOME correctly so PATH is O.K.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    user5716448 wrote:
    Hi,
    We have an issue whereby we want the PATH to be dyanmic with respect to the ORACLE_HOME.
    Have implemented the solution in 'ORA-12557: TNS:Protocol Adapter Not Loadable' While Running OUI [ID 735400.1 but not working.
    We have Windows 2008 R2 server with Oracle 11.2.0.3 client installed.
    First when did set to check environment varibales, fouND no env. variable for ORACLE_HOME even though in registry so have set ORACLE_HOME as user env variable.
    Have changed system env variable PATH to have  %ORACLE_HOME%\bin; at very start
    when do PATH to check value shows
    literally as %ORACLE_HOME%\bin at start rather than translating to the real physical location as it does with other logical variables.
    How can we ensure translates the ORACLE_HOME correctly so PATH is O.K.
    open Command Window & issue command belowecho %ORACLE_HOME%COPY  the results, then PASTE all back here                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problems with OMB+ (OWB 10.2.0.2 Windows client) - ORACLE_HOME env variable

    Hi.
    I am trying to use the OWB_DEMO files found on the website. The OWB client is installed on a Windows XP SP3 laptop; when I try to use the OMBINSTALL OWB_TARGET_USER, I'm getting this error:
    ORACLE_HOME(or OWBCC_HOME for Clearcase) environment variable is not set up yet. Please set up first.
    I can't understand why I'm getting this error, because in the batch file setowbenv.bat, called by the OMBPlus.bat, all the env variables are correctly set and then passed to the JVM through the -D option.
    Could anyone help me to understand where is the problem, please?
    Thanks.

    This is bug 5853639, it is fixed in 10.2.0.3
    As a workaround enter "set OWBCC_HOME=<YOUR OWB HOME>" in setowbenv.bat.
    Regards,
    Robert

  • Env Variable setting for Oracle 11g windows 2003 R2

    Hi ,
    While installing the Oracle 11g on windows 2003 R2 getting error while running the prerequsite steps for installtion.failing the env variables path. Please guide us to set up the Environmental variable for the oracle 11g installation.
    Thanks..

    Tippu wrote:
    Hi,
    Oracle version Oracle 11.2.0.1
    Os Windows 2003 R2
    we had set some values. though we are getting the below errors.
    Environment variable: "PATH" - This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.
    Expected Value
     : 1023
    Actual Value
     : 0
     List of errors:
    PRVF-3916 : Environment variable name "PATH" is not set on node "laxwzcl01"  - Cause:  Environment variable value could not be determined.  - Action:  Ensure that the environment variable is set and access permissions for the Oracle user allow access to read the environment variables. Restart the installer after correcting the setting for environment variable.It's like setting any other environment variable in Windows ...
    Right click My Computer, select Properties > Advanced tab > Environment variables button ...
    It should be self-evident from that point.

  • Setting env variables through scheduler

    Hi All,
    I am trying to run a PERL script which makes database connection using DBI module through scheduler. The script works fine if I run it manually but from scheduler it fails because it can't fine libclnt.sh.10.1 lib file. I have LD_LIBRARY_PATH & LIBPATH set in my .profile and i guess when scheduler runs the external job, it creates a new shell but doesn't inherit the .profile settings (same as cron). I tried setting these env variables in PERL script itself but even then it's not working. I tried my theory by running this script from shell but without running .profile and it fail with exact same error.
    I want to know how you guys are handling this situation? How to set or call .profile from scheduler job so that all the env variable get set properly?
    OS: SUSE Linux
    DB: 11gR2
    Thanks
    Daljit Singh

    Thanks for the reply, I am doing the same. I have create a very simple script where I am setting all the env variables and I can see that those variable are getting set but still, it doesn't work. There is something special when we run .profile, that time along with env variables, something else also get set (which i dont know and trying to find out) which makes PERL to search the oracle library in oracle_home. I can see that by turning libraries debugging on. Here is a small snippet when .profile doesn't get execute but the env variables are set:
    25039: find library=libclntsh.so.10.1 [0]; searching
    25039: search cache=/etc/ld.so.cache
    25039: search path=/lib64/tls/x86_64:/lib64/tls:/lib64/x86_64:/lib64:/usr/lib64/tls/x86_64:/usr/lib64/tls:/usr/lib64/x86_64:/usr/lib64 (system search path)
    25039: trying file=/lib64/tls/x86_64/libclntsh.so.10.1
    25039: trying file=/lib64/tls/libclntsh.so.10.1
    25039: trying file=/lib64/x86_64/libclntsh.so.10.1
    25039: trying file=/lib64/libclntsh.so.10.1
    25039: trying file=/usr/lib64/tls/x86_64/libclntsh.so.10.1
    25039: trying file=/usr/lib64/tls/libclntsh.so.10.1
    25039: trying file=/usr/lib64/x86_64/libclntsh.so.10.1
    25039: trying file=/usr/lib64/libclntsh.so.10.1
    25039:
    install_driver(Oracle) failed: Can't load '/usr/lib/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.10.1: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230.
    at (eval 3) line 3
    Compilation failed in require at (eval 3) line 3.
    Perhaps a required shared library or dll isn't installed where expected
    at /home/oracle/scripts/test 9
    See it is searching for this lib in some system path and not using any of env variable. I want to know where it's getting this value from. Also if I run .profile then, this path changes and inludes what is mentioned in LD_LIBRARY_PATH and then it works.
    Thanks
    Daljit Singh

  • Is there any env variable to be set during Netweaver2004installation onAIX?

    Hi ALL,
    <b>1. Is there any env variable ( like sapsystemname(?)) to be set during Netweaver2004installation on AIX?</b>
    When I install Netweaver 2004 on AIX, machine name is taken in capital letterrs by default, whereas it is in small letters.
    So when I give command >startsap -all
    I get error as no profiles found.
    I changed hostname to samll letters in all profile files, still I am getting the same error.
    <b>2. Where should I change it? Are there any other files where hostname is written?</b>
    Regards

    then something is wrong....what do you get when typing:
    > hostname
    small or big letters? did you try to set your hostname by
    > hostname <your hostname in small letters >
    GreetZ, AH

  • Setting NLS_LANG env variable for adcmctl.sh

    How do set the NLS_LANG env variable specifically for adcmctl.sh? Currently it gets overridden by the NLS_DATE_LANG env variable. I'd like to set it to blank if possible.
    Thanks in advance!

    Unfortunately there is no way to change the session character set on the fly .
    So you are pretty limited on what you can do ..
    1. Start up multiple instances of the report server on your machine, one per langauge.
    2. Try Oracle Report which support UTF8.

  • Java ENV variable on Linux

    Hi ,
    I am new to linux can any one please guide me the steps to follow to update the ENV variable for JAVA_HOME in Linux.
    Thanks
    Raghav

    Hi.
    http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/ (set JAVA_HOME)
    http://stefaanlippens.net/bashrc_and_others (Bash: about .bashrc, .bash_profile, .profile, /etc/profile, etc/bash.bashrc and others)

  • Env variable for custom top showing diffent values

    hi,
    we cloned the prod to UAT then the
    value for env variable for custom top showing different values.
    ie,
    backend it is showing
    echo $XXECO_TOP
    /oracle/UAT/apps/apps_st/appl/xxeco/12.0.0 (this is the correct value)
    from the front end when we submit the "print environment variable" concurrent request it shows the following incorrect value
    /dev/oracle/app/oraprod/apps/apps_st/appl/xxeco/12.0.0 (this is prod value)
    please let us know how to correct the value
    Edited by: 831498 on Feb 18, 2011 6:26 AM

    Hi,
    Post your Query to http://forums.oracle.com/forums/forum.jspa?forumID=475
    Regards,
    Gyan

  • Subject: Env Variable to distinguish environments u2013 Dev, QA, Prod

    I have a HP UNIX Script. This script is called from an ABAP Program which will be called from a process chain.
    UNIX Script will run in different environments u2013 Dev, QA, and Prod. While most of the script is same for all env, some code is different. I want to just have one script and put conditional code for environment dependent code.
    But how do I know which environment I am in when script is run. Is there some env variable which SAP BI sets when it runs the script? If yes, what is that variable?

    When you create your OS command - create three - one for each landscape and in your ABAp program - as mentioned by Dennis - use the SY-SYSID to distinguish the systems and execute the appropeirate UNIX Script using your program.
    Usually this issue is faced when dealing with the file system in your UNIX Script where the locations across different systems cannot be syncronised.
    Else execute the script locally and check if it works and then use that in your program without having to duplicate the System commands in SM69.
    Edited by: Arun Varadarajan on Oct 3, 2009 12:04 AM

  • Env Variable DISPLAY in ora user

    Dear all,
    I am installing Solution Manager 4.0 SR3 on Solaris 10 x64. I am in the middle of the installation when the installation for oracle is prompted.
    I opened a terminal then,
    su - oraslm
    After that with the prompted location i ran ./RUNINSTALLER. This file carried out some checks and gave me the message that the DISPLAY is not set.
    With root user, the command env gives me,
    DISPLAY=:0.0
    while i suppose that it should return like localhost:0.0 even it is not set. It is missing 'localhost'
    After setting it with
    DISPLAY=hostname:0.0
    export DISPLAY and then check with env, it is giving me the correct value. But after restarting the OS, it is reset to again DISPLAY=:0.0
    How to make it permanent? and for oracle user 'oraslm' how i set it permanently?
    Thanks

    - logon as root
    - open a terminal window
    - execute "xhost +"
    - use that terminal window to "su - ora<sid>"
    - open a second terminal window (as root)
    - execute "echo $DISPLAY"
    - go back to the first terminal window (ora<sid>) and execute "setenv DISPLAY <variable-of-other-window>"
    Markus

  • Confused about install errors and missing folders? rdbms not existent?

    Hey there,
    I installed Oracle 11g on my Windows 7 laptop.
    I tried doing the post installation steps and one of them was run the utlrp script from the ORACLE_HOME\rdbms\admin\ folder. I searched my whole pc for the sql file or even the /rdbms folder and it is non existent on my laptop.
    I didn't receive any errors, it was a clean install so I am a little confused.
    On a side note, when I tried to install SQL Developer, it says:
    Cannot find a J2SE SDK installed at path C:\Program Files etc
    I downloaded the JDK from the java website so that error went away, now I got this error when I try and run the install:
    Unable to launch java virtual machine located at path C:\Program Files(x86)Java\jdk1.6.0_21\bin\msvcr71.dll
    Any help is appreciated!
    Thanks!

    do you see the java folder at oracle directory or in program file
    C:\Program Files(x86)Java\jdk1.6.0_21\bin\msvcr71.dll --- it is installed on program file
    Follow the steps below. to set the JAVA_HOME
    1.From your desktop, right-click My Computer and select the Properties option.
    2.In the System Properties window, click on the Advanced tab.
    3.In the Advanced section, click the Environment Variables button.
    4.Finally, in the Environment Variables window (as shown below), highlight the Path variable in the Systems Variable section and click the Edit button. Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon as shown below.
    5.Add the code to the existing System variable path shown in the blue highlighted section in the picture below. Do not delete the original variable; you are only adding code to it
    http://mindprod.com/jgloss/jdk.html

Maybe you are looking for

  • F4 help for 0MAT_SALES is not working in BI 7

    Hi Gurus, The F4 help for 0MAT_SALES is not working when distibution channel is selected as (!=02) in Bex Analyzer. But for all other values for distibution channel  i am getting values in F4 help. Since 02 is excluded it is supposed to give values f

  • Solaris 10 x86:detect new hard drive

    hi. I'm on solaris 10 X86, and I added a hdd today. I can see it in the bios, but nothing appears in my solaris' files: vfstab, mnttab...etc. nevertheless, it's in the /var/adm/messages: genunix: [ID 846691 kern.info]   model IBM-DTLA-305020I tried t

  • Copy of Report created using Report writer

    Hi All Can anybody please let me know,  how to create a copy of a report created using Report Writer. I dont have a copy of what is there in production and would like to make a copy before changing it. Also if it is possible , can I have a copy of it

  • Locking out focus to a window temporarily

    I've created a top level window (JFrame) apart from my main application window which is also a JFrame. When I display this new window, I want to prevent the user from using any of the components in the main application window until I hide this new wi

  • Fast formul

    hi, i want to make negative carry over not possible In the accrual band ,the carry over is 20 and ceiling is 99999 means an employee can accrue any no of leave.but negative carry over not possible. if i write code like this it is not coming. DEFAULT