Multiple Oracle Homes on same server (Oracle AS and DB)

Hello All,
OS : RHEL 4.7
Oracle Application Server : 10.1.3.1
Oracle Database : 11.2.0.1.0
I have been asked to install oracle 11g on a server which is already running Oracle Application Server 10.1.3.1
Due to lack of space on the server the sys admin gave me the space under /usr, Installation went smooth and successfull and the location of complete 11g installed is "/usr/11gr2/app/11g/product"
Database is also created using DBCA with file location "/usr/11gr2/app/11g/oradata"
Question is, I need to set environmental variable under the same user "oracle" so that when one logs in, should be able to logon by just typing sqlplus...
Current .bash_profile of the user "oracle" looks like this...
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=/u01/oracle/product/10.1.3.1/OracleAS_1/jdk/bin:$PATH:$HOME/bin
export RPD_HOME=/home/oracle/ORABI/OBI/server/Repository
export ORACLE_HOME=/u01/oracle/product/10.1.3.1/OracleAS_1
#export JAVA_HOME=/u01/oracle/product/10.1.3.1/OracleAS_1/jdk
export JAVA_HOME=/home/oracle/product/10.1.3.1/OracleAS_1/jdk/
PATH=$PATH:$ORACLE_HOME/bin
PATH=$PATH:$ORACLE_HOME/opmn/bin
export ANT_HOME=/usr/local/ant
export PATH=${PATH}:${ANT_HOME}/bin
#export JAVA_HOME=/usr/local/ant/jdk
export PATH
Please suggest to include this oracle_home also in the above .bash_profile or any alternative to achive the needs..
Thanks
Edited by: user1687821 on Dec 22, 2011 1:10 AM

Hello;
I do a similar thing using Oracle 10 and 11, but I keep it manual and use bash to default to one.
To switch Oracle homes I run the command : ( using which profile I need )
source ./o10g.profile
Note the 'unset ORACLE_HOME' command in each profile.
o10g.profile
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
export ORACLE_BASE=/u01/app/oracle
unset ORACLE_HOME
export ORACLE_HOME=/u01/app/oracle/product/10.2.0
#export DISPLAY=localhost:0.0
export TZ=CST6CDT
export ORA_OCI_NO_OPTIMIZED_FETCH=1
ORA_OCI_NO_OPTIMIZED_FETCH=1; export ORA_OCI_NO_OPTIMIZED_FETCH
export ORACLE_SID=<ORCL>
export ORACLE_TERM=xterm
#export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
export NLS_LANG=AMERICAN;
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
# Set shell search paths
unset PATH
PATH=/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin; export PATH
export PATH=$PATH:$ORACLE_HOME/bin
#CLASSPATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
export EDITOR=vi
set -o vi
PS1='$PWD:$ORACLE_SID>'o11g.profile
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
export ORACLE_BASE=/u01/app/oracle
unset ORACLE_HOME
export ORACLE_HOME=/u01/app/oracle/product/11.2.0
#export DISPLAY=localhost:0.0
export TZ=CST6CDT
export ORA_OCI_NO_OPTIMIZED_FETCH=1
ORA_OCI_NO_OPTIMIZED_FETCH=1; export ORA_OCI_NO_OPTIMIZED_FETCH
export ORACLE_SID=<ORCL>
export ORACLE_TERM=xterm
#export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
export NLS_LANG=AMERICAN;
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
# Set shell search paths
unset PATH
PATH=/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin; export PATH
export PATH=$PATH:$ORACLE_HOME/bin
#CLASSPATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
export EDITOR=vi
set -o vi
PS1='$PWD:$ORACLE_SID>'Best Regards
mseberg

Similar Messages

  • DataGuard - multiple standbys on the same server

    DataGuard - multiple standbys on the same server
    I have my primary database on one server and I have 2 physical standby databases on another server. Is it possible to configure it so that the archive logs are pushed to the backup server only once? Can they be written to a single location on the backup server and accessed by both standby databases?

    Justin... Hold on !!! it seems that user is asking for test, not for real scenario.
    Anyways, it could be possible without mentioning undocumented parameters. You just need to enable log_archive_dest_n and log_archive_dest_state_n parameter and configure tnsnames so you can mention service there.
    Pls. check and revert back if I am wrong here.
    Cheers !!!
    Star Nirav
    Personally, I would be suprised if you could get two
    standby databases to run on a single failover machine
    without resorting to some of the unsupported
    parameters that are required to get a primary &
    secondary running on a single machine for development
    purposes. I can't imagine how two standby databases
    could pull archived log files from the same directory
    and apply them at completely different times.
    Generally, you would want your failover system on a
    different machine than the reporting system since
    they serve relatively different purposes.
    Alternately, have you looked at using a logical
    standby to serve both purposes?
    Justin

  • Multiple AIA instances on same server?

    Hi,
    Does anyone know how to install multiple AIA instances on the same SOA server? The installer hints that this might be possible, although I have not seen how this is done because the installer expects an empty oracle home path. The only information I have found so far is for an earlier 2.x release of AIA and that suggested:
    "Each SOA installation must be in his own ORACLE_HOME directory.
    Each AIA installation must be in his own ORACLE_HOME directory.
    You must point to different databases. You can not have mulitple SOA schema's in one sinlge database."
    Is this true?
    Thanks,
    Kev.

    957354 wrote:
    Hi Laxman,
    If its a testing purpose its ok to have a one oracle_home and single listener for multiple DB. One problem when applying oracle patches for one of the instances running in a multiple DB running then you need to bring all the DB running in that host since the oracle_home is sharing between all db instances.
    Thanks
    Sunil Rajesh K.C.Starting with 11g, patchset updates are full installs and done into a new home. This makes it possible to migrate one instance at a time. However, your point would be a consideration for one-off patches like CPUs.
    However, please note ... OP --- PLEASE NOTE even with multiple oracle homes, you still only need a single listener.

  • Problems with Sent mail and multiple accounts on the same server

    I have 2 different email accounts that are on the same server. Regardless of the account from which I send the email, all of the sent messages end up in the same sent folder. Is there a way to force the sent messages to go into their correct Sent folder?

    In the Finder, go to ~/Library/Mail/. With that folder open, do Edit > Select All (⌘A), then Edit > Copy (⌘C), and paste it in your reply to this post, to let me see the names of the files and folders present at the root level of the Mail folder.
    Before actually posting that information, you may edit it so that the file/folder names do not reveal any details you wish to keep private, e.g. you may replace any real username with "username" to hide your real email address if you wish; similarly, you may disguise any domain names you don't want to be revealed. Try to be consistent in how you disguise those details, though, as we may need to refer to them in subsequent posts.
    Now, go to ~/Library/Mail/Mailboxes/. With that folder open, repeat the process to let me see the names of the files and folders it contains. Again, you may disguise any mailbox names you wish to keep private. Be careful to not alter any suffixes, though.
    Finally, for the two accounts involved in the problem, locate the account folders within ~/Library/Mail/ -- their name begins with the account type (POP, IMAP, Mac), followed by the account username and the incoming mail server. For each account folder, repeat the process to let me see the names of the files and folders it contains.
    Note: For those not familiarized with the ~/ notation, it refers to the user's home folder. You can easily locate any of the folders referred to in this post by copying the file path here, doing Go > Go to Folder in the Finder, and pasting the file path there.

  • Running multiple agents on the same server

    Has anyone run multiple instances of essbase on the same server, using the agentport command? If so, how well did it work and what do you think about running it in a production environment?Thanks alot!

    I have tested it, but the documentation does not recommend using this feature in production. You can achieve the same thing with creating test applications/databases.Also, when you run 2 instances of the agent on one box, you must modify the essbase.cfg of the client machine to indicate which instance (port) that client will connect to.Regards,Jade------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • Running Multiple JVM's on same Server has OutOfMemory - PermGen Errors

    I have a scenario where I have 2 application servers. One is running one JVM and the other is running multiple JVMs.
    Both are configured with:
    -XX:+UseConcMarkSweepGC
    -XX:+UseParNewGC
    -XX:MaxPermSize=256m
    -XX:+CMSPermGenSweepingEnabled
    -XX:+CMSClassUnloadingEnabled
    The server that is running with only 1 JVM runs stable, however the server that is running multiple JVMs has frequent crashes due to OutOfMemory - PermGen errors. The only other difference is the Heap size. 512mb for each JVM on the app server with multiple instances and 1GB for the server with 1 instance. Is there a relationship/settings that need to be tuned when running multiple JVM's on the same server to avoid this?
    Thx

    The only other difference is the Heap size. 512mb for each JVM on the app server with multiple instances and 1GB for the server with 1 instance.This isn't a trivial difference. Basically you're saying "When I give the server 1 GB then it's okay but when I give it 512 MB it's not okay." If I saw those symptoms I would take them at face value to start with.
    So, turn off one of those servers on the machine that has two. Don't change anything else. Testable prediction: That won't fix your problem.

  • Multiple Apps on the same server

    Hope you can help and point me in the right direction.
    I am managing a CF internet based application built using CF
    6.1 and which talks to a MS Access 2K dB. The app is running on a
    MS Windows 2K Adv Server, IIS [with a SSL cert.] and CF 6.1 Std
    Server.
    I now need to run a second separate application on the same
    server.
    My questions are:
    1. Is this possible?
    2. If yes to 1 can anyone point me in the right direction as
    to configuring IIS and CF to run the second application? This
    second app will also require a SSL.
    TIA, K

    First off run as far and fast away from using Access for your
    DB back end as possible. Access isn't meant for this kind of work.
    Next, you'll need to setup a new virtual server (with its own
    dedicated IP address) in IIS.
    Configure your new server to its new web root and optionally
    reconfigure your log files.
    Create a new CSR with all the right information and send it
    to your SSL creator. Pay for cert with them, and wait for it to
    come back. Install new cert and optinally reconfigure the site to
    force SSL where necessary.
    Add any necessary data sources in the ColdFusion admin
    If your root config stuff for CF was setup correctly
    everything should just magically work (tm).

  • Dbconsole with multiple instances on the same server?

    Hi!
    I have a LINUX server running 2 separate instances - csp1 and csp2. I have a repository in csp1 and the dbconsole running for csp1. Now I need to find out if / how I can get the dbconsole running for the csp2 instance. This is Oracle standard edition 10.2.0.4. Both instances share the same Oracle Home and Listener. A second Oracle Home has the companion CD (http server) installed in it and has no instances associated with it.
    Does anyone have information on how to do this? Here are some of my questions:
    1) Do I need separate repositories for each instance or can the repository in csp1 be used for both instances?
    2) Can the ports be shared or do I need to assign new port #'s for the 2nd instance? How / where do I do this?
    Any hints, tips, suggestions, etc. are greatly appreciated!
    Dave Venus

    1) Do I need separate repositories for each instance or can the repository in csp1 be used for both instances?
    Yes, in the free version of EM in 10g ie DB console,that's the restriction. You can't use it for more than one database. It has to be done explicitly for that another database whom you want to manage via it. So as per the answer, yes you do need a seperate repository for your second db. The other db will be in the same Oracle home and surely its em repository can work with the existing listener.But it does require its own set of config files which will be in a sperate folder under Oracle Home with its sid.
    2) 2) Can the ports be shared or do I need to assign new port #'s for the 2nd instance? How / where do I do this?
    As I mentioned in my last reply, you wouldn't be able to share the port that is already in use. You do need to have a seperate port configured. Normally when you would install the repository oracle would pick up itself a port number. The valid port range , if I remember correctly is from 5500 onwards ( I don't remember the last limit). Even afterwars, you can change the port using "emca" command.
    Edit:
    I forgot to mention that some time back, here on the forums, I had a discussion with a guy who mentioned that there is a workaround possible to add a target in the current Targets.xml for the second database. I did try it out but still that didn't give me two instances. The most recent one which I added only was accessible.
    Update:
    I did find that thread,here it is. See if this helps you,
    Re: control two database with one database control
    HTH
    Aman....
    Edited by: Aman.... on Oct 28, 2008 7:14 PM
    Added Edit
    Edited by: Aman.... on Oct 28, 2008 7:28 PM
    Added thread

  • Multiple users accessing the same server.

    Ok here is my issue, about 2 months ago I started having issues with Filesharing on my 2012 Mac Mini running Lion server (current update). We have 3 users that VPN into our conpany network and usually access the same folder, 2 months ago they started conflicting with each other. When one VPNs into the network and connects to the server they are fine, if the second one connects to the network they are fine but if the second one tries to access the fileshare they knock the second one off the server. The first one's connection eventually hangs and they have to completely disconnect from the VPN. I am wondering if this was caused by a patch or if there is something else going on. I have tried to reboot the server and checked the logs for anything but I am not seeing what may be causing this. I have restarted the Filesharing in the Server app and still get the same problem, the users are connecting via local credentials to the server. I don't think it is a password issue since either user can log in and access as long as another user doesn't so I am not sure what the issue could be.
    any help appriciated,
    josh

    By 'standard record locking system' do you mean there is nothing I need to do programatically? No block level properties to change?
    So you are saying this is just the way it always works. So as soon as one of our call center agents opens a record all I have to do is create a pending update to any field?
    But won't another user be able to open the form and just query that record not knowing another user has it open?

  • How to access Apex environments that exist in multiple SID's on same Server

    HI,
    I've got a Linux Server which has 3 11gr2 Development instances (SID's), in each instance I'd like to setup Apex environment (I know Apex comes with the 11gr2 DB). How can I access a specific Apex environment (on one of the SID's) when all the database instances share the same IP Address?
    Any suggestions?
    TIA

    Sorry for the silly Q, all I need to do is run EXEC DBMS_XDB.SETHTTPPORT(port); specifying a different port for each SID!

  • Clustering multiple instances on the same server

    I've read reports of people clustering multiple instances of weblogic on the
              same machine to better utilize the CPU of that machine.
              So if I wanted to set up a cluster with four machines and two instances of
              weblogic running on each (port 7001 and port 8001) , what properties do I need
              to send into the startup command for the servers?
              How do you set this up
              Thanks in advanced.
              -rrc
              Russell Castagnaro
              Chief Mentor
              SyncTank Solutions
              http://www.synctank.com
              Earth is the cradle of mankind; one does not remain in the cradle forever
              -Tsiolkovsky
              

    Do this for all your four machines
              1) Create dirs: cluster1, cluster2 under %WEBLOGIC_HOME%
              2) Create dirs: cluster1\myserver, cluster2\myserver
              3) create two startup scripts,
              specify -Dweblogic.cluster.enable=true -Dweblogic.cluster.name=cluster1 (or
              cluster2) in each script.
              4) Speicfy weblogic.cluster.multicastAddress=IPAddr in
              cluster1\weblogic.properties & cluster2\weblogic.properties, use different
              IPAddr for these two cluster.
              5) Specify weblogic.system.listenPort=7001 in
              cluster1\myserver\weblogic.properties & weblogic.system.listenPort=8001 in
              cluster2\myserver\weblogic.properties
              6) If your machine is multi-homed, specify weblogic.system.bindAddr in
              cluster1(and/or cluster2)\myserver\weblogic.properties.
              my 2cents.
              Cheers - Wei
              Russell Castagnaro <[email protected]> wrote in message
              news:[email protected]...
              > I've read reports of people clustering multiple instances of weblogic on
              the
              > same machine to better utilize the CPU of that machine.
              >
              > So if I wanted to set up a cluster with four machines and two instances of
              > weblogic running on each (port 7001 and port 8001) , what properties do I
              need
              > to send into the startup command for the servers?
              >
              > How do you set this up
              >
              > Thanks in advanced.
              > -rrc
              > --
              >
              > Russell Castagnaro
              > Chief Mentor
              > SyncTank Solutions
              > http://www.synctank.com
              >
              > Earth is the cradle of mankind; one does not remain in the cradle forever
              > -Tsiolkovsky
              >
              >
              

  • Simultaneous connections to the same server from IE and NN

    Hi,
    We are using iws4.1.
    IE5+ can make only atmost 2 simultaneous connections to our server and
    NN makes 4 connections.
    We found certain pages hosted by iws4.1 like www.netscape.com can make
    more than 2 simultaneous connection from same browser.
    The above tests are done from a dialup connection
    Is there a way to increase the no. of simultaneous connections from both
    IE and NN with the knowledge on the end user.
    Thanks in advance
    rvenky

    Could you please post the code, if you do not mind. Also if you could post the connection pool definition of both the pools that would help too.
    If the business method is coded in the following way
    m1() {
    conn1 = // get connection
    conn2 = // get another connection
    // do some thing with conn1
    // do some thing else with conn2
    conn1.close();
    conn2.close();
    Could you try modifying the code in the following way and see if that helps
    m1() {
    conn1 = // get connection
    // do some thing with conn1
    conn1.close();
    Basically start using conn2 after conn1 is used
    conn2 = // get another connection
    // do some thing else with conn2
    conn2.close();
    regards
    sankar

  • Multiple Oracle Databases in a Single Windows Server

    Hi all,
    I have Windows Server System which has oracle database created.
    My question is:-
    How can i create multiple databases on the same server without affecting the first created database & i want to use the both databases at a time?
    Please give the steps to do multiple databases in the same server if possible..
    Thanks in advance,
    Venkatesh J

    Venkateshj wrote:
    How can i create multiple databases on the same server without affecting the first created database & i want to use the both databases at a time?Yes, possible. No, invariable a a bad idea as this is not a scalable approach.
    Oracle scales by adding more servers to a single physical database. This is called Oracle RAC.
    You want to add more physical databases to a single server - doing the exact opposite of what Oracle offers as a scalable solution.
    Please give the steps to do multiple databases in the same server if possible..No special steps. Run DBCA and create a new database instance. In other words, the exact same steps followed for creating the 1st database on that server.
    Also make sure you fully understand WHAT you are doing and the IMPLICATIONS of that. An Oracle database is not the same as a mySQL or SQL-Server database. An Oracle Schema is a logical database - and compares to what a mySQL/SQL-Server database is.
    And a single Oracle database can contain 1000s of logical databases (schemas). Each with their own dedicated storage, own security, own resource profile, etc.
    Oracle is not mySQL/SQL-Server.
    Understanding the differences is important.

  • How to create linked server to multiple database on same server?

    Hi Experts
    I want to create linked server to multiple databases on the same server.
    I have 2 database servers (ServerA and ServerB) and want to create linked server on ServerB to link multiple databases on ServerA).
    I have admin right on ServerB.
    I don't have admin right on ServerA but have different accounts to access on each databases on ServerA.
    After I created one linked server object to a database, I cannot create another linked server object for another database as it has already used the server name which is ServerA.
    Please advise.
    Thanks.

    EXEC sp_addlinkedserver 'ServerADB1', '', 'SQLNCLI', 'ServerA', @catalog = 'DB1'
    EXEC sp_addlinkedserver 'ServerADB2', '', 'SQLNCLI', 'ServerA', @catalog = 'DB2'
    etc.
    Please look up the details for sp_addlinkedserver as I typed this from memory.
    I can certainly see a point in having one linked server per database, as then you don't have to hardcode the database name in the queries, and the linked-server definitions can be changed if the database name changes.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Multiple HTTP requests through same connection

    Hi...
    I am writing an application which connect to its server through HTTP protocol and the server is basicaly a bunch of servlets hosted somewhere (Right not it in the tomcat running in my PC)
    I know that with Connection Keep-Alive header you can keep the connection alive and do multiple requests from the same server.
    Can some one point me to where can I find some sample code which shows how to send multiple requests through same URL conection or URL object. What i cant figure out is how to reset the URL connection or its streams a and make them send anotehr request message to the serverso server can respond.
    Or do I have to do this manualy (using sockets)

    You SHOULD be able to do a HttpUrlConnection method. However, I have hand-coded HTTP server and client apps and the keep-alive is rarely enabled in servers.
    This is due to better handling of millions of unique hosts requesting, unlike a network os, which is made the other way around.

Maybe you are looking for