SlideShare une entreprise Scribd logo
1  sur  33
Oracle Database 12c
New Features
Prepared by

www.dbametrix.com
A world class Leader in Remote DBA Services
What are new features of Oracle 12
database?
•
•
•
•
•
•
•

SQL Enhancement
Backup and Recovery
Database Management Enhancement
Oracle Networking Enhancement
Oracle Performance Tuning
Oracle ASM new Features
Oracle RAC new features
SQL Enhancement – New Features
• Now you can use TRUNCATE table CASCADE for
truncating primary and dependent table data as following
command.
• SQL> TRUNCATE TABLE <table_name> CASCADE;
• You can use above command in table partition too.
Above command will be truncating table data including
child records too.
SQL Enhancement – New Features
• Output Rows restricting using FETCH FIRST N ROWS
ONLY in SQL statement.
• SELECT empno,ename,sal FROM emp ORDER BY
deptno DESC FETCH FIRST 5 ROWS ONLY;
• You can use 10 percent or 20 percent ROWS only
parameter in same SQL with limitation of N percent.
SQL Enhancement – New Features
• You can create INVISIBLE column in table or modify
column to make INVISIBLE. Invisible column never
shows in general select * queries but it shows in result
where mention column in select query.

• SQL> CREATE TABLE test (testno number, t_name
varchar2(30), t_dept number(2) INVISIBLE);
• After creating above TEST table, you cannot see t_dept
column in select * query but able to see result in select
t_dept from test query.
SQL Enhancement – New Features
• Invisible column can show via COLINVISIBLE SQL*Plus
command as following.
• SQL> SET COLINVISIBLE ON
SQL Enhancement – New Features
• You can create session level SEQUENCE for testing. Which
will be deleted automatically after session log off.
• SQL> CREATE SEQUENCE test_seq START WITH 10
INCREMENT BY 10 SESSION;

• You can also modify SEQUENCE to make it session level
using ALTER command.
• SQL> ALTER SEQUENCE test_seq SESSION;
• For removing session parameter of sequence you should
need to execute ALTER SEQUENCE test_seq GLOBAL;
SQL Enhancement – New Features
• You can extend datatype of VARCHAR2,RAW, and
NVARCHAR2 from 4000 bytes to 32,767 bytes.
• For using this feature, you should need to change
initialization parameter
MAX_STRING_SIZE=EXTENDED and restart database
in upgrade mode. After that you need to execute
• SQL> @?/rdbms/admin/utl32k.sql
SQL Enhancement – New Features
• From Oracle database 12c, you can create multiple
indexes on column.
• This feature is available for composite columns and
single index both.
Backup and Recovery – New
Features
• New Backup privilege introduced called SYSBACKUP.
• It means now there is no need to give SYSDBA privilege
for performing backup and recovery tasks.

• Sample command is following.
• $ ./rman target “rman/rman as SYSBACKUP"
Backup and Recovery – New
Features
• Real time Apply redo log to Data Guard.
• In previous release of Oracle 12c, default option was
apply redo from archived log files on the standby
database.
• In Oracle Database 12c Release, the default
configuration is to use real-time apply so that redo is
applied directly from the standby redo log file.
• This new feature helps to maintain minimum or zero data
loss.
Backup and Recovery – New
Features
• Active DATA GUARD is now accepting DML operations
on Global temporary tables.
• Active standby database can be open in read only mode.
• Active standby database is now supported DML
operations on Global Temporary Tables.
• This feature enhances reporting facility and performance
of primary database.
Backup and Recovery – New
Features
• Direct SQL statement execution in RMAN utility. Now no
need of any prefix like “sql” in RMAN command line.

• RMAN> SELECT sid,serial#,status FROM v$session;
Backup and Recovery – New
Features
• Table level recovery is now possible using RMAN. In
prior versions this feature didn‟t available.
• RECOVER TABLE username.tablename UNTIL TIME
„<TIMESTAMP>…' AUXILIARY DESTINATION
'/u01/backup' DATAPUMP DESTINATION '/u05/dumpdir'
DUMP FILE 'tablename.dmp' NOTABLEIMPORT
• REMAP TABLE „<username.tablename>':
„<username.new_table_name>';
Backup and Recovery – New
Features
• In Datapump, new parameter introduced called
TRANSFORM with DISABLE_ARCHIVE_LOGGING.
This option will disable archive log generation during
import process.

• impdp directory=dpump dumpfile=test.dmp
logfile=test.log
TRANSFORM=DISABLE_ARCHIVE_LOGGING:Y
Database Management– New
Features
• Now you can move active data file online without
copying to another destination as following command.
• ALTER DATABASE MOVE DATAFILE
'/u01/data/test_tbs01.dbf' TO '/u02/data/test_tbs01.dbf';
• You can monitor above ongoing process using dynamic
data dictionary view V$SESSION_LONGOPS
Database Management– New
Features
• New Feature called PLUGGABLE database and
CONTAINER database introduced in Oracle 12c.
• Container database contains pluggable database. You
can say database in database. Pluggable database
plugs in to container database.
• This feature helps to better database administration and
management tasks. It shorten memory usage and disk
usage.
• You can plug in pluggable database into any container
database. Single container database contains many
pluggable database.
Database Management– New
Features
• Now you can enable logging mode of every Data
Definition Language (DDL). Every DDL command will be
logged in trace file at operating system disk.
• For enabling this feature, you should need to enable
parameter ENABLE_DDL_LOGGING=TRUE.
• Trace files would be generating in following directory
• $ORACLE_BASE/diag/rdbms/DBNAME/log/ddl
Database Management– New
Features
• You can merge/split/add table partitions in single SQL
command.
•
•
•
•

ALTER TABLE test_p
ADD PARTITION
PARTITION part11 VALUES LESS THAN (120000),
PARTITION part12 VALUES LESS THAN (130000);
Database Management– New
Features
• You can move table partition online or offline using
following command.
• Offline command=>
• ALTER TABLE table_name MOVE
PARTITION|SUBPARTITION <partition_name> TO
tablespace <tablespace_name>;
• Online command=>
• ALTER TABLE table_name MOVE
PARTITION|SUBPARTITION <partition_name> TO
tablespace <tablespace_name> UPDATE INDEXES
ONLINE;
Database Management– New
Features
• You can truncate/drop multiple partitions in single DDL
command as following.
• ALTER TABLE test_p DROP PARTITIONS part7,part9
UPDATE GLOBAL INDEXES;
• ALTER TABLE test_p TRUNCATE PARTITIONS
part7,part9 UPDATE GLOBAL INDEXES;
Database Management– New
Features
• Preupgrade script is now available in Oracle 12c
database for investigating preupgrade issues to fix.
• Preupgrade script called preupgrd.sql is available in
rdbms/admin folder.
• Preupgrade_fixup.sql log file will be generated in
$ORACLE_BASE/cfgtoollogs directory.
• This script helps to investigation of certain issues of
upgrade process and we can easily resolve issue using
preupgrade_fixup.sql. This feature can save our time of
database upgrade activity.
Oracle Networking Enhancement –
New Features
• In Oracle 12c database, you can restore and recover
data file over through net. Means you can
restore/recover data file from standby database to
primary database vice versa using service option with
following command in RMAN.

• RMAN> RECOVER DATABASE FROM SERVICE
prod_service USING COMPRESSED BACKUPSET;
Oracle Performance Tuning – New
Features
• You can gather object or database statistics
concurrently. This feature generates statistics multiple
tables/indexes simultaneously.
• For using this feature, you should have nonzero value in
parameter JOB_QUEUE_PROCESSES and you need to
set following parameters.
• EXEC
DBMS_STATS.SET_GLOBAL_PREFS('CONCURRENT'
, 'ALL');
Oracle Performance Tuning – New
Features
• Excellent feature of Temporary Undo.
• In Oracle 12c, now temporary undo would be generated
in temporary tablespace. This feature eliminates
unnecessary redo generation of temp tablespace usage.

• For enabling temporary undo, you need to make sure to
set initialization parameter
TEMP_UNDO_ENABLED=true.
Oracle Performance Tuning – New
Features
• Program Global Area (PGA) Limitation.
• You can restrict PGA allocation in to database. In prior
version this feature wasn‟t available.
• You can use parameter
PGA_AGGREGATE_LIMIT=<some value> to enable this
limitation of PGA.
• Once you define this value then Oracle won‟t expand
more than this size of PGA. This feature helps to avoid
paging/swapping and memory bottleneck issues.
Oracle Performance Tuning – New
Features
• Real Time Automatic Database Diagnostic Monitor
ADDM.
• This feature available with Oracle EM control of 12c only.
• In OEM portal, you can select real time ADDM in
performance option for investigating findings of
production database.
• This feature is absolutely new and present there is no
another command line option available. Means you need
OEM control for using this option.
Oracle ASM – New Features
• ASM Disk Rebalance Estimation
• Like EXPLAIN PLAN FOR, new command introduced as
EXPLAIN WORK FOR. Using this statement, Oracle
gathers and shows ASM disk rebalance estimation in
V$ASM_ESTIMATE view.
• Example:
• EXPLAIN WORK FOR ALTER DISKGROUP DS_DATA1
ADD DISK dsd_03;
• After successfully execution of above command you can
check estimation cost in V$ASM_ESTIMATE for setting
proper value of POWER limit for faster task.
Oracle ASM – New Features
• New feature introduced called FLEX ASM.
• When any instance terminated in ASM, then any survival
ASM instance will be up within flex cluster to maintain
high availability.
• For enabling this feature, we need to install flex cluster
using Oracle clusterware and this option automatically
install flex ASM option at node.
• You can enable flex ASM using ASMCA utility in your
cluster environment.
Oracle ASM – New Features
• For checking and repairing logical corruption of disks,
new facility introduced called ASM DISK Scrubbing.
• Using this facility, now you can check and repair disk for
getting rid of logical corruption.
• Example:
• ALTER DISKGROUP DS_DATA1 SCRUB POWER
LOW:HIGH:AUTO:MAX;
• ALTER DISKGROUP DS_DATA1 SCRUB FILE
'+DG_DATA/TEST/DATAFILE/test.xxxx.xxxx' REPAIR
POWER AUTO;
Oracle RAC – New Features
• Now Flex Cluster supported in Oracle 12c.
• Flex cluster architecture contains hub and leaf nodes.
• Hub nodes are regular RAC nodes which are having
DIRECT access of storage and directly read/write.
• Leaf nodes are not having DIRECT access of storage
and they will get access through HUB node.
• It means you can have HUB nodes without leaf nodes
but You cannot have leaf nodes without hub nodes.
• You can convert any node as leaf node as following.
• $ ./crsctl get node role config
• $ ./crsctl set node role hub|leaf
Oracle RAC – New Features
• Now you can start instance or database as NO MOUNT,
MOUNT, and OPEN stage using SRVCTL command.
• This facility doesn‟t available in prior of Oracle 12c.
• Example command is following….
• srvctl start|stop database|instance –startoption
NOMOUNT|MOUNT|OPEN
Oracle 12 Database New
Features
Prepared By

http://www.dbametrix.com
A world class Leader in Remote DBA Services

Contenu connexe

Tendances

Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Ludovico Caldara
 

Tendances (20)

Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
 
"It can always get worse!" – Lessons Learned in over 20 years working with Or...
"It can always get worse!" – Lessons Learned in over 20 years working with Or..."It can always get worse!" – Lessons Learned in over 20 years working with Or...
"It can always get worse!" – Lessons Learned in over 20 years working with Or...
 
What to Expect From Oracle database 19c
What to Expect From Oracle database 19cWhat to Expect From Oracle database 19c
What to Expect From Oracle database 19c
 
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIESORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
 
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdfOracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
 
Understanding oracle rac internals part 1 - slides
Understanding oracle rac internals   part 1 - slidesUnderstanding oracle rac internals   part 1 - slides
Understanding oracle rac internals part 1 - slides
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oracle
 
Oracle Database 12c : Multitenant
Oracle Database 12c : MultitenantOracle Database 12c : Multitenant
Oracle Database 12c : Multitenant
 
Oracle sharding : Installation & Configuration
Oracle sharding : Installation & ConfigurationOracle sharding : Installation & Configuration
Oracle sharding : Installation & Configuration
 
2020 - OCI Key Concepts for Oracle DBAs
2020 - OCI Key Concepts for Oracle DBAs2020 - OCI Key Concepts for Oracle DBAs
2020 - OCI Key Concepts for Oracle DBAs
 
Understanding oracle rac internals part 2 - slides
Understanding oracle rac internals   part 2 - slidesUnderstanding oracle rac internals   part 2 - slides
Understanding oracle rac internals part 2 - slides
 
Oracle Data Guard
Oracle Data GuardOracle Data Guard
Oracle Data Guard
 
Oracle DBA
Oracle DBAOracle DBA
Oracle DBA
 
New Features for Multitenant in Oracle Database 21c
New Features for Multitenant in Oracle Database 21cNew Features for Multitenant in Oracle Database 21c
New Features for Multitenant in Oracle Database 21c
 
Oracle data guard for beginners
Oracle data guard for beginnersOracle data guard for beginners
Oracle data guard for beginners
 
Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentation
 
RMAN best practices for RAC
RMAN best practices for RACRMAN best practices for RAC
RMAN best practices for RAC
 
High Availability for Oracle SE2
High Availability for Oracle SE2High Availability for Oracle SE2
High Availability for Oracle SE2
 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
 
An Introduction To Oracle Database
An Introduction To Oracle DatabaseAn Introduction To Oracle Database
An Introduction To Oracle Database
 

En vedette

The Top 12 Features new to Oracle 12c
The Top 12 Features new to Oracle 12cThe Top 12 Features new to Oracle 12c
The Top 12 Features new to Oracle 12c
David Yahalom
 
Exploring Oracle Database 12c Multitenant best practices for your Cloud
Exploring Oracle Database 12c Multitenant best practices for your CloudExploring Oracle Database 12c Multitenant best practices for your Cloud
Exploring Oracle Database 12c Multitenant best practices for your Cloud
dyahalom
 
Oracle Database Overview
Oracle Database OverviewOracle Database Overview
Oracle Database Overview
honglee71
 

En vedette (20)

Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new features
 
Oracle 12c and its pluggable databases
Oracle 12c and its pluggable databasesOracle 12c and its pluggable databases
Oracle 12c and its pluggable databases
 
Oracle Database 12c - New Features for Developers and DBAs
Oracle Database 12c  - New Features for Developers and DBAsOracle Database 12c  - New Features for Developers and DBAs
Oracle Database 12c - New Features for Developers and DBAs
 
ORACLE PL SQL FOR BEGINNERS
ORACLE PL SQL FOR BEGINNERSORACLE PL SQL FOR BEGINNERS
ORACLE PL SQL FOR BEGINNERS
 
Oracle Database 11g vs 12c
Oracle Database 11g vs 12cOracle Database 11g vs 12c
Oracle Database 11g vs 12c
 
The Top 12 Features new to Oracle 12c
The Top 12 Features new to Oracle 12cThe Top 12 Features new to Oracle 12c
The Top 12 Features new to Oracle 12c
 
Why Upgrade to Oracle Database 12c?
Why Upgrade to Oracle Database 12c?Why Upgrade to Oracle Database 12c?
Why Upgrade to Oracle Database 12c?
 
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expr...
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata  Expr...Oracle Database 12c Release 2 - New Features On Oracle Database Exadata  Expr...
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expr...
 
RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)
 
Oracle 12c Architecture
Oracle 12c ArchitectureOracle 12c Architecture
Oracle 12c Architecture
 
Cosas que “probablemente” no sabes pero deberías de saber en Oracle 12c
Cosas que “probablemente” no sabes pero deberías de saber en Oracle 12cCosas que “probablemente” no sabes pero deberías de saber en Oracle 12c
Cosas que “probablemente” no sabes pero deberías de saber en Oracle 12c
 
Oracle database 12c intro
Oracle database 12c introOracle database 12c intro
Oracle database 12c intro
 
Oracle 12c New Features for Developers
Oracle 12c New Features for DevelopersOracle 12c New Features for Developers
Oracle 12c New Features for Developers
 
Exploring Oracle Database 12c Multitenant best practices for your Cloud
Exploring Oracle Database 12c Multitenant best practices for your CloudExploring Oracle Database 12c Multitenant best practices for your Cloud
Exploring Oracle Database 12c Multitenant best practices for your Cloud
 
PL/SQL Fundamentals I
PL/SQL Fundamentals IPL/SQL Fundamentals I
PL/SQL Fundamentals I
 
Oracle Database Overview
Oracle Database OverviewOracle Database Overview
Oracle Database Overview
 
I2C
I2CI2C
I2C
 
LinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-PresentedLinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-Presented
 
Trivadis TechEvent 2016 Useful Oracle 12c Features for Data Warehousing by Da...
Trivadis TechEvent 2016 Useful Oracle 12c Features for Data Warehousing by Da...Trivadis TechEvent 2016 Useful Oracle 12c Features for Data Warehousing by Da...
Trivadis TechEvent 2016 Useful Oracle 12c Features for Data Warehousing by Da...
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
 

Similaire à Oracle database 12c new features

Oracle Database 12c features for DBA
Oracle Database 12c features for DBAOracle Database 12c features for DBA
Oracle Database 12c features for DBA
Karan Kukreja
 
Oracle 12 c new-features
Oracle 12 c new-featuresOracle 12 c new-features
Oracle 12 c new-features
Navneet Upneja
 
Oracle 12c New Features_RAC_slides
Oracle 12c New Features_RAC_slidesOracle 12c New Features_RAC_slides
Oracle 12c New Features_RAC_slides
Saiful
 
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
Alfredo Abate
 

Similaire à Oracle database 12c new features (20)

Aioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_featuresAioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_features
 
What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)
 
Oracle Database 12c features for DBA
Oracle Database 12c features for DBAOracle Database 12c features for DBA
Oracle Database 12c features for DBA
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
 
Oracle database 12.2 new features
Oracle database 12.2 new featuresOracle database 12.2 new features
Oracle database 12.2 new features
 
Reduce planned database down time with Oracle technology
Reduce planned database down time with Oracle technologyReduce planned database down time with Oracle technology
Reduce planned database down time with Oracle technology
 
PL/SQL Tips and Techniques Webinar Presentation
PL/SQL Tips and Techniques Webinar PresentationPL/SQL Tips and Techniques Webinar Presentation
PL/SQL Tips and Techniques Webinar Presentation
 
Oracle 12 c new-features
Oracle 12 c new-featuresOracle 12 c new-features
Oracle 12 c new-features
 
DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2
 
DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2
 
Optimizing your Database Import!
Optimizing your Database Import! Optimizing your Database Import!
Optimizing your Database Import!
 
Oracle Database 12c - New Features for Developers and DBAs
Oracle Database 12c - New Features for Developers and DBAsOracle Database 12c - New Features for Developers and DBAs
Oracle Database 12c - New Features for Developers and DBAs
 
RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new features
 
Performance Stability, Tips and Tricks and Underscores
Performance Stability, Tips and Tricks and UnderscoresPerformance Stability, Tips and Tricks and Underscores
Performance Stability, Tips and Tricks and Underscores
 
2011 Collaborate IOUG Presentation
2011 Collaborate IOUG Presentation2011 Collaborate IOUG Presentation
2011 Collaborate IOUG Presentation
 
Oracle 12c New Features_RAC_slides
Oracle 12c New Features_RAC_slidesOracle 12c New Features_RAC_slides
Oracle 12c New Features_RAC_slides
 
2008 Collaborate IOUG Presentation
2008 Collaborate IOUG Presentation2008 Collaborate IOUG Presentation
2008 Collaborate IOUG Presentation
 
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
 

Plus de Remote DBA Services

Plus de Remote DBA Services (11)

Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
do's and don'ts in Telephone Interview of Job
do's and don'ts in Telephone Interview of Jobdo's and don'ts in Telephone Interview of Job
do's and don'ts in Telephone Interview of Job
 
logical backup of Oracle Datapump-detailed.pptx
logical backup of Oracle Datapump-detailed.pptxlogical backup of Oracle Datapump-detailed.pptx
logical backup of Oracle Datapump-detailed.pptx
 
oracle 23c new features for developer and dba
oracle 23c new features for developer and dbaoracle 23c new features for developer and dba
oracle 23c new features for developer and dba
 
Oracle Database Buffer Cache Management.pptx
Oracle Database Buffer Cache Management.pptxOracle Database Buffer Cache Management.pptx
Oracle Database Buffer Cache Management.pptx
 
What is the Oracle Database Buffer Cache
What is the Oracle Database Buffer CacheWhat is the Oracle Database Buffer Cache
What is the Oracle Database Buffer Cache
 
Oracle dba advance-24-7-running databases
Oracle dba advance-24-7-running databasesOracle dba advance-24-7-running databases
Oracle dba advance-24-7-running databases
 
1Z0-052 Oracle 11g Administration I
1Z0-052 Oracle 11g Administration I1Z0-052 Oracle 11g Administration I
1Z0-052 Oracle 11g Administration I
 
Remote Dba Team Oracle Architecture In Nutshell
Remote Dba Team   Oracle Architecture In NutshellRemote Dba Team   Oracle Architecture In Nutshell
Remote Dba Team Oracle Architecture In Nutshell
 
Remote DBA team-1Z0-042 Oracle Sga In Nutshell Oracle Dba Learn By Presentation
Remote DBA team-1Z0-042 Oracle Sga In Nutshell Oracle Dba Learn By PresentationRemote DBA team-1Z0-042 Oracle Sga In Nutshell Oracle Dba Learn By Presentation
Remote DBA team-1Z0-042 Oracle Sga In Nutshell Oracle Dba Learn By Presentation
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Oracle database 12c new features

  • 1. Oracle Database 12c New Features Prepared by www.dbametrix.com A world class Leader in Remote DBA Services
  • 2. What are new features of Oracle 12 database? • • • • • • • SQL Enhancement Backup and Recovery Database Management Enhancement Oracle Networking Enhancement Oracle Performance Tuning Oracle ASM new Features Oracle RAC new features
  • 3. SQL Enhancement – New Features • Now you can use TRUNCATE table CASCADE for truncating primary and dependent table data as following command. • SQL> TRUNCATE TABLE <table_name> CASCADE; • You can use above command in table partition too. Above command will be truncating table data including child records too.
  • 4. SQL Enhancement – New Features • Output Rows restricting using FETCH FIRST N ROWS ONLY in SQL statement. • SELECT empno,ename,sal FROM emp ORDER BY deptno DESC FETCH FIRST 5 ROWS ONLY; • You can use 10 percent or 20 percent ROWS only parameter in same SQL with limitation of N percent.
  • 5. SQL Enhancement – New Features • You can create INVISIBLE column in table or modify column to make INVISIBLE. Invisible column never shows in general select * queries but it shows in result where mention column in select query. • SQL> CREATE TABLE test (testno number, t_name varchar2(30), t_dept number(2) INVISIBLE); • After creating above TEST table, you cannot see t_dept column in select * query but able to see result in select t_dept from test query.
  • 6. SQL Enhancement – New Features • Invisible column can show via COLINVISIBLE SQL*Plus command as following. • SQL> SET COLINVISIBLE ON
  • 7. SQL Enhancement – New Features • You can create session level SEQUENCE for testing. Which will be deleted automatically after session log off. • SQL> CREATE SEQUENCE test_seq START WITH 10 INCREMENT BY 10 SESSION; • You can also modify SEQUENCE to make it session level using ALTER command. • SQL> ALTER SEQUENCE test_seq SESSION; • For removing session parameter of sequence you should need to execute ALTER SEQUENCE test_seq GLOBAL;
  • 8. SQL Enhancement – New Features • You can extend datatype of VARCHAR2,RAW, and NVARCHAR2 from 4000 bytes to 32,767 bytes. • For using this feature, you should need to change initialization parameter MAX_STRING_SIZE=EXTENDED and restart database in upgrade mode. After that you need to execute • SQL> @?/rdbms/admin/utl32k.sql
  • 9. SQL Enhancement – New Features • From Oracle database 12c, you can create multiple indexes on column. • This feature is available for composite columns and single index both.
  • 10. Backup and Recovery – New Features • New Backup privilege introduced called SYSBACKUP. • It means now there is no need to give SYSDBA privilege for performing backup and recovery tasks. • Sample command is following. • $ ./rman target “rman/rman as SYSBACKUP"
  • 11. Backup and Recovery – New Features • Real time Apply redo log to Data Guard. • In previous release of Oracle 12c, default option was apply redo from archived log files on the standby database. • In Oracle Database 12c Release, the default configuration is to use real-time apply so that redo is applied directly from the standby redo log file. • This new feature helps to maintain minimum or zero data loss.
  • 12. Backup and Recovery – New Features • Active DATA GUARD is now accepting DML operations on Global temporary tables. • Active standby database can be open in read only mode. • Active standby database is now supported DML operations on Global Temporary Tables. • This feature enhances reporting facility and performance of primary database.
  • 13. Backup and Recovery – New Features • Direct SQL statement execution in RMAN utility. Now no need of any prefix like “sql” in RMAN command line. • RMAN> SELECT sid,serial#,status FROM v$session;
  • 14. Backup and Recovery – New Features • Table level recovery is now possible using RMAN. In prior versions this feature didn‟t available. • RECOVER TABLE username.tablename UNTIL TIME „<TIMESTAMP>…' AUXILIARY DESTINATION '/u01/backup' DATAPUMP DESTINATION '/u05/dumpdir' DUMP FILE 'tablename.dmp' NOTABLEIMPORT • REMAP TABLE „<username.tablename>': „<username.new_table_name>';
  • 15. Backup and Recovery – New Features • In Datapump, new parameter introduced called TRANSFORM with DISABLE_ARCHIVE_LOGGING. This option will disable archive log generation during import process. • impdp directory=dpump dumpfile=test.dmp logfile=test.log TRANSFORM=DISABLE_ARCHIVE_LOGGING:Y
  • 16. Database Management– New Features • Now you can move active data file online without copying to another destination as following command. • ALTER DATABASE MOVE DATAFILE '/u01/data/test_tbs01.dbf' TO '/u02/data/test_tbs01.dbf'; • You can monitor above ongoing process using dynamic data dictionary view V$SESSION_LONGOPS
  • 17. Database Management– New Features • New Feature called PLUGGABLE database and CONTAINER database introduced in Oracle 12c. • Container database contains pluggable database. You can say database in database. Pluggable database plugs in to container database. • This feature helps to better database administration and management tasks. It shorten memory usage and disk usage. • You can plug in pluggable database into any container database. Single container database contains many pluggable database.
  • 18. Database Management– New Features • Now you can enable logging mode of every Data Definition Language (DDL). Every DDL command will be logged in trace file at operating system disk. • For enabling this feature, you should need to enable parameter ENABLE_DDL_LOGGING=TRUE. • Trace files would be generating in following directory • $ORACLE_BASE/diag/rdbms/DBNAME/log/ddl
  • 19. Database Management– New Features • You can merge/split/add table partitions in single SQL command. • • • • ALTER TABLE test_p ADD PARTITION PARTITION part11 VALUES LESS THAN (120000), PARTITION part12 VALUES LESS THAN (130000);
  • 20. Database Management– New Features • You can move table partition online or offline using following command. • Offline command=> • ALTER TABLE table_name MOVE PARTITION|SUBPARTITION <partition_name> TO tablespace <tablespace_name>; • Online command=> • ALTER TABLE table_name MOVE PARTITION|SUBPARTITION <partition_name> TO tablespace <tablespace_name> UPDATE INDEXES ONLINE;
  • 21. Database Management– New Features • You can truncate/drop multiple partitions in single DDL command as following. • ALTER TABLE test_p DROP PARTITIONS part7,part9 UPDATE GLOBAL INDEXES; • ALTER TABLE test_p TRUNCATE PARTITIONS part7,part9 UPDATE GLOBAL INDEXES;
  • 22. Database Management– New Features • Preupgrade script is now available in Oracle 12c database for investigating preupgrade issues to fix. • Preupgrade script called preupgrd.sql is available in rdbms/admin folder. • Preupgrade_fixup.sql log file will be generated in $ORACLE_BASE/cfgtoollogs directory. • This script helps to investigation of certain issues of upgrade process and we can easily resolve issue using preupgrade_fixup.sql. This feature can save our time of database upgrade activity.
  • 23. Oracle Networking Enhancement – New Features • In Oracle 12c database, you can restore and recover data file over through net. Means you can restore/recover data file from standby database to primary database vice versa using service option with following command in RMAN. • RMAN> RECOVER DATABASE FROM SERVICE prod_service USING COMPRESSED BACKUPSET;
  • 24. Oracle Performance Tuning – New Features • You can gather object or database statistics concurrently. This feature generates statistics multiple tables/indexes simultaneously. • For using this feature, you should have nonzero value in parameter JOB_QUEUE_PROCESSES and you need to set following parameters. • EXEC DBMS_STATS.SET_GLOBAL_PREFS('CONCURRENT' , 'ALL');
  • 25. Oracle Performance Tuning – New Features • Excellent feature of Temporary Undo. • In Oracle 12c, now temporary undo would be generated in temporary tablespace. This feature eliminates unnecessary redo generation of temp tablespace usage. • For enabling temporary undo, you need to make sure to set initialization parameter TEMP_UNDO_ENABLED=true.
  • 26. Oracle Performance Tuning – New Features • Program Global Area (PGA) Limitation. • You can restrict PGA allocation in to database. In prior version this feature wasn‟t available. • You can use parameter PGA_AGGREGATE_LIMIT=<some value> to enable this limitation of PGA. • Once you define this value then Oracle won‟t expand more than this size of PGA. This feature helps to avoid paging/swapping and memory bottleneck issues.
  • 27. Oracle Performance Tuning – New Features • Real Time Automatic Database Diagnostic Monitor ADDM. • This feature available with Oracle EM control of 12c only. • In OEM portal, you can select real time ADDM in performance option for investigating findings of production database. • This feature is absolutely new and present there is no another command line option available. Means you need OEM control for using this option.
  • 28. Oracle ASM – New Features • ASM Disk Rebalance Estimation • Like EXPLAIN PLAN FOR, new command introduced as EXPLAIN WORK FOR. Using this statement, Oracle gathers and shows ASM disk rebalance estimation in V$ASM_ESTIMATE view. • Example: • EXPLAIN WORK FOR ALTER DISKGROUP DS_DATA1 ADD DISK dsd_03; • After successfully execution of above command you can check estimation cost in V$ASM_ESTIMATE for setting proper value of POWER limit for faster task.
  • 29. Oracle ASM – New Features • New feature introduced called FLEX ASM. • When any instance terminated in ASM, then any survival ASM instance will be up within flex cluster to maintain high availability. • For enabling this feature, we need to install flex cluster using Oracle clusterware and this option automatically install flex ASM option at node. • You can enable flex ASM using ASMCA utility in your cluster environment.
  • 30. Oracle ASM – New Features • For checking and repairing logical corruption of disks, new facility introduced called ASM DISK Scrubbing. • Using this facility, now you can check and repair disk for getting rid of logical corruption. • Example: • ALTER DISKGROUP DS_DATA1 SCRUB POWER LOW:HIGH:AUTO:MAX; • ALTER DISKGROUP DS_DATA1 SCRUB FILE '+DG_DATA/TEST/DATAFILE/test.xxxx.xxxx' REPAIR POWER AUTO;
  • 31. Oracle RAC – New Features • Now Flex Cluster supported in Oracle 12c. • Flex cluster architecture contains hub and leaf nodes. • Hub nodes are regular RAC nodes which are having DIRECT access of storage and directly read/write. • Leaf nodes are not having DIRECT access of storage and they will get access through HUB node. • It means you can have HUB nodes without leaf nodes but You cannot have leaf nodes without hub nodes. • You can convert any node as leaf node as following. • $ ./crsctl get node role config • $ ./crsctl set node role hub|leaf
  • 32. Oracle RAC – New Features • Now you can start instance or database as NO MOUNT, MOUNT, and OPEN stage using SRVCTL command. • This facility doesn‟t available in prior of Oracle 12c. • Example command is following…. • srvctl start|stop database|instance –startoption NOMOUNT|MOUNT|OPEN
  • 33. Oracle 12 Database New Features Prepared By http://www.dbametrix.com A world class Leader in Remote DBA Services