Two oracle homes on linux !
Hello !
Can we make two oracle homes in Linux .
In one home i have to install 8i database and in the other home i have to install 9iAS.
What i think is , for two oracle homes in linux u need to make two oracle users first ,and in two different bash_profile file u have to give the path of oracle home. So this thing will not allow to start
your database every time. u have to change user every time and then start your database .
This thing will create problem .
I have tried this thing on NT and it worked . I mean i made two oracle Homes and on one home i installed 8i and on other home i installed 9iAS. and it worked uccessfully.
How can i do it on Linux .
Regards
Seemab
No you don't need a separate user. Just a shell script to change the environment.
This is fairly standard on all unix platforms and is covered in the manuals, generally you run .oraenv or .coraenv which is really just a shell script which resets the environment.(theres probably a bash shell script for linux I haven't checked). However you can write your own to suit you needs. Generally the format is that the script it prompts you for an instance name and sets the environment approppriately but it could prompt you for anything.
for example
echo "which environmnet do you want"
read OENV
case $OENV in
9) ORACLE_HOME=....
ORACLE_SID=....;;
8) ORACLE_HOME=....
ORACLE_SID=....;;
esac
Similar Messages
-
Two oracle homes in linux!
Hello !
Can we make two oracle homes in Linux .
In one home i have to install 8i database and in the other home i have to install 9iAS.
What i think is , for two oracle homes in linux u need to make two oracle users first ,and in two different bash_profile file u have to give the path of oracle home. So this thing will not allow to start
your database every time. u have to change user every time and then start your database .
This thing will create problem .
I have tried this thing on NT and it worked . I mean i made two oracle Homes and on one home i installed 8i and on other home i installed 9iAS. and it worked uccessfully.
How can i do it on Linux .
Regards
null<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by seemab:
Sir i am talking about Red Hat Linux.
Can we do it on it .
Regards<HR></BLOCKQUOTE>
I don't see why not. I used to use Red Hat and it worked the same.
Say you want to start the database, open a terminal and do something like
su - oracle
<give password>
. setupdbenv
small script you write to set your SID, ORACLE_HOME, etc
then start the database in that terminal.
Similarly, for Oracle9iAS, log on using the correct user (root?), set the environment using something like . setupiasenv, and do the apachectl thing.
I have 5 different Java environments I can setup in this way. Would be impossible if I used .bashrc or .profile to setup my environments.
Cheers,
Malte
null -
hi all
i have al-ready installed oracle 11g on my xp and created database then
when i want to install oracle 10g .it installed sucessfully
but i cannot connect to any of the oracle software
as i put the SAME oracle_base for both the ORACLE 11g and oracle 10g
Can anyone help me how to have two oracle home on a single machine xp?
Thanks
MisinHi,
there isnt any problem.
During instalation you set ORACLE_BASE. It could be the same for both version but you have to set diffrent ORACLE_HOME
Samething like this
(it's on linux but the same is on win )
echo $ORACLE_BASE
/opt/app/oracle
for 10g
echo $ORACLE_HOME
/opt/app/oracle/product/10/db10g
for 11g
echo $ORACLE_HOME
/opt/app/oracle/product/11/db11g
Now when do you want to run 10g set 10g enviroment and for 11g ORACLE_HOME form 11g.
REgards,
Tom
http://oracledba.cz -
Need of Two Oracle Home in R12
I am a newbie apps dba and was going through the oracle documentation. Where I learnt that in r12 there are two ORACLE_HOME 10.2.0 and 10.3.0. I tried to research regarding the same but couldn't find anything conclusive enough that would clear my fundamentals regarding the need for having 2 ORACLE_HOME. Of what I have understood , 10.2.0 is Developer Home which hosts the Apache, forms server etc and 10.3.0 hosts the JAVA/html server etc. Is my understanding correct regarding the same ? and what is the use and advantage of having two Oracle Homes? Do explain me in laymen terms as I am still a newbie!
BhaviSavla;
I guess you dint understand what I have said!!! I HAVE ALREADY READ THAT THOUSAND TIMES!!! Please think double&triple time while you are talking wiht Hussein Sawwan about EBS related questions. I am sure about Hussein Sawwan understand your question as he understand other questions and already he has been answered your question(If you have ability to understand what you read)
I strongly suggest you about TO BE KIND-RESPECT with forum users which are trying to help other people here.
And I am still not able to understand the actual advantage of having TWO ORACLE_HOME...After read something, If you still understand than dont blame forum users. Choose easy way... Rise SR!
Kindly do not post just to increase your number of posts on this forum!! If you cannot help me in anyway with this, kindly do not post!If you dont follow OTN forum site consistently than DO NOT MAKE COMMENT about people here If the topic is Hussein Sawwan.
I must remind you something... He has more than 50k post wiht 51k points which mean he made post here like your_post_count*1500times... Wiht other words, his each post equal to 1 point, which mean his each post has meaning which are helpful!
Do you have capability to calculate how mch time he spend here?
Dont thing so!
Moderator, I belive this question is already answered If the poster read notes! Please close or lock this thread!
Thanks
Helios -
Previously I have used oracle 9i Client. After that I have installed Oracle 10 g client.Now In my machinne , have two oracle homes(Oracle 9i and 10g ).I want delete the Oracle 9i home from my machine.
Help me.
Thanks,
AnzyTechnically it's safe to remove 9i ORACLE_HOME without affecting 10g.
However sometime you might have some application compiled with old 9i installation and depend on it.
Make a backup of 9i home before remove it just in case. -
One lieneter for two oracle homes?
Hi
If I have two Oracle Homes on the same servers (say, 10.2.0.4 and 10.2.0.5), do I need to configure two listeners (one for databases of each Home) OR one listener (from the higher version Oracle home probably) will be good enough? If one listener is enough, is there special configuration for such case?
Best regardsuser130038 wrote:
Hi
If I have two Oracle Homes on the same servers (say, 10.2.0.4 and 10.2.0.5), do I need to configure two listeners (one for databases of each Home) OR one listener (from the higher version Oracle home probably) will be good enough? If one listener is enough, is there special configuration for such case?
Best regards
No, the listener from the most recent release would be sufficient for all the databases running on the machine.
Aman.... -
Environment Variables in a single host same user two Oracle homes OAS
Hello All.
I've been googleing and looking over otn site but I cannot find solution to my question that, perhaps, is pretty easy.
I have an OAS 10g installation in a Linux single node.
I've made the installation the INFRA and the MT with the same user (oracle)
If I set the ORACLE_HOME in the oracle user .bash_profile my command lines will work just for the ONE of the Oracle Home (the one pointed in the profile).
I have two solutions:
1. Make the .bash_profile dynamic. that is to program like a menu to ask what Environment Variables to load (infra's or MT's.)
2. Make like .bat files to just call them and set whatever I need.
Sounds simple, but I have no idea how to make or program any of them. I am pretty much a newbie in unix shell script programming.
Thanks in advance any help.Ricard wrote:
Hi
This is for test purpose.
I know oracle dont enjoy having same SID for 2 instances in same host.
I was reading about it and seems is possible on UNIX machines. So i tried to do in a red hat linux enterprise 4.
But with dbca, im always stoped by oratab, cause cant have same oracle_sid in oratab.
Any idea how to do it?
Not using dbca and making the database manually via script?
ThanksWell, if you read this link,
http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/startup.htm#CNCPT601
And from here, this quote,
>
Multiple instances can run concurrently on the same computer, each accessing its own physical database. In large-scale cluster systems, Real Application Clusters enables multiple instances to mount a single database.>
One instance can be used only by one single database on a box. There may be another instance of the same name available but Oracle won't let you open that database. You will receive,
ORA-01102 cannot mount database in EXCLUSIVE modeCause: Some other instance has the database mounted exclusive or shared.
Action: Shut down the other instance or mount in a compatible mode.>
So , in any case, you are limited to one single database and one instance. As Paul mentioned, using different case, you may be able to achieve this but that still can't be called a true test as on *nix, case does matter and ORCL and orcl are going to be considered as two different databases.
HTH
Aman.... -
Hi,
on a windows 2003 server I have Oracle 10g and Oracle 8.1.7.
When we start listener of 10g , it deos not start listener for 8.1.7 data base. For starting 8.1.7 Listener I should go to Oracle_HOME/bin of 8.1.7.
Is there any way to resolve this in order to start Listener for 8.1.7 with 10g listener ? How to include 8.1.7 Db in SID_LIST_LISTENER of 10g listener.ora?
The same we can not use SQLPLUS of 10g to connect to 8.1.7 data base . We should do this from 8.1.7ORACLE_HOME/bin. How can I change to be able to connect from every directory ?
Many thanks.Use oracle netmanager to include oracle 8i database service name in to 10g listner or else manually include 8i SID and oracle home in to 10g listner file.
Netmanager can be started by typing netmgr on command prompt
e.g
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(PROGRAM = extproc)
(SID_NAME = orcl)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(SID_NAME = ORCL)
(SID_DESC =
(GLOBAL_DBNAME = TSH1)
(ORACLE_HOME = /data2/oracle/ora8i)
(SID_NAME = TSH1)
2)
in 10g Home you need to configure tnsnames.ora for the 8i database to be connected. Put the 8i server ip and SERVICE_NAME and port in 10g tnsnames.ora file. You can find this file in $ORACLE_HOME/network/admin
TSH1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.21.29)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = tsh1)
) -
OS: Windows XP, 32-bit
Oracle DB 1: Oracle 9i Enterprise Edition Release 9.2.0.7.0
Oracle DB 2: Oracle10g Enterprise Edition Release 10.2.0.1.0
How can I manage environment variables like ORACLE_HOME and ORACLE_SID for both oracle databases?
What I do now:
Depending on the DB I want to use I set up ORACLE_HOME and ORACLE_SID accordingly, describe the path to the oracle home directory in the PATH env variable and start the appropriate oracle service from Services.
As you can imagine this is unthinkable.
(Besides, I noticed that in the Registry I have key for oracle home only for the 10g DB. I don't know why is this like that. But for Oracle 9i I have no keys in HKEY_LOCAL_MACHINE-> SOFTWARE -> ORACLE.)
Could anyone suggest cleverer method to manage both databases in windows without the need manually to set variables each time when I switch?Perhaps one easy method was to setup 2 batch files, e.g.:
C:\WINDOWS> copy con 9.bat
@echo off
set ORACLE_SID=inst9
set ORACLE_BASE=path_to_base
set ORACLE_HOME=path_to_home
etc...
prompt [oracle 9i] $p$g
echo "Environment Oracle 9i"
Control-Z Return
Create a 10.bat with appropriate data too.
If you put the batch files in C:\windows they will be in your path and you can simply type "9" or "10" depending on which Oracle environment you need. -
OS: SuSE Linux Enterprise Server 8
Oracle DB: 10.1.0.2.0
Hello All,
I have two oracle home on single box.
For my Database
/opt/oracle/product/10.1.0/db_1For HTML_DB
/opt/oracle/product/10.1.0/ccdI'd like to remove ccd home.
can any one tell me the secure command to remove all objects under ccd only?
I have deinstall ccd home product from HTML_DB cd but still >/opt/oracle/product/10.1.0/ccd and its child objects are exits.
Please note: I do not want to remove any thing from >/opt/oracle/product/10.1.0/db_1.
Regards,
D1st Off use the Oracle runInstaller to remove the software and the home for the home you want to get rid of.
Then (as it doesn't actually remove all teh directories and files) do an rm -rf /opt/oracle/product/10.1.0/ccd
also you may need to check things like the following files (usually in /etc or /usr/local/bin) oratab oraenv emtab for references to the instance you have deleted - also beware any .profile or .bash_profile entries which may have now redundant Paths etc in them. -
ODI installation out of Oracle home
Hi,
I have to install Oracle Data Integrator on a development server where EPM 11.1.2 is already installed. I encounter the following error after setting the install folder (I leave it to default: D:\Oracle\Middleware\EPMSystem11R1):
OUI-10044: The selected Oracle Home location already contains an Oracle Home
or APPL_TOP created while running a different OS
I've done some research and found [ that post|http://gerardnico.com/wiki/database/oracle/oui-10044], which didn't help much.
Basically my ODI file shiphomeproperties.xml shows an OS id 233, which is good.
The problem might be that I have two Oracle folders under C:/. One under "Program Files(x86)" that shows an OS id of 912 and another under "Program Files" which shows an OS id 233. Now I'm guessing that the Oracle installer looks into the wrong file...
Now I might have a workaround, if I change the default install folder, for example to Oracle1, I can access the next step.
My question is to know if it's ok to installl ODI in another Oracle home, is it ok to have two oracle home ?
thanks for your help.
cyrilCheck out Metalink Note:191567.1
(http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=191567.1)
Step 11.
11. Error in invoking target relink of makefile
/home/ias/infrastructure/precomp/lib/ins_precomp.mk
To fix it:
As ias go to $ORACLE_HOME/bin
vi genclntsh
change line LD_SELF_CONTAINED="-z defs" to LD_SELF_CONTAINED="" (line 147 of 200)
save genclntsh file
./genclntsh
Created /home/ias/infrastructure/lib/libclntst9.a
Click "Retry" at error popup window. Installer will continue.
Link successful. -
Does Oracle 10G supports 2 Oracle homes on same Host?
Hi,
I have installed oracle 10 G R2 on windows OS. I have installed oracle twice, i.e. i have two oracle homes. After installation these are the problems i am facing:
1. I am not able to start oracleDBconsoleorcl, OracleOraDb10g_home1TNSlistener services. I am not able to get sql command prompt for the oracle home1.
2. But I am able to start oracleDBconsoleorcl2, OracleOraDb10g_home2TNSlistener services. I am able to get sql command prompt for the oracle home2.
Can anyone please tell me what the problem is? Someone told me that in 10G i cannot have two Oracle homes. Is it true? if yes then waht is the work around for this problem.
Thanks
VarunWhy have you installed it twice?
You only need a single home for running any number of instances. (though I question the logic of the person who runs multiple database instances on the same platform as sop)
Running multiple homes are usually a solution when having to run two different version instances. E.g. installing Oracle 10G in addition to a 9i installation in order to create a 10G database to use for porting the 9i database, after which the 9i database and installation will be trashed.
Running two homes of the same version is silly - you're simply duplicating a truck load of static files, executables, libraries, message files and so on.. for what purpose? -
ORA-28547 - Multiple Oracle Homes - Sqlplus
I have two oracle homes XE and Developer 10g
When trying to access XE using Sqlplus I receive ORA-28547.
C:\>sqlplus system@xe
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 8 16:29:21 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-28547: connection to server failed, probable Oracle Net admin error
I use OracleLocatorExpress from DBMotive Tools to set the correct Oracle Home.
XE TNSnames.ora entry is as follows
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.141)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
XE Listener.ora entry is as follows
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.141)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
OS is Windows XP SP2
Access through the web interface works ok.
Long term want the ability to imp a dmp file into XE.So, I would make sure you are just using one home or pointing to one set of tnsnames.ora / sqlnet.ora files. I have a feeling your using Oracle Names. So, what I would do is set your sqlnet.ora file to have the following entry:
names.directory_path=(tnsnames,onames,hostname)
This is the default, but will work with your onames setup as it will look local first. Just make sure you have TNS_ADMIN set in your registry for each Oracle Home. Point them to the same configuration, and you should be good to go.
Good Luck!
BradW -
Multiple oracle homes listener configuration
hi All,
I have two oracle homes 10g and 11g, i wanted to know how are listeners configured for both the homes.
Can i copy the detais of listener and tnsnames fiels of 10g into my 11g listener and tnsnames and go to 11g home and start listerer from there, would it work fine.
Presently when i do like this i get a message like
D:\product\11.1.0\tg_1\BIN>lsnrctl start
LSNRCTL for 32-bit Windows: Version 11.1.0.6.0 - Production on 21-APR-2010 10:31
:42
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 11.1.0.6.0 - Production
System parameter file is C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.or
a
Log messages written to d:\product\11.1.0\tg_1\log\diag\tnslsnr\mypc\listener
\alert\log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myhost)(PORT=1521)
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.1.0.6.0 - Produ
ction
Start Date 21-APR-2010 10:31:47
Uptime 0 days 0 hr. 0 min. 6 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.o
ra
Listener Log File d:\product\11.1.0\tg_1\log\diag\tnslsnr\mypc\listen
er\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myhost)(PORT=1521)))
Services Summary...
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfullyThe Listener parameter file is still refrencing to 10g home.
regards,Thank you for replying, i have set my oracle home to 11g and lsnrctl status from bin of 10g shows listener is down and lsnrctl from 11g bin directory shows listener is up, but still the status from 11g uses "Listener Parameter File C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora"
D:\product\11.1.0\tg_1\BIN>lsnrctl status
LSNRCTL for 32-bit Windows: Version 11.1.0.6.0 - Production on 21-APR-2010 10:30
:38
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.1.0.6.0 - Produ
ction
Start Date 21-APR-2010 09:37:16
Uptime 0 days 0 hr. 53 min. 22 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.o
ra
Listener Log File d:\product\11.1.0\tg_1\log\diag\tnslsnr\RC-6799\listen
er\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.107.248)(PORT=1521))) -
Creation of two databases in oracle 11g on linux
HI,
I need to create two databases in oracle 11g on linux.
how to set SID'S in .bash_profile and change the init.ora file.
pls anyone let me know
thanks
srinivasIf you have different databases on same node you could choose to not set ORACLE_SID in shell init file but use instead interactive oraenv Oracle script to set the right ORACLE_SID.
Please read Configuring the Operating System Environment Variables in http://download.oracle.com/docs/cd/E11882_01/server.112/e10897/em_manage.htm#ADMQS12369
To create easily a database (ie without using your own scripts) try to use DBCA that will automatically take care of database initialization file: http://download.oracle.com/docs/cd/E11882_01/server.112/e10897/install.htm#BABEIAID
Edited by: P. Forstmann on 5 août 2011 12:01
Maybe you are looking for
-
Adobe is asking for Java SE 6 runtime. How can I use Oracle's Java 7 instead?
Platform: Mac OS X, version 10.9.2 (the latest available as of May 11, 2014) When trying to open my old Adobe Illustrator, as part of Creative Suite CS4, I get the following error message: To open "Adobe Illustrator CS4," you need a Java SE 6 runtime
-
Closing stock with selling price
Dear Experts I am using the below query to get the instock with value but its not giving option of datewise report.Can anybody modify my query so i can get Instock and value by datewise report.So any point i can see what was the instock and its total
-
Hi all i write the procedure CREATE OR REPLACE PROCEDURE my_image_display (p_image_id IN NUMBER) AS l_mime VARCHAR2 (255); l_length NUMBER; l_file_name VARCHAR2 (2000); lob_loc BLOB; BEGIN SELECT mime_type, blob_content, filename, DBMS_LOB.getlength
-
Prevent applicatio​n from unloading dll
Hi I have created an application that is made up of primarily two vi's, with one calling the other. The second vi, or the one that is called in turn calls/loads a dll. Now my problem is that before creating an application my vi's worked great since
-
Just hooked up my APPLE TV to my Pioneer Elite Pro 1120 HD Just hooked up my APPLE TV to my Pioneer Elite Pro 1120 HD TV (2004/05). I get picture fine (although only 720p), but I can't get sound. Any ideas? I have a Optical Digital Audio cable, but n