Solved

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

Posted on 2015-01-26
7
185 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
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
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 syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
Suggested Courses

622 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