Solved

Is it possible to create multiple databases under the same oracle_home?

Posted on 2015-01-26
7
173 Views
Last Modified: 2015-02-05
I am new to oracle databases, preparing for OCA/OCP certification. plying with oracle databases, I wonder if it is possible to manage multiple databases under one installation of oracle home.
if it is possible, how can I do it?

thanks
0
Comment
Question by:CCVOIP
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 40570996
Yes.

Just run DBCA and use a different name.
0
 
LVL 74

Expert Comment

by:sdstuber
ID: 40570999
yes,  oracle home is just the binaries of the software to access the databases.   The actual databases are just files, which are independent of each other.  They are not typically (nor recommended to be) under the oracle home.
0
 
LVL 23

Expert Comment

by:David
ID: 40571052
Oracle recommends a flexible architecture (OFA) that people seem to love or hate.  This is documented all over the place, but as an example, it's commonly /app/oracle/product/<version>/<product> , or /app/oracle/product/11.2.0.3/db1.  You might have db2, db3, client1, etc., in the last position.

In like manner, one can have /app/oracle/product/12.1.0.1/db2.

It's the ORACLE_SID variable (db1, db2, etc.) that controls which database is in use for a session.
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 40571058
>>You might have db2, db3, client1, etc., in the last position.

This is multiple software installs.  It has NOTHING to do with multiple databases.
0
 

Author Comment

by:CCVOIP
ID: 40571749
thank you all for your responses!
I tried to create 2 different databases using DBCA, under linux(CentOS). but I couldn't login to the second one, it keeps login me to the first database (knowing that under linux you need to use "export" to specify some oracle settings such as $ORACLE_UNQNAME, $ORACLE_SID, $ORACLE_HOSTNAME, $ORACLE_BASE ..... before starting the DBCA to create a database) , when I created the second database, I did not specify those variable!
how can I log into the 2 databases separately?
0
 
LVL 16

Expert Comment

by:Wasim Akram Shaik
ID: 40572262
use export ORACLE_HOME=ORACLE_SID1

and use sqlplus "/ as sysdba"

or if you can specify the service names then you can login easily like this(for this you have to specify the service name of database2 in tnsnames.ora of database1)
which is generally present in the path $ORACLE_HOME/network/admin/

sqlplus username/password@servicename2
0
 
LVL 74

Accepted Solution

by:
sdstuber earned 500 total points
ID: 40572573
the oraenv script should help with the variable setup

dot in the script   ". oraenv"  and it will prompt you for the db name you want
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question