Simple and maybe stupid question when you have two instances

Just a simple question, I was just wondering how to create user account on the local machine when you run two instances of oracle.For example all the commands I use to start and stop the database use the variables stored in the oracle user bash_profile.
But do I have to create another user to manage the other instance because it should use another bash_profile with a different oracle_sid?

Linux and Unix installations of Oracle are kind-a funny. At the end of te installation is a request to run 'root.sh'. That does a few things: set up permissions and ownerships correctly; copy some scripts into the specified directory (default /usr/local/bin).
If you were to look at /usr/local/bin, you would notice a few files, typically with names "dbhome.sh, oraenv.sh, oraenv.csh". These are designed to set up the PATH, the ORACLE_HOME and the ORACLE_SID correctly, based on user response and information in the oratab file - which is /etc/oratab in Linux. (I always ensure there to link oraenv.sh as oraenv)
Longer story shortened:
Assume you use(d) dbca to create the instances. Then you can source the oraenv.sh to set up the environment:
pop2@fuzzy:~> . oraenv.sh
[pop2]? orcl
pop2@fuzzy:~> env | grep -i ora
ORACLE_SID=orcl
PATH=/opt/oracle/product/10.2.0/server/bin:/home/pop2/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
ORACLE_HOME=/opt/oracle/product/10.2.0/serverThat way you can switch to any known environment simply by sourcing oraenv and telling it which SID you want. It extracts the info from /etc/oratab.
You can tell oraenv to shut up by setting ORAENV_ASK to 'NO' and setting the ORACLE_SID variable before sourcing oraenv. This is useful in .profile - for example my /etc/profile contains the followig:
export ORACLE_SID=XE
ORAENV_ASK=NO
. oraenv

Similar Messages

  • How to reset your secret question, when you have forgot the answer. And how to change the email where the reset confirmation will be send towards?

    can anybody help with the question below?
    how to reset your secret question, when you have forgot the answer. And how to change the email where the reset confirmation will be send towards?

    You won't be able to change your rescue email address until you can answer your questions, if you don't have access to your current rescue account then you will need to contact Support in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use steps 1 to 7 half-way down this page to update your rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • Bug: when you have two or more reminder pop-ups on BB10, you can't edit 2 or more of them because the second and beyond are lost...

    I notice that when you have two or more reminder pop-ups on BB10 (tasks, calendar, etc.), you can't edit 2 or more of these because the second and beyond get lost and will never pop-up again.  

    Hey JVanB,
    Thank you for your feedback.
    To better understand your issue, for example If you have two reminders and select 'View Event Details' on the 1st reminder,  does the 2st reminder popup before the Details of the1st reminder displays? 
    Thanks.
    -HB
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • HT1296 How do you sync iphone and PC when you have two different iphones/users?

    How do you sync iphone and PC when you have two different iphones/users in house? I just tried to sync my iphone and cancelled sync becauase I saw it was updating my phone with my husband's apps! How do I make it so that sync can distinguish between my and my husband's phone?

    I sync two iPhones and an iPad with one iTunes library on the same computer and each device has different content. Each device has its own sync preferences with iTunes. You can transfer the same music and apps to each device or different music and apps.
    Are you sharing the same Apple ID or iTunes account?

  • Is it possible to view time and date, to see when you have entered your contacts?

    I have this kinda odd problem
    Because of the christmas holidays, there has been quite a lot of parties to attend to!
    My problem is that, I have realised i have gotten a number for a girl i like quite a bit, but cant recall when i have met her during these days. Ofcurse its kinda late to return the call, but i dont wanna seem like i cant remember her at all from when i did meet her.
    So can you please help me find out when i received this contact?
    Is there a way to check the date?
    Kind regards,
    Jakob

    **** thats a shame..
    Yes i do have google!
    I have a few possible places in mind
    How excatly does it work ? Not really too familiar with it, so a step by step quide would be much appriciated.
    Thanks for your reply !

  • Outgoing email bug when you have two accounts each with an SMTP.

    I have two email accounts on iPhone and each has a different outgoing SMTP server associated it the account. One is SBC the other is my domain ISP. (Sometimes I like to send out of SBC but when it gets slow I can sent out of my domain.)
    Here is the thing. Each account has a "from" email address THE SAME (i.e. [email protected]).
    Now get this No matter which account I send out of, the mail ALWAYS go through the SMPT server of the FIRST account in the account list. HOWEVER, if I change one of the "from" email addresses to something different than the other (ie. [email protected]) the mail will go out of the correct SMTP server.
    What is THAT all about? It looks like iPhone is looking to use the return address as a factor in determining what SMTP to use. It SHOULD use the SMTP of the account mail is SENT from... but it doesn't... if the return addresses are the same.
    Any ideas?
    Al

    You will need to contact iTunes Store  support and you will lose access to any purchased content from that account. You may wish to consider just asking to disable the account or how to better manage multiple accounts.
    http://www.apple.com/support/itunes/contact/
    Support link

  • How to delete one apple id account when you have two

    How do I delete the apple id and password I use on my iPhone
    and just use the one on my MacBook for both devices.
    When I bought my iPhone I tried to set up my apple id on the phone using the same username and password as on my MacBook
    but it didn't like my password on the iPhone.
    The password was acceptable on the MacBook but the iPone required a more complicated password.
    So, I set up a separate Apple id on my iPhone
    and now I have two apple ids and I'd like to delete one and just use one for both devices.

    There's no way to delete an Apple ID. Just don't use it.

  • How to Set up Family Plan when you have two Apple IDs?

    I stopped short of setting up Family plan because my wife and I have two Apple IDs each: One for iTunes ad one for iCloud.  This was caused by migrating from long ago Apple "cloud" services.  
    The set up seems to assume you have a single ID for each person and there are no instructions to set it up using hyour current iTunesa and iCloud IDs.
    Has anyone successfully set up Family Plan while they have two sets of Apple IDs? 

    finally I found someone else with my dilemma.
    I have my iTunes/AppStore ID with all my purchases and my iCloud ID with everything else.
    this is a major issue that needs to be addressed.
    thank you.

  • How do you close only one window (not tab) when you have two open?

    I can close a tab when I have multiple ones open but if I have two windows open and I close one window it closes all other windows. How can I close just one window without shutting down any other windows?

    Yes, when I click on the red X it closes both windows. I'll try the Ctrl+w
    Thanks

  • Sorry for stupid question.  I have just got a download of a piano accompaniment (not from itunes).  I have ?downloaded it - where did it go?!  I cannot find it anywhere.  Thank you so much.

    Sorry for stupid question.  I have just got a download of a piano accompaniment (not from Itunes).  I have played it and think downoaded it but where did it go?!  I cannot find it anywhere!  Thank you!

    Generally it is not possible to download anything from a web site when using an iPhone, so if you were just using Safari, you probably didn't actually download the track but just played it from the web site. If you used some other app, tell us what app and someone may be able to provide further assistance.
    Regards.

  • .. If the app is – in or out of background - (if in background NOT the first app) and the  device locked – when you get a push message and DO NOT response straight away. Later  unlock, click the app icon (which will have a badge on it) and it fails.

    .. If the app is – in or out of background - (if in background NOT the first app) and the  device locked – when you get a push message and DO NOT response straight away. let it fade off then, Later unlock, click the app icon (which will have a badge on it) and it fails to pop up my internal alert box and my notification message is gone(cannot get access to it in code).. other times it works . Including if you tap the messaeg from app centre. (this is all on a iPod 5.1.1).
    Here is someone else with same problem http://stackoverflow.com/questions/7080266/receive-remote-notification-when-ios- device-is-locked-and-im-not-responding-imm

    Tell Apple
    Apple - iTunes - Feedback

  • My computer keeps freezing on me every 15 min do i have a virus I was told when you have mozilla firefox you don't need virus protection is that true and how can I scan if I have a virus and now do i get rid of it?

    # Question
    My computer keeps freezing on me every 15 min do i have a virus I was told when you have mozilla firefox you don't need virus protection is that true and how can I scan if I have a virus and now do i get rid of it? edit

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    There are other things that need attention:
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    # Shockwave Flash 10.0 r32
    # Next Generation Java Plug-in 1.6.0_21 for Mozilla browsers
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    Update the [[Java]] plugin to the latest version.
    *http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)

  • What do you do when you have forgotten your Apple ID security questions

    What do u do when you have forgotten your Apple ID security questions

    Alternatives for Help Resetting Security Questions and Rescue Mail
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Customer Service: Contacting Apple for support in your
              country and ask to speak to Account Security.
    How to Manage your Apple ID: Manage My Apple ID

  • When you have 1 itunes library.. and 2 ipods.. different names.. how can you share the same library???

    When you have 1 itunes library.. and 2 ipods.. different names.. how can you share the same library???  All of the songs that were put on there from a CD will sync, but the songs that were purchased.. "cannot be found"   How can we merge them?? or how can we share all songs.. purchased or not!

    When you have 1 itunes library.. and 2 ipods.. different names.. how can you share the same library???  All of the songs that were put on there from a CD will sync, but the songs that were purchased.. "cannot be found"   How can we merge them?? or how can we share all songs.. purchased or not!

  • Graphic card problem maybe? Since when I have changed the hard drive to my macbook pro and I installed all the new softwares, my mac is very slow and the screen gives crazy pictures,could maybe be the graphic card, does anybody have experienced this?

    Graphic card problem maybe? Since when I have changed the hard drive to my macbook pro and I installed all the new softwares, my mac is very slow and the screen gives crazy pictures,could maybe be the graphic card, does anybody have experienced this?

    after a restart it works for a time, but always slow. I went to the Applestore this afternoon and the made a check and said it would be the logicboard and they would have to change it for CHF 600 and it would be ready in 10 - 15 days

Maybe you are looking for

  • I keep getting the endless blue circle when trying to watch netflix on my macbook pro, despite completely uninstalling/reinstalling silverlight?

    I'm putting this question in the Macbook Pro category because I'm not having this problem on a similar age Macbook Air, both of which are running Lion, so I'm wondering if its not something to do with the graphics card or something else specific to t

  • SO idoc from PO idoc within the same client

    Hello SAP Gurus, We need help with the following . The requirement is we need to create the Sales order from Purchase order using idocs within the same client . We created the partner profile of the customer and the vendor . Customer ---maintained an

  • Funny purple dots in the top of phone

    ok im having none of the problems that are being discussed [except battery ofcourse].but i dont want to post a dumb topic. i am a first time iphone owner [3g model] and im noticing three purple-ish dots on the top of my phone. there above the screen

  • How do I move purchased music from itunes to my philips mp3 ?

    how do i move the music purchased form istore thats in my itunes library to my PHILIPS MP3 ?

  • CS2 CS3 で縦組の行送り

    縦組みで複数行ある時に.行の中の一部の文字を大きくすると.その行だけ送りが変わってしまいます.行送りは自動ではなく数値を入れて設定していてもです. 横組みの場合は.日本語基準の行送りから欧文基準に段落設定を変更すると大丈夫ですが.縦組みの場合はその設定が日本語基準でグレー表示になりさわることができません.何か解決方法はないでし ょうか?