Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
154090896 installation-of-oracle-database-12c
1. 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 world’s 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 Oracle’s 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
2. 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:
17. After completion of installation process click Close button.
Creating an Oracle 12c Pluggable Database & Container
18. Database using DBCA:
After installing the Oracle Database 12c software on windows7 machine. Using the DBCA tool
(in advanced mode), I’m 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.
19. Select the radio button named “Advanced Mode” then click Next.
20. Select the radio button named “General Purpose or Transaction Process” then click Next.
21. 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 PDB’s”
Select the number of pluggable databases to connect with the container DB
Enter the pluggable database name and then click Next.
22. Select the radio button named “configure Enterprise Manager DB express” then click Next.
23. Select the radio button named “Use the Same Admin Password for all Account” then click
Next.
Then Enter the password
Then click Next.
24. Select the Check box named as LISTENER then click Next button.
25. 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.
26. Uncheck the checkbox named “ Sample schemas” and then click Next.
27. 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.
35. Adding pluggable DB in container DB named "cdb"
After completion of installation ,click start button from desktop and then select Database
Configuration Assistant.
36. Select the radio button named “Manage Pluggable Database “ then click Next.
37. Select the radio button named“Create a Pluggable Database “ then click Next.
38. Select a particular container database in which you going to add a pluggable database then
click Next button
39. Select the radio button named“Create a new Pluggable Database “ then click Next.
40.
41. 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.
42. After creating the pluggable database and message will be displayed as shown below
Then Click Finish
44. 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
45. 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"
46. Select the radio button named “Manage Pluggable Database “ then click Next.
47. Select the radio button named “configure a Pluggable Database “ then click Next
48. Select a particular container database in which you going to view a pluggable database then
click Next button
49. Select the require pluggable DB from the list of created pluggable database list