Oracle 12c includes over 500 new features and enhancements which greatly enhance the Oracle database experience for developers and DBAs.
For this presentation, I have selected the top 12 new features of Oracle 12c:
From the "game changing" Pluggable Database architecture to lesser known but extremely cool features such as improved top-N queries or VARCHAR(32K).
In our webinar, we will discuss the top 12 new features of Oracle 12c we think every DBA should know about and demo some of the most useful new enchantments and capabilities available in Oracle's latest release.
1. PL/SQL enhancements.
2. Improve "column defaults" for tables - identity columns in Oracle, and more ...
3. Increased Size Limits - VARCHARS can go up to 32K!
4. Improved "TOP-n" queries - new Row limiting clause for result set pagination.
5. Row Pattern Matching - search for a specific pattern of data using SQL with REGEX-like syntax.
6. New partitioning features - multiple operations on multiple partitions in a single DDL, move a partition ONLINE (no DBMS_REDEF!), and more...
7. Adaptive Execution Plans - allows multiple execution plans to co-exists for a single SQL and have the optimizer switch between plans in realtime.
8. Enhanced Statistics - new histograms for data skew, automatically computed statistics after direct loads and more...
9. Temporary UNDO - Store UNDO data generated for temporary tables inside the UNDO tablespace itself which allows for DataGuard and Flashback enhancements.
10. Data Optimisation and ILM - The database now "remembers" which blocks are read / written frequently ("heat map") and allows us to create policies based on block access.
11. Transaction Guard - Provide protection for sensitive transactions that are allowed to only happen once.
12. Pluggable Databases - The "Game changer" of Oracle 12c, perform database consolidation on a scale never done before.
This webinar is intended for Oracle developers and DBAs experienced with Oracle 11g but which are new to Oracle 12c and wish to learn more about Oracle's latest and greatest database version.
On version 12c Oracle introduced new features to allow Adaptive optimizations: Adaptive Plans and Adaptive Statistics. After a quick presentation of concepts, this session will explore the interaction of these features with other performance management techniques using examples, like SPM and SQL profiles. Attendees will get an updated picture of tools available to troubleshoot performance issues, and how to get the most of these new features.
Oracle 12c includes over 500 new features and enhancements which greatly enhance the Oracle database experience for developers and DBAs.
For this presentation, I have selected the top 12 new features of Oracle 12c:
From the "game changing" Pluggable Database architecture to lesser known but extremely cool features such as improved top-N queries or VARCHAR(32K).
In our webinar, we will discuss the top 12 new features of Oracle 12c we think every DBA should know about and demo some of the most useful new enchantments and capabilities available in Oracle's latest release.
1. PL/SQL enhancements.
2. Improve "column defaults" for tables - identity columns in Oracle, and more ...
3. Increased Size Limits - VARCHARS can go up to 32K!
4. Improved "TOP-n" queries - new Row limiting clause for result set pagination.
5. Row Pattern Matching - search for a specific pattern of data using SQL with REGEX-like syntax.
6. New partitioning features - multiple operations on multiple partitions in a single DDL, move a partition ONLINE (no DBMS_REDEF!), and more...
7. Adaptive Execution Plans - allows multiple execution plans to co-exists for a single SQL and have the optimizer switch between plans in realtime.
8. Enhanced Statistics - new histograms for data skew, automatically computed statistics after direct loads and more...
9. Temporary UNDO - Store UNDO data generated for temporary tables inside the UNDO tablespace itself which allows for DataGuard and Flashback enhancements.
10. Data Optimisation and ILM - The database now "remembers" which blocks are read / written frequently ("heat map") and allows us to create policies based on block access.
11. Transaction Guard - Provide protection for sensitive transactions that are allowed to only happen once.
12. Pluggable Databases - The "Game changer" of Oracle 12c, perform database consolidation on a scale never done before.
This webinar is intended for Oracle developers and DBAs experienced with Oracle 11g but which are new to Oracle 12c and wish to learn more about Oracle's latest and greatest database version.
On version 12c Oracle introduced new features to allow Adaptive optimizations: Adaptive Plans and Adaptive Statistics. After a quick presentation of concepts, this session will explore the interaction of these features with other performance management techniques using examples, like SPM and SQL profiles. Attendees will get an updated picture of tools available to troubleshoot performance issues, and how to get the most of these new features.
New Features for Database Administrator of Oracle 12c Database. Here are some of excellent Oracle 12c new features with examples for learning purpose. SQL,Backup and recovery, Database management, Oracle RAC, Oracle ASM included.
This presentation explains all of the new features that are relevant for developers in Oracle 12c. It's been out for a couple of years, but many companies haven't updated to 12c. So, if you're looking to update soon, or are just interested in what the new features are, look at this presentation.
The full post is available at http://www.completeitprofessional.com/oracle-12c-new-features-for-developers
Geek Sync I Need for Speed: In-Memory Databases in Oracle and SQL ServerIDERA Software
You can watch the replay for this Geek Sync webcast in the IDERA Resource Center: http://ow.ly/S6MG50A5ok5
Microsoft introduced IN-MEMORY OLTP, widely referred to as “Hekaton” in SQL Server 2014. Hekaton allows for the creation of fully transactionally consistent memory-resident tables designed for high concurrency and no blocking. With SQL 2016, many of the original restrictions and limitations of this feature have been reduced. IDERA’s Vicky Harp will give an overview of this feature, including how to compile T-SQL code into machine code for an even greater performance boost.
There’s also been a lot of buzz about Oracle 12c’s new IN-MEMORY COLUMN STORE. Oracle ACE Bert Scalzo will cover this new feature, how it works, it’s benefits, scripts to measure/monitor it and more. He will also touch on performance observations from benchmarking this new feature against more traditional SGA memory allocations plus Oracle 11g R2’s Database Smart Flash Cache. All findings, scripts and conclusions from this exercise will be shared. In addition, two very popular database benchmarking tools will be highlighted.
New Features for Database Administrator of Oracle 12c Database. Here are some of excellent Oracle 12c new features with examples for learning purpose. SQL,Backup and recovery, Database management, Oracle RAC, Oracle ASM included.
This presentation explains all of the new features that are relevant for developers in Oracle 12c. It's been out for a couple of years, but many companies haven't updated to 12c. So, if you're looking to update soon, or are just interested in what the new features are, look at this presentation.
The full post is available at http://www.completeitprofessional.com/oracle-12c-new-features-for-developers
Geek Sync I Need for Speed: In-Memory Databases in Oracle and SQL ServerIDERA Software
You can watch the replay for this Geek Sync webcast in the IDERA Resource Center: http://ow.ly/S6MG50A5ok5
Microsoft introduced IN-MEMORY OLTP, widely referred to as “Hekaton” in SQL Server 2014. Hekaton allows for the creation of fully transactionally consistent memory-resident tables designed for high concurrency and no blocking. With SQL 2016, many of the original restrictions and limitations of this feature have been reduced. IDERA’s Vicky Harp will give an overview of this feature, including how to compile T-SQL code into machine code for an even greater performance boost.
There’s also been a lot of buzz about Oracle 12c’s new IN-MEMORY COLUMN STORE. Oracle ACE Bert Scalzo will cover this new feature, how it works, it’s benefits, scripts to measure/monitor it and more. He will also touch on performance observations from benchmarking this new feature against more traditional SGA memory allocations plus Oracle 11g R2’s Database Smart Flash Cache. All findings, scripts and conclusions from this exercise will be shared. In addition, two very popular database benchmarking tools will be highlighted.
LVOUG meetup #4 - Case Study 10g to 11gMaris Elsins
My presentation on a case study of 10g to 11g upgrade at LVOUG meetup #4 in 2012. Includes preserving execution plans by exporting them from 10g and importing as SQL Plan Baselines in 11gR2
Time is of the essence - The Fourth Dimension in Oracle Database 12c (on Flas...Lucas Jellema
Time has always been an important dimension for data in any database with topics like when was data created, when are records valid, how did records evolve over time, can we compare with yesteryear or even travel through time and data. The Oracle Database 12c release added a number of features in this area of time and history. The powerful Flashback mechanism is enhanced in many ways, such as to allow history to be constructed, for example from existing journaling tables and to capture the transaction context as well as the data change. Now for the first time, Flashback (Query & Data Archive) will become a key element in database design and application implementation.
The support for Valid Time Modeling (aka Temporal Database) makes the database aware of the fact that records have a business lifetime with start and expiry date. This awareness results in many new features that will be discussed and demonstrated.
Slides from the Singapore Oracle Sessions presentation on July 13th 2015, sponsored by the Oracle ACE Program and organized by Doug Burns.
AMIS organiseerde op maandagavond 15 juli het seminar ‘Oracle database 12c revealed’. Deze avond bood AMIS Oracle professionals de eerste mogelijkheid om de vernieuwingen in Oracle database 12c in actie te zien! De AMIS specialisten die meer dan een jaar bèta testen hebben uitgevoerd lieten zien wat er nieuw is en hoe we dat de komende jaren gaan inzetten!
Deze presentatie is deze avond gegeven in de vorm van een parallelsessie.
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsZohar Elkayam
Oracle Week 2017 slides.
Agenda:
Basics: How and What To Tune?
Using the Automatic Workload Repository (AWR)
Using AWR-Based Tools: ASH, ADDM
Real-Time Database Operation Monitoring (12c)
Identifying Problem SQL Statements
Using SQL Performance Analyzer
Tuning Memory (SGA and PGA)
Parallel Execution and Compression
Oracle Database 12c Performance New Features
DB12c: All You Need to Know About the Resource ManagerAndrejs Vorobjovs
Resource Manager has changed a lot in Oracle Database 12c, especially if Oracle Multitenant is used. It can manage the available resources between the consumer groups in a single PDB as well as among all the PDBs. DBAs who are planning the upgrades or consolidations to Oracle Database 12c need to understand how the new resource manager works and how the existing resource management plans need to be changed to make them work in the new Oracle Multitenant configuration.
This paper will explain the differences between 11g and 12c resource manager, will dig into resource management features and limitations in 12c Oracle Multitenant, will provide guidelines for migrating your current resource management plan to 12c at the time of upgrade or consolidation, and will also reveal how much overhead the resource manager introduces.
Antes de migrar de 10g a 11g o 12c, tome en cuenta las siguientes consideraciones. No es tan sencillo como simplemente cambiar de motor de base de datos, se necesita hacer consideraciones a nivel del aplicativo.
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
Search and Society: Reimagining Information Access for Radical FuturesBhaskar Mitra
The field of Information retrieval (IR) is currently undergoing a transformative shift, at least partly due to the emerging applications of generative AI to information access. In this talk, we will deliberate on the sociotechnical implications of generative AI for information access. We will argue that there is both a critical necessity and an exciting opportunity for the IR community to re-center our research agendas on societal needs while dismantling the artificial separation between the work on fairness, accountability, transparency, and ethics in IR and the rest of IR research. Instead of adopting a reactionary strategy of trying to mitigate potential social harms from emerging technologies, the community should aim to proactively set the research agenda for the kinds of systems we should build inspired by diverse explicitly stated sociotechnical imaginaries. The sociotechnical imaginaries that underpin the design and development of information access technologies needs to be explicitly articulated, and we need to develop theories of change in context of these diverse perspectives. Our guiding future imaginaries must be informed by other academic fields, such as democratic theory and critical theory, and should be co-developed with social science scholars, legal scholars, civil rights and social justice activists, and artists, among others.
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
UiPath Test Automation using UiPath Test Suite series, part 3DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 3. In this session, we will cover desktop automation along with UI automation.
Topics covered:
UI automation Introduction,
UI automation Sample
Desktop automation flow
Pradeep Chinnala, Senior Consultant Automation Developer @WonderBotz and UiPath MVP
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
UiPath Test Automation using UiPath Test Suite series, part 3
2009 Collaborate IOUG Presentation
1. Are You Using Flashback Yet?
Biju Thomas
OneNeck IT Services Corporation
http://www.oneneck.com (Booth 4364)
Session #330
2. About the Speaker
• Senior Database Administrator at OneNeck
IT Services Corporation (www.oneneck.com)
• More than 15 years of Oracle experience
• Author of OCA Oracle Database 11g Administrator
Certified Associate Study Guide published by Sybex
• Co-author of Oracle10g, Oracle9i & Oracle8i
Certification books published by Sybex
• Published articles in Oracle Magazine, Oracle
Internals and Select Journal
• Oracle 11g, 10g, 9i, 8i & 7.3
OCP Administrator
3. Introducing OneNeck
The ERP Outsourcing Experts
Provide a comprehensive, flexible suite of outsourcing
solutions designed specifically to help mid-market and
public sector organizations
• Supporting over 22,000 users at over 850 sites worldwide
• Primary data center/support center operations in Phoenix
and Houston
• Hosting and managing over 2000 databases
• 98% Contract Renewal Rate over 10 years
• 100% US based operations and staff
• 24x7x365 support center handling over 50,000 tickets
annually
• Oracle certified hosting partner
• Ranked #1 ERP Outsourcing Vendor by the Black Book of
Outsourcing three years in a row
• http://www.OneNeck.com
• Stop by booth 4364
4. Please remember to complete the
session evaluation form
Biju Thomas
Are you using Flashback yet?
Session # 330
5. Objectives
• Flashback Operations in Oracle Database
• What is Flash Recovery Area (FRA)?
• Configuring FRA
• Flashback Database
• Using & Maintaining FRA
• V$ Views for FRA and Flashback logs
7. Flashback Query
• Introduced in Oracle 9i R1
• Use DBMS_FLASHBACK package to enable
and disable flashback
• Must use Automatic Undo Management
• Only DML operations
• PL/SQL recognizes flashback
EXECUTE DBMS_FLASHBACK.ENABLE_AT_SYSTEM_CHANGE_NUMBER (n);
EXECUTE DBMS_FLASHBACK.ENABLE_AT_TIME (‘date_time‘);
EXECUTE DBMS_FLASHBACK.DISABLE;
8. Flashback Query #2
• Improvement in 9i R2
• AS OF TIMESTAMP and AS OF SCN clauses in query
• SYS user can use this clause
Examples:
INSERT INTO employees
SELECT * FROM employees as of timestamp
TO_TIMESTAMP('22-MAR-09 21:50', 'DD-MON-YY HH24:MI')
WHERE employee_id = 106;
EXP Parameter:
FLASHBACK_SCN=nnn
FLASHBACK_TIME="YYYY-MM-DD HH24:MI:SS" [9i fixed format]
FLASHBACK_TIME="TO_TIMESTAMP('31-MAR-09 12:00', 'DD-MON-YY
HH24:MI')" [specify format 10g onwards]
9. Flashback Query #3
• Example: Rows updated in EMPLOYEES table.
SELECT employee_id, first_name, last_name, salary
FROM employees AS OF TIMESTAMP
TO_TIMESTAMP('22-MAR-09 21:50', 'DD-MON-YY HH24:MI')
MINUS
SELECT employee_id, first_name, last_name, salary
FROM employees;
EMPLOYEE_ID FIRST_NAME LAST_NAME SALARY
----------- ------------- ---------------- ----------
103 Alexander Hunold 9000
106 Valli Pataballa 4800
10. Flashback Versions Query
• Introduced in Oracle 10g R1
• Shows all changes between a timeframe
VERSIONS BETWEEN [TIMESTAMP/SCN] .. AND ..
• Upper/Lower bound may be replaced with
MINVALUE and MAXVALUE to retrieve all
available data
• VERSIONS_ pseudo columns available –
STARTTIME, STARTSCN, ENDTIME,
ENDSCN, XID, OPERATION
11. Flashback Versions Query #2
• Example:
SELECT last_name, versions_starttime,
versions_endtime, versions_operation
FROM employees VERSIONS BETWEEN TIMESTAMP minvalue AND maxvalue
WHERE employee_id = 106
ORDER BY versions_starttime NULLS FIRST;
LAST_NAME VERSIONS_STARTTIME VERSIONS_ENDTIME V
------------- ---------------------- ---------------------- -
Pataballa 22-MAR-09 09.54.57 PM
Rojashin 22-MAR-09 09.54.57 PM 22-MAR-09 10.07.06 PM U
Hussaina 22-MAR-09 10.07.06 PM 22-MAR-09 10.14.04 PM U
Hussaina 22-MAR-09 10.14.04 PM D
Pataballa 22-MAR-09 10.17.21 PM I
12. Flashback Transaction Query
FLASHBACK_TRANSACTION_QUERY
• Introduced in Oracle 10g R1
XID
• Enterprise Edition only START_SCN
• Changes made to data at a START_TIMESTAMP
transaction level COMMIT_SCN
COMMIT_TIMESTAMP
• No need to use LogMiner LOGON_USER
• Reconstruct SQL to undo UNDO_CHANGE#
changes OPERATION
TABLE_NAME
• Need FLASHBACK ANY
TABLE_OWNER
TRANSACTON system privilege
ROW_ID
to query view UNDO_SQL
FLASHBACK_TRANSACTION_
QUERY
13. Flashback Transaction Query #2
SELECT operation, start_timestamp, undo_sql
FROM flashback_transaction_query
WHERE table_name = 'EMPLOYEES'
AND table_owner = 'HR';
OPERATION START_TIMESTAMP
UNDO_SQL
------------------------------------------------------
UPDATE 22-MAR-09 21:53:21
update "HR"."EMPLOYEES" set "FIRST_NAME" = 'Alexander', "SALARY" = '9000'
where ROWID = 'AAARAIAAFAAAABXAAD';
DELETE 22-MAR-09 22:14:04
insert into "HR"."EMPLOYEES“ ("EMPLOYEE_ID", "FIRST_NAME", "LAST_NAME“
,"EMAIL", "PHONE_NUMBER", "HIRE_DATE", "JOB_ID", "SALARY",
"COMMISSION_PCT", "MANAGER_ID", "DEPARTMENT_ID") values ('106', 'Valli',
'Hussaina', 'VPATABAL', '590.423.4560',TO_DATE('05-FEB-98 00:00:00', 'DD-
MON-YY HH24:MI:SS'),'IT_PROG','4800',NULL,'103','60');
INSERT 22-MAR-09 22:17:13
delete from "HR"."EMPLOYEES" where ROWID = 'AAARAIAAFAAAABYAAJ';
14. Flashback Table (Drop)
• Introduced in Oracle 10g R1 (EE)
• Recover a dropped table (does not use UNDO)
DROP TABLE job_history;
Table dropped.
SHOW RECYCLEBIN
ORIGINAL NAME RECYCLEBIN NAME OBJECT TYPE DROP TIME
-------------- ------------------------------ ------------ -------------------
JOB_HISTORY BIN$ZcGwtQ/sKCbgQAB/AQBl2g==$0 TABLE 2009-03-22:23:27:54
FLASHBACK TABLE job_history TO BEFORE DROP;
Flashback complete.
• Option to rename table
FLASHBACK TABLE jobs TO BEFORE DROP RENAME TO jobs_march;
15. Flashback Drop #2
• Recycle bin automatically cleared when
tablespace is under “space pressure”
• Options for manually clearing space:
PURGE TABLE <name> PURGE RECYCLEBIN
PURGE INDEX <name> PURGE DBA_RECYCLEBIN
PURGE TABLESPACE <name> DROP TABLE <name> PURGE
PURGE TABLESPACE <name>
USER <name>
• To disable recyclebin:
– 10gR1: _recyclebin parameter
– 10gR2+: recyclebin parameter
16. Flashback Table #3
• Reinstate table to a previous state using
TIMESTAMP or SCN (uses UNDO)
• ROW MOVEMENT should be enabled.
ALTER TABLE employees ENABLE ROW MOVEMENT;
Table altered.
FLASHBACK TABLE employees TO TIMESTAMP
TO_TIMESTAMP('22-MAR-09 21:50', 'DD-MON-YY HH24:MI');
Flashback complete.
17. Flashback Database
• Introduced in Oracle 10g R1 (EE)
• Quickly rewind a database to fix any issues
• Similar to point-in-time recovery, but much
faster
• Uses flashback logs, a before image of
changed blocks
• Flashback logs saved in Flash Recovery Area
(FRA)
• 10g R2 introduced restore points and the
ability to flashback through RESETLOGS
18. Flashback Transaction
• Introduced in Oracle 11g R1 (EE)
• Use to undo changes made by transaction
• Uses UNDO and redo logs (archive logs too)
• Requires supplemental logging of primary key
ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (PRIMARY KEY) COLUMNS;
• Enterprise Manager or PL/SQL interface
– Under “Availability” tab, click “View and Manage
Transactions”
– DBMS_FLASHBACK.TRANSACTION_BACKOUT
procedure
19.
20. Flashback Data Archive
• Introduced in Oracle 11g R1 (EE)
• Total Recall Option – separate license.
• Automatically track and maintain changes to data in
an application transparent and secure manner.
• Uses AS OF construct in SQL.
• Historical data can be kept for any specified duration
– not dependent on undo or flashback log data.
• RETENTION specified in the data archive.
• New background process “fbda” captures historic
information in a non-intrusive manner.
• New record added to history table only for update &
delete statements.
21. Settings for Undo Flashback
• Enabling automatic Undo
– UNDO_MANAGEMENT = AUTO
• Parameters controlling amount of undo retained:
– UNDO_RETENTION
• Guaranteed retention option available
– ALTER TABLESPACE <undots> RETENTION
GUARANTEE
• Flashback Operations using Undo
– FB Query, FB Versions Query, FB Transaction, FB
Transaction Query, FB Table
23. Flash Recovery Area
• Area of disk location where recovery related
files are stored
• Managed via Oracle Managed Files
• Free space automatically managed by
Oracle, obsolete files under current retention
policies are deleted when space needed.
• Can act as a disk cache for backup files
before writing to tape
• Flashback logs required to use the Flashback
database feature are created only in FRA
24. Flash Recovery Area #2
• Need to specify the disk quota.
• Preferable to be on a different disk where
database files are not stored.
• Permanent and transient files can be stored –
permanent files are copies of redo logs and
control file.
• FRA can be on ASM disk
• Oracle server alerts monitors the reclaimable
space in FRA
25. Configuring FRA
• DB_RECOVERY_FILE_DEST_SIZE
– Specify the maximum space allocated for FRA
• DB_RECOVERY_FILE_DEST
– Location of the FRA
• For RAC databases, all instances must have
same values
• DB_FLASHBACK_RETENTION_TARGET
– Specify in minutes how much flashback log
information should be retained – Default 1440.
26. FRA Contents
• Permanent Files
– Copy of control file
– Copy of redo log files
• Transient Files
– Archive log files
– Flashback logs
– RMAN control file and spfile autobackup
– RMAN image copies & backup sets
Example File Name:
/u05/flash_recovery_area/11GR11/backupset/2009_03_26/o1_mf_
annnn_TAG20090326T004654_4wp5rntg_.bkp
27. Sizing FRA
• Bigger the FRA, more useful it becomes
• Recommendation: DB Size + Incr backups +
archive logs + flashback logs
• Flashback logs generated are approximately
similar in size to redo logs generated.
• If there is not enough free space in FRA,
flashback logs are deleted to make room.
29. Configuring Flashback
• Enable flashback on the database in mount
state.
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
ALTER DATABASE FLASHBACK ON;
ALTER DATABASE OPEN;
• Flashback logs will be written to FRA, and
oldest logs deleted when FRA becomes full.
• Database must be in ARCHIVELOG mode.
30. Flashback a Database
• To flashback a database is similar to
performing a point-in-time recovery
• RESETLOGS required to open database.
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
FLASHBACK DATABASE TO [BEFORE] [SCN | TIME |
SEQUENCE ] = value;
ALTER DATABASE OPEN RESETLOGS;
• Archive logs may be used to fill-in the gaps
31. Using Restorepoints
• Introduced in Oracle 10g R2
• Very useful when performing planned
maintenance
• Option to guarantee flashback
CREATE RESTORE POINT before_patch;
CREATE RESTORE POINT before_patch GUARANTEE
FLASHBACK DATABASE;
FLASHBACK DATABASE TO RESTORE POINT before_patch;
DROP RESTORE POINT before_patch;
32. Using Flashback for DR Testing
• Setup FRA and enable flashback logs in the standby
database
• Create a restore point to go back to
• Disable log transport to standby database from primary
• Activate the standby database and open database.
• When testing is completed, revert back to the restore
point using FLASHBACK DATABASE.
• Convert the database to physical standby again
• Catch up the standby database to primary database
• Enable log transport from primary
33. Standby Redo-apply Delay`
• Oracle provides time delay in applying the
archivelogs to the standby database to delay the
propagation of errors and corruption to standby
database.
• By having flashback logging on the standby
database, you can always flashback the standby
database, thus eliminate using time-delay.
• You can flashback and open the standby database,
get the rows/tables that were messed up and put the
standby database back in recovery mode.
• This helps to avoid outage to primary database for
non-critical data recovery.
35. Automated RMAN Backups
• When no FORMAT clause is specified for
RMAN backups, they go into FRA.
• Automatic controlfile and spfile backups may
be configured to go to FRA.
• Consider keeping image copies in FRA, with
incrementally updated backups (and with
optional rolling window)
RUN
{ RECOVER COPY OF DATABASE WITH TAG 'daily_incr'
UNTIL TIME 'SYSDATE - 3';
BACKUP INCREMENTAL LEVEL 1 FOR RECOVER OF COPY WITH TAG
'daily_incr' DATABASE;
}
36. RMAN FORMAT Clause
• If you perform RMAN disk backups with the
FORMAT clause specifying the FRA location,
they are not managed by Oracle and not
considered for FRA cleanup and FRA space
management algorithm.
• So, to backup to FRA, do not specify the
FORMAT clause, the default location is the
FRA for RMAN backups when FRA is
configured.
RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK CLEAR;
37. Backing up FRA
• FRA can be backed up only using RMAN
RUN {
ALLOCATE CHANNEL CH01T TYPE sbt_tape;
BACKUP RECOVERY AREA;
}
• Flashback logs, the current control file, and
online redo logs are not backed up.
• This statement can only back up to a tape
device, disk is not supported.
38. Using LOG_ARCHIVE_DEST_n
• If you explicitly specify the FRA location in the
LOG_ARCHIVE_DEST_n parameter, the
archive logs are not considered in the FRA
space management algorithm and they are
not backed up when you specify the BACKUP
RECOVERY AREA command.
• The correct specification is
log_archive_dest_n=
'LOCATION= USE_DB_RECOVERY_FILE_DEST'
39. FRA Full Errors
• Once the Flash Recovery Area is full, Oracle
automatically deletes eligible files to reclaim space in
the Flash Recovery Area as needed.
• Oracle may delete flashback logs from the earliest
SCNs to make room for other files.
• Alert log errors:
ORA-19809: limit exceeded for recovery files
ORA-19804: cannot reclaim <nnnnn> bytes disk
space from <mmmmm> limit
ORA-19815: WARNING: db_recovery_file_dest_size of
<size of FRA configured> bytes is 100.00% used,
and has 0 remaining bytes available.
40. Resolving Full FRA
• Make more space available by adjusting
DB_RECOVERY_FILE_DEST_SIZE.
• Backup the contents of the Flash Recovery
Area to a tertiary device such as tape.
• Change backup retention policy.
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW
OF 7 DAYS;
• Change archive log deletion policy.
CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED
UP 1 TIMES TO SBT;
42. Backups/Logs Using FRA
• Find out if backups and archive logs are part
of the FRA algorithm
– IS_RECOVERY_DEST_FILE column in
V$BACKUP_PIECE
– IS_RECOVERY_DEST_FILE column in
V$ARCHIVED_LOG
43. V$RECOVERY_FILE_DEST
• Find out the current location, disk quota, space in
use, space reclaimable by deleting files, and total
number of files in the Flash Recovery Area.
SQL> select * from v$recovery_file_dest;
NAME
SPACE_LIMIT SPACE_USED SPACE_RECLAIMABLE NUMBER_OF_FILES
------------ ------------ ----------------- --------------
/u01/app/oracle/flash_recovery_area
15728640000 9448377344 10272768 213
44. V$FLASH_RECOVERY_AREA_USAGE
• Find out the percentage of the total disk quota used by different
types of files. Determine how much space for each type of file can
be reclaimed by deleting files that are obsolete, redundant, or
already backed up to tape.
SQL> SELECT FILE_TYPE, PERCENT_SPACE_USED USED, PERCENT_SPACE_RECLAIMABLE RECLAIM,
NUMBER_OF_FILES FILES FROM V$FLASH_RECOVERY_AREA_USAGE;
FILE_TYPE USED RECLAIM FILES
-------------------- ---------- ---------- ----------
CONTROL FILE 0 0 0
REDO LOG 0 0 0
ARCHIVED LOG 61.66 51.2 216
BACKUP PIECE 19.07 9.7 31
IMAGE COPY 4.93 .4 8
FLASHBACK LOG 1.24 0 9
FOREIGN ARCHIVED LOG 0 0 0
45. V$FLASHBACK_DATABASE_LOG
• Estimate how far back you can rollback the
database using flashback logs, and estimated
size based on retention target.
SQL> select * from v$flashback_database_log;
OLDEST_FLASHBACK_SCN OLDEST_FL RETENTION_TARGET FLASHBACK_SIZE
-------------------- --------- ---------------- --------------
ESTIMATED_FLASHBACK_SIZE
------------------------
8257936 25-MAR-09 1440 194478080
4303306752
46. Items Learned in this Session
• Flashback Operations
– Think of flashback before saying “no” or getting
ready to recover
• Flash Recovery Area
– It’s worth even if you use it just for flashback logs
– Do not specify FORMAT clause for RMAN or
directory name for archive log destination
• Flashback Database
– Good for critical patching activities, migrations
– Use restorepoints
48. Thank You…
• Please complete the session evaluation form
– Biju Thomas
– Are you using Flashback yet?
– Session # 330
• Further questions, comments…
– Stop by Booth # 4364
– WWW.ONENECK.COM