Env. Variable definition

Hi all.
I defined several Oracle specific env. variables via export both
from root and oracle user accounts. I log off and back on and
try to echo any of them...I only get a blank line back.
The documentation said to put them in .profile in /usr/oracle.
Did so, but to no avail. Another suggested that I put them in
.bashrc. Did so...but I get errors on login as follows:
/usr/oracle/u01/app/oracle/product/8.0.5/bin/dbhome: awk:command
not found
Cannot locate ORACLE_HOME
ORACLE_HOME = [] ? \c
{get a blank line here; I hit return}
bash: sed: command not found
The .bashrc file definitions I input are in the user specific
aliases and function section. The normal source global
definitions follow that.
Goodness, what am I doing wrong? Do I have to define any of the
Oracle env. variables in the root .bashrc file? It doesn't seem
from the documentation that it should be so convoluted.
Any help (and explanation) is appreciated.
craig
null

Using bash? try /home/username/.bash_profile
Kevin
Kelvin (guest) wrote:
: Daniel Tremblay (guest) wrote:
: : I defined my env.var. in /etc/profile (as root, yes)
: : in there I had
: : ORACLE_BASE=/u01/app/oracle
: : ORACLE_HOME=$ORACLE_BASE/product/8.0.5
: : LD_LIBRARY_PATH=$ORACLE_HOME/lib
: : PATH=$PATH:$ORACLE_HOME/bin
: : ORA_NLS33=...
: : export ORACLE_BASE ORACLE_HOME LD_LIBRARY_PATH ... etc
: : etc...
: : Hence any and all users using the workstation will have the
: : correct env. vars.
: : I hope this helps.
: : craig (guest) wrote:
: : : Hi all.
: : : I defined several Oracle specific env. variables via export
: : both
: : : from root and oracle user accounts. I log off and back on
and
: : : try to echo any of them...I only get a blank line back.
: : : The documentation said to put them in .profile in
: /usr/oracle.
: : : Did so, but to no avail. Another suggested that I put them
in
: : : .bashrc. Did so...but I get errors on login as follows:
: : : /usr/oracle/u01/app/oracle/product/8.0.5/bin/dbhome:
: : awk:command
: : : not found
: : : Cannot locate ORACLE_HOME
: : : ORACLE_HOME = [] ? \c
: : : {get a blank line here; I hit return}
: : : bash: sed: command not found
: : : The .bashrc file definitions I input are in the user
specific
: : : aliases and function section. The normal source global
: : : definitions follow that.
: : : Goodness, what am I doing wrong? Do I have to define any of
: the
: : : Oracle env. variables in the root .bashrc file? It doesn't
: seem
: : : from the documentation that it should be so convoluted.
: : : Any help (and explanation) is appreciated.
: : : craig
: /etc/profile is used for all login users. Local variables
should
: be placed under $HOME/.profile (ie users home directory),
though
: it works if /etc/profile is updated as it is system-wided.
: dbhome is created by root.sh after Oracle installation, and is
: used to setup the value of $ORACLE_SID. You can added
: ORACLE_SID=mysid onto the $HOME/.profile and ORACLE_ASK=NO to
: bypass the "ORACLE_HOME = [] ?". (remember to export them)
: Check if your $HOME is /usr/oracle; .profile must be placed
under
: $HOME.
: Kelvin
null

Similar Messages

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Add new variable definition

    how to add new variable definition in report painter?

    Hi,
    in Transaction GR32 use menu ->Report Writer -> Variable -> Create
    regards
    Walter  Habich

  • 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 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 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'.

  • 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

  • Unable to refresh variable definition in ODI Load Plan

    Hi All,
    We recently removed the variable definition and changed it to default value. After that we tried to refresh the variable in  Load plans / Scenarios but it still shows old SQL. Can you please suggest if there is a way to force refresh the variable definitions in load plans? We tried removing and re-adding the variable but that didn't help. Last resort will be to recreate the load plans but we are trying to avoid that.
    Thanks,
    Andy

    Hi Alastair,
    Thanks for the reply. Actually variable is returning the correct value. Only problem is that in the Load Plan's variable section variable still shows old definition even after trying to refresh n number of times and also tried removing it from load plan and then inserting it back in after changing the definition. We don't want to migrate load plan like this. Kindly suggest.
    Thanks,
    Andy

  • 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

  • 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

  • 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

Maybe you are looking for

  • PDFMaker in Outlook 2003 Stopped Working After Upgrade to 8.1.4

    I am running Outlook 2003 and Acrobat Standard version 8.  I recently accepted an automatic update to Acrobat Standard 8.1.4.  Now, whenever I run PDFMaker in Outlook 2003, none of the email messages I desire to archive are converted.  In my logfile

  • Urgent Help!!!! #Multivalue error

    Hi Experts, I am facing #multivalue error in my BO webi report formula. Formula is : = ((Max([AR open items as on date]) * (Max([No. of days Considered] In Report)))/(Max ([Credit sales for the period] In Report))). I am using Webi 4.1. thin client.

  • BUG: Warning/Error just refreshing page several times???

    Hi! I made a simple page: <?xml version='1.0' encoding='UTF-8'?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"           xmlns:f="http://java.sun.com/jsf/core"           xmlns:h="http://java.sun.com/jsf/html"           xmlns:af="ht

  • My iPhone5 has virus how can I delete it?

    Hi to all!!! I am a new member!!! I would like a help please!! My iphone5 has infected from virus... What can I do?

  • Internet required to stream from my mac or iPhone?

    For at least the next few days, I have no internet at home. Does this mean that I cannot stream video from my Mac or iPhone?