Professional Documents
Culture Documents
02-Oracle Database Overview, Normalization and DB Install
02-Oracle Database Overview, Normalization and DB Install
Oracle Database –
1. What is Oracle?
2. Who is Oracle?
3. What is Database?
4. Three Tier Architechture.
5. What is RDBMS.
6. What is Table, field and column.
7. Difference between DBMS and RDBMS.
8. The History of Oracle.
9. Normalizations Techniques.
10. Installing Oracle 12C DB in Windows.
What is Oracle?
Larry Ellison and his friends, former co-workers Bob Miner and Ed Oates, started the
consultancy Software Development Laboratories (SDL) in 1977. SDL developed the
original version of the Oracle software. The name Oracle comes from the code-name of a
CIA-funded project Ellison had worked on while previously employed by Ampex.
Who is oracle?
What is a Database?
In 1-tier architecture, the DBMS is the only entity where the user directly sits on the
DBMS and uses it. Any changes done here will directly be done on the DBMS itself. It
does not provide handy tools for end-users. Database designers and programmers
normally prefer to use single-tier architecture.
If the architecture of DBMS is 2-tier, then it must have an application through which the
DBMS can be accessed. Programmers use 2-tier architecture where they access the
DBMS by means of an application. Here the application tier is entirely independent of the
database in terms of operation, design, and programming.
3-tier Architecture
A 3-tier architecture separates its tiers from each other based on the complexity of the
users and how they use the data present in the database. It is the most widely used
architecture to design a DBMS.
Database (Data) Tier − At this tier, the database resides along with its query processing
languages. We also have the relations that define the data and their constraints at this
level.
Application (Middle) Tier − At this tier reside the application server and the programs
that access the database. For a user, this application tier presents an abstracted view of the
database. End-users are unaware of any existence of the database beyond the application.
At the other end, the database tier is not aware of any other user beyond the application
tier. Hence, the application layer sits in the middle and acts as a mediator between the
end-user and the database.
User (Presentation) Tier − End-users operate on this tier and they know nothing about
any existence of the database beyond this layer. At this layer, multiple views of the
database can be provided by the application. All views are generated by applications that
reside in the application tier. Multiple-tier database architecture is highly modifiable, as
almost all its components are independent and can be changed independently.
What is RDBMS?
RDBMS stands for Relational Database Management System. RDBMS data is structured
in database tables, fields and records. Each RDBMS table consists of database table rows.
Each database table row consists of one or more database table fields.
RDBMS store the data into collection of tables, which might be related by common fields
(database table columns). RDBMS also provide relational operators to manipulate the
data stored into the database tables. Most RDBMS use SQL as database query language.
Edgar Codd introduced the relational database model. Many modern DBMS do not
conform to the Codd’s definition of a RDBMS, but nonetheless they are still considered
to be RDBMS.The most popular RDBMS are MS SQL Server, DB2, Oracle and MySQL.
What is table?
The data in RDBMS is stored in database objects called tables. The table is a collection of related data
entries and it consists of columns and rows.
Remember, a table is the most common and simplest form of data storage in a relational database.
Following is the example of a CUSTOMERS table:
+----+----------+-----+-----------+----------+
+----+----------+-----+-----------+----------+
| 6 | Komal | 22 | MP | 4500.00 |
+----+----------+-----+-----------+----------+
What is field?
Every table is broken up into smaller entities called fields. The fields in the
CUSTOMERS table consist of ID, NAME, AGE, ADDRESS and SALARY.
A record, also called a row of data, is each individual entry that exists in a table. For
example there are 7 records in the above CUSTOMERS table. Following is a single row
of data or record in the CUSTOMERS table:
+----+----------+-----+-----------+----------+
+----+----------+-----+-----------+----------+
What is column?
A column is a vertical entity in a table that contains all information associated with a
specific field in a table.
+-----------+
| ADDRESS |
+-----------+
| Ahmedabad |
| Delhi |
| Kota |
| Mumbai |
| Bhopal |
| MP |
| Indore |
DBMS vs RDBMS
What is DBMS?
DBMS is the abbreviated form of DataBase Management System.
What is RDBMS?
RDBMS is the abbreviated form
of Relational DataBase Management System.
Relational database management system was introduced in 1970’s. RDBMS avoided the
navigation model as in old DBMS and introduced Relational model. The relational model
has relationship between tables using primary keys, foreign keys and indexes. Thus the
fetching and storing of data become faster than the old Navigational model. So RDBMS
is widely used by the enterprises and developers for storing complex data.
RDBMS table relationship diagram
Database Management System vs. Relational Database
Management System:
4 Used for applications using small amount of Used for complex and large amount of data.
Sl.# DBMS RDBMS
data.
Example systems are dBase, Microsoft Acces, Example systems are SQL Server, Oracle , MySQL,
6
LibreOffice Base, FoxPro. MariaDB, SQLite.
Oracle has a 3 decade history, outlasting many of its predecessors. This brief
summary traces the evolution of Oracle from its initial inception to its current
status as the world moist flexible and robust database management system.
Founded in August 1977 by Larry Ellison, Bob Miner, Ed Oates and Bruce Scott, Oracle
was initially named after "Project Oracle" a project for one of their clients, the C.I.A, and
the company that developed Oracle was dubbed "Systems Development Labs", or SDL.
Although they may not have realized it at the time, these four men would change the
history of database management forever.In 1978 SDL was renamed Relational Software
Inc (RSI) to market their new database.
The first commercial RDBMS was built using PDP-11 assembler language. Although
they created a commercial version of RDBMS in 1977, it wasn't available for sale until
1979 with the launch of Oracle version 2. The company decided against starting with
version 1 because they were afraid that the term "version 1" might be viewed negatively
in the marketplace. USA Air Force and then CIA were the first customers to use Oracle
2. In 1982 there was another change of the company?s name, from RSI to
Oracle Systems Corporation so as to match its popular database name. The
current company name comes from a CIA project that Larry Ellison had
previously worked on code named Oracle.
1983 - Oracle release 3
The Oracle version 3 was developed in 1983. This version was assembled using
C programming language and could run in mainframes, minicomputers, and
PCs ? or any hardware with a C compiler. It supported the execution of SQL
statements and transactions. This version also included new options of pre-join
data to increase Oracle optimization.
Despite the advances introduced in version 3, demand was so great that Oracle
was compelled to improve the software even further with the release of version
4 in 1984. Oracle version 4 included support for reading consistency, which
made it much faster than any previous version. Oracle version 4 also brought
us the introduction of the export/import utilities and the report writer, which
allows one the ability to create a report based on a query.
With the introduction of version 5 in 1985, Oracle addressed the increasing use
of the internet in business computing. This version was equipped with the
capability to connect clients? software through a network to a database
server. The Clustering Technology was introduced in this version as well and
Oracle became the pioneer using this new concept ? which would later be
known as Oracle Real Application Cluster in version 9i. Oracle version 5
added some new security features such as auditing, which would help
determine who and when someone accessed the database.
Oracle version 5.1 was launched in 1986 and allowed for supporting
distributed queries. Later that same year Oracle released SQL*Plus, a tool
that offers ad hoc data access and report writing. 1986 also brought the release
of SQL*Forms, an application generator and runtime system with facilities for
simple application deployment.
Oracle Parallel Server was introduced in Oracle version 6.2 and was used
with DEC VAX Cluster. This new feature provided high availability
because more than one node (server) could access the data in database.
With the increased availability this feature also accelerated the
performance of the system that was sharing users? connections between
nodes.
Oracle7 Release 7.1 introduced some good new capabilities for database
administrators, such as parallel recovery and read-only tablespaces. For the
application developments, Oracle inserted the dynamic SQL, user-defined
SQL functions and multiple same-type triggers. The first 64-bit DBMS was
introduced within this version as well as the VLM (Very Large Memory)
option. The feature Oracle Parallel Query could make some complex
queries run 5 to 20 times faster.
In 1996 Oracle 7.3 was shipped, offering customers the ability to manage all
kinds of data types; including video, color images, sounds and spatial
data. 1996 also brought the release of Oracle's first biometric
authentication for a commercially available database. This technology
could analyze human characteristics, both physical and behavioral, for
purposes of authentication.
Just one year later Oracle released Oracle 8i which was the first database to
support Web technologies such as Java and HTTP. In 2000 Oracle 8i
Parallel Server was working with Linux which eliminated costly downtime.
Oracle Real Application Cluster came with Oracle 9i Database in 2001. This
feature provides software for clustering and high availability in Oracle database
environments. Supporting native XML was also a new feature of Oracle 9i and
this was the first relational database to have these characteristics. Version 9i
release 2 enabled Oracle to integrate relational and multidimensional
database. Despite the fact that hard disks were becoming cheaper, data was
increasing very quickly in databases and Oracle 9i came with a special
technology named table compression that reduced the size of tables by 3 to
10 times and increased the performance when accessing those tables.
Although Oracle 9i had only been in the market for two years, Oracle launched
version 10g in 2003. The release of 10g brought us the introduction to Grid Computing
technology. Data centers could now share hardware resources, thus lowering the cost of
computing infrastructure. 10g was also the first Oracle version to support 64-bit on
Linux. With the introduction of the 10g Express Edition in 2005, Oracle gave small
business and startup corporations a viable option to integrate Oracle into the workplace at
no cost.
Before 12C The latest version of Oracle Database is 11g which was released on
July 11th 2007. This version introduced more features than any other in Oracle
history. This version includes:
Oracle Database Replay, a tool that captures SQL statements and lets
you replay them all in another database to test the changes before you
actually apply then on a production database;
Transaction Management using Log Miner and Flashback Data Archive
to get DML statements from redo log files;
Virtual Column Partitioning;
Case sensitive passwords;
Online Patching;
Parallel Backups on same file using RMAN and many others.
At the moment the actual version of Oracle database server is 12c (12.1.0.2) that
includes the following remarkable features:
– Oracle Database In-Memory
– Oracle Big Data SQL
– Oracle JSON Document Store
– Oracle REST Data Services
– Improvements to Oracle Multitenant
– Advanced Index Compression
– Zone Maps
– Approximate Count Distinct
– Attribute Clustering
– Full Database Caching
– Rapid Home Provisioning
I’ll also try to place below my first draft of the history of Oracle
database innovations and version releases.
Data Guard:
Oracle Data Guard ensures high availability, data protection, and disaster recovery for
enterprise data. Data Guard provides a comprehensive set of services that create,
maintain, manage, and monitor one or more standby databases to enable production
Oracle databases to survive disasters and data corruptions. Data Guard maintains these
standby databases as transactionally consistent copies of the production database. Then, if
the production database becomes unavailable because of a planned or an unplanned
outage, Data Guard can switch any standby database to the production role, minimizing
the downtime associated with the outage. Data Guard can be used with traditional
backup, restoration, and cluster techniques to provide a high level of data protection and
data availability.
Normalization Techniques:
Scene-1:
2- You have to change 3 data if you change the mobile number of CSE Prof A.
Student Department
ID Name Dept
1 S1 CSE
2 S2 EC
3 S3 CSE
4 S4 IT
5 S5 CSE
ID Name Dept
ID
1 S1 1
2 S2 2
3 S3 1
4 S4 3
5 S5 1