SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Data guard architecture
Data guard architectureData guard architecture
Data guard architecture
Vimlendu Kumar
 

Was ist angesagt? (20)

Oracle Data Guard
Oracle Data GuardOracle Data Guard
Oracle Data Guard
 
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
 
What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1
 
The Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - PresentationThe Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - Presentation
 
Fast Start Failover DataGuard
Fast Start Failover DataGuardFast Start Failover DataGuard
Fast Start Failover DataGuard
 
Backup and Restore of database on 2-Node RAC
Backup and Restore of database on 2-Node RACBackup and Restore of database on 2-Node RAC
Backup and Restore of database on 2-Node RAC
 
Comparison of ACFS and DBFS
Comparison of ACFS and DBFSComparison of ACFS and DBFS
Comparison of ACFS and DBFS
 
Oracle Open World Presentation - Oracle RMAN Best Practices for Cloud Backups
Oracle Open World Presentation - Oracle RMAN Best Practices for Cloud Backups Oracle Open World Presentation - Oracle RMAN Best Practices for Cloud Backups
Oracle Open World Presentation - Oracle RMAN Best Practices for Cloud Backups
 
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
 
Migration to Oracle Multitenant
Migration to Oracle MultitenantMigration to Oracle Multitenant
Migration to Oracle Multitenant
 
Data Guard Architecture & Setup
Data Guard Architecture & SetupData Guard Architecture & Setup
Data Guard Architecture & Setup
 
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the CloudOracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
 
Oracle Database / Exadata Cloud 技術情報(Oracle Cloudウェビナーシリーズ: 2020年7月9日)
Oracle Database / Exadata Cloud 技術情報(Oracle Cloudウェビナーシリーズ: 2020年7月9日)Oracle Database / Exadata Cloud 技術情報(Oracle Cloudウェビナーシリーズ: 2020年7月9日)
Oracle Database / Exadata Cloud 技術情報(Oracle Cloudウェビナーシリーズ: 2020年7月9日)
 
Achieving Continuous Availability for Your Applications with Oracle MAA
Achieving Continuous Availability for Your Applications with Oracle MAAAchieving Continuous Availability for Your Applications with Oracle MAA
Achieving Continuous Availability for Your Applications with Oracle MAA
 
Oracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONOracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLON
 
MAINVIEW for DB2.ppt
MAINVIEW for DB2.pptMAINVIEW for DB2.ppt
MAINVIEW for DB2.ppt
 
New Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceNew Generation Oracle RAC Performance
New Generation Oracle RAC Performance
 
UKOUG - 25 years of hints and tips
UKOUG - 25 years of hints and tipsUKOUG - 25 years of hints and tips
UKOUG - 25 years of hints and tips
 
Rac questions
Rac questionsRac questions
Rac questions
 
Data guard architecture
Data guard architectureData guard architecture
Data guard architecture
 

Andere mochten auch

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
 

Andere mochten auch (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von Remote DBA Services

Mehr von 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
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
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
 
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
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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...
 
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...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
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
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
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...
 

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