.bash_profile location

I installed Oracle Linux 5.7. I need to view the .bash_profile file or whatever file Oracle Linux uses to store the environment variables for a user. I am working with the "oracle" user whose home directory is /home/oracle.
Connected as "oracle" I issued the "env" command and many variables are shown to have been set already.
I issue the export command to set the PATH variable and the changes are shown when I issue the "env" command.
So everything seems to be working but I don't find where all those settings are stored. I went to the /home/oracle directory and I only saw a .bash_history file. So I created a new file named .bash_profile, but the variables are not stored there when I issue the export command. (the file I created was before I noticed that variables are already being set somewhere else - on a file I did not find).
So where are they ??? The only thing I need to know is how to locate the file the system is using right now to store the environment variables, I supposed it has to be located under the $home directory for the user but it seems it is not that way. Anybody knows something about this ??
The /etc/profile file I understand is a general file for global settings, so it's not what I'm looking for as far as I know.
here's the output of the env command issued connected as "oracle" ... I need to know on what file they are stored.
bash-3.2$ env
SSH_AGENT_PID=8782
HOSTNAME=Oracle.Linux
DESKTOP_STARTUP_ID=
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
KDE_NO_IPV6=1
GTK_RC_FILES=/etc/gtk/gtkrc:/home/oracle/.gtkrc-1.2-gnome2
WINDOWID=25165905
QTDIR=/usr/lib/qt-3.3
QTINC=/usr/lib/qt-3.3/include
USER=oracle
LS_COLORS=
GNOME_KEYRING_SOCKET=/tmp/keyring-EbBsIZ/socket
SSH_AUTH_SOCK=/tmp/ssh-OcrBnl8746/agent.8746
KDEDIR=/usr
SESSION_MANAGER=local/Oracle.Linux:/tmp/.ICE-unix/8746
USERNAME=oracle
MAIL=/var/spool/mail/oracle
PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin
DESKTOP_SESSION=default
GDM_XSERVER_LOCATION=local
INPUTRC=/etc/inputrc
PWD=/home/oracle
XMODIFIERS=@im=none
KDE_IS_PRELINKED=1
LANG=en_US.UTF-8
GDMSESSION=default
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=2
HOME=/home/oracle
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=oracle
QTLIB=/usr/lib/qt-3.3/lib
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-dgt3DUIWif,guid=bb5dcea335860598b6a290004f42d4f7
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
COLORTERM=gnome-terminal
XAUTHORITY=/tmp/.gdmR05GAW
_=/usr/bin/env
bash-3.2$

GabyPR wrote:
I installed Oracle Linux 5.7. I need to view the .bash_profile file or whatever file Oracle Linux uses to store the environment variables for a user. I am working with the "oracle" user whose home directory is /home/oracle.
Connected as "oracle" I issued the "env" command and many variables are shown to have been set already.
I issue the export command to set the PATH variable and the changes are shown when I issue the "env" command.
So everything seems to be working but I don't find where all those settings are stored. I went to the /home/oracle directory and I only saw a .bash_history file. So I created a new file named .bash_profile, but the variables are not stored there when I issue the export command. (the file I created was before I noticed that variables are already being set somewhere else - on a file I did not find).
They aren't 'stored' anywhere. Well, they are stored in memory, for the session in which the 'export' command was executed. The .profile (or .bash_profile) is executed by the OS when the owning user first logs on. It is not (as your question seems to imply) updated when you execute an 'export' command. You need open the .profile and put those export commands into the file, so that they get executed when you log on.
So where are they ??? The only thing I need to know is how to locate the file the system is using right now to store the environment variables, I supposed it has to be located under the $home directory for the user but it seems it is not that way. Anybody knows something about this ??
The /etc/profile file I understand is a general file for global settings, so it's not what I'm looking for as far as I know.
here's the output of the env command issued connected as "oracle" ... I need to know on what file they are stored.
bash-3.2$ env
SSH_AGENT_PID=8782
HOSTNAME=Oracle.Linux
DESKTOP_STARTUP_ID=
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
KDE_NO_IPV6=1
GTK_RC_FILES=/etc/gtk/gtkrc:/home/oracle/.gtkrc-1.2-gnome2
WINDOWID=25165905
QTDIR=/usr/lib/qt-3.3
QTINC=/usr/lib/qt-3.3/include
USER=oracle
LS_COLORS=
GNOME_KEYRING_SOCKET=/tmp/keyring-EbBsIZ/socket
SSH_AUTH_SOCK=/tmp/ssh-OcrBnl8746/agent.8746
KDEDIR=/usr
SESSION_MANAGER=local/Oracle.Linux:/tmp/.ICE-unix/8746
USERNAME=oracle
MAIL=/var/spool/mail/oracle
PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin
DESKTOP_SESSION=default
GDM_XSERVER_LOCATION=local
INPUTRC=/etc/inputrc
PWD=/home/oracle
XMODIFIERS=@im=none
KDE_IS_PRELINKED=1
LANG=en_US.UTF-8
GDMSESSION=default
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=2
HOME=/home/oracle
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=oracle
QTLIB=/usr/lib/qt-3.3/lib
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-dgt3DUIWif,guid=bb5dcea335860598b6a290004f42d4f7
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
COLORTERM=gnome-terminal
XAUTHORITY=/tmp/.gdmR05GAW
_=/usr/bin/env
bash-3.2$

Similar Messages

  • Problem on Creating a Swapfile for adding swap space

    Folks,
    Hello. I am using Oracle Linux 5.6. At this time, the Linux swap space is 0 KB by using the command:
    [root@rac1 /]# grep SwapTotal /proc/meminfo
    I need 150MB swap space to install Oracle Database. I create the swap space using the following commands:
    Step 1:
    [root@rac1 /]# dd if=/dev/zero of=/swapfile bs=1024 count15360 hit enter
    Output: 153600 to records in
    153600 to records out
    157286400 bytes(157MB) copied, 3.3835 seconds, 46.5MB/s.
    Step 2:
    [root@rac1 /]# mkswap /swapfile hit enter
    Output: Command not found.
    Step 3:
    [root@rac1 /]# swapon /swapfile hit enter
    Output: Command not found.
    Step 4:
    [root@rac1 etc]#vi fstab
    Add this line into the file: /swapfile swap swap defaults 0 0
    Save and close the file fstab.
    Step 5:
    Reboot Oracle Linux 5.6 and run this command:
    [root@rac1 /]# grep SwapTotal /pro/meminfo
    Output: SwapTotal: 0 KB
    As you see above, swap space is not added. I think the problem is that the commands "mkswap /swapfile" and "swapon /swapfile" are not executed.
    My question is : Do any folk understand how to add the swap space successfully ?

    When you execute a program, the command shell will walk through the locations specified by $PATH environment variable in order to find it. The "./" path is the current working directory and should not be in the $PATH environment to make sure applications are run only from locations defined by $PATH and not the current working directory. You can bypass this behavior iif you specify the full absolute path to the program at the command prompt, e.g. cd /sbin, ./mkswap or /sbin/mkswap. Other programs and administration tasks will use Linux utilities located in /sbin without specifying the full path and will not work if /sbin is not part of your PATH environment.
    You may have seriously screwed up your system because your root account contains /home/ora11g/bin, which is normally defined by .bash_profile located in the user account's home directory. Before analyzing your login scripts, I suggest you post the output of the following command:
    cat /etc/passwd

  • Where is my .bash_profile file located?

    I can't locate my .bash_profile file..
    For example, if I try to open my ~/.bash_profile is not created yet...
    Thanks in advance.

    You have to create it, it doesn't exist yet. How you do that is up to you since it is invisible, so even after you do create it you still can't see it. So what you can do is open Terminal.app and say (drag this text into Terminal):
    touch .bash_profile
    then say:
    open -a TextEdit.app .bash_profile
    TextEdit will show you a blank page which you can fill in.

  • Java Location in oracle home files

    Hi All,
    I have recently installed Java on HP-UX.now i want to update all file in ORACLE_HOME to use this JAVA.
    Can anyone pls refer me some link or hint where i can find the list of files which are required to be updated to use this java.
    Likewise
    Default JAVA location=$ORACLE_HOME/jdk
    Want to change this java location to /db01/java1.6( i hve installed)
    DB version=11.1.0.7
    Regards,
    Neev

    Neev wrote:
    This mean by running .bash_profile after providing changes it will starting using custom installed JAVA.
    Sorry dont have strong knowledge on unixEither you can run as
    $cd
    $. .bash_profile
    or
    exit the user session and re login, then automatically it will run bash profile internally.

  • Oracle inventory location Help

    I am facing some issues with oracle inventory locatoin on a 2 node rac setup. The ORACLE_BASE in my .bash_profile is pointing to /u01/ mount point - which is a NFS mounted volume. clusterware installation went sucesful and now when i am trying to install 11g - it says, oracle inventory can not be on a shared volume and quits the installation.
    My oracle home directory is \home\oracle\.
    system has three mounted directories: /u01/ - /u02/ - /u03/.
    /u01/app/oracle/crs - clusterware
    /u01/app/oracle/product/11g/ - plan on installaing oracle 11g
    /etc/oraInst.log - has the inventory location.
    can somebody please suggest - what options do i have here? any input will be greatly appreciated.
    many thanks,
    shilpa

    Oracle Inventory can not store on Share location.
    http://kevinclosson.wordpress.com/2007/07/19/oracle11g-oracle-inventory-on-shared-storage-dont-bother-trying-to-install-11g-rac-that-way/

  • Apps 10g-11g Upgrade: 11g perl PATH location

    OS: Linux x86
    E-biz: 11i
    DB: 10.2.0.4 upgrade to 11.2.0.3
    I am upgrading our DB to 11g and the interoperability note (881505.1) says the following:
    Make sure that "... PATH holds the directory where the new perl executable is located (usually $ORACLE_HOME/perl/bin)."
    The Linux perl version is /usr/bin/perl (v5.8.5) and is FIRST in $PATH and the version included with 11g is v5.10.0.
    In order to ensure that the 11g perl is executed I would need to put OH/perl/bin <<before>> /usr/bin in the PATH.
    It seems a bit strange to say to include this in the path and NOT say to ensure that it is FIRST in the path.
    I'm thinking that it really doesn't matter but which perl version is used but I am just checking to be safe.
    Thanks

    OK, I have an update for this issue:
    I updated the .bash_profile and placed $ORACLE_HOME/perl/bin first in PATH. But, it was overwritten by the APPS.env file, $ORACLE_HOME/CONTEXT_NAME.env.
    The CONTEXT_NAME.env file has these lines that are used to set the PATH:
    PERLBIN=`dirname /usr/bin/perl`
    PATH=${PERLBIN}:${PATH}
    I then found the template file that creates these lines in this file --> $ORACLE_HOME/appsutil/template/ad8idbux.env.
    In file ad8idbux.env there are these lines that build the PATH and place the desired perl location first.
    PERLBIN=`dirname %s_adperlprg%`
    PATH=${PERLBIN}:${PATH}
    So, the key to this issue is to update the CONTEX_FILE and set s_adperlprg to the desired perl path.
    It appears that 10g used /usr/bin/perl but now 11g needs ORACLE_HOME/bin/perl.

  • Unable to locate message file: ldap language .ms

    Hi,
    i have OAS10.1.2.0.2 installed on RHEL4
    i somehow locked orcladmin account so i am not able to logon into SSO.
    i tried the following
    i went to the oidpasswd tool directory and executed the following
    [orace@... bin]$ oidpasswd connect=orcladmin unlock_su_acct=TRUE
    but i keep getting the follwoing error:
    "unable to locate message file: ldap<language>.ms"
    what should i do to fix this error.
    Someone please guide me.
    Thanks,
    Philip.

    Thanks for the reply.
    this is what i did.
    i have 2 disks inmy RHEL box.
    I have 3 directories
    /home/oracle where i have my user "oracle" account
    and then i installed OAS on the following directories
    infrastructure - /ora2/AS101202infra
    midtier - /ora2/AS101202BI
    now this is how my /home/oracle/.bash_profile file looks like
    ------ .bash_profile------------
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    ORACLE_HOME=/ora2/oracle/AS101202infra; export ORACLE_HOME
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/local/bin;
    export $LD_LIBRARY_PATH
    ORACLE_SID=asdb; export ORACLE_SID
    PATH=/bin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/X11R6/bin:$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin:$ORACLE_HOME/ldap/mesg
    export PATH
    ORG_PATH=$PATH
    export ORG_PATH
    unset USERNAME
    but when i do a sqlpus or any other command, i get error saying set your ORACLE_HOME to oracle software directory.
    als when i open a terminal and type in "su - oracle"
    I get the following error
    -bash: export: '/ora2/AS101202infra/lib:/lib:/usr/local/bin': not a valid identifier
    Check whether $ORACLE_HOME/bin/ldapbind exists
    Yes ldapbind exists
    Does $ORACLE_HOME/ocommon/nls/admin/data/lx1boot.nlb exist, and is it readable?
    i dont see any folder called "occomon"
    Is the output of
    % type ldapbind
    $ORACLE_HOME/bin/ldapbind?
    i typed in
    [[email protected]]ldapbind
    and i got result as
    "bind successful"
    i dont get any message like " $ORACLE_HOME/bin/ldapbind"
    Philip.

  • Sqlldr v11 Unable to locate character set handle for character set ID

    Good day,
    Having recently migrated to a 11g oracle database(11.2.0.1.0) from 9i on a test server, running SQL loader gives/throws the above error.
    I've seen a few posts about this but with pretty vague explanations, below is what my bash profile looks like though and i compared NLS_PARAMETERS to another server that already has version 11 running.
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
            . ~/.bashrc
    fi
    # User specific environment and startup programs
    export ORACLE_SID=mtctst
    export ORA_NLS10=$ORACLE_HOME/nls/data
    export ORACLE_BASE=/oracle/app/product
    export ORACLE_HOME=/oracle/client/11.2.0/dbhome_1
    #export ORACLE_HOME=/oracle/client/9.2.0
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib/X11; export LD_LIBRARY_PATH
    PATH=$ORACLE_HOME/bin:$HOME/bin:/bin:/usr/bin:/usr/local/bin:/bin/X11;
    export PATH
    #export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    #LD_LIBRARY_PATH=$ORACLE_HOME/lib32:$LD_LIBRARY_PATH
    #LD_LIBRARY_PATH_64=$ORACLE_HOME/lib
    #export LD_LIBRARY_PATH
    #export LD_LIBRARY_PATH_64
    #PATH=$ORACLE_HOME/bin:$HOME/bin:/bin:/usr/bin:/usr/local/bin:/usr/bin/X11; export PATH
    #PATH=$PATH:$HOME/bin
    #export PATH
    umask 002
    unset USERNAMEYour assistance will be appreciated.
    Regards,

    The complete command as follows:
    sqlldr userid=user/password@alias control=myctlfile.ctl log=$logfile discard=$CUR_DIR$oldfilename.discard bad=$CUR_DIR$oldfilename.bad silent=feedback errors=10000000I'm running the command on the database server that gives the following error with log entries:
    File found: gsmoly2012080612005072206
    SQL*Loader: Release 11.2.0.1.0 - Production on Mon Aug 6 16:36:09 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    SQL*Loader-282: Unable to locate character set handle for character set ID (178).
    after main file sqlldr before test if sqlldr was successfull: gsmoly2012080612005072206
    in mystring_risk before assign can_continue = blank: PBXOG,,26492092,,,120806,115829,120806 115829,22,,811274127,,,,,,0,,,WORK/gsm/data/gsmoly2012080612005072206,9833407,OLY.GSM  ,
    SQL*Loader: Release 11.2.0.1.0 - Production on Mon Aug 6 16:36:18 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    SQL*Loader-282: Unable to locate character set handle for character set ID (178).
    value of can_continue after sqlldr of risk file: F

  • Stream 8 tablet location does not work on T-mobile broadband

    On my HP Stream 8 tablet, location works fine with GPS only (GNSS on; Mobile Broadband, Wi-Fi, and Bluetooth off).
    However, if I turn on Mobile Broadband and connect to T-Mobile and turn off GNSS (or GNSS on inside where there is no GPS signal) and keep Wi-Fi and Bluetooth off, the location gives very odd results.  Last week the map showed Phoenix as my location (I am actually located in San Francisco).  This week, it gives Brentwood or Clayton, CA, both more than 30 miles away.
    HP tech support said call T-Mobile.  T-Mobile said they had occasionally seen equally odd locations.
    I went to a nearby T-Mobile store.  They had a Samsung Galaxy Tab 4 which always gave a correct location, within 100 feet using T-Mobile alone.  Manually moving the map to a different location in an attempt to confuse it and turning it on and off, it would still find the correct location.  No surprise there, my three year old Virgin Mobile LG android cell phone does just as good a job at finding locations.
    (The T-mobile store also had an iPad Mini 3 that I was able to confuse.  On T-Mobile alone and clicking on My Location in maps, it produced a grid that was blank except for a line saying that it was unable to find a location, no info or link to what to do next.  The T-Mobile store did not have a Stream 8.  The Microsoft Store has a Stream 8 but it is not connected to Mobile Broadband.)
    Does anyone else have this problem?  Is my unit defective? There  are times that a GPS signal is unavailable and a T-mobile broadband signal is available, and it seems that this unit should be able to find a location at least as well as my cell phone.
    Thanks.

    I see the same basic results, wifi=off, bluetooth=off, gnss=off, t-mobile=on. Open win8.1 map-app shows my location in LA south of the 101/110 junction. I'm in SF Bay area near San Jose about 400 miles away. Turn on wifi and map-app shows me at my real address. With t-moile only, opened win8.1 IE, went to www.bing.com/maps location also shows LA.
    My only t-mobile account is the stream8 free 200mb/month data plan, don't think they have my real address anywhere. My t-mobile "phone" number is 720 area code in the Denver area. No idea why middle of LA is the t-mobile location. Must be a "feature, not a bug".

  • Delete file from original location and when copied size of file increases.

    hi !
    I have 2 exe's both of 1.15MB which I want to move to another folder. The files are copied to the folder but the size of exe increases to around 350MB each. What can be the problem ?
    BufferedOutputStream bos=new BufferedOutputStream(new FileOutputStream(filename));
    int o=bis.read();
    do{bos.write(o);}while (o!=-1);
    boolean del=this.fpara.delete();
    System.out.println(del);          Also, the file is not deleted from the original location even though I have used the delete function. The last line produces null output.

    And do follow coding conventions
    {color:0000ff}http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html{color}
    If your original source is all jammed up like the snippet you posted, I'm not surprosed that you can't spot your mistakes.
    db
    Edited by: Darryl.Burke on Mar 9, 2008 12:40 AM

  • Delete File from URL located on HTTP Server.

    Hello All, could you anybody help me with my Problem. I need to delete some File in URL located on HTTP Server. The File was created via using of the Function 'DP_CONTROL_SEND_STREAM_TO_URL'. Any Times I need to delete this File from the url Location, but I cann't find any Functions or Method of any Class (GUI 6.20) to realise that. I read lot of very good Blogs from Thomas Jung about HTTP classes, but I cann't find somthing relevant for me...
    Sincerely Yours,
    Lubomir

    Hi,
    You can try with GUI_DELETE_FILE and give http location in FILE_NAME
    or WS_FILE_DELETE.
    I am not getting any CNDP function module for your purpose.
    Hope you will get sucess..
    Thanks,
    Chetan Shah

  • When i login to pc or some another iphone to find my iphone Web it show me wrong location

    When i login to pc or some another iphone to find my iphone Web it show me wrong location.
    and whn i check my location to map tht show me correct.......
    Today i wast my 1Hr to search my friend va find my iphone it show me wrong loction 4km wrong location...
    ThankQ

    Try signing out, then back in on your phone: Settings>Store>Apple ID, tap the ID shown, sign out, sign back in.  If that doesn't work, reset your password here: https://iforgot.apple.com.

  • Manage-bde command is not generating recovery key on network location

    Hi,
    I am trying to save the recovery key to the network share location and start up key in the USB drive while enabling bit locker.When the OS drive gets encrypted, the default folder for recovery password shows that it contains 1 file but not getting anything
    inside it when i checked the properties of the folder.
    i have already changed the group policy as "choose default folder for recovery password".
    I am using the command to enable the bit-locker as "manage-bde.exe -on C: -rk
    <network location to save recovery key> -sk <location of the USB drive>
    -rp to enable the bit-locker. It is generating the start up key in the USB but not the recovery key on network share.
    Can anyone suggest what i am missing or what else i should do to generate the recovery key on network share.
    Does manage-bde process be able to save the recovery key on network share or it hand over to some other process to perform this task.
    Thanks
    Gaurav Ranjan

    I got you Manoj, but I want to ask you one think that what if i lost the startup  key or my USB stick. I have my recovery key on the network share.  In order to log-in my machine I need the recovery password. From where i will get the recovery
    password(48 digit). Surely from the recovery key on the network share. So how can i get the recovery password if only we have the recovery key.
    I know both are different in context. Both are two different thing. I have lost my USB stick along with the recovery password and I have to log-in my machine. How can i do that i want to know that. Do there is any method to get recovery password from the
    recovery key on network share. I have retrieved the recovery password when the recovery key in AD. But this time it is on network share.
    Also one think which I need to solve is that the manage-bde -protectors -add command creates a new .bek file along with the older one. So the .bek file which get shown at the time of the start up of the machine is different from that stored in the network.
    So i am getting confused as which .bek file is for which machine and hard to retrieve the password.
    Is there any method to store recovery key on network without the -protectors -add command line so that both the .bek file should be matched and can easily be known for indiviual machine in an OU. As if both the .bek files will be different it would be difficult
    to to retrieve the recovery password for the machines.
    Please do inform if you need some more information about the scenario if i missed something.
    Thanks
    Gaurav Ranjan

  • Opening and closing stock at storage location level

    Dear all
    I need a std report which will give the opening and closing stock at storage location level, Or should I go for dev. if yes please guide me.
    Regards
    Samuel

    Hi,
    check if you can use S_P00_07000139 report, select "Display stock movement by plant (with amount) and further select Sloc from layout.
    Regards,
    Vikas

  • Report including open purchase order quantity for one storage location

    Hello gurus,
    I am looking for a report giving me the total/available stock and the open purchase order quantity for all materials stored in a certain storage location.
    I.e. like this:
    Plant 0001, storage loc. 01
    Material        stock        open purchase order quantity
    100000        200 pcs.   50pcs.
    Is there such a report in SAP standard?
    Thanks
    Alicia

    hI
    U want the report like this ,
    MAterial stock availablein storage location and with Open PO quantity for the same material.???
    This report u can get in 2 different transaction . the n u can combine and create one custom transaction .
    One is for materil stock in storage location is MB52 or MB5B
    THen ME2N for open PO quantity for that material.

Maybe you are looking for