You are on page 1of 50

Installation of Oracle Database 12c Enterprise/Standard Editions Release1:

This document describes the installation of Oracle Database 12c Enterprise/Standard edition Release 1 on Windows 7 using VMware Workstation.

Introduction:
Oracle Database 12c, the latest generation of the worlds most popular database, has been developed for the Cloud and will enable customers to make more efficient use of their IT resources while continuing to improve their users service levels. In addition to a raft of enhancements and new features, including a new architecture, Oracle Database 12c makes it easier for customers to take advantage of the Cloud through: Consolidating multiple databases with Oracle Multitenant Automatically optimizing data storage and compression according to usage patterns Providing continuous access with Oracles Maximum Availability Architecture Securing enterprise data with comprehensive defense-in-depth strategy Simplifying in-database analysis of Big Data Efficient database management using Enterprise Manager Cloud Control

Enabling Database Clouds :


Oracle releases have helped customers standardize, consolidate and automate database services on the cloud with a variety of innovations including: Oracle Real Application Clusters Oracle Automatic Storage Management Oracle Exadata Database Machine

New features included in Oracle 12c :


1. Pluggable Databases - Pluggable database are a neat feature. Basically, you create a

container database (CDB) that contains all of the oracle level data and data dictionary. You then create pluggable databases (PDB) that contain user data and the user portion of the data dictionary. Since the PDB files contain everything about the user data, you can unplug a PDB from a CDB and plug it into a different CDB and be up in seconds. All that needs to happen is a quick data dictionary update in the CDB. 2. Duplicate Indexes - Create duplicate indexes on the same set of columns. In 11.2 and below, if you try to create an index using the same columns, in the same order, as an existing index, you get an error. In some cases, you might want two different types of index on the same data (such as in a data warehouse where you might want a bitmap index on the leading edge of a set of columns that exists in a btree index). 3. Implicit Result Sets - create a procedure, open a ref cursor and return the results. No types, not muss, no mess. Streamlined data access (kind of a catch up to other databases). 4. PL/SQL Unit Security - A role can now be granted to a code unit. That means you can determine at a very fine grain, who can access a specific unit of code. 5. MapReduce in the Database - MapReduce can be run from PL/SQL directly in the database. I don't have much more info than that. 6. Interval-Ref Partitions - Can now create a ref partition (to relate several tables with the same partitions) as a sub-partition to the interval type. Ease of use feature. 7. SQL WITH Clause Enhancement - I want to see some examples of this one. In 12c, you can declare PL/SQL functions in the WITH Clause of a select statement. 8. Catch up with MySQL - Some catch up features: INDENTITY columns (auto-sequence on a PK), can now use a sequence as a DEFAULT column value. 9. 32k VARCHAR2 Support - Yes, 32k varchar2 in the database. Stored like a CLOB. 10. Yeah - Booleans in SQL (sort of) - You can use booleans values in dynamic PL/SQL. Still no booleans as database types.

Pre requirements for installation of Oracle Database 12c Enterprise/Standard Editions Release1 on Windows7:

Double click the Setup

Click YES

Uncheck the check-box and click Next

Alert box will appear with YES and NO option then click YES

Select the radio button named SKIP SOFTWARE UPDATES then click Next.

Select the radio button named create and configure a database then click Next.

Select the radio button named Desktop class then click Next.

Select the radio button named Use windows Build-in Account then click Next.

Alert box will appear with options yes and no , click YES

Enter the empty fields named ( Global DB name , Administrative Password )

Then check the checkbox named create as container database Enter the pluggable database name and then click Next.

Then Click Install

After completion of installation process click Close button.

Creating an Oracle 12c Pluggable Database & Container

Database using DBCA:


After installing the Oracle Database 12c software on windows7 machine. Using the DBCA tool (in advanced mode), Im going to create a new container database named cdb and at the same time create a pluggable database named pdb. The idea behind this new pluggable databases feature in 12c (also known as multi-tenancy), is that you build a single Container Database (CDB), which can contain many (up to 250 of them!) Pluggable Databases (PDB). These pluggable databases appear like any ordinary pre-12c database would do to end-users/applications. However, the container database owns the SGA and background processes, and the pluggable databases are serviced by the container database resources. Select the radio button named Create Database then click Next.

Select the radio button named Advanced Mode then click Next.

Select the radio button named General Purpose or Transaction Process then click Next.

Enter the empty fields named ( Global DB name , Administrative Password ) Then check the checkbox named create as a container database Then select the radio button named create a container DB with or more PDBs Select the number of pluggable databases to connect with the container DB Enter the pluggable database name and then click Next.

Select the radio button named configure Enterprise Manager DB express then click Next.

Select the radio button named Use the Same Admin Password for all Account then click Next. Then Enter the password Then click Next.

Select the Check box named as LISTENER then click Next button.

Select the radio button named Use common location for all DB files Then select the checkbox named Specify Fast Recovery Area Then select the checkbox named Enable Archiving Then Click Next button.

Uncheck the checkbox named Sample schemas and then click Next.

Select the radio button named Typical settings and then specify the Memory size (SGA and PGA) Then select the radio button named Use Automatic Memory Management Then Click Next.

Then click FINISH button .

Then DB configuration Assistant alert box will appear , press ok .

Installation Starts

Again DB Configuration Assistant alert box will appear ,press Exit.

After completion of installation , click Close button.

Adding pluggable DB in container DB named "cdb"


After completion of installation ,click start button from desktop and then select Database Configuration Assistant.

Select the radio button named Manage Pluggable Database then click Next.

Select the radio button namedCreate a Pluggable Database then click Next.

Select a particular container database in which you going to add a pluggable database then click Next button

Select the radio button namedCreate a new Pluggable Database then click Next.

Enter the Pluggable database name . Select the radio button named Create Default user Tablespace . Enter the Administrator username and password for PDB user . Then click Next.

After creating the pluggable database and message will be displayed as shown below Then Click Finish

Installation process starts after clicking the finish button

DBCA Alert box message will be appear after creation of pluggable DB

The following pluggable databases are added in container Db named "cdb" : PDB PDB2 PDB3 PDB4

Adding pluggable DB in container DB named "orcl"


The following pluggable databases are added in container Db named orcl" : PDBORCL ORCL2 ORCL3 ORCL4

Viewing the pluggable DB in container DB named "orcl"

Select the radio button named Manage Pluggable Database then click Next.

Select the radio button named configure a Pluggable Database then click Next

Select a particular container database in which you going to view a pluggable database then click Next button

Select the require pluggable DB from the list of created pluggable database list

You might also like