Introduction To Oracle 12c PDF
Introduction To Oracle 12c PDF
net/publication/321159616
CITATIONS READS
0 4,764
1 author:
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Ahmed Basil Al-Othman on 19 November 2017.
Introduction of SQL:
In the previous lectures we have reviewed some database concepts like: data, DB,
models define how data is connected to each other and how they are processed and stored
inside the system. The very first data model could be flat data-models, where all the
DB contains the data which is arranged in multi- tables. In order to retrieve the data of
Page 1
Instructor Email Office Location & Date
Ahmed basil [email protected] Iraq-2017
The main way to develop the database from concept to production is system development life
Study and Analayze the busisness requirments. Inerview users amd supervisors to identify
the information requirments. Incoperate the enterprise and application mission statements
Build a model of the system. Transfer the businesses narrative into graphical representation
of business information needs and rules. Confirm and refine the model with the analysts
and experts.
Design: The second stage after strategy and Analysis design the database based on the model
Build the prototype system, write and execute commands to create the table and supporting
Develop user documentation, help text, and operations manuals to support the use and the
Page 2
Instructor Email Office Location & Date
Ahmed basil [email protected] Iraq-2017
Transition: It is transition stage from application to production, take approval from user and
( Figue 1-1)
System development life cycle
Page 3
Database has ERM
Entity: Can be a real world object that can be easily identifiable (tables). Example: in company
customer, employee, and city. In school student, teacher, course, and classroom.
Attributes: An attribute defines the information about the entity that needs to be stored
(Columns). If the entity is employee, attributes could include: name, employee ID, health plan
enrollment, and work location. Student could include: age, student name, age, nationality,
work_ at department, and student enrolls in a course. There are three types of relationships
Page 4
Instructor Email Office Location & Date
Ahmed basil [email protected] Iraq-2017
STUDENT CLASS
#* id ……………… ….……………. # * id
* name * name
⃝ age O location
Figure (2-1)
Shows the relationship among entity, attributes and relationship in ERM
Page 5
Instructor Email Office Location & Date
Ahmed basil [email protected] Iraq-2017
The primary key is unique and cannot use duplicate value in a primary.
The relationship formed by continues dots sign which has three types.
Foreign key can be logically relate data from multiple tables with a same attribute.
The same foreign key could have different spelling or way of writing.
EMPLOYEES DEPARTMENTS
70 HR
50 70
Page 6
Instructor Email Office Location & Date
Ahmed basil [email protected] Iraq-2017
What is SQL?
SQL stands for Structured Query Language. SQL is used to communicate with a database.
According to ANSI (American National Standards Institute), it is the standard language for
relational database management systems. SQL statements are used to perform tasks such as update
data on a database, or retrieve data from a database. Some common relational database
management systems that use SQL are: Oracle, Sybase, Microsoft SQL Server, Access, Ingres,
etc. Although most database systems use SQL, most of them also have their own additional
proprietary extensions that are usually only used on their system. However, the standard SQL
commands such as "Select", "Insert", "Update", "Delete", "Create", and "Drop" can be used to
accomplish almost everything that one needs to do with a database. This tutorial will provide you
with the instruction on the basics of each of these commands as well as allow you to put them to
Page 7
Instructor Email Office Location & Date
Ahmed basil [email protected] Iraq-2017
Database Tools
Application Development
SQL*Plus (SQLPLUS)
Pro*C/C++
Pro*COBOL
Object Type Translator (OTT)
Oracle Services for Microsoft Transaction Server
Oracle Portal (formerly Oracle WebDB)
Database Administration
Oracle Enterprise Manager
Oracle Administration Assistant for Windows NT
Oracle Database Configuration Assistant Oracle
Advanced Security
Oracle Performance Monitor for Windows NT
Oracle Data Migration Assistant
SQL Developer
Table (1-1)
Database Tools
To retrieve, maintain, and update data from the tables in DB you need for SQL (RDBMS) to
access DB, and to write this SQL you need an environment to write the commands on. Oracle
inventoried many SQL tools to be used. The most recent tools are SQL PLUS and SQL Developer
(the primary tool). SQL developer SW will be installed as a default with Oracle 12C.
Page 8
Instructor Email Office Location & Date
Ahmed basil [email protected] Iraq-2017
FROM departments;
Oracle
Server
DEPARTMEN_NAME
USERNAME
PASSWORD
Figure (3-1)
example above shows select (department name) from (department), Oracle server will check the
Page 9
Instructor Email Office Location & Date
Ahmed basil [email protected] Iraq-2017
Table (2-1)
SQL Statement
Page 10
Instructor Email Office Location & Date
Ahmed basil [email protected] Iraq-2017
When does Oracle 12c release and what does "C" refer to?
In 2013, Oracle released 12c version and it was first database designed for the cloud or external
servers. Oracle c12 has feature called Multitenant architecture that enables an oracle database to
Container data base CDB: It is root and main database that had no applications probably
installed on it. A CDB includes zero, one, or many customer-created pluggable databases
Pluggable Data base PDBs: is a portable collection of schemas, schema objects, and non-schema
objects that appears to an Oracle Net client as a non-CDB. All Oracle databases before Oracle
Database 12c were non-CDBs. It is a small and sub-databases which has applications, tables,
functions, and other application. Every PDB has a different application database compare to other.
Page 11
Instructor Email Office Location & Date
Ahmed basil [email protected] Iraq-2017
Figure (3-1)
Architecture of Oracle DB 12c
Page 12
Instructor Email Office Location & Date
Ahmed basil [email protected] Iraq-2017
Table (3-1)
Comparison between g10, g11 and c12
Page 13