How to set up the Oracle environment...?

I have a new copy of Oracle Enterprise Linux with Oracle 11 g R1 installed.

Steps that I made and I am trying to understand...

1. start the server OEL.
2 to login remotely using PUTTY, I connect to the OEL
3. I'm setting the variables (ORACLE_HOME and ORACLE_SID) with the "export".
4. connect to sqlplus under sys with sysdba
5A started the database. Everything is fine!
6. If I log out of PUTTY and log back all my step 3 variables have disappeared.
7. you know by now, I can't start the Oracle database without error.

My question is...

How to make the proper environment for the Oracle database?
Do I have to have the above two variable filled all the time. Should these two variables be part of any (for root) login script? Once the session (shell) must be running all the time?
Missing link here. I'm learning.
Thank you
Smith

For starters, there are several environments shell could be defined as a default, such as: sh, csh, ksh, bash, tcsh, zsh or rc.
Depending on what shell environment you have defined, you can or will have a different startup file when you connect.

But the fundamentals still apply:

For the most part, the first thing is that you should not run anything as root (related to Oracle).
Oracle must have his own user name and be part of the DBA group.
Maybe you have entered.

Then Yes, your environment variables to be reset when you reconnect.
There are several ways to achieve this.

One of the most popular ways (although I do not necessarily), is to set the environment variables in your connection startup script.
for example, your .profile file (dot - profile). For ksh shell, for example, it runs at first upward when you connect, once your session has read the script/etc/profile to wide control panel.

If the environment variables are set correctly, they are exported, which is source as your login script runs.

(Which I prefer), is in turn, you can 'source' environment variables yourself.
It is again differently according to your default shell.
For ksh, just type. . (I.e.: point-space-scriptfile)
It is important that you include a space between the point and the file to run.
This will make your additional windows in your main window and see these settings approx.

Another option, favoured by Oracle, is to set the Oracle $PATH in your login script (.profile or other) and then run. oraenv. (point-space-oraenv). Supply the parameters that are defined when you run the oraenv that defines things like your ORACLE_SID and ORACLE_HOME.

HTH...

Tags: Database

Similar Questions

  • How to set up the oracle inventory in R12?

    Dear
    What is the oracle inventory? How can I configure in R12?
    Please help me.

    You can find the Guide to using the R12 here inventory

    Srini

  • How can I configure the Oracle environment for an app of the OCCI crontab?

    I have a set of OCCI apps that I run from crontab on RHEL 5.2.
    Get the environment properly configured Oracle (the way shared lib for example) is proving to be a challenge
    like crontab ignores .bashrc and .bash_profile.
    Anyone got any smart suggestions on how best to do it on RHEL?
    Thank you

    Having the OCCI app run in a shell script. The shell script can define all necessary environment variables and then can call the OCCI app.
    for example. (Bourne shell script, say app1.sh)
    ORACLE_HOME =...
    LD_LIBRARY_PATH =...
    PATH =...
    ORACLE_SID =...
    TWO_TASK =...
    TNS_ADMIN =...
    Export ORACLE_HOME LD_LIBRARY_PATH PATH TWO_TASK TNS_ADMIN
    myocciapp

    chmod + x app1.sh
    Make sure that app1.sh works fine without setting the environment variables to the outside.
    Make an entry in the crontab to run app1.sh

  • How to set programmatically the current node in a tree view of the ADF.

    Hello

    I'm trying to understand how to set programmatically the current node in a tree view of the ADF.

    My use case example is quite simple; If we take the sample application ADF Summit where under Management Summit, we have a tree view on the left with a list of high level of the country which in turn contain a subset of customers; then, in the right pane, we the customer detail information.

    What I'm trying to achieve is a solution by which I can add a new customer, commit and then to the tree show the client newly created as the currently selected entry.

    I use a pop-up dialog box to create my new entry of the customer and everything works well in this area, and my newly created folder is saved in the database.

    I know how to force the tree to cool off, but what I can't understand is how to do so, it highlights the newly created folder.

    Any help would be much appreciated.

    Refer

    https://blogs.Oracle.com/jdevotnharvest/entry/how_to_programmatically_disclose_a

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/78-man-expanding-trees-treetables-354775.PDF

  • How to set up the workflow in 11i

    How to set up the workflow in 11i


    EBS 11i,
    Linux-Oracle
    DB - 10.2.0.4

    Please follow

    Control - Workflow: Setup-ID Doc: 113664.1
    Configuration of the envelope of Notification based on Java Oracle Workflow 2.6 with Oracle Applications 11i [ID 231286.1]

    11i/R12 - a guide for troubleshoting emails of Notification Workflow - inbound and outbound Doc ID:831982.1
    Troubleshooting incoming e-mail Notifications [ID 1184846.1]
    Troubleshooting Workflow Oracle Applications 11i [ID 262011.1]
    UAS: Diagnostics, Solutions and information [ID 332152.1]

    Workflow control
    Re: Setup R12 Workflow
    Workflow notifications are sent, but messages are not sent

  • where can I get advice on how to set up the iPad for a partially sighted person

    Where can I get advice on how to set up the iPad for a partially sighted person. Are there apps that can help the user, perhaps activated by voice?

    Paul,

    Go to http://help.apple.com/ipad/9/#/iPad9a2465f9and see all the topics under accessibility.

  • How to set up the password disk HARD on Equimum L40-141?

    Hello

    Can someone tell me how to set up the hard drive on my laptop password above please?

    Thank you
    Jane

    Hello

    Have you checked the settings in the BIOS?
    My BIOS contains an option for the HARD drive password parameter.

    But just a question; Why do you want to set the HARD drive password?
    Is this really necessary?

    You need to know if the HARD drive has been fixed, and that something will go wrong, I mean that if you would forget the HARD drive password, the HARD drive would be locked and is no longer usable.
    So be careful with this password if you want to know my opinion; Don t pay.

    Welcome them

  • Qosmio F60 - L10 - how to set up the tv with integrated antenna tuner?

    Good evening
    I have a toshiba qosmio f60, I read your answer about tv tuner.
    My question is: how to set up the tv with integrated antenna tuner? Thank you

    The tuner is already configured!
    You must use Windows Media Center.
    Here, you have to choose the tuner and need to look for available DVB - T channels.

    Notes; Signals DVB - T depends on the country and region.
    In my area I needed an external antenna because the signal is too weak.

  • How to set on the Sony NEX-6 automatic exposure bracketing

    How to set on the Sony NEX-6 automatic exposure bracketing

    Hi FotoEdge,

    You can adjust the automatic exposure of the support under Menu section. Instructions and information on this option is referred to in the #58 manual page.

  • How to set up the multimedia keys (only the last 3 buttons)

    Hello

    How to set up the multimedia keys (only the last 3 buttons)? The first button works, you open the browser and the other open WMP.
    But the last 3 buttons (play/pause, Stop, forw/rewd) aren´t work with WMP. How can I fix?

    Thank you

    Hello

    Can you please tell us what model of laptop Satellite A do you have?

  • Qosmio F50 - 10Z - how to set up the bar multimedia?

    Greetings, have a question... because after a long time, trying to make it work, I can not find the problem...

    On my laptop, I reinstall Windows Vista, download all the drivers for the Toshiba for Qosmio F50 driver page, for Vista... and even how to set up the multimedia bar? With Dolby, sound on / off, light power... He s doesn't work do not. Are there special software required? Or can I put it somewhere?

    Thanks for help

    Use this-> http://eu.computers.toshiba-europe.com/innovation/download_drivers_bios.jsp?service=EU research of Value Added Package 1.1.19

  • How to set up the Windows network access program?

    original title: how to set up the N A P

    How to access my windows network access program

    Hi bryan stacy,.
     
    -Are you talking about in the center of network share or the network connection folder?
     
    If you are referring to the network connection folder, see the following link for more information:
  • How to set up the wireless keyboard

    How to set up the HP Pavilion new elegant laptop 15 and an external monitor with the lid closed. As the use of the laptop as a desktop with external display. Follow the work as long as the flap of the laptop is open.

    If you use Windows 7, and then click Start-> Control Panel-> hardware and sound-> Power Options. It should be a list on the left side of the window, choose the one that says "choose the closing the cover. Select do nothing to do. Should work even in Windows 8, as well.

  • printer HP from Mac 10.5.8 deskjet 970cse how to set up the printer for the printing of the project

    printer HP from Mac 10.5.8 deskjet 970cse how to set up the printer for the printing of the project

    Hello

    You can find out how to access and change the settings of quality below:

    http://support.HP.com/us-en/document/c01662356

    Kind regards

    Shlomi

  • How to set up the order of priority of a start-up program

    Hello

    I'm using Pavilion laptop dv7-2110, Windows Vista 64 bit PC.

    Can someone explain to me how to set up the order of priority of a startup programs.

    Problem: Kaspersky Internet Security appeaps on the taskbar after Skype Torrent etc.

    Thank you in advance.

    You can access the start utility by typing "msconfig" in the start menu-> "search programs and files". From there, go to the Startup tab and you can select the programs to start and which not.

    Regarding the priority, I don't think there is a way, anyway you shouldn't be worried that your anti-virus starts just after other programs that it does not put you in danger.

    If you wish for a quick start you should probably disable most of the non-critical programs in the list, don't worry you do not break your computer if you uncheck anything that you don't know what it is, but I recommend that you don't have before checking what it is.

    Hope this helps

Maybe you are looking for

  • How to cancel a monthly subscription to an APA?

    Hello I subscribe to an application on a monthly basis and after a year I would like to cancel it, but couldn't find an option how to. Help appreciated.

  • Satellite Pro L40 intermittent (PSL43E) Wi - Fi

    Well, I'm fed up with this laptop and its intermittent Wi - Fi connection. You don t just know power if it is to work or not, and when it doesn t, it can be an absolute nightmare let him detect the router. The properties of the adapter always say the

  • error 1100 queue

    Hello I am creating a configuration vi for use with the Unit Test. The vi I want to test requires a queue entry, and when I write that, as in the excerpt here, 1100 error is generated in vi get the queue. the same code works fine in the real vi. Tay

  • TMS 14.2 - Add Participants - last used locked to 10

    The participants of the last used can be configured before 14.2, while this has been deleted in 14.2 and locked to a maximum of 10. This is clearly mentioned in the release notes, however, I really don't understand the idea behind it. It has become a

  • Latest Outlook for Mac interrupts the SPACEBAR shortcut in InDesign CC 2015

    I have an iMac 27 "mid-2011 with 10.10.4I have the latest updates installed in Mac OS, Adobe CC and Microsoft Office, but as soon as I open Outlook that asking me to activate whenever I open it from the start up, I lose the SPACEBAR shortcut in InDes