Oracle Database 12c New Features - WKSS - V1
Oracle Database 12c New Features - WKSS - V1
History of Oracle
Project Oracle
Larry Ellison, Bob Miner, Ed Oates and Bruce Scott Client C.I.A Company was dubbed "Systems Development Labs", or SDL 1978 SDL was renamed Relational Software Inc (RSI)
1977
Oracle 2
Built using PDP-11 assembler language Customers USA Air Force & CIA In1982 RSI renamed Oracle Systems Corporation
1979
Oracle 3
1983
Built using C language Could run in mainframes, minicomputers, and PCs or any hardware with a C compiler
History of Oracle
Oracle 4
Support for reading consistency Export/import utilities Report Writer
1984
Oracle 5
Network connectivity Clustering technology Security features like auditing Distributed queries SQL*Plus, a tool that offers ad hoc data access and report writing SQL*Forms, an application generator and runtime system
1985
Oracle 6
PL/SQL language Hot backup capability Row level locking Oracle Parallel Server was introduced in Oracle version 6.2
1988
History of Oracle
Oracle 7
Security, administration, development, and performance Stored procedures, triggers, Roles Read-only table spaces Dynamic SQL Support for declarative referential integrity All kinds of data types; including video, color images, sounds and spatial data.
1992
Oracle 8
Java HTML OLTP and support for terabytes of data
1997
Oracle 8i
the i stands for internet XML SUPPORT Temporary Tables (Session and Transaction level) FBI (Function Based Indexes) Analytic Functions SKIP LOCKED Clause
1998
History of Oracle
Oracle 9i
Explicitly Named Indexes On Keys MERGE Statement External Tables Multi-table Inserts Table compression that reduced the size of tables by 3 to 10 times
2001
Oracle 10g
the g stands for grid, Grid Computing technology (share hardware resources) 1st Oracle version to support 64-bit on Linux
2003
Oracle 11g
Administrative features Case sensitive passwords Online Patching Oracle Database Replay Virtual Column Partitioning
2007
History of Oracle
36 years of sustained innovation
Audit Vault Database Vault
Grid Computing Self Managing Database
XML Database Oracle Data Guard Real Application Clusters Flashback Query Virtual Private Database
Built in Java VM Partitioning Support Built in Messaging Object Relational Support Multimedia Support
Data Warehousing Optimizations Parallel Operations Distributed SQL & Transaction Support Cluster and MPP Support Multi-version Read Consistency Client/Server Support Platform Portability Commercial SQL Implementation
1977
2012
7
Grid Computing
Where more than one computer coordinates to solve a problem together. Grid technologies have evolved in the direction of service-orientation.
Next-generation database
10
Oracle Database 12c Organizations embrace the cloud, they seek technologies that will transform business and improve their overall operational agility and effectiveness. Oracle Database 12c introduces a new multitenant architecture. A multitenant container database (CDB) is an Oracle database that includes zero, one, or many user-created PDBs (plugable databases).
11
12
VARCHAR2
NVARCHAR2 RAW
4,000 Bytes
4,000 Bytes 2,000 Bytes
32,767 Bytes
32,767 Bytes 32,767 Bytes
13
Sybase - IDENTITY column attribute is used. Informix - SERIAL data type is used for auto-increment columns. Oracle Two alternatives are provided with 12c
14
2. Sequence Pseudo-columns
Syntax: DEFAULT sequence. NEXTVAL Example: CREATE TABLE identity_test_tab ( id NUMBER DEFAULT DbSequence.NEXTVAL, description VARCHAR2(30) );
15
16
18
19
20
Oracle 12c ROW limiting for TOP-N Feature # 6 : ROW limiting for TOP-N result
There are various indirect approaches/methods exist to fetch Top-N query results for top/bottom rows in the previous releases. Straight forward in 12c with the new FETCH FIRST|NEXT|PERCENT clauses.
Requirement # 1. retrieve top 10 salaries from EMP table. SQL> SELECT eno,ename,sal FROM emp ORDER BY SAL DESC FETCH FIRST 10 ROWS ONLY; Requirement # 2. limits the fetch to 10 per cent from the top salaries in the EMP table. SQL> SELECT eno,ename,sal FROM emp ORDER BY SAL DESC FETCH FIRST 10 PERCENT ROWS ONLY;
22
24
25
Summary
History of Oracle (from Oracle Projects to Oracle 11g) Discussed about Traditional, Grid & Cloud Computing Discussed about Oracle Database 12c new features
1. 2. 3. 4. Extended Data types Auto-increment Columns / Identity Columns Implicit Statement Results Defalut Values for Table Columns Default values using Sequences Default values On Explicit NULLs Metadata-Only Default Values Truncate Table Cascade Row limiting for Top-N result queries Session Level Sequences Function Optimization in SQL (With Clause, UDF Pragma)
26
5. 6. 7. 8.
References
Oracle Press Release, Oracle Announces General Availability of Oracle Database 12c, the First Database Designed for the Cloud, July 1, 2013, http://www.oracle.com/us/corporate/press/1967380 The History of Oracle, Oracle Tips by Paulo Ferreira Portugal, April 8, 2009, http://www.dba-oracle.com/t_history_oracle.htm Oracle Database 12c Release 1: Miscellaneous Articles, http://www.oracle-base.com/articles/12c/articles-12c.php. Oracle Database Documentation Library, http://www.oracle.com/pls/db121/homepage
27
28