It was introduced in Oracle 8.0 in 1997 and since then Oracle Partitioning is mandatory for a big number Oracle Database architectures and implementations to ensure that high availabity or multi-terabyte systems keep the performance requirements.
This talk will demonstrate the improvements made in Oracle Partition on 12c from new interval reference partitions to partial partitioned and global async global indexes and how the today's critical Oracle databases that still run on 11g can revamp on this set of features.
Topic Objective: This topic is about Oracle Partition, the most used and most important paid option of Oracle Database. Learning how 12c improved it is vital for any Oracle DBA. Using this new set of new features can reduce your downtime, save DBA time and reduce the number of DBA "workarounds" to deal with specific situations when current 11g set of partition features is limited.
This document discusses partitioning tables and indexing them in Oracle databases. It covers the different types of partitioning including range, list, hash, and composite partitioning. It provides examples of creating partitioned tables and indexes. It also discusses strategies for maintaining partitioned tables, including adding, dropping, splitting, merging and exchanging partitions. It recommends different partitioning and indexing approaches for optimizing query performance and archiving old data.
Partitioning Tables and Indexing Them --- ArticleHemant K Chitale
This is the Article (White Paper) that accompanied my Presentation "Partitioning Tables and Indexing Them" (which, too, is on slideshare) for AIOUG Sangam 11
Oracle allocates logical space (tablespaces) to store database objects and data. Tablespaces contain segments which are made up of extents and data blocks. The document discusses different types of tablespace partitioning including range, list and hash partitioning. It provides examples of creating partitions based on numeric, alphabetic and date ranges and manipulating partitions using ALTER TABLE operations like ADD, DROP, RENAME and MERGE.
This document provides an overview of Oracle SQL and its key components. It covers data types, SQL statements including DDL, DML, DQL, DCL, TCL, and system control statements. It also discusses constraints, joins, set operators, clauses, expressions and operators, functions, subqueries, views, indexes, and other Oracle-specific components like sequences, synonyms, and database links. Examples are provided for many SQL statements. The document is intended as a reference for the Oracle 11g SQL exam.
This document provides information about an upcoming SQL Saturday Night event on March 30, 2013 that will focus on using T-SQL. The presentation will be recorded so that those unable to attend can view it later. Attendees are asked to change their virtual cards to a specific color if they are unable to hear the presenter. The presentation will be free and begin in 1 minute.
The document provides instructions on how to create tables, insert data, and write queries for a database with tables for students, library memberships, books, and book issue records. It includes examples of creating the tables with primary and foreign keys, inserting sample data, and queries to list student names and issued books, count books issued per student, and create views of issue records and daily issues.
1. The document provides information on database concepts like the system development life cycle, data modeling, relational database management systems, and creating and managing database tables in Oracle.
2. It discusses how to create tables, add, modify and delete columns, add comments, define constraints, create views, and perform data manipulation operations like insert, update, delete in Oracle.
3. Examples are provided for SQL statements like CREATE TABLE, ALTER TABLE, DROP TABLE, CREATE VIEW, INSERT, UPDATE, DELETE.
This document discusses partitioning tables and indexing them in Oracle databases. It covers the different types of partitioning including range, list, hash, and composite partitioning. It provides examples of creating partitioned tables and indexes. It also discusses strategies for maintaining partitioned tables, including adding, dropping, splitting, merging and exchanging partitions. It recommends different partitioning and indexing approaches for optimizing query performance and archiving old data.
Partitioning Tables and Indexing Them --- ArticleHemant K Chitale
This is the Article (White Paper) that accompanied my Presentation "Partitioning Tables and Indexing Them" (which, too, is on slideshare) for AIOUG Sangam 11
Oracle allocates logical space (tablespaces) to store database objects and data. Tablespaces contain segments which are made up of extents and data blocks. The document discusses different types of tablespace partitioning including range, list and hash partitioning. It provides examples of creating partitions based on numeric, alphabetic and date ranges and manipulating partitions using ALTER TABLE operations like ADD, DROP, RENAME and MERGE.
This document provides an overview of Oracle SQL and its key components. It covers data types, SQL statements including DDL, DML, DQL, DCL, TCL, and system control statements. It also discusses constraints, joins, set operators, clauses, expressions and operators, functions, subqueries, views, indexes, and other Oracle-specific components like sequences, synonyms, and database links. Examples are provided for many SQL statements. The document is intended as a reference for the Oracle 11g SQL exam.
This document provides information about an upcoming SQL Saturday Night event on March 30, 2013 that will focus on using T-SQL. The presentation will be recorded so that those unable to attend can view it later. Attendees are asked to change their virtual cards to a specific color if they are unable to hear the presenter. The presentation will be free and begin in 1 minute.
The document provides instructions on how to create tables, insert data, and write queries for a database with tables for students, library memberships, books, and book issue records. It includes examples of creating the tables with primary and foreign keys, inserting sample data, and queries to list student names and issued books, count books issued per student, and create views of issue records and daily issues.
1. The document provides information on database concepts like the system development life cycle, data modeling, relational database management systems, and creating and managing database tables in Oracle.
2. It discusses how to create tables, add, modify and delete columns, add comments, define constraints, create views, and perform data manipulation operations like insert, update, delete in Oracle.
3. Examples are provided for SQL statements like CREATE TABLE, ALTER TABLE, DROP TABLE, CREATE VIEW, INSERT, UPDATE, DELETE.
Table partitioning allows large tables to be split across multiple filegroups to improve performance. A partition function defines the data ranges and a partition scheme maps those ranges to filegroups. Tables, indexes, and views can then be created on partition schemes. The SWITCH operator can move partitions between filegroups with minimal locking to archive old data or distribute it across storage.
Oracle database is a relational database management system. The CREATE TABLE statement is used to create new tables with column names and data types. The ALTER TABLE statement modifies existing table structures by adding, dropping or modifying columns.
The document provides an introduction to MySQL and relational database management systems. It discusses what a database and RDBMS are, common RDBMS terminology like tables, columns, rows, keys, and indexes. It also covers how to install and use MySQL, including creating databases and tables, and performing basic CRUD (create, read, update, delete) operations using SQL statements. The document is aimed at getting readers started with the MySQL database system.
The document discusses how to create a database and tables in SQL using DDL statements like CREATE, DROP, and ALTER. It explains that CREATE is used to define new database objects, DROP removes objects, and ALTER modifies objects. Specific examples show how to create a database called ABCCO, and tables like Persons with columns for ID, name, city. It also covers defining primary keys, foreign keys, default and null values when creating tables.
The document discusses database views in MySQL. It provides information on creating views using the CREATE VIEW and CREATE OR REPLACE VIEW statements. Views allow simplifying complex queries, limiting data access, and providing extra security. Performance can be impacted when querying views defined on other views. Views also introduce dependency on the underlying tables. Stored procedures in MySQL are also discussed, including their advantages like increased performance and security, and disadvantages like increased memory usage. Triggers are described as stored programs that execute automatically in response to data changes and can be used for auditing and validation. Examples are provided on creating a trigger for auditing table updates and accessing MySQL from Excel.
SQL is a language used to store, retrieve, and manage data in relational database management systems. It contains commands like SELECT, INSERT, UPDATE, DELETE to query and manipulate data. SQL also allows functions, operators, transactions, and other capabilities to ensure data integrity and security. Integrity constraints like primary keys and foreign keys help maintain relational integrity between tables.
This document provides information about SQL and database management systems. It discusses:
- SQL is a standard language for querying, manipulating, and defining data in databases. It was developed by IBM in the 1970s.
- SQL can be used to perform functions like retrieving data from a database, inserting new records, updating existing records, and deleting records.
- The main components of SQL are DDL, DML, DCL, and DQL which allow creating, modifying and deleting database structures, manipulating data, controlling access to data, and querying data respectively.
- Common SQL statements are discussed including SELECT, INSERT, UPDATE, DELETE, ALTER, CREATE TABLE, and DROP TABLE. Data types and
This presentation deals with the advanced features of SQL comprising of Arithmetic Calculations, Analytical Function, PIVOT etc. Presented by Alphalogic Inc: https://www.alphalogicinc.com/
This document provides an overview of working with multiple tables in SQL, including topics like joins, aliases, inner joins, outer joins, and joining more than two tables. It discusses how joins interact with the relational database structure and ERD diagrams. It provides examples of different join types and how they handle discrepancies in the data. It also covers adding calculations to queries using functions like COUNT and aggregate functions. The document uses the sample sTunes database to demonstrate various SQL queries and joins.
This document provides an overview and introduction to Oracle SQL basics. It covers topics such as installing Oracle software like the database, Java SDK, and SQL Developer tool. It then discusses database concepts like what a database and table are. It also covers database fundamentals including SQL queries, functions, joins, constraints, views and other database objects. The document provides examples and explanations of SQL statements and database components.
This document provides an introduction to SQL (Structured Query Language) for manipulating and working with data. It covers SQL fundamentals including defining a database using DDL, working with views, writing queries, and establishing referential integrity. It also discusses SQL data types, database definition, creating tables and views, and key SQL statements for data manipulation including SELECT, INSERT, UPDATE, and DELETE. Examples are provided for creating tables and views, inserting, updating, and deleting data, and writing queries using functions, operators, sorting, grouping, and filtering.
This document provides an introduction to PL/SQL, including what PL/SQL is, why it is used, its basic structure and components like blocks, variables, and types. It also covers key PL/SQL concepts like conditions, loops, cursors, stored procedures, functions, and triggers. Examples are provided to illustrate how to write and execute basic PL/SQL code blocks, programs with variables, and stored programs that incorporate cursors, exceptions, and other features.
Oracle Data Redaction allows protecting data shown to users in real time without changing applications. It applies redaction at query execution through policies that define which data to redact for which users. Redaction occurs just before returning results and does not alter stored data. Methods include full, partial, random redaction. It introduces minimal overhead but does not prevent privileged users like DBAs from accessing raw data.
SQL language includes four primary statement types: DML, DDL, DCL, and TCL. DML statements manipulate data within tables using operations like SELECT, INSERT, UPDATE, and DELETE. DDL statements define and modify database schema using commands like CREATE, ALTER, and DROP. DCL statements control user access privileges with GRANT and REVOKE. TCL statements manage transactions with COMMIT, ROLLBACK, and SAVEPOINT to maintain data integrity.
The document is an introduction to SQL that covers the basic SQL statements and concepts. It defines SQL and its uses, including retrieving, inserting, updating, and deleting data from databases. It also covers key SQL statements like SELECT, WHERE, ORDER BY, JOIN, and aggregate functions. The document provides syntax examples for each SQL statement and concept discussed.
The document discusses database management in an internet environment. It describes how businesses use the internet for e-commerce and interactions with customers and suppliers. It also defines common web technologies like HTML, URLs, browsers, web servers and how they enable dynamic web pages and interactions with databases through scripts, APIs and middleware. Specific examples are provided of Active Server Pages code that queries a database and dynamically generates web page content. The document concludes with a discussion of managing website data and security considerations to prevent unauthorized access.
DB2 is a multi-platform database server that can scale from laptops to large systems handling terabytes of data. It provides tools for extending capabilities to support multimedia, is fully integrated for web access, and supports universal access and multiple platforms. The tutorial covered key DB2 concepts like instances, schemas, tables, and indexes. It demonstrated how to use Control Center and other GUIs to perform tasks like creating databases and tables, querying data, and setting user privileges. Java applications can also access DB2 data through JDBC.
The document summarizes Oracle's partitioning capabilities in Oracle Database 11g Release 2. It discusses the benefits of partitioning such as improved performance, manageability and availability. It describes the basic concepts of partitioning including different partitioning strategies and index types. New features in 11g like interval partitioning, reference partitioning and virtual column-based partitioning are introduced to provide more flexibility and manageability.
The document discusses views in SQL. It defines views as logical tables that represent data from one or more underlying tables. Views can be queried, updated, and deleted from like tables but do not occupy storage space. The document describes simple views based on a single table and complex views involving joins across multiple tables. It provides examples of creating, modifying, dropping, and querying views. The document also discusses indexes in SQL, describing them as pointers that speed up data retrieval. It covers B-tree and bitmap indexes and provides examples of creating indexes on tables.
With the introduction of SQL Server 2012 data developers have new ways to interact with their databases. This session will review the powerful new analytic windows functions, new ways to generate numeric sequences and new ways to page the results of our queries. Other features that will be discussed are improvements in error handling and new parsing and concatenating features.
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
This document contains a summary of an Oracle DBA presentation on DBA commands and concepts that every developer should know. The presentation covered topics such as parallel queries, row chaining, explain plans, flashback queries, pending statistics, bulk processing, virtual private databases, extended data types, identity columns, and online table redefinition. It provided examples and demonstrations of many of these commands and concepts.
How to find and fix your Oracle-based application performance problemCary Millsap
This session was presented 2016-01-28 at Dallas Oracle User's Group January meeting.
How long does your code take to run? Is it changing? When it is slow, WHY is it slow? Is it your fault, or somebody else's? Can you prove it? How much faster could your code be? Do you know how to measure the performance of your code as user workloads and data volumes increase? These are fundamental questions about performance, but the vast majority of Oracle application developers can't answer them. The most popular performance tools available to them—and to the database administrators that run their code in production—are incapable of answering any of these questions. But the Oracle Database can give you exactly what you need to answer these questions and many more. You can know exactly where YOUR CODE is spending YOUR TIME. This session explains how.
Table partitioning allows large tables to be split across multiple filegroups to improve performance. A partition function defines the data ranges and a partition scheme maps those ranges to filegroups. Tables, indexes, and views can then be created on partition schemes. The SWITCH operator can move partitions between filegroups with minimal locking to archive old data or distribute it across storage.
Oracle database is a relational database management system. The CREATE TABLE statement is used to create new tables with column names and data types. The ALTER TABLE statement modifies existing table structures by adding, dropping or modifying columns.
The document provides an introduction to MySQL and relational database management systems. It discusses what a database and RDBMS are, common RDBMS terminology like tables, columns, rows, keys, and indexes. It also covers how to install and use MySQL, including creating databases and tables, and performing basic CRUD (create, read, update, delete) operations using SQL statements. The document is aimed at getting readers started with the MySQL database system.
The document discusses how to create a database and tables in SQL using DDL statements like CREATE, DROP, and ALTER. It explains that CREATE is used to define new database objects, DROP removes objects, and ALTER modifies objects. Specific examples show how to create a database called ABCCO, and tables like Persons with columns for ID, name, city. It also covers defining primary keys, foreign keys, default and null values when creating tables.
The document discusses database views in MySQL. It provides information on creating views using the CREATE VIEW and CREATE OR REPLACE VIEW statements. Views allow simplifying complex queries, limiting data access, and providing extra security. Performance can be impacted when querying views defined on other views. Views also introduce dependency on the underlying tables. Stored procedures in MySQL are also discussed, including their advantages like increased performance and security, and disadvantages like increased memory usage. Triggers are described as stored programs that execute automatically in response to data changes and can be used for auditing and validation. Examples are provided on creating a trigger for auditing table updates and accessing MySQL from Excel.
SQL is a language used to store, retrieve, and manage data in relational database management systems. It contains commands like SELECT, INSERT, UPDATE, DELETE to query and manipulate data. SQL also allows functions, operators, transactions, and other capabilities to ensure data integrity and security. Integrity constraints like primary keys and foreign keys help maintain relational integrity between tables.
This document provides information about SQL and database management systems. It discusses:
- SQL is a standard language for querying, manipulating, and defining data in databases. It was developed by IBM in the 1970s.
- SQL can be used to perform functions like retrieving data from a database, inserting new records, updating existing records, and deleting records.
- The main components of SQL are DDL, DML, DCL, and DQL which allow creating, modifying and deleting database structures, manipulating data, controlling access to data, and querying data respectively.
- Common SQL statements are discussed including SELECT, INSERT, UPDATE, DELETE, ALTER, CREATE TABLE, and DROP TABLE. Data types and
This presentation deals with the advanced features of SQL comprising of Arithmetic Calculations, Analytical Function, PIVOT etc. Presented by Alphalogic Inc: https://www.alphalogicinc.com/
This document provides an overview of working with multiple tables in SQL, including topics like joins, aliases, inner joins, outer joins, and joining more than two tables. It discusses how joins interact with the relational database structure and ERD diagrams. It provides examples of different join types and how they handle discrepancies in the data. It also covers adding calculations to queries using functions like COUNT and aggregate functions. The document uses the sample sTunes database to demonstrate various SQL queries and joins.
This document provides an overview and introduction to Oracle SQL basics. It covers topics such as installing Oracle software like the database, Java SDK, and SQL Developer tool. It then discusses database concepts like what a database and table are. It also covers database fundamentals including SQL queries, functions, joins, constraints, views and other database objects. The document provides examples and explanations of SQL statements and database components.
This document provides an introduction to SQL (Structured Query Language) for manipulating and working with data. It covers SQL fundamentals including defining a database using DDL, working with views, writing queries, and establishing referential integrity. It also discusses SQL data types, database definition, creating tables and views, and key SQL statements for data manipulation including SELECT, INSERT, UPDATE, and DELETE. Examples are provided for creating tables and views, inserting, updating, and deleting data, and writing queries using functions, operators, sorting, grouping, and filtering.
This document provides an introduction to PL/SQL, including what PL/SQL is, why it is used, its basic structure and components like blocks, variables, and types. It also covers key PL/SQL concepts like conditions, loops, cursors, stored procedures, functions, and triggers. Examples are provided to illustrate how to write and execute basic PL/SQL code blocks, programs with variables, and stored programs that incorporate cursors, exceptions, and other features.
Oracle Data Redaction allows protecting data shown to users in real time without changing applications. It applies redaction at query execution through policies that define which data to redact for which users. Redaction occurs just before returning results and does not alter stored data. Methods include full, partial, random redaction. It introduces minimal overhead but does not prevent privileged users like DBAs from accessing raw data.
SQL language includes four primary statement types: DML, DDL, DCL, and TCL. DML statements manipulate data within tables using operations like SELECT, INSERT, UPDATE, and DELETE. DDL statements define and modify database schema using commands like CREATE, ALTER, and DROP. DCL statements control user access privileges with GRANT and REVOKE. TCL statements manage transactions with COMMIT, ROLLBACK, and SAVEPOINT to maintain data integrity.
The document is an introduction to SQL that covers the basic SQL statements and concepts. It defines SQL and its uses, including retrieving, inserting, updating, and deleting data from databases. It also covers key SQL statements like SELECT, WHERE, ORDER BY, JOIN, and aggregate functions. The document provides syntax examples for each SQL statement and concept discussed.
The document discusses database management in an internet environment. It describes how businesses use the internet for e-commerce and interactions with customers and suppliers. It also defines common web technologies like HTML, URLs, browsers, web servers and how they enable dynamic web pages and interactions with databases through scripts, APIs and middleware. Specific examples are provided of Active Server Pages code that queries a database and dynamically generates web page content. The document concludes with a discussion of managing website data and security considerations to prevent unauthorized access.
DB2 is a multi-platform database server that can scale from laptops to large systems handling terabytes of data. It provides tools for extending capabilities to support multimedia, is fully integrated for web access, and supports universal access and multiple platforms. The tutorial covered key DB2 concepts like instances, schemas, tables, and indexes. It demonstrated how to use Control Center and other GUIs to perform tasks like creating databases and tables, querying data, and setting user privileges. Java applications can also access DB2 data through JDBC.
The document summarizes Oracle's partitioning capabilities in Oracle Database 11g Release 2. It discusses the benefits of partitioning such as improved performance, manageability and availability. It describes the basic concepts of partitioning including different partitioning strategies and index types. New features in 11g like interval partitioning, reference partitioning and virtual column-based partitioning are introduced to provide more flexibility and manageability.
The document discusses views in SQL. It defines views as logical tables that represent data from one or more underlying tables. Views can be queried, updated, and deleted from like tables but do not occupy storage space. The document describes simple views based on a single table and complex views involving joins across multiple tables. It provides examples of creating, modifying, dropping, and querying views. The document also discusses indexes in SQL, describing them as pointers that speed up data retrieval. It covers B-tree and bitmap indexes and provides examples of creating indexes on tables.
With the introduction of SQL Server 2012 data developers have new ways to interact with their databases. This session will review the powerful new analytic windows functions, new ways to generate numeric sequences and new ways to page the results of our queries. Other features that will be discussed are improvements in error handling and new parsing and concatenating features.
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
This document contains a summary of an Oracle DBA presentation on DBA commands and concepts that every developer should know. The presentation covered topics such as parallel queries, row chaining, explain plans, flashback queries, pending statistics, bulk processing, virtual private databases, extended data types, identity columns, and online table redefinition. It provided examples and demonstrations of many of these commands and concepts.
How to find and fix your Oracle-based application performance problemCary Millsap
This session was presented 2016-01-28 at Dallas Oracle User's Group January meeting.
How long does your code take to run? Is it changing? When it is slow, WHY is it slow? Is it your fault, or somebody else's? Can you prove it? How much faster could your code be? Do you know how to measure the performance of your code as user workloads and data volumes increase? These are fundamental questions about performance, but the vast majority of Oracle application developers can't answer them. The most popular performance tools available to them—and to the database administrators that run their code in production—are incapable of answering any of these questions. But the Oracle Database can give you exactly what you need to answer these questions and many more. You can know exactly where YOUR CODE is spending YOUR TIME. This session explains how.
The document describes different types of partitioning that can be used when creating tables in Oracle including range, list, hash, range-hash, range-list, index organized tables, and clustered tables. Examples are provided for each type of partitioning that show the SQL syntax for creating tables using that partitioning method.
Oracle OEM 12C : monitoring nouvelle génération - Pierre Sicot - dbi servicesdbi services
La dernière version d'Oracle Enterprise Manager (OEM) 12c est l'outil de monitoring de tous les superlatifs selon Oracle. OEM 12c est présenté comme pouvant améliorer jusqu'à 90% la disponibilité des services, augmenter de près de 75% la productivité des DBAs et réduire de plus de 20% les dépenses sur les serveurs. Découvrez les nouvelles fonctionnalités et comment les utiliser de manière efficace.
Table Partitioning in SQL Server: A Magic Solution for Better Performance? (P...Cathrine Wilhelmsen
The document provides an introduction to table partitioning in SQL Server. It explains what a partitioned table is, the key components like partition key, partition function, and partition scheme. It discusses why table partitioning is used, including benefits like partition elimination to improve query performance, ability to backup and restore partitions individually, and perform maintenance tasks like indexing and statistics updates on partitions. It also covers techniques like partition switching which allows fast loading and archiving of data without physically moving it. The document uses examples and diagrams to illustrate these concepts and components of table partitioning.
The document discusses advanced analytics capabilities in Tableau. It summarizes that Tableau allows both technical and non-technical users to perform advanced analytics tasks like segmentation, cohort analysis, scenario analysis, sophisticated calculations, time series analysis, and predictive analysis without requiring programming. It provides intuitive interfaces and drag-and-drop functionality for these advanced tasks. Tableau's calculation language also allows power users to build complex expressions and manipulate result sets.
Partitioning allows tables and indexes to be subdivided into smaller pieces called partitions. Tables can be partitioned using a partition key which determines which partition each row belongs to. Partitioning provides benefits like improved query performance for large tables, easier management of historical data, and increased high availability. Some disadvantages include additional licensing costs, storage space usage, and administrative overhead to manage partitions. Common partitioning strategies include range, list, hash and interval which divide tables in different ways based on column values.
OOW15 - Oracle Enterprise Manager Cloud Control for Managing Oracle E-Busines...vasuballa
This session focuses on all aspects of Oracle Enterprise Manager Cloud Control 12c for monitoring and managing Oracle E-Business Suite 12.2 with Oracle Application Management Suite for Oracle E-Business Suite. Among the topics covered are online patching management; monitoring the technology stack, including Oracle WebLogic Server services; metrics management; Java Virtual Machine diagnostics; configuration comparisons between run and patch editions; provisioning of Oracle E-Business Suite with assemblies; technology stack patch recommendations; customization management; and automated cloning.
Oracle Enterprise Manager 11g provides tools to help IT organizations optimize database performance and manage change. It offers automatic performance diagnostics to identify and address issues. New features in 11g enhance diagnostics for RAC databases and support for Exadata. The software also includes automated SQL tuning to improve queries without code changes and advisors to recommend additional optimizations.
Oracle Enterprise Manager (EM) provides complete lifecycle management for the cloud - from automated cloud setup to self-service delivery to cloud operations. In this session you’ll learn how to take control of your cloud infrastructure with EM features including Consolidation Planning and Self-Service provisioning with Metering and Chargeback. Come hear how Oracle is expanding its management capabilities into the cloud!
(As presented by Adeesh Fulay at Oracle Technology Network Architect Day in Chicago, October 24, 2011.)
Database & Technology 2 _ Richard Foote _ 10 things you probably dont know ab...InSync2011
1. The document discusses 10 things people may not know about Oracle indexes. It begins by discussing how the common advice to rebuild an index if the percentage of deleted space is over 20% is flawed, as deleted space is usually just free space that will be reused over time without needing to rebuild the index.
2. It also discusses how bitmap indexes are commonly thought to only be suitable for low cardinality columns, but in reality can work for higher cardinality columns as well. An example shows populating a table with 10,000 distinct artist IDs without issues.
3. In general, the document suggests some commonly held beliefs about when to rebuild indexes and when bitmap indexes are suitable may not always be accurate, and
Understanding Query Optimization with ‘regular’ and ‘Exadata’ OracleGuatemala User Group
The document discusses query optimization with regular Oracle databases and Exadata databases. It explains what happens when a SQL statement is issued, including parsing, optimization, and execution. It describes what an execution plan is and how it can be generated and displayed. It discusses how operations can be offloaded to storage cells on Exadata and factors the optimizer considers for determining a good execution plan.
Oracle Database 11g Release 2 includes enhancements to database administration features such as automated segment creation, audit trail management tools, and SQL*Plus exit behavior configuration; it also changes the installation process by making ASM a separate Grid Infrastructure and including full software updates in patch set installations.
The document provides information on how to reduce the size of the SYSAUX tablespace in an Oracle database. It discusses which database components occupy space in SYSAUX, including top offenders like SM/AWR and SM/OPTSTAT. It then describes various methods to cleanup the SYSAUX tablespace such as reorganizing tables and indexes, moving components to other tablespaces using provided procedures, and reducing retention periods for components like AWR and advisors to delete old data. Proper sizing of the SYSAUX tablespace is also discussed.
IDUG NA 2014 / 11 tips for DB2 11 for z/OSCuneyt Goksu
DB2 11 includes several new features such as global variables, the ability to alter partition keys online without impacting availability, selecting data from directory tables, dropping columns, auto-mapping of tables during reorganization, transparent archiving of data, enhancements to RUNSTATS utilities, and deprecated functionality. Some highlights include global variables that can be shared across SQL statements, altering partition limits online which sets partitions to AREOR status until reorganization, and dropping columns in tables without taking them offline.
The document discusses managing data and archiving in MySQL 5.6 using new features like Portable Tablespace and EXCHANGE PARTITION. It provides an overview of using these features to move a tablespace or partition to a different table or server for purposes like data refresh or historical analysis. Specifically, it demonstrates exchanging a partition from one table to an external table, then moving that table to another server and loading new data before exchanging it back.
The document summarizes new features in Oracle Database 12c from Oracle 11g that would help a DBA currently using 11g. It lists and briefly describes features such as the READ privilege, temporary undo, online data file move, DDL logging, and many others. The objectives are to make the DBA aware of useful 12c features when working with a 12c database and to discuss each feature at a high level within 90 seconds.
The document discusses new security concepts introduced in Oracle Multitenant. Key points include:
- Common users exist across all pluggable databases in a container database while local users are specific to a single pluggable database.
- Common users are created in the root container and can access all pluggable databases while local users are limited to a single database.
- The set container privilege allows common users to switch between pluggable databases without reconnecting. This privilege needs to be granted carefully.
- Data dictionary and performance views aggregate information across all pluggable databases when queried from the root container.
Before version 9i of the Oracle database, more and more Oracle components stored their tables in the SYSTEM tablespace. This lead to a high space consumption in this important tablespace. In Oracle database 10g introduced the SYSAUX tablespace and moved everything which is not part of the data dictionary from the SYSTEM tablespace to SYSAUX. Since then, more and more database components populate the SYSAUX tablespace and it keeps growing ... - and if the DBA is not careful, the tablespace SYSAUX tablespace can become really huge
The presentation shows how to analyze and reduce the occupancy of the SYSAUX tablespace and how to avoid it in advance by suitable settings.
Percona xtra db cluster(pxc) non blocking operations, what you need to know t...Marco Tusa
Performing simple DDL operations as ADD/DROP INDEX in a tightly connected cluster as PXC, can become a nightmare. Metalock will prevent Data modifications for long period of time and to bypass this, we need to become creative, like using Rolling schema upgrade or Percona online-schema-change. With NBO, we will be able to avoid such craziness at least for a simple operation like adding an index. In this brief talk I will illustrate what you should do to see the negative effect of NON using NBO, as well what you should do to use it correctly and what to expect out of it.
The document discusses execution plans in Oracle, including what they are, how to view them using tools like DBMS_XPLAN, details contained in plans and how to interpret them, tips for tuning plans such as gathering statistics and adding indexes, and provides an example case study of tuning a SQL statement that was performing a full table scan through the use of indexes.
This document provides answers to 50 questions that may be asked in an Oracle database administrator interview. The questions cover topics such as Oracle database administration, SQL, PL/SQL, UNIX, and networking. For example, questions ask how to determine the database time zone, explain uses of GLOBAL_NAMES and WRAP, describe functions, procedures and packages, explain redo logs, and list UNIX commands for managing files and permissions.
The document discusses things to know about Oracle Truncate operations. It covers that Truncate invalidates shared cursors and requires hard parsing, locks tables, performs mini-checkpoints, may be slower with the REUSE STORAGE option, and requires global index maintenance. In 12c, global index maintenance can be deferred and deferred invalidation avoids shared cursor invalidation in some cases. The summary recommends avoiding Truncate during online times, considering its impact on other SQL, using Truncate to remove multiple partitions together when possible, and taking advantage of 12c features.
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...Alex Zaballa
This document provides an overview of new features in Oracle Database 12c for developers and DBAs. It begins with an introduction by Alex Zaballa and then covers several new features including native support for JSON, data redaction, row limits and offsets for SQL queries, PL/SQL functions callable from SQL, session level sequences, and temporary undo. The document includes demonstrations of many of these new features.
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...Alex Zaballa
Oracle Database 12c introduces many new features for developers and DBAs. These include native support for JSON, data redaction capabilities, improved SQL query functionality using row limits and offsets, and new PL/SQL features like calling functions from SQL. The presentation provides demonstrations of these new features.
Oracle11g introduces several new security, configuration, and administration features for databases. Security features include case sensitive passwords by default and additional auditing of actions. Configuration is simplified with new memory management parameters and automatic diagnostic repository. Administration enhancements provide options to make tables read-only, shrink temporary tablespaces, and add not null columns without updating existing rows.
This document summarizes a comparison of indexing between Oracle and SQL Server databases. It describes how indexes are structured differently in each platform, with Oracle using PCTFREE to control free space in blocks and SQL Server using FILLFACTOR. Tests were conducted inserting and deleting data in each to observe how indexes are impacted. The results showed that Oracle indexes were less affected by fragmentation while SQL Server indexes experienced more page splits leading to fragmentation issues. Maintaining indexes also differed, with SQL Server potentially facing more challenges with its clustered index structure.
The document discusses several new features and enhancements in Oracle Database 11g Release 1. Key points include:
1) Encrypted tablespaces allow full encryption of data while maintaining functionality like indexing and foreign keys.
2) New caching capabilities improve performance by caching more results and metadata to avoid repeat work.
3) Standby databases have been enhanced and can now be used for more active purposes like development, testing, reporting and backups while still providing zero data loss protection.
The document discusses new features in Oracle Database 11g Release 1. Key points include:
1. Encrypted tablespaces allow encryption of data at the tablespace level while still supporting indexing and queries.
2. New caching capabilities improve performance by caching more results in memory, such as function results and query results.
3. Standby databases have enhanced capabilities and can now be used for more active purposes like development, testing and reporting for increased usability and value.
Similar to Partitioning on Oracle 12c - What changed on the most important Oracle feature (20)
Apache Hive is an open source data warehousing framework built on Hadoop. It allows users to query large datasets using SQL and handles parallelization behind the scenes. Hive supports various file formats like ORC, Parquet, and Avro. It uses a directed acyclic graph (DAG) execution engine like Tez or Spark to improve performance over traditional MapReduce. The metastore stores metadata about databases, tables, and partitions to allow data discovery and abstraction. Hive's cost-based optimizer and in-memory query processing features like LLAP improve performance for interactive queries on large datasets.
Ksplice - Keep your Database systems up to date with no downtime Luis Marques
This document provides an overview of Oracle's Ksplice technology, which allows for installing Linux kernel security updates and patches without requiring a reboot. Ksplice was originally created by researchers at MIT and later acquired by Oracle. It allows critical systems like databases to remain online while installing kernel updates. The document discusses how Ksplice works, demonstrates its use, and compares it to alternative live patching technologies.
Indices B-Tree – considerações básicasLuis Marques
O documento discute índices B-tree no Oracle, começando com a criação de uma tabela e índice para exemplificar. É explicado que o índice consiste em um nó raiz e nós folha, com detalhes sobre o número de nós folha e profundidade do índice extraídos da vista DBA_INDEXES. É mostrado como o otimizador de consulta usa a estrutura do índice para estimar o custo de uma consulta. Por fim, é demonstrado como o comando TRACEDUMP fornece detalhes adicionais sobre
Este documento descreve como o Oracle TDE permite proteger dados sensíveis criptografando-os ao nível da coluna ou do tablespace. No Oracle 11g é possível criptografar todo o conteúdo de um tablespace usando AES256. Um exemplo mostra como criar um tablespace criptografado e como os dados inseridos nele não podem ser lidos em bruto no ficheiro de dados.
Proof of Concept with Real Application Testing 12cLuis Marques
Evaluate how certain real world database workload behaves on different I/O subsystem, processors and
architecture or the coexistence with other databases is the goal of a Proof of Concept. The need of testing
real production workloads to eliminate uncertainty with help of techniques like Workload Folding, Time
Shifting and Schema Remapping, this talk will produce evidence that exploring Real Application Testing
features in 12c leverage what can be accomplished by a Proof of Concept.
Drill Down the most underestimate Oracle Feature - Database Resource ManagerLuis Marques
Being a crucial feature on managing database load and with real world practice showing that Database
Resource Manager (DBRM) is not often used, this talk want to change this and demystify this feature by
explaining how it works in detail on different scenarios, the CPU math behind it, how to measure it in
real-time using Python and SQL and exploring more complex features to understand its behaviour.
Special attention will be made to understand its internals whenever possible.
Exadata - O Todo é maior que a soma das PartesLuis Marques
O documento discute as características principais do Exadata. Resume que o Exadata consiste em duas camadas - uma camada de armazenamento e uma camada de banco de dados - que se comunicam através do protocolo IDB para melhorar o desempenho. O offloading/Smart Scan processa consultas nas células de armazenamento para reduzir dados transferidos e uso de CPU. O Exadata também usa compressão híbrida colunar, índices de armazenamento e cache flash inteligente para melhorar o desempenho ainda mais.
This presentation by OECD, OECD Secretariat, was made during the discussion “Artificial Intelligence, Data and Competition” held at the 143rd meeting of the OECD Competition Committee on 12 June 2024. More papers and presentations on the topic can be found at oe.cd/aicomp.
This presentation was uploaded with the author’s consent.
This presentation by Professor Giuseppe Colangelo, Jean Monnet Professor of European Innovation Policy, was made during the discussion “The Intersection between Competition and Data Privacy” held at the 143rd meeting of the OECD Competition Committee on 13 June 2024. More papers and presentations on the topic can be found at oe.cd/ibcdp.
This presentation was uploaded with the author’s consent.
Why Psychological Safety Matters for Software Teams - ACE 2024 - Ben Linders.pdfBen Linders
Psychological safety in teams is important; team members must feel safe and able to communicate and collaborate effectively to deliver value. It’s also necessary to build long-lasting teams since things will happen and relationships will be strained.
But, how safe is a team? How can we determine if there are any factors that make the team unsafe or have an impact on the team’s culture?
In this mini-workshop, we’ll play games for psychological safety and team culture utilizing a deck of coaching cards, The Psychological Safety Cards. We will learn how to use gamification to gain a better understanding of what’s going on in teams. Individuals share what they have learned from working in teams, what has impacted the team’s safety and culture, and what has led to positive change.
Different game formats will be played in groups in parallel. Examples are an ice-breaker to get people talking about psychological safety, a constellation where people take positions about aspects of psychological safety in their team or organization, and collaborative card games where people work together to create an environment that fosters psychological safety.
This presentation by OECD, OECD Secretariat, was made during the discussion “Competition and Regulation in Professions and Occupations” held at the 77th meeting of the OECD Working Party No. 2 on Competition and Regulation on 10 June 2024. More papers and presentations on the topic can be found at oe.cd/crps.
This presentation was uploaded with the author’s consent.
XP 2024 presentation: A New Look to Leadershipsamililja
Presentation slides from XP2024 conference, Bolzano IT. The slides describe a new view to leadership and combines it with anthro-complexity (aka cynefin).
This presentation by Thibault Schrepel, Associate Professor of Law at Vrije Universiteit Amsterdam University, was made during the discussion “Artificial Intelligence, Data and Competition” held at the 143rd meeting of the OECD Competition Committee on 12 June 2024. More papers and presentations on the topic can be found at oe.cd/aicomp.
This presentation was uploaded with the author’s consent.
The importance of sustainable and efficient computational practices in artificial intelligence (AI) and deep learning has become increasingly critical. This webinar focuses on the intersection of sustainability and AI, highlighting the significance of energy-efficient deep learning, innovative randomization techniques in neural networks, the potential of reservoir computing, and the cutting-edge realm of neuromorphic computing. This webinar aims to connect theoretical knowledge with practical applications and provide insights into how these innovative approaches can lead to more robust, efficient, and environmentally conscious AI systems.
Webinar Speaker: Prof. Claudio Gallicchio, Assistant Professor, University of Pisa
Claudio Gallicchio is an Assistant Professor at the Department of Computer Science of the University of Pisa, Italy. His research involves merging concepts from Deep Learning, Dynamical Systems, and Randomized Neural Systems, and he has co-authored over 100 scientific publications on the subject. He is the founder of the IEEE CIS Task Force on Reservoir Computing, and the co-founder and chair of the IEEE Task Force on Randomization-based Neural Networks and Learning Systems. He is an associate editor of IEEE Transactions on Neural Networks and Learning Systems (TNNLS).
This presentation by Juraj Čorba, Chair of OECD Working Party on Artificial Intelligence Governance (AIGO), was made during the discussion “Artificial Intelligence, Data and Competition” held at the 143rd meeting of the OECD Competition Committee on 12 June 2024. More papers and presentations on the topic can be found at oe.cd/aicomp.
This presentation was uploaded with the author’s consent.
This presentation by Yong Lim, Professor of Economic Law at Seoul National University School of Law, was made during the discussion “Artificial Intelligence, Data and Competition” held at the 143rd meeting of the OECD Competition Committee on 12 June 2024. More papers and presentations on the topic can be found at oe.cd/aicomp.
This presentation was uploaded with the author’s consent.
Carrer goals.pptx and their importance in real lifeartemacademy2
Career goals serve as a roadmap for individuals, guiding them toward achieving long-term professional aspirations and personal fulfillment. Establishing clear career goals enables professionals to focus their efforts on developing specific skills, gaining relevant experience, and making strategic decisions that align with their desired career trajectory. By setting both short-term and long-term objectives, individuals can systematically track their progress, make necessary adjustments, and stay motivated. Short-term goals often include acquiring new qualifications, mastering particular competencies, or securing a specific role, while long-term goals might encompass reaching executive positions, becoming industry experts, or launching entrepreneurial ventures.
Moreover, having well-defined career goals fosters a sense of purpose and direction, enhancing job satisfaction and overall productivity. It encourages continuous learning and adaptation, as professionals remain attuned to industry trends and evolving job market demands. Career goals also facilitate better time management and resource allocation, as individuals prioritize tasks and opportunities that advance their professional growth. In addition, articulating career goals can aid in networking and mentorship, as it allows individuals to communicate their aspirations clearly to potential mentors, colleagues, and employers, thereby opening doors to valuable guidance and support. Ultimately, career goals are integral to personal and professional development, driving individuals toward sustained success and fulfillment in their chosen fields.
This presentation by OECD, OECD Secretariat, was made during the discussion “Pro-competitive Industrial Policy” held at the 143rd meeting of the OECD Competition Committee on 12 June 2024. More papers and presentations on the topic can be found at oe.cd/pcip.
This presentation was uploaded with the author’s consent.
This presentation by Nathaniel Lane, Associate Professor in Economics at Oxford University, was made during the discussion “Pro-competitive Industrial Policy” held at the 143rd meeting of the OECD Competition Committee on 12 June 2024. More papers and presentations on the topic can be found at oe.cd/pcip.
This presentation was uploaded with the author’s consent.
This presentation by Professor Alex Robson, Deputy Chair of Australia’s Productivity Commission, was made during the discussion “Competition and Regulation in Professions and Occupations” held at the 77th meeting of the OECD Working Party No. 2 on Competition and Regulation on 10 June 2024. More papers and presentations on the topic can be found at oe.cd/crps.
This presentation was uploaded with the author’s consent.
• For a full set of 530+ questions. Go to
https://skillcertpro.com/product/servicenow-cis-itsm-exam-questions/
• SkillCertPro offers detailed explanations to each question which helps to understand the concepts better.
• It is recommended to score above 85% in SkillCertPro exams before attempting a real exam.
• SkillCertPro updates exam questions every 2 weeks.
• You will get life time access and life time free updates
• SkillCertPro assures 100% pass guarantee in first attempt.
1.) Introduction
Our Movement is not new; it is the same as it was for Freedom, Justice, and Equality since we were labeled as slaves. However, this movement at its core must entail economics.
2.) Historical Context
This is the same movement because none of the previous movements, such as boycotts, were ever completed. For some, maybe, but for the most part, it’s just a place to keep your stable until you’re ready to assimilate them into your system. The rest of the crabs are left in the world’s worst parts, begging for scraps.
3.) Economic Empowerment
Our Movement aims to show that it is indeed possible for the less fortunate to establish their economic system. Everyone else – Caucasian, Asian, Mexican, Israeli, Jews, etc. – has their systems, and they all set up and usurp money from the less fortunate. So, the less fortunate buy from every one of them, yet none of them buy from the less fortunate. Moreover, the less fortunate really don’t have anything to sell.
4.) Collaboration with Organizations
Our Movement will demonstrate how organizations such as the National Association for the Advancement of Colored People, National Urban League, Black Lives Matter, and others can assist in creating a much more indestructible Black Wall Street.
5.) Vision for the Future
Our Movement will not settle for less than those who came before us and stopped before the rights were equal. The economy, jobs, healthcare, education, housing, incarceration – everything is unfair, and what isn’t is rigged for the less fortunate to fail, as evidenced in society.
6.) Call to Action
Our movement has started and implemented everything needed for the advancement of the economic system. There are positions for only those who understand the importance of this movement, as failure to address it will continue the degradation of the people deemed less fortunate.
No, this isn’t Noah’s Ark, nor am I a Prophet. I’m just a man who wrote a couple of books, created a magnificent website: http://www.thearkproject.llc, and who truly hopes to try and initiate a truly sustainable economic system for deprived people. We may not all have the same beliefs, but if our methods are tried, tested, and proven, we can come together and help others. My website: http://www.thearkproject.llc is very informative and considerably controversial. Please check it out, and if you are afraid, leave immediately; it’s no place for cowards. The last Prophet said: “Whoever among you sees an evil action, then let him change it with his hand [by taking action]; if he cannot, then with his tongue [by speaking out]; and if he cannot, then, with his heart – and that is the weakest of faith.” [Sahih Muslim] If we all, or even some of us, did this, there would be significant change. We are able to witness it on small and grand scales, for example, from climate control to business partnerships. I encourage, invite, and challenge you all to support me by visiting my website.
This presentation by Katharine Kemp, Associate Professor at the Faculty of Law & Justice at UNSW Sydney, was made during the discussion “The Intersection between Competition and Data Privacy” held at the 143rd meeting of the OECD Competition Committee on 13 June 2024. More papers and presentations on the topic can be found at oe.cd/ibcdp.
This presentation was uploaded with the author’s consent.
2. Luís Marques
• Oracle ACE
• Founder of Redglue
• OUGPT Founder and Leader
• Blogger at http://lcmarques.com
• @drune / luis.marques@redglue.eu
3. Once upon a time in partitioning
Range, Hash and
Composite
Partitioning
List Partitioning,
Composite Range-
List Partitioning
Global Hash
Indexes,
1M partitions per
table limit
Interval, Virtual Column,
Extended Composite and
System Partitioning
Interval Reference
Partitioning
Cascading
TRUNCATE&EXCHANGE,
Online Moving
Maintaning Multiple Partition
Global Async Indexes
Partial Indexes
5. Partial Indexes
“Create local or global indexes on subset of partitions enabling more flexibility”
• Default table indexing property (INDEXING) for table or partitions
SQL> create table doc ( doc_id number(10), doc_date DATE, doc_status VARCHAR2(2), doc_owner
VARCHAR2(24)) INDEXING OFF
PARTITION BY RANGE (doc_date ) (
PARTITION doc_old_p1 VALUES LESS THAN (TO_DATE('01-JAN-2016','DD-MON-YYYY'))
INDEXING OFF,
PARTITION doc_new_p2 VALUES LESS THAN (TO_DATE('01-APR-2016','DD-MON-YYYY'))
INDEXING ON,
PARTITION doc_new_p3 VALUES LESS THAN (TO_DATE('01-JUL-2016','DD-MON-YYYY'))
INDEXING ON,
PARTITION doc_new_p4 VALUES LESS THAN (TO_DATE('01-OCT-2016','DD-MON-YYYY'))
INDEXING ON,
PARTITION doc_new_p5 VALUES LESS THAN (TO_DATE('01-DEC-2016','DD-MON-YYYY'))
INDEXING ON);
6. Partial Indexes
“Partial Indexes only spans for partitions with INDEXING ON attribute. They work with local and
global indexes”
SQL>@t doc
TABLE_NAME PARTITION PARTITION_COUNT STATUS DEF_INDEXING
---------- --------- --------------- -------- ------------
DOC RANGE 5 VALID OFF
TABLE_NAME PARTITION_NAME INTERVAL INDEXING
---------- --------------- -------- --------
DOC DOC_NEW_P2 NO ON
DOC DOC_NEW_P3 NO ON
DOC DOC_NEW_P4 NO ON
DOC DOC_NEW_P5 NO ON
DOC DOC_OLD_P1 NO OFF
7. Partial Indexes
“Create local or global indexes on subset of partitions enabling more flexibility”
SQL> create index doc_owner_idx on doc(doc_owner) global indexing partial;
doc_old_p
1 (OFF)
doc_old_p
3
doc_old_p
2
doc_old_p
4
doc_old_p
5
global partial index
SQL> create index doc_status_local_idx on doc(doc_status) local indexing partial;
doc_old_p
1 (OFF)
doc_old_p
3
doc_old_p
2
doc_old_p
4
doc_old_p
4
local idx 1 Local idx 2 Local idx 3 Local idx 4
8. Partial Indexes
“Create local or global indexes on subset of partitions enabling more flexibility”
SQL> @i doc
INDEX_NAME INDEX_TYPE TABLE_NAME UNIQUENES PARTITIONED INDEXING ORPHANED_ENTRIES -----------------
--- --------------------------- ---------- --------- ----------- -------- ----------------- DOC_OWNER_IDX NORMAL DOC NONUNIQUE
NO PARTIAL NO DOC_STATUS_LOCAL_IDX NORMAL DOC NONUNIQUE YES PARTIAL NO
INDEX_NAME TABLE_NAME PARTITION PARTITION_COUNT LOCALITY -------------------- ---------- --------- -
-------------- -------- DOC_OWNER_LOCAL_IDX DOC RANGE 5 LOCAL
INDEX_NAME PARTITION_NAME STATUS INTERVAL ORPHANED_ENTRIES
-------------------- --------------- -------- -------- ----------------- DOC_STATUS_LOCAL_IDX
DOC_OLD_P1 UNUSABLE NO NO DOC_STATUS_LOCAL_IDX
DOC_NEW_P5 USABLE NO NO DOC_STATUS_LOCAL_IDX
DOC_NEW_P4 USABLE NO NO DOC_STATUS_LOCAL_IDX
DOC_NEW_P3 USABLE NO NO DOC_STATYS_LOCAL_IDX
DOC_NEW_P2 USABLE NO NO
9. Partial Indexes - Global
“CBO awareness – Table expansion”
SQL> create index doc_owner_idx on doc(doc_owner) global indexing partial;
SQL> select * from doc where doc_owner = 'LNLAZMALQMMQQVTEVGCZ’
Global partial index
Full partition single scan
10. Partial Indexes – Local
“CBO awareness”
SQL> create index doc_status_local_idx on doc(doc_status) local indexing partial;
SQL> select * from doc where doc_status = 'XX'
Local partial index (2,5)
Full partition single scan
11. Partial Indexes – orphaned entries
“when global index is subject to deferred index maintenance or INDEXING was turned off for partition”
SQL> alter table t.doc modify partition DOC_NEW_P3 indexing off;
doc_old_p
1 (OFF)
doc_old_p
3
doc_old_p
2
doc_old_p
4
doc_old_p
4
global partial index
doc_old_p
1 (OFF)
doc_old_p
3
doc_old_p
2
doc_old_p
4
doc_old_p
4
local idx 1 Local idx 2 Local idx 3 Local idx 4
12. Partial Indexes – orphaned entries
“when global index is subject to deferred index maintenance or INDEXING was turned off for partition”
SQL> alter table t.doc modify partition DOC_NEW_P3 indexing off;
INDEX_NAME TABLE_NAME UNIQUENES PARTITIONED INDEXING STATUS ORPHANED_ENTRIES
-------------------- ---------- --------- ----------- -------- -------- ----------------- DOC_STATUS_LOCAL_IDX DOC
NONUNIQUE YES PARTIAL N/A NO DOC_OWNER_IDX DOC NONUNIQUE NO
PARTIAL VALID YES
INDEX_NAME PARTITION_NAME STATUS INTERVAL ORPHANED_ENTRIES -------------------- ----
----------- -------- -------- ----------------- DOC_STATUS_LOCAL_IDX DOC_OLD_P1 UNUSABLE NO NO
DOC_STATUS_LOCAL_IDX DOC_NEW_P5 USABLE NO NO
DOC_STATUS_LOCAL_IDX DOC_NEW_P4 USABLE NO NO
DOC_STATUS_LOCAL_IDX DOC_NEW_P3 UNUSABLE NO NO
DOC_STATUS_LOCAL_IDX DOC_NEW_P2 USABLE NO NO
13. Partial Indexes – orphaned entries
“Behind the scenes of indexing off/on is something fast and something slow ”
SQL> alter table t.doc modify partition DOC_NEW_P3 indexing off;
•Lock Table in EXCLUSIVE & UPDATES dictionary internal tables
•insert into index_orphaned_entry$ (indexobj#, tabpartdobj#, hidden)
SQL> alter table t.doc modify partition DOC_NEW_P3 indexing on;
• Coalesce the global index: alter index "T"."DOC_OWNER_IDX" coalesce cleanup
• Rebuild the local partitioned index: ALTER INDEX "T"."DOC_STATUS_LOCAL_IDX" REBUILD
PARTITION "DOC_NEW_P3”
•Delete from index_orphaned_entry$
14. Partial Indexes – orphaned entries
“CBO awareness”
SQL> alter table t.doc modify partition DOC_NEW_P3 indexing off;
SQL> select * from doc where doc_owner = 'LNLAZMALQMMQQVTEVGCZ’
Performance penalty – scan the entire global partial index, even the
orphaned entries - maintenance is always required!
Global partial index
Partition Range – understands that you have orphaned entries
15. Partial Indexes – orphaned entries
“CBO awareness”
SQL> alter table t.doc modify partition DOC_NEW_P3 indexing off;
SQL> select * from doc where doc_owner = 'LNLAZMALQMMQQVTEVGCZ’
Undocumented function - TBL$OR$IDX$PART$NUM(…..) - Returns the partition numbers that it needs to scan.
17. Partial Indexes – orphaned entries
“orphaned entries, no maintenance? ”
SQL> alter table t.doc modify partition DOC_NEW_P3 indexing off;
Why is this operation so fast? (You already know it!) but …
Is Oracle is leaving orphaned entries on the indexes for ever? What are my
options?
18. Asyncronous / deferred index maintenance
“Option 1 – Rebuild me”
SQL> alter index DOC_OWNER_IDX rebuild partition DOC_NEW_P3;
Entire index structure rebuild
Makes sense when the scale of orphaned entries is big enough
19. Asyncronous / deferred index maintenance
“Option 2 – Coaslesce is dead, long life to new coalesce”
SQL> alter index DOC_OWNER_IDX coalesce cleanup;
Visits each index leaf block and remove the orphaned entries
Better that the standard coalesce as it understands what is an index orphaned entry
Maybe an inexpensive alternative to rebuilt partition
20. Asyncronous / deferred index maintenance
“Option 3 - Postponed index maintenance to a better time”
Index maintenance can be deferred to a better time; Scheduled (2:00 AM by default) or
manually : Scheduled deferred maintenance.
JOB_NAME JOB_CREATOR COMMENTS
------------------------------ ------------ ------------------------------------------------------------
PMO_DEFERRED_GIDX_MAINT_JOB SYS Oracle defined automatic index cleanup for partition mainten
ance operations with deferred global index maintenance
Manually restore global indexes in need of a cleanup
SQL> exec DBMS_PART.CLEANUP_GIDX('T','DOC');
21. Partial Indexes – Limitations and defaults
“Create local or global indexes on subset of partitions enabling more flexibility”
• Unique indexes and indexes enforcing unique constraints are
not supported
Non-partitioned tables are not supported
Defaults to FULL indexes instead of PARTIAL
Supports INDEXING clause at partition and subpartition levels
23. multiple partition maintenance
“Single DDL does it all – add, drop, merge, splitting and truncating”
SQL> create table t.new_doc ( doc_id, doc_date, doc_status, doc_owner, doc_value)
INDEXING OFF
PARTITION BY RANGE (doc_value ) interval (100)
(PARTITION p0 values less than (99))
as select …., rownum from dual connect by level <= 1000;
TABLE_NAME PARTITION_NAME INTERVAL NUM_ROWS INDEXING
---------- --------------- -------- ---------- --------
NEW_DOC P0 NO OFF
NEW_DOC SYS_P481 YES OFF
NEW_DOC SYS_P482 YES OFF
NEW_DOC SYS_P483 YES OFF
NEW_DOC SYS_P484 YES OFF
NEW_DOC SYS_P485 YES OFF
SQL> alter table NEW_DOC modify partition SYS_P481 indexing on;
SQL> alter table NEW_DOC modify partition SYS_P482 indexing on;
24. multiple partition maintenance
“Single DDL does it all – add, drop, merge, splitting and truncating”
SQL> create index doc_value_idx on new_doc(doc_value) global indexing partial;
SQL>create index doc_value_idx2 on new_doc(doc_id);
INDEX_NAME TABLE_NAME UNIQUENES PARTITIONED INDEXING STATUS ORPHANED_ENTRIES
-------------------- ---------- --------- ----------- -------- -------- -----------------
DOC_VALUE_IDX2 NEW_DOC NONUNIQUE NO FULL VALID NO
DOC_VALUE_IDX NEW_DOC NONUNIQUE NO PARTIAL VALID NO
P0 (OFF) SYS_P482 SYS_P483SYS_P481 SYS_P490
global partial index
Global index (doc_value_idx2)
25. multiple partition maintenance – drop/truncate
“Single DDL does it all – add, drop, merge, splitting and truncating”
SQL> ALTER TABLE new_doc DROP partitions for (700), for (500), for (100);
P0 (OFF)
SYS_P482
(200)
SYS_P483
(300)
SYS_P481
(100)
SYS_P490
(400)
global partial index
SYS_Pn
(500)
SYS_Pn
(700)
26. multiple partition maintenance – drop/truncate
“Single DDL does it all – add, drop, merge, splitting and truncating”
SQL> ALTER TABLE new_doc DROP partitions for (700), for (500), for (100) update global indexes;
10046 Trace:
1
27. multiple partition maintenance (black magic)
“Single DDL does it all – add, drop, merge, splitting and truncating”
SQL> ALTER TABLE new_doc DROP partitions for (700), for (500), for (100) update global indexes;
SQL> alter system set "_fast_index_maintenance"=false scope=both;
28. multiple partition maintenance - merge
“Single DDL does it all – add, drop, merge, splitting and truncating”
SQL> MERGE partitions SYS_P481 to SYS_P490 INTO partition MERGE_P1 update indexes;
TABLE_NAME PARTITION_NAME INTERVAL NUM_ROWS INDEXING
---------- --------------- -------- ---------- --------
NEW_DOC MERGE_P1 NO OFF
NEW_DOC P0 NO OFF
NEW_DOC SYS_P525 YES OFF
P0 (OFF) SYS_P482
(200)
SYS_P483
(300)
SYS_P481
(100)
SYS_P490
(400)
MERGE_P1
SYS_Pn
(500)
SYS_Pn
(700)
global partial index
29. multiple partition maintenance - merge
“Single DDL does it all – add, drop, merge, splitting and truncating”
Range Partitions:
• Partitions need to be adjacent on Range partitioning
•Partitions need to be specified in ascending of their partition bound values
• Keyword “TO” allows to specify lowest and highest partitions for Range Partitioning
List Partitions:
• Partitions don’t need to be adjacent on List Partitioning
• MERGE partition is the union of list values of the partitions merged
•UPDATE INDEXES leaves no orphaned entries on MERGE, but some “unexpected” things may
appear
31. Asyncronous / deferred index maintenance
conclusions
“Postponed index maintenance to a better time”
• Asynchronous global index maintenance for DROP,TRUNCATE and MODIFY INDEXING OFF
Partitions are performed by default: Only affect Oracle dictionary tables (metadata)
• Global index maintenance is be decoupled from the DROP and TRUNCATE partition
maintenance;
• Move global index maintenance for off-peak times, or whenever you decide to.
• Maintenance of a list of data object numbers in metadata, where orphaned index entries
corresponding to the drop and truncated objects that are invalid are ignored.
33. Move partitions online
“ALTER TABLE ... MOVE PARTITION operation functions is a non-blocking online DDL command”
SQL> @dml
SQL> ALTER TABLE move_doc move partition for (3000) TABLESPACE move_ts online update indexes;
SQL> ALTER TABLE move_doc move partition for (3000) TABLESPACE move_ts update indexes;
ORA-14020: this physical attribute may not be specified for a table partition
ERROR at line 1:ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
34. Move partitions online
“ALTER TABLE ... MOVE PARTITION operation functions is a non-blocking online DDL command”
SQL> @dml
SQL> ALTER TABLE move_doc move partition for (3000) TABLESPACE move_ts online;
INDEX_NAME TABLE_NAME LEAF_BLOCKS UNIQUENES PARTITIONED INDEXING STATUS ORPHANED_ENTRIES
-------------------- ---------- ----------- --------- ----------- -------- -------- ----------------- DOC_LOCAL_VALUE_IDX
MOVE_DOC 31 NONUNIQUE YES FULL N/A NO DOC_GLOB_VALUE_IDX
MOVE_DOC 52 NONUNIQUE NO FULL VALID YES
35. Move partitions online
“ALTER TABLE ... MOVE PARTITION operation functions is a non-blocking online
DDL command”
Requires additional disk space and resources (CPU and I/O) for journaling
Index maintenance for global and local indexes
Online, transparent operation!
IOTs are out!
39. Interval reference partitioning
“reference-partitioned table to use interval partitioning as a top partitioning
strategy “
New partitions created automatically only when new data arrives
Child tables maintained automatically
Partition name inherit from current partitions (direct parent relative name – same name as
parent )
40. Interval reference partitioning – CASCADE
TRUNCATE
“CASCADE option for TRUNCATE and EXCHANGE PARTITION”
Single atomic transaction preserves data integrity
Easier, simplier and less error prone
CASCADE applies for whole reference tree
Cascading TRUNCATE available for non-partitioned tables
ON DELETE CASCADE for all foreign keys required
42. Interval reference partitioning – CASCADE
TRUNCATE
“CASCADE option for TRUNCATE and EXCHANGE PARTITION”
Simplify partition maintenance with interval reference partitions CASCADE option to truncate of exchange partition from parent to
child.
SQL> ALTER TABLE doc TRUNCATE PARTITION for (299) cascade update indexes;
TABLE_NAME PARTITION_NAME INTERVAL NUM_ROWS TABLESPA INDEXING
---------- --------------- -------- ---------- -------- --------
DOC P0 NO 1 USERS ON
DOC SYS_P8791 YES 1 USERS ON
DOC SYS_P8792 YES 0 USERS ON
DOC SYS_P8793 YES 1 USERS ON
TRX P0 NO 1 USERS ON
TRX SYS_P8791 YES 1 USERS ON
TRX SYS_P8792 YES 0 USERS ON
TRX SYS_P8793 YES 1 USERS ON
43. Interval reference partitioning – CASCADE
EXCHANGE
“CASCADE option for TRUNCATE and EXCHANGE PARTITION”
Single atomic transaction preserves data integrity
Easier, simplier and less error prone
CASCADE applies for whole reference tree
Hierarchy must match target and table to be exchanged
Local or global indexes on a subset of partitions
Enable more flexibility
Couples the index creation with table DDL
The table indexing property is only considered for partial indexes
Not supported for unique constraints or indexes enforcing unique constraints
Local or global indexes on a subset of partitions
Enable more flexibility
Couples the index creation with table DDL
The table indexing property is only considered for partial indexes
Not supported for unique constraints or indexes enforcing unique constraints
Reducing unnecessary storage requirements,
reducing index maintenance overheads
improving performance by reducing index block accesses.
select table_name, partitioning_type, partition_count, status, def_indexing from dba_part_tables where owner = 'T' and table_name = UPPER('&1');
select table_name, partition_name, interval, num_rows, indexing from dba_tab_partitions where table_owner = 'T' and table_name = UPPER('&1');
DEF INDEXING default is ON
ORA-14020: this physical attribute may not be specified for a table partition
LOCAL INDEXES: Partial indexing for local indexes is implemented through the UNUSABLE state of a partition
GLOBAL INDEXES: Includes only the partitions that the properting INDEXING is ON.
By default, any index is created as FULL index
Partial indexing for local indexes is implemented through the UNUSABLE state of a partition, more precisely: by using the UNUSABLE value as displayed in the STATUS column of the USER_IND_PARTITIONS view.
Melhorar o discursor
Orphaned entries
TABLE EXPANSION: and it is happening by doing intelligent rewrite of queries using UNION ALL in the background.
Also possible on 11g on unsuable partitions.
The index rowid batched basically means Oracle can potentially access a number of rowids and sort them out into distinct blocks and so only access each distinct table block the once.
Intelligent Rewrite with UNION ALL / Table Expansion in the Presence of Unusable local Index Partition or Partial Index (Doc ID 1638318.1)
Coalesce cleanup = remove orphaned entrys on the global index? Please verify
Cost almost duplicate on PARTITION RANGE SINGLE to PARTITION RANGE OR – 275 to 549
2 partitions to read instead of one
Understands orphaned entries – penalty is scanning the global partial index
Investigate parameter _fast_index_maintenance
Cost almost duplicate from 280 to 554.
Investigate parameter _fast_index_maintenance
PARTITION RANGE OR instead of PARTITION RANGE SINGLE
The function returns (sub)partition position within partitioned table based on HIGH_VALUE parameter.
Index structure says DEL_LF_ROWS - Number of deleted leaf rows in the index is 100000 (one hundred thoudsand)
Kdxlende = number of index entries that have been marked as deleted within the block
Only change is on metadata
When an index entry is deleted (or indeed updated which is effectively a delete of an index entry followed by an insert), the entry is not physically deleted but is only marked as deleted.
Global index maintenance is be decoupled from the DROP and TRUNCATE partition maintenance;
Move global index maintenance for off-peak times, or whenever you decide to.
11g Partition maintenance (DROP/TRUNCATE PARTITION) always involve index maintenance for orphaned entries deletion.
11g Partition maintenance (DROP/TRUNCATE PARTITION) always involve index maintenance for orphaned entries deletion.
11g Partition maintenance (DROP/TRUNCATE PARTITION) always involve index maintenance for orphaned entries deletion.
Partial indexing for local indexes is implemented through the UNUSABLE state of a partition, more precisely: by using the UNUSABLE value as displayed in the STATUS column of the USER_IND_PARTITIONS view.
Automatically created partitions inherit the default indexing property of the table (INDEXING OFF). Default in ON
11g Partition maintenance (DROP/TRUNCATE PARTITION) always involve index maintenance for orphaned entries deletion.
If you don’t use “UPDATE INDEXES” your indexes will be in UNSUABLE state and you have to rebuilt.
indexes are in a VALID state so the optimizer will not require the parameter skip_unusable_indexes to be set to TRUE.
Remember that this parameter says to the optimizer to skip indexes if they are in an UNUSABLE state, to avoid blocking DMLs.
UPDATE [GLOBAL] INDEXES clause still needs to be used in order to avoid rendering the status of global index UNUSABLE.
Asynchronous global index maintenance for DROP and TRUNCATE is performed by default;
CBO is aware of index orphaned entries
Update indexes and fast_index_maintenance=false reverts oracle behavior and immediately performs index maintenance on DROP or TRUNCATE partition
- One partition merge
List Partitioning:
ALTER TABLE sales_list MERGE PARTITIONS sales_NY, sales_NJ, sales_CT INTO PARTITION TRI_STATE;
- Remember that the 2 partitions were merged have no longer any rows and you endup with an index of 0 leaf blocks.
Partition maintenance – dropping or truncating
global indexes are maintained when a partition is moved
global indexes are maintained when a partition is moved
Partition maintenance – dropping or truncating
11g Partition maintenance (DROP/TRUNCATE PARTITION) always involve index maintenance for orphaned entries deletion.
11g Partition maintenance (DROP/TRUNCATE PARTITION) always involve index maintenance for orphaned entries deletion.
Both partitions are truncated
11g Partition maintenance (DROP/TRUNCATE PARTITION) always involve index maintenance for orphaned entries deletion.
11g Partition maintenance (DROP/TRUNCATE PARTITION) always involve index maintenance for orphaned entries deletion.