SlideShare uma empresa Scribd logo
1 de 28
Oracle Database 12c
Whats New…
 Navneet Upneja (Manager, Database & Applications)
 9 Years of Experience in Oracle Databases, OBIEE,
Informatica, ODI etc…
 Oracle Certified Professional
 Hand on experience on OLTP, Datawarehouse, Oracle
BI, APEX…
Co-Founder of AIOUG - North India Chapter.
Email: navneetupneja@gmail.com
Blog: http://navneetupnejadba.wordpress.com/
Twitter: @navneetupneja
Presentations: http://www.slideshare.net/navneetupneja
Navneet UpnejaNavneet Upneja
Overview
• Multi-Tenant Architecture
• Threaded Execution
• Online Optimizer Statistics
• GTT Statistics
• Global Temporary Table Undo
• Invisible Columns
• Multiple Indexes
• ILM
• DDL Logging
• Limit on PGA
• Moving Datafile Online
• Q&A
Multitenant Architecture
• Oracle 12c – “c” for “Consolidation”
– New concept of Container Database (CDB)
– Multiple databases can be part of one CDB
– Each Database is called “PDB”
– CDB contains:
• Root Container (CDB$ROOT) : Master Datafiles and Metadata
• Seed Container (PDB$SEED): Template to create new pdb.
• Pluggable Database (PDB): One or more PDB’s
• New “CDB_..” dictionary views.
Threaded Architecture
• Pre 12c and Default in 12c
– Windows: Threaded Model (Only one process “oracle.exe”)
– Unix: Independent Process for each Oracle Process.
– “threaded_execution” – New in 12c
– Default to “False”.
– Require reboot of instance
– Login using “sys” Require password file after this change
– 1 Process will have multiple sub-processes called “Threads”
– DEDICATED_THROUGH_BROKER_LISTENER=ON
– New columns added to “V$Process” table.
• STID – Thread Number
• SOSID – Concatenation of Process and Thread
• New entry in Execution type as “THREAD”
– PMON, VKTM, PSP0, DBW0.. , will be still implemented as before
– Useful towards achieving “Consolidation”.
• 1 OS process for each Oracle
Background process
•1 OS process for each user
connection to the database
• In default implementation, with no
user connection, Total number of
Attached processes: 165
Conventional Method or Non - Threaded
With Threaded Execution enabled, Total number of Attached
processes reduced to 18.
V$Process
Online Optimizer Statistics
 Statistics are being gathered for objects created using
Direct Path operations like CTAS and Insert as select
operations.
 Only Basic Statistics are gathered
 Pre – 12c, Only Index creation had this feature.
 Will save Extra Full Table Scan(s) required to gather
statistics
 Useful in ETL Loads specifically for Staging table.
 Create Table AS (CTAS)
 Insert with Append (Bulk Load)
 Have its own restrictions as well..(Non-Empty
Segments,Tables with Virtual Columns….)
Contd… CTAS
Insert With Append
10046 Trace
Statistics for GTT’s
• GTT shares its definition with system wide users
• Content in GTT is private to particular session.
• Pre 12c, statistics gathered on GTT’s were published system wide.
• In 12c, statistics on GTT’s can be kept private to the session collecting the stats.
• Useful in cases, where volume of data varies greatly across sessions.
• Controlled with GLOBAL_TEMP_TABLE_STATS preference of DBMS_STATS
• By default, preference is set to Session {SHARED}
• Its really useful in Solving Peoplesoft Temp Table Problem
SELECT
dbms_stats.get_prefs('GLOBAL_TEMP_TABLE_STATS','NUPNEJA','TEMP_GT')
FROM DUAL;
Temporary Undo
• By default, undo records for temporary tables are stored in the undo
tablespace and are logged in the redo.
• 12c introduces new concept of Temporary Undo: Undo generated by
transactions on temporary tables managed inside temporary undo
segments.
• Reduces amount of undo stored in undo tablespace.
• Inturn, reduces amount of redo generated.
• Managed using TEMP_UNDO_ENABLED parameter.
• Can be set at session level or system level.
• Default value is “FALSE”.
• Temp Undo statistics can be monitored through “V$TEMPUNDOSTAT”.
SQL> insert into temp_gt select * from dba_objects;
Default Behavior Temp Undo Enabled
Invisible Column
• Starting from 12c, one can add column to a table and make It as invisible.
• Can be used as low level security for a column.
• Different from system generated hidden columns
• Would not be shown up in result of select if not explicitly defined in Select
list of columns.
• Describe command will not show invisible column as part of table definition.
• “set colinvisible on” to see the hidden/invisible column
• Cannot create invisible column in
– External Tables
– Cluster Tables
– Temporary Tables
Multiple Indexes on same column
• Multiple Indexes on same column(s)
• Some characteristics of Index/Indexes
need to be different.
• Unique and non Unique
• B*Tree and Bitmap
• Partitioning Strategies like Local and Global.
• One of the Index needs to be Invisible.
• Useful for testing performance fixes.
Information Life Cycle Management (ILM)
• Conventional Techniques
– Storage Techniques : Moving data to Faster or
slower disks as per the usage of Data
– Database: Partitioning
• Oracle 12c
– Heat Map
• Data Compression
• Moving Data to Different Tablespace
DDL Logging
• In 12c, we can log the DDL statements running in a session or at system
level.
• Controlled by parameter “ENABLE_DDL_LOGGING”
• Can be set at Session level as well.
• DDL log is stored in the log/ddl subdirectory of the ADR home.
• DDL log contains one log record for each DDL statement issued by the
database/session.
• Two types of log files: XML and Text File.
• Can be useful to diagnose all the DDL’s running in a big package/program.
• Can be useful in troubleshooting any application program.
Contd.
Limit on PGA
• The Program Global Area (PGA) is a private memory region that contains
the data and control information for a server process.
• PGA_AGGREGATE_TARGET: Target aggregate PGA memory available to
all server processes attached to the instance.
PGA_AGGREGATE_LIMIT
• PGA_AGGREGATE_TARGET setting acts as a target, and not a
limit.
• PGA_AGGREGATE_LIMIT initialization parameter enables you to
specify a hard limit on PGA memory.
• Oracle Database aborts or terminates the sessions or processes
that are consuming the most untunable PGA memory
– Calls for sessions that are consuming the most untunable PGA memory are
aborted.
– If PGA memory usage is still over the PGA_AGGREGATE_LIMIT, then the
sessions and processes that are consuming the most untunable PGA memory
are terminated.
Excerpt from Trace
Moving Datafile Online
• Starting with Oracle 12c, we can move the datafile while it is online.
• ALTER DATABASE MOVE DATAFILE SQL statement to rename or
relocate online data files.
• Enables you to rename or relocate a data file while the database is open
and users are accessing the data file.
• If a file with the same name already exists in the destination location, the
existing file is not overwritten, and the statement returns an error.
• Keep option to retain the original file as well.
• Datafile must be online to perform this.
• You cannot move datafile of a pluggable database from container database.
Adaptive Query Optimization
•Enable Optimizer to make Run
– Time Adjustments to Execution
Plan
•Right Intent to have better
statistcis.
•Adaptive Plan
Join Methods
Parallel Distribution
•Adaptive Statistics
Dynamic Statistics
Automatic Re-optimization
SQL Plan Directives
ORACLE 12C-New-Features
ORACLE 12C-New-Features

Mais conteúdo relacionado

Mais procurados

Oracle database 12c intro
Oracle database 12c introOracle database 12c intro
Oracle database 12c intropasalapudi
 
Less08 managing data and concurrency
Less08 managing data and concurrencyLess08 managing data and concurrency
Less08 managing data and concurrencyImran Ali
 
Integrating Oracle Data Integrator with Oracle GoldenGate 12c
Integrating Oracle Data Integrator with Oracle GoldenGate 12cIntegrating Oracle Data Integrator with Oracle GoldenGate 12c
Integrating Oracle Data Integrator with Oracle GoldenGate 12cEdelweiss Kammermann
 
Understanding Oracle GoldenGate 12c
Understanding Oracle GoldenGate 12cUnderstanding Oracle GoldenGate 12c
Understanding Oracle GoldenGate 12cIT Help Desk Inc
 
Making Postgres Central in Your Data Center
Making Postgres Central in Your Data CenterMaking Postgres Central in Your Data Center
Making Postgres Central in Your Data CenterEDB
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new featuresJakkrapat S.
 
From Raw Data to Analytics with No ETL
From Raw Data to Analytics with No ETLFrom Raw Data to Analytics with No ETL
From Raw Data to Analytics with No ETLCloudera, Inc.
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cSatishbabu Gunukula
 
Optimizing your Database Import!
Optimizing your Database Import! Optimizing your Database Import!
Optimizing your Database Import! Nabil Nawaz
 
Oracle Performance Tuning Training | Oracle Performance Tuning
Oracle Performance Tuning Training | Oracle Performance TuningOracle Performance Tuning Training | Oracle Performance Tuning
Oracle Performance Tuning Training | Oracle Performance TuningOracleTrainings
 
Oracle-12c Online Training by Quontra Solutions
 Oracle-12c Online Training by Quontra Solutions Oracle-12c Online Training by Quontra Solutions
Oracle-12c Online Training by Quontra SolutionsQuontra Solutions
 
Less06 users
Less06 usersLess06 users
Less06 usersImran Ali
 
Less02 installation
Less02 installationLess02 installation
Less02 installationImran Ali
 
The Hadoop Ecosystem for Developers
The Hadoop Ecosystem for DevelopersThe Hadoop Ecosystem for Developers
The Hadoop Ecosystem for DevelopersZohar Elkayam
 
StreamHorizon overview
StreamHorizon overviewStreamHorizon overview
StreamHorizon overviewStreamHorizon
 

Mais procurados (19)

Oracle database 12c intro
Oracle database 12c introOracle database 12c intro
Oracle database 12c intro
 
Less08 managing data and concurrency
Less08 managing data and concurrencyLess08 managing data and concurrency
Less08 managing data and concurrency
 
Integrating Oracle Data Integrator with Oracle GoldenGate 12c
Integrating Oracle Data Integrator with Oracle GoldenGate 12cIntegrating Oracle Data Integrator with Oracle GoldenGate 12c
Integrating Oracle Data Integrator with Oracle GoldenGate 12c
 
OLAP
OLAPOLAP
OLAP
 
Understanding Oracle GoldenGate 12c
Understanding Oracle GoldenGate 12cUnderstanding Oracle GoldenGate 12c
Understanding Oracle GoldenGate 12c
 
Making Postgres Central in Your Data Center
Making Postgres Central in Your Data CenterMaking Postgres Central in Your Data Center
Making Postgres Central in Your Data Center
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new features
 
From Raw Data to Analytics with No ETL
From Raw Data to Analytics with No ETLFrom Raw Data to Analytics with No ETL
From Raw Data to Analytics with No ETL
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19c
 
Oracle 12c
Oracle 12cOracle 12c
Oracle 12c
 
Optimizing your Database Import!
Optimizing your Database Import! Optimizing your Database Import!
Optimizing your Database Import!
 
Oracle Performance Tuning Training | Oracle Performance Tuning
Oracle Performance Tuning Training | Oracle Performance TuningOracle Performance Tuning Training | Oracle Performance Tuning
Oracle Performance Tuning Training | Oracle Performance Tuning
 
Oracle-12c Online Training by Quontra Solutions
 Oracle-12c Online Training by Quontra Solutions Oracle-12c Online Training by Quontra Solutions
Oracle-12c Online Training by Quontra Solutions
 
Less06 users
Less06 usersLess06 users
Less06 users
 
Oracle DB
Oracle DBOracle DB
Oracle DB
 
Less02 installation
Less02 installationLess02 installation
Less02 installation
 
Oracle
OracleOracle
Oracle
 
The Hadoop Ecosystem for Developers
The Hadoop Ecosystem for DevelopersThe Hadoop Ecosystem for Developers
The Hadoop Ecosystem for Developers
 
StreamHorizon overview
StreamHorizon overviewStreamHorizon overview
StreamHorizon overview
 

Destaque

청주오피 부천오피 분당오피 천안오피걸 무료성인자료
청주오피 부천오피 분당오피 천안오피걸 무료성인자료청주오피 부천오피 분당오피 천안오피걸 무료성인자료
청주오피 부천오피 분당오피 천안오피걸 무료성인자료lycttidl7
 
Amy.Noriega.Ref.Letter
Amy.Noriega.Ref.LetterAmy.Noriega.Ref.Letter
Amy.Noriega.Ref.LetterVeronica Diaz
 
1st year icai presentations
1st year icai presentations1st year icai presentations
1st year icai presentationsjeanphilippeguy
 
Excitons, lifetime and Drude tail within the current~current response framew...
Excitons, lifetime and Drude tail  within the current~current response framew...Excitons, lifetime and Drude tail  within the current~current response framew...
Excitons, lifetime and Drude tail within the current~current response framew...Claudio Attaccalite
 
2016 MLB Position Piece
2016 MLB Position Piece2016 MLB Position Piece
2016 MLB Position PieceJohn Wilson
 
Quesnel Inter Literacy.Feb 2016
Quesnel Inter Literacy.Feb 2016Quesnel Inter Literacy.Feb 2016
Quesnel Inter Literacy.Feb 2016Faye Brownlie
 

Destaque (12)

Resume_Ajit 1
Resume_Ajit 1Resume_Ajit 1
Resume_Ajit 1
 
청주오피 부천오피 분당오피 천안오피걸 무료성인자료
청주오피 부천오피 분당오피 천안오피걸 무료성인자료청주오피 부천오피 분당오피 천안오피걸 무료성인자료
청주오피 부천오피 분당오피 천안오피걸 무료성인자료
 
Prevision janvier 09 2016
Prevision janvier 09 2016Prevision janvier 09 2016
Prevision janvier 09 2016
 
Amy.Noriega.Ref.Letter
Amy.Noriega.Ref.LetterAmy.Noriega.Ref.Letter
Amy.Noriega.Ref.Letter
 
Nagatani
NagataniNagatani
Nagatani
 
1st year icai presentations
1st year icai presentations1st year icai presentations
1st year icai presentations
 
Kupu, Detalles Inesperados
Kupu, Detalles InesperadosKupu, Detalles Inesperados
Kupu, Detalles Inesperados
 
Excitons, lifetime and Drude tail within the current~current response framew...
Excitons, lifetime and Drude tail  within the current~current response framew...Excitons, lifetime and Drude tail  within the current~current response framew...
Excitons, lifetime and Drude tail within the current~current response framew...
 
2016 MLB Position Piece
2016 MLB Position Piece2016 MLB Position Piece
2016 MLB Position Piece
 
Makalah jenis paragraf dan contohnya
Makalah jenis paragraf dan contohnyaMakalah jenis paragraf dan contohnya
Makalah jenis paragraf dan contohnya
 
Langleyprimary #1
Langleyprimary #1Langleyprimary #1
Langleyprimary #1
 
Quesnel Inter Literacy.Feb 2016
Quesnel Inter Literacy.Feb 2016Quesnel Inter Literacy.Feb 2016
Quesnel Inter Literacy.Feb 2016
 

Semelhante a ORACLE 12C-New-Features

Oracle 12 c new-features
Oracle 12 c new-featuresOracle 12 c new-features
Oracle 12 c new-featuresNavneet Upneja
 
GLOC 2014 NEOOUG - Oracle Database 12c New Features
GLOC 2014 NEOOUG - Oracle Database 12c New FeaturesGLOC 2014 NEOOUG - Oracle Database 12c New Features
GLOC 2014 NEOOUG - Oracle Database 12c New FeaturesBiju Thomas
 
COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesAlfredo Abate
 
An AMIS Overview of Oracle database 12c (12.1)
An AMIS Overview of Oracle database 12c (12.1)An AMIS Overview of Oracle database 12c (12.1)
An AMIS Overview of Oracle database 12c (12.1)Marco Gralike
 
Healthcare Claim Reimbursement using Apache Spark
Healthcare Claim Reimbursement using Apache SparkHealthcare Claim Reimbursement using Apache Spark
Healthcare Claim Reimbursement using Apache SparkDatabricks
 
Database 12c is ready for you... Are you ready for 12c?
Database 12c is ready for you... Are you ready for 12c?Database 12c is ready for you... Are you ready for 12c?
Database 12c is ready for you... Are you ready for 12c?Performance Tuning Corporation
 
Oracle Database 12c features for DBA
Oracle Database 12c features for DBAOracle Database 12c features for DBA
Oracle Database 12c features for DBAKaran Kukreja
 
Exadata Implementation strategy
Exadata Implementation strategyExadata Implementation strategy
Exadata Implementation strategyUmair Mansoob
 
NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_DatabaseNoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_DatabaseParesh Patel
 
Oracle Golden Gate Interview Questions
Oracle Golden Gate Interview QuestionsOracle Golden Gate Interview Questions
Oracle Golden Gate Interview QuestionsArun Sharma
 
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...Maaz Anjum
 
Aioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_featuresAioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_featuresAiougVizagChapter
 
Powering GIS Application with PostgreSQL and Postgres Plus
Powering GIS Application with PostgreSQL and Postgres Plus Powering GIS Application with PostgreSQL and Postgres Plus
Powering GIS Application with PostgreSQL and Postgres Plus Ashnikbiz
 
Technical Introduction to PostgreSQL and PPAS
Technical Introduction to PostgreSQL and PPASTechnical Introduction to PostgreSQL and PPAS
Technical Introduction to PostgreSQL and PPASAshnikbiz
 
Geek Sync I Need for Speed: In-Memory Databases in Oracle and SQL Server
Geek Sync I Need for Speed: In-Memory Databases in Oracle and SQL ServerGeek Sync I Need for Speed: In-Memory Databases in Oracle and SQL Server
Geek Sync I Need for Speed: In-Memory Databases in Oracle and SQL ServerIDERA Software
 
PostgreSQL Table Partitioning / Sharding
PostgreSQL Table Partitioning / ShardingPostgreSQL Table Partitioning / Sharding
PostgreSQL Table Partitioning / ShardingAmir Reza Hashemi
 
Real World Performance - Data Warehouses
Real World Performance - Data WarehousesReal World Performance - Data Warehouses
Real World Performance - Data WarehousesConnor McDonald
 

Semelhante a ORACLE 12C-New-Features (20)

Oracle 12 c new-features
Oracle 12 c new-featuresOracle 12 c new-features
Oracle 12 c new-features
 
GLOC 2014 NEOOUG - Oracle Database 12c New Features
GLOC 2014 NEOOUG - Oracle Database 12c New FeaturesGLOC 2014 NEOOUG - Oracle Database 12c New Features
GLOC 2014 NEOOUG - Oracle Database 12c New Features
 
COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_Features
 
An AMIS Overview of Oracle database 12c (12.1)
An AMIS Overview of Oracle database 12c (12.1)An AMIS Overview of Oracle database 12c (12.1)
An AMIS Overview of Oracle database 12c (12.1)
 
An AMIS overview of database 12c
An AMIS overview of database 12cAn AMIS overview of database 12c
An AMIS overview of database 12c
 
Healthcare Claim Reimbursement using Apache Spark
Healthcare Claim Reimbursement using Apache SparkHealthcare Claim Reimbursement using Apache Spark
Healthcare Claim Reimbursement using Apache Spark
 
OOW13 Exadata and ODI with Parallel
OOW13 Exadata and ODI with ParallelOOW13 Exadata and ODI with Parallel
OOW13 Exadata and ODI with Parallel
 
Database 12c is ready for you... Are you ready for 12c?
Database 12c is ready for you... Are you ready for 12c?Database 12c is ready for you... Are you ready for 12c?
Database 12c is ready for you... Are you ready for 12c?
 
Oracle Database 12c features for DBA
Oracle Database 12c features for DBAOracle Database 12c features for DBA
Oracle Database 12c features for DBA
 
Exadata Implementation strategy
Exadata Implementation strategyExadata Implementation strategy
Exadata Implementation strategy
 
NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_DatabaseNoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
 
Oracle Golden Gate Interview Questions
Oracle Golden Gate Interview QuestionsOracle Golden Gate Interview Questions
Oracle Golden Gate Interview Questions
 
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
 
Aioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_featuresAioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_features
 
Powering GIS Application with PostgreSQL and Postgres Plus
Powering GIS Application with PostgreSQL and Postgres Plus Powering GIS Application with PostgreSQL and Postgres Plus
Powering GIS Application with PostgreSQL and Postgres Plus
 
Technical Introduction to PostgreSQL and PPAS
Technical Introduction to PostgreSQL and PPASTechnical Introduction to PostgreSQL and PPAS
Technical Introduction to PostgreSQL and PPAS
 
Geek Sync I Need for Speed: In-Memory Databases in Oracle and SQL Server
Geek Sync I Need for Speed: In-Memory Databases in Oracle and SQL ServerGeek Sync I Need for Speed: In-Memory Databases in Oracle and SQL Server
Geek Sync I Need for Speed: In-Memory Databases in Oracle and SQL Server
 
PostgreSQL Table Partitioning / Sharding
PostgreSQL Table Partitioning / ShardingPostgreSQL Table Partitioning / Sharding
PostgreSQL Table Partitioning / Sharding
 
Oracle administration classes in mumbai
Oracle administration classes in mumbaiOracle administration classes in mumbai
Oracle administration classes in mumbai
 
Real World Performance - Data Warehouses
Real World Performance - Data WarehousesReal World Performance - Data Warehouses
Real World Performance - Data Warehouses
 

Mais de Navneet Upneja

Database option SDO mismatch: PDB installed version 12.1.0.2.0. CDB installed...
Database option SDO mismatch: PDB installed version 12.1.0.2.0. CDB installed...Database option SDO mismatch: PDB installed version 12.1.0.2.0. CDB installed...
Database option SDO mismatch: PDB installed version 12.1.0.2.0. CDB installed...Navneet Upneja
 
Effecitvely testing Oracle SQL (sql tuning)
Effecitvely testing Oracle SQL (sql tuning)Effecitvely testing Oracle SQL (sql tuning)
Effecitvely testing Oracle SQL (sql tuning)Navneet Upneja
 
Sql developer - Powerful Free tool for Developers and DBA's
Sql developer - Powerful Free tool for Developers and DBA'sSql developer - Powerful Free tool for Developers and DBA's
Sql developer - Powerful Free tool for Developers and DBA'sNavneet Upneja
 
Role of-analytics-in-db as-life
Role of-analytics-in-db as-lifeRole of-analytics-in-db as-life
Role of-analytics-in-db as-lifeNavneet Upneja
 
Flashback - The Time Machine..
Flashback - The Time Machine..Flashback - The Time Machine..
Flashback - The Time Machine..Navneet Upneja
 
DataGuard - Oracle's Time Machine
DataGuard - Oracle's Time MachineDataGuard - Oracle's Time Machine
DataGuard - Oracle's Time MachineNavneet Upneja
 
An Approach to Sql tuning - Part 1
An Approach to Sql tuning - Part 1An Approach to Sql tuning - Part 1
An Approach to Sql tuning - Part 1Navneet Upneja
 

Mais de Navneet Upneja (8)

Database option SDO mismatch: PDB installed version 12.1.0.2.0. CDB installed...
Database option SDO mismatch: PDB installed version 12.1.0.2.0. CDB installed...Database option SDO mismatch: PDB installed version 12.1.0.2.0. CDB installed...
Database option SDO mismatch: PDB installed version 12.1.0.2.0. CDB installed...
 
Effecitvely testing Oracle SQL (sql tuning)
Effecitvely testing Oracle SQL (sql tuning)Effecitvely testing Oracle SQL (sql tuning)
Effecitvely testing Oracle SQL (sql tuning)
 
Sql developer - Powerful Free tool for Developers and DBA's
Sql developer - Powerful Free tool for Developers and DBA'sSql developer - Powerful Free tool for Developers and DBA's
Sql developer - Powerful Free tool for Developers and DBA's
 
Role of-analytics-in-db as-life
Role of-analytics-in-db as-lifeRole of-analytics-in-db as-life
Role of-analytics-in-db as-life
 
Oracle Dataguard
Oracle DataguardOracle Dataguard
Oracle Dataguard
 
Flashback - The Time Machine..
Flashback - The Time Machine..Flashback - The Time Machine..
Flashback - The Time Machine..
 
DataGuard - Oracle's Time Machine
DataGuard - Oracle's Time MachineDataGuard - Oracle's Time Machine
DataGuard - Oracle's Time Machine
 
An Approach to Sql tuning - Part 1
An Approach to Sql tuning - Part 1An Approach to Sql tuning - Part 1
An Approach to Sql tuning - Part 1
 

ORACLE 12C-New-Features

  • 2.  Navneet Upneja (Manager, Database & Applications)  9 Years of Experience in Oracle Databases, OBIEE, Informatica, ODI etc…  Oracle Certified Professional  Hand on experience on OLTP, Datawarehouse, Oracle BI, APEX… Co-Founder of AIOUG - North India Chapter. Email: navneetupneja@gmail.com Blog: http://navneetupnejadba.wordpress.com/ Twitter: @navneetupneja Presentations: http://www.slideshare.net/navneetupneja Navneet UpnejaNavneet Upneja
  • 3. Overview • Multi-Tenant Architecture • Threaded Execution • Online Optimizer Statistics • GTT Statistics • Global Temporary Table Undo • Invisible Columns • Multiple Indexes • ILM • DDL Logging • Limit on PGA • Moving Datafile Online • Q&A
  • 4. Multitenant Architecture • Oracle 12c – “c” for “Consolidation” – New concept of Container Database (CDB) – Multiple databases can be part of one CDB – Each Database is called “PDB” – CDB contains: • Root Container (CDB$ROOT) : Master Datafiles and Metadata • Seed Container (PDB$SEED): Template to create new pdb. • Pluggable Database (PDB): One or more PDB’s • New “CDB_..” dictionary views.
  • 5. Threaded Architecture • Pre 12c and Default in 12c – Windows: Threaded Model (Only one process “oracle.exe”) – Unix: Independent Process for each Oracle Process. – “threaded_execution” – New in 12c – Default to “False”. – Require reboot of instance – Login using “sys” Require password file after this change – 1 Process will have multiple sub-processes called “Threads” – DEDICATED_THROUGH_BROKER_LISTENER=ON – New columns added to “V$Process” table. • STID – Thread Number • SOSID – Concatenation of Process and Thread • New entry in Execution type as “THREAD” – PMON, VKTM, PSP0, DBW0.. , will be still implemented as before – Useful towards achieving “Consolidation”.
  • 6. • 1 OS process for each Oracle Background process •1 OS process for each user connection to the database • In default implementation, with no user connection, Total number of Attached processes: 165 Conventional Method or Non - Threaded
  • 7. With Threaded Execution enabled, Total number of Attached processes reduced to 18.
  • 8.
  • 10. Online Optimizer Statistics  Statistics are being gathered for objects created using Direct Path operations like CTAS and Insert as select operations.  Only Basic Statistics are gathered  Pre – 12c, Only Index creation had this feature.  Will save Extra Full Table Scan(s) required to gather statistics  Useful in ETL Loads specifically for Staging table.  Create Table AS (CTAS)  Insert with Append (Bulk Load)  Have its own restrictions as well..(Non-Empty Segments,Tables with Virtual Columns….)
  • 14. Statistics for GTT’s • GTT shares its definition with system wide users • Content in GTT is private to particular session. • Pre 12c, statistics gathered on GTT’s were published system wide. • In 12c, statistics on GTT’s can be kept private to the session collecting the stats. • Useful in cases, where volume of data varies greatly across sessions. • Controlled with GLOBAL_TEMP_TABLE_STATS preference of DBMS_STATS • By default, preference is set to Session {SHARED} • Its really useful in Solving Peoplesoft Temp Table Problem SELECT dbms_stats.get_prefs('GLOBAL_TEMP_TABLE_STATS','NUPNEJA','TEMP_GT') FROM DUAL;
  • 15. Temporary Undo • By default, undo records for temporary tables are stored in the undo tablespace and are logged in the redo. • 12c introduces new concept of Temporary Undo: Undo generated by transactions on temporary tables managed inside temporary undo segments. • Reduces amount of undo stored in undo tablespace. • Inturn, reduces amount of redo generated. • Managed using TEMP_UNDO_ENABLED parameter. • Can be set at session level or system level. • Default value is “FALSE”. • Temp Undo statistics can be monitored through “V$TEMPUNDOSTAT”.
  • 16. SQL> insert into temp_gt select * from dba_objects; Default Behavior Temp Undo Enabled
  • 17. Invisible Column • Starting from 12c, one can add column to a table and make It as invisible. • Can be used as low level security for a column. • Different from system generated hidden columns • Would not be shown up in result of select if not explicitly defined in Select list of columns. • Describe command will not show invisible column as part of table definition. • “set colinvisible on” to see the hidden/invisible column • Cannot create invisible column in – External Tables – Cluster Tables – Temporary Tables
  • 18. Multiple Indexes on same column • Multiple Indexes on same column(s) • Some characteristics of Index/Indexes need to be different. • Unique and non Unique • B*Tree and Bitmap • Partitioning Strategies like Local and Global. • One of the Index needs to be Invisible. • Useful for testing performance fixes.
  • 19. Information Life Cycle Management (ILM) • Conventional Techniques – Storage Techniques : Moving data to Faster or slower disks as per the usage of Data – Database: Partitioning • Oracle 12c – Heat Map • Data Compression • Moving Data to Different Tablespace
  • 20. DDL Logging • In 12c, we can log the DDL statements running in a session or at system level. • Controlled by parameter “ENABLE_DDL_LOGGING” • Can be set at Session level as well. • DDL log is stored in the log/ddl subdirectory of the ADR home. • DDL log contains one log record for each DDL statement issued by the database/session. • Two types of log files: XML and Text File. • Can be useful to diagnose all the DDL’s running in a big package/program. • Can be useful in troubleshooting any application program.
  • 22. Limit on PGA • The Program Global Area (PGA) is a private memory region that contains the data and control information for a server process. • PGA_AGGREGATE_TARGET: Target aggregate PGA memory available to all server processes attached to the instance.
  • 23. PGA_AGGREGATE_LIMIT • PGA_AGGREGATE_TARGET setting acts as a target, and not a limit. • PGA_AGGREGATE_LIMIT initialization parameter enables you to specify a hard limit on PGA memory. • Oracle Database aborts or terminates the sessions or processes that are consuming the most untunable PGA memory – Calls for sessions that are consuming the most untunable PGA memory are aborted. – If PGA memory usage is still over the PGA_AGGREGATE_LIMIT, then the sessions and processes that are consuming the most untunable PGA memory are terminated.
  • 25. Moving Datafile Online • Starting with Oracle 12c, we can move the datafile while it is online. • ALTER DATABASE MOVE DATAFILE SQL statement to rename or relocate online data files. • Enables you to rename or relocate a data file while the database is open and users are accessing the data file. • If a file with the same name already exists in the destination location, the existing file is not overwritten, and the statement returns an error. • Keep option to retain the original file as well. • Datafile must be online to perform this. • You cannot move datafile of a pluggable database from container database.
  • 26. Adaptive Query Optimization •Enable Optimizer to make Run – Time Adjustments to Execution Plan •Right Intent to have better statistcis. •Adaptive Plan Join Methods Parallel Distribution •Adaptive Statistics Dynamic Statistics Automatic Re-optimization SQL Plan Directives