How to properly set the environment for user oracle under Linux

Hi,
Every time I install XE on Linux somewhere, I repeat these steps (along with [fixing the /etc/init.d/oracle-xe startup script|http://forums.oracle.com/forums/thread.jspa?threadID=843780&tstart=0]), so I thought, why not contribute this to the community.
Those who have installed XE on Linux know that, after installation, logging in as user oracle gets you in a
$cryptic prompt. On top of that, none of the essential environment variables are set. Not amusing. That's because the oracle user lacks the proper configuration files for the bash prompt. Log in as user oracle and create these:
.bashrc
if [ -f /etc/bashrc ]; then
  . /etc/bashrc
fi.bash_profile
if [ -f ~/.bashrc ]; then
  . ~/.bashrc
fi
. /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh
unset USERNAME.bash_logout
clearNow log out and then log in again - a nicer prompt, and all environment variables are set, ready to run sqlplus, imp, etc.
This should help make your overall XE experience on Linux easier. Regards,
Georger

Nice. I checked the .bash_profile of my oracle installation and this is what I can contribute (I got the additional stuff from some tests with other Oracle Versions):
# /etc/skel/.bash_profile
# This file is sourced by bash for login shells.  The following line
# runs your .bashrc and is recommended by the bash info pages.
[[ -f ~/.bashrc ]] && . ~/.bashrc
# Oracle Profile Settings
if [ $USER = "oracle" ]; then
   source /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh
   if [ $SHELL = "/bin/ksh" ]; then
      ulimit -p 16384
      ulimit -n 65536
   else
      ulimit -u 16384 -n 65536
   fi
fiC.

Similar Messages

  • How do we set the permissions for....

    Using Acrobat 9, Setting permissions is very confusing!
    How do we set the permissions for document so that:
    -- the end user needs no password
    -- Printing: Allowed
    -- Changing the Document: Not Allowed
    -- Doument Assembly: Not Allowed
    -- Content Copying: Not Allowed
    -- Content Copying for Accessability: Not Allowed
    -- Page Extraction: Not Allowed
    -- Commenting: Allowed
    -- Filling of Form Fields: Allowed
    -- Signing: Not Allowed
    -- Dreating of Template Pages: Not Allowed

    Not possible. If you allow filling in forms you must allow signing. BTW, while it is nice to be able to set permissions anything that depends upon passwords that you set is easily overcome by third party utilities. Don't do anything that really depends upon these permissions. If you want to set permissions using the Document Properties Dialog box (control D), then click on the Security button. In the Security Method Dialog box, select password security and fill it out as you need.

  • How do you set the duration for multiple stills in iMovie 2013?

    How do you set the duration for multiple stills in iMovie 2013?
    Before upgrading to the latest version of iMovie last month, I was able to set the duation of all of the stills included in an iMovie project at one time by clicking the apply to all still box in the adjustment pop up. That option is no longer apparent. If it is available I cannot find it, and I have tried several different ways to accomplish it. I have tried the iMovie help section and can find nothing to help.
    Apple, do I really have to adjust close to 500 pictures to a 5 second duration individually???
    REALLY??!!

    ...why wouldnt people want that level of accuracy when animating, especially when working to music at a specific duration?
    Because often people are animating to words or beats in the music.  Music is rarely performed with a computer-precise beat and tempo.  Musicians aren't robots: they swing the beat sometimes.  They use rubato.  They change tempo.  They change time signatures.  As a result, you have to FIND those words and beats.  It's not a situation where you can say, "There!  I've found the duration of one beat!  Now it's easy to find the rest of them!" 
    If you try it, you will be very disappointed.
    Try finding the precise end of a piece of music that fades or ends on a big chord with a ring-out.  You'll see that it's trial-and-error: what's the point where it becomes inaudible?  It depends on how high your speakers are turned up.  You might have them way up, you set an end point for the layer, and then you do a RAM Preview at a more reasonable volume.  You might say, "Hey!  The music ends before the layer ends!"...  but you KNOW you set the layer's out point when the audio file goes silent.
    AE has layer markers that can be used on an audio layer to mark beats, words, etc. They come in very handy.
    I guess it comes down to this: because AE can do so much different stuff, there are very few automated procedures.  Oh, Adobe tries with effects that convert audio levels to keyframes, but they're not 100% reliable... especially on something like a capella choral works.  For true accuracy, you need  find the timings yourself. 
    If you want something simpler, try a different application. But be prepared for lower level of accuracy.

  • How do you set the time for this forum??? Not in nerd pleas

    how do you set the time for this forum?

    There were problems with the correct time display for postings, and based on another recent post this doesn't seem to have been fixed. My advice... don't worry about it.

  • How do I set the wallpaper for the the first page only

    how do I set the wallpaper for the the first page only.I have my ICE #'s as wallpaper but I only want it on the first page

    When you set a wallaper you are asked where you want to set it. Either Lock Screen or Home Screen or Both.
    If you choose Lock screen it will only appear when you wake up your phone.
    If you set it to Home screen, then it wil be set behind the app icons on all your home screens.
    If you choose both, then it will be on both.
    Not sure what you mean by the " have a photo of my ICE in contacts that I am trying to use????" 
    The Photo should be in the Photos App. how is it in contacts?  is it assigned to a contact?

  • How can i set the orientation for a photo book (horizontal or vertical)

    how can i set the orientation for a photo book (horizontal or vertical)
    I like a photo book vertical format and i cant findet!!

    That was quick! Although my earlier search turned up nothing, when I posted my question the system immediately gave me a list of previous questions among which I found the following answer:
    This solved my question by LarryHN on Aug 18, 2010 6:01 PM
    select the photos and change the date/time - photo menu ==> adjust time and date to make a relative adjustment to a number of photos ==> batch change ==> time and date to set an absolute time date for them
    LN

  • How to set the environment for Oracle XE-database.

    Hi,
    I have a:- lsnrctl command not found,
    And when I echo oracle host & path I got:-
    [oracle@ddcdevws02 etc]$ echo $ORACLE_HOST
    [oracle@ddcdevws02 etc]$ echo $PATH
    /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/u02/oracle/bin
    Now I know that my environment is not set, but could anyone please assist me how I can set the environmernt ??? I mean commands or detailed instruction step as to what needs to be set where & how, I mean the SID, port, Path ???, I am new to Linux as well as database .
    When I see the listener process using this:- ps -ef | grep tnslsnr, this is the output:-
    [oracle@ddcdevws02 ~]$ ps -ef | grep tnslsnr
    oracle 14727 1 0 14:25 ? 00:00:00 /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr LISTENER -inherit
    oracle 22618 21569 0 15:59 pts/2 00:00:00 grep tnslsnr
    So does this mean that my Oracle home is "/usr/lib/oracle/xe/app/oracle/product/10.2.0/" ???
    Also In the host file under /etc/ directory I have these settings
    127.0.0.1 localhost.localdomain localhost
    10.201.60.21 ddcdevws02.hddev.healthdialog.com ddcdevws02
    I don't know if this is correct or not ? But I doubt I could make any change in the host file, please suggest me.
    Thanks
    Sam

    user8692703 wrote:
    I am sorry Ed I reliazed that that was Phirir's suggestion to me, & Yes this is XE-Oracle database .... so the sid name would be "XE" ...?? I am sorry for my stupid questions as I am very new to ths .
    I've never worked with XE, but from everything I've seen, that would also be your SID. check the contents of /etc/oratab
    And then what other details required after I run this command ". oraenv", can I run this from any directory or some specific location ?
    Just like any command, you can run it from anywhere as long as the directory is in your PATH.
    But actually, you should be setting this in your profile, so that you just inherit it when you log on to the server. Depending on your OS, that would be either $HOME/.profile or $HOME/.bash_profile. Here are the commands you should have in that file:
    export ORACLE_HOME=pathtoyouroraclehomedirectory
    export ORACLE_SID=nameofyouroraclesid
    export PATH=$ORACLE_HOME/bin:$PATH>
    well I have this infor. with me
    HTTP port ---> 8080
    Port fopr Database ----> 1521
    Anythin else required ?

  • How do you set the priority for active windows?

    When I open a download file for an application from Safari, it opens behind the active window.  How do I set the priority so that the download file window opens on top of the active window so I don't have to move a window to find it?

    How are you opening it?  From the "download" list?

  • How can we know the password for a oracle user

    Hi to All,
    Can any one help me plz how can we know the password for any user in oracle.
    Regards
    dxb_dba

    Assuming one wants to stay with database-stored passwords (the traditional method), one may want to look at the password aging and complexity enforcing mechanisms.
    Oracle has a complete manual around this. For 10gR2, the Oacle Database Security Guide chapter 4 is interesting reading - section 4.3 is the discussion for database authentication. And section 7.4.4 talks about the complexity enforcement.
    Message was edited by: Hans Forbrich - reworded so it is not misinterpreted as directed at an individual.

  • How can I set the color for a textfield

    Hi all,
    I use a textfield and I want to set the color for characters which are typed in the textfield. I didn't find anywhere a solution for this. Do you know how I should implement this?
    Thanks

    Not possible. If you want this, you'll need to make a custonItem that implements this.

  • HT2688 How do I set the password for my iTunes Library Home Sharing?

    I have a new Macbook and I'd like to access my library from my old one via Home Sharing. The library appears in my iTunes, but when I go to enter my Apple ID password, it says that the password is incorrect. Home Sharing is enabled on the old computer. What else could the password be/how do I set the password on my old computer? 

    What password did you define on the computer where the library actually exists?  It could be your Apple ID password but that wouldn't be very smart.
    Just turn off the password for homesharing unless you actually need it.
    Edit > Preferences > Sharing > either uncheck the option to require a password or simply change it.

  • How do I set the environment to change outputs when I press a button?

    Hi guys!
    This is a question for the Logic pros:
    How do I set up my environment so that when I press a Button on my Midi Controller the Outputs from the Master Channel switch from 1-2 to 3-4 (to hear my music through different loudspeakers)???
    Does somebody know how to do that?
    Thank you in advance!
    Greetings from Germany

    The easiest way is to route your mix to all the outputs you're using. Then set up fader objects in the env that transform toggled cc's from your keyboard switches. Cable those fader objects to the output channel objects. To toggle the Mute on an output channel you'll need to send it a fader message #9, value 0 or 1, on channel 1.
    That would work, as long as you have switches on your keyboard that can transmit toggled cc's.

  • How do I prepare the environment for ARD?

    I'm planning to construct the ARD environment for a small company.
    I want to know the environment what is needed for it, especially "hardware" when it will be made by minimum construction.
    The company have 30macPC on several network segments(I estimate it about 10 network segments).
    I hope someone will give me some helpful advices!

    There's no special "environment" needed, though if you plan to be observing multiple workstation screens at once, it's strongly recommended to have at least a 100BaseT Ethernet connection with a gigabit connection preferred. Otherwise any network suitable for other uses will probably be fine for ARD. For technical specifications, features and system requirements, see:
    http://www.apple.com/remotedesktop/specs.html
    You may also want to read the Administrator's Guide:
    http://manuals.info.apple.com/en_US/ARD_3.1_AdminGuide.pdf
    Note that there is no client for Windows systems. You can take control of a Windows system from ARD if you install VNC on the Windows workstation, but there will be no other functionality.
    Regards.

  • How do I set the PATH to use ImageMagick under PHP on my Server?

    Hi,
    I have the ImageMagick binaries installed. They are working in the terminal.
    But when I try to use it out of a php script on the webserver, it cant find the DYLD_LIBRARY_PATH.
    The manual says:
    Set the MAGICK_HOME environment variable to the path where you extracted the ImageMagick files. For example:
    export MAGICK_HOME="$HOME/ImageMagick-6.3.7"
    If the bin subdirectory of the extracted package is not already in your executable search path, add it to your PATH environment variable. For example:
    export PATH="$MAGICK_HOME/bin:$PATH"
    Set the DYLD_LIBRARY_PATH environment variable:
    export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib"
    I can do all this in the Terminal, but how and where do I set it, that it also works with the scripts on the webserver?
    Thanks and Regards,
    JO

    Joachim,
    I have not tested any of this but...
    If you are just using the default Mac OS X Server install of Apache and the PHP module, then Apache's path is /usr/bin:/bin:/usr/sbin:/sbin (when running under the user:group=www:www). Basically, if the server is running under that user and PHP inherits the basic PATH of that user's shell, then anything linked into those directories should be available to the scripts, i.e. link your ImagMagick bin and lib paths into /usr 's directories. See 'man ln' in Terminal. User www doesn't have a defined shell, though, so I don't know where the PATH comes from.
    Alternatively, you might be able to use Apache's env_module (on by default) to manipulate the PATH environment variable in a config file. See Apache's manual on environment variables.
    Another means is to utilize 'suexec' in Apache and switch the user:group of CGI execution, etc. to a actual user with a definable .bash_profile (or whatever shell you are using). There are security concerns with this. See Apache's manual on suexec. You may want to also consider compiling PHP as CGI.
    BTW: the new version of PHP has some new experimental native ImageMagick libraries built in. I assume it looks for the binaries in the usual places and/or may need to be compiled with their paths during ./configure.
    Larry

  • Default environment for user Oracle when launched from Scheduler?

    Hi:
    This is probably pretty basic but I haven't found the answer yet. I'm trying to run an import job using imp from Scheduler. I've modified the file $ORACLE_HOME/rdbms/admin/externaljob.ora so that the jobs are running as user oracle. If I echo the result of 'whoami' in the program it indeed says I'm oracle, but ORACLE_HOME etc. are not set. Is this intentional? I would think that it runs the .bashrc etc. to get the proper environment for the user.
    Thanks.

    You can not rely on any variable set in the environment.
    Ronald
    http://ronr.blogspot.com

Maybe you are looking for

  • Office Web Apps Error after SP 2013 September 2014 CU

    Hello  Everyone, I have a single front end and single SQL server for my SharePoint 2013 deployment.  I also have Office Web Apps setup and running.  However after installing SP 1 and the latest September 2014 CU it appears our users are seeing the be

  • Every time I try to download with Safari (version 5.1) it "quits unexpectedly"??

    Every time I try to download within Safari (version 5.1) it "quits unexpectedly".  IBelow is the info from the report.  Can anyone advise what is causing the issue?? Process:         Safari [33665] Path:            /Users/USER/Desktop/Safari.app/Cont

  • ITunes giving  an error code (-50) when syncing iTouch

    When i try to sync my iPod Touch 4G, iTunes gives me an error code (-50) and doesn't sync anything on my iPod to my PC. This problem has never happened before.

  • Zen Micro Not turning

    I just bought a new zen micro and when i put the battery the power didn't come on. So i decided to plug it into the computer to charge but i still can't turn it on. Also when i try to connect it to the computer it doesn't detect it. I had a previous

  • Encription

    I have done a bug reporting web page for project s. There are 2 user 1. management 2.admin privillage management user can give license for the project admin can only view the license table. I need to store the user name and password of management in