Solved

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

Posted on 2015-01-26
7
156 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
7 Comments
 
LVL 76

Expert Comment

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

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

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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 76

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 73

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
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 how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to recover a database from a user managed backup

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now