1 11g NEW FEATURES ByVIJAY. 2 AGENDA  RESULT CACHE  INVISIBLE INDEXES  READ ONLY TABLES  DDL WAIT OPTION  ADDING COLUMN TO A TABLE WITH DEFAULT VALUE.

Slides:



Advertisements
Similar presentations
9 Creating and Managing Tables. Objectives After completing this lesson, you should be able to do the following: Describe the main database objects Create.
Advertisements

A Guide to SQL, Seventh Edition. Objectives Create a new table from an existing table Change data using the UPDATE command Add new data using the INSERT.
10 Copyright © 2004, Oracle. All rights reserved. Creating Other Schema Objects.
System Administration Accounts privileges, users and roles
Database objects User schema DCL Oracle dictionary.
Chapter 5 Data Manipulation and Transaction Control Oracle 10g: SQL
Oracle Database 12c is the latest version of Oracle Corporations flagship database and has added many new features. In this presentation I am capturing.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Chapter 6 Additional Database Objects
Database Technical Session By: Prof. Adarsh Patel.
By Lecturer / Aisha Dawood 1.  You can control the number of dispatcher processes in the instance. Unlike the number of shared servers, the number of.
1 Oracle Architectural Components. 1-2 Objectives Listing the structures involved in connecting a user to an Oracle server Listing the stages in processing.
Oracle Database Administration
Other database objects (Sequence). What Is a Sequence? A sequence: Automatically generates sequential numbers Is a sharable object Is typically used to.
11 Copyright © 2007, Oracle. All rights reserved. Creating Other Schema Objects.
Copyright © Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
Chapter 6 Additional Database Objects Oracle 10g: SQL.
An Oracle server:  Is a database management system that provides an open, comprehensive, integrated approach to information management.  Consists.
10 Copyright © 2009, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
1 Copyright © 2006, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
Copyright © 2004, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
PL/SQLPL/SQL Oracle11g : PL/SQL Programming Chapter 6 Functions.
1 Chapter 14 DML Tuning. 2 DML Performance Fundamentals DML Performance is affected by: – Efficiency of WHERE clause – Amount of index maintenance – Referential.
10-1 Copyright  Oracle Corporation, All rights reserved. Database Objects ObjectDescription TableBasic unit of storage; composed of rows and columns.
Nitin Singh/AAO RTI ALLAHABAD 1 SQL Nitin Singh/AAO RTI ALLAHABAD 2 OBJECTIVES §What is SQL? §Types of SQL commands and their function §Query §Index.
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
Copyright  Oracle Corporation, All rights reserved. 10 Creating and Managing Tables.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Features of SQL SQL is an English-like language . It uses words such as select , insert , delete as part of its commend set. SQL is an a non-procedural.
11-1 Copyright  Oracle Corporation, All rights reserved. What Are Constraints? Constraints enforce rules at the table level. Constraints prevent.
Database Lab Lecture 1. Database Languages Data definition language ( DDL ) Data definition language –defines data types and the relationships among them.
9 Copyright © 2004, Oracle. All rights reserved. Using DDL Statements to Create and Manage Schema Objects.
PL/SQLPL/SQL Oracle10g Developer: PL/SQL Programming Chapter 9 Database Triggers.
Database Programming Sections 11 & 12 –Sequences, Indexes, and Synonymns.
Week 4 Lecture 2 Advanced Table Management. Learning Objectives  Create tables with large object (LOB) columns and tables that are index-organized 
Variables and control statements in PL\SQL Chapter 10.
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
Chapter 13 Views Oracle 10g: SQL. Oracle 10g: SQL2 Objectives Create a view, using CREATE VIEW command or the CREATE OR REPLACE VIEW command Employ the.
Chapter 5 : Integrity And Security  Domain Constraints  Referential Integrity  Security  Triggers  Authorization  Authorization in SQL  Views 
Transactions, Roles & Privileges Oracle and ANSI Standard SQL Lecture 11.
Chapter 12 Additional Database Objects. Chapter Objectives  Define the purpose of a sequence and state how it can be used by an organization  Explain.
Altering Tables and Constraints Database Systems Objectives Add and modify columns. Add, enable, disable, or remove constraints. Drop a table. Remove.
A Guide to SQL, Eighth Edition Chapter Six Updating Data.
Relational Database Management System(RDBMS) Structured Query Language(SQL)
Chapter 12Introduction to Oracle9i: SQL1 Chapter 12 Additional Database Objects.
Text TCS INTERNAL Oracle PL/SQL – Introduction. TCS INTERNAL PL SQL Introduction PLSQL means Procedural Language extension of SQL. PLSQL is a database.
Oracle 10g Database Administrator: Implementation and Administration Chapter 10 Basic Data Management.
1 Database Fundamentals Introduction to SQL. 2 SQL Overview Structured Query Language The standard for relational database management systems (RDBMS)
 CONACT UC:  Magnific training   
Views / Session 3/ 1 of 40 Session 3 Module 5: Implementing Views Module 6: Managing Views.
Oracle 11g: SQL Chapter 5 Data Manipulation and Transaction Control.
2 Copyright © 2009, Oracle. All rights reserved. Managing Schema Objects.
1 Chapters 19 and 20  Ch. 19: By What Authority? Users Roles Grant and revoke Synonyms  Ch. 20: Changing the Oracle Surroundings Indexes Clusters Sequences.
The Basics of Data Manipulation
Database structure and space Management
Introduction to Oracle9i: SQL
DATABASE MANAGEMENT SYSTEM
The Basics of Data Manipulation
Chapter 4 Indexes.
CH 4 Indexes.
Chapter 2 Views.
CH 4 Indexes.
Oracle Memory Internals
Chapter 2 Views.
Index Note: A bolded number or letter refers to an entire lesson or appendix. A Adding Data Through a View ADD_MONTHS Function 03-22, 03-23,
Contents Preface I Introduction Lesson Objectives I-2
Chapter 8 Advanced SQL.
IST 318 Database Administration
Presentation transcript:

1 11g NEW FEATURES ByVIJAY

2 AGENDA  RESULT CACHE  INVISIBLE INDEXES  READ ONLY TABLES  DDL WAIT OPTION  ADDING COLUMN TO A TABLE WITH DEFAULT VALUE.  VIRTUAL COLUMNS

3 RESULT CACHE SQL Query Results Query result cache is used to store the results of SQL queries for re-use in subsequent executions PL/SQL Function Results provides a simple way to boost the performance of PL/SQL functions by saving the results of function calls for specific combinations of input parameters in the SGA. These results can be reused by any session calling the same function with the same parameters

4 ADVANTAGES Access Large Amount of Data Return Few Rows Execute Somewhat Frequently Based on Slowly Changing Data DISADVANTAGES Will Not Work With Temporary tables, SYS or SYSTEM tables Sequences (NEXTVAL or CURRVAL) Date/Time Functions – SYSDATE, CURRENT_DATE, SYS_TIMESTAMP, CURRENT_TIMESTAMP, etc Query must retrieve the most current committed state of the data No Active Transaction Against Objects in Current Session ADVANTAGES Access Large Amount of Data Return Few Rows Execute Somewhat Frequently Based on Slowly Changing Data DISADVANTAGES Will Not Work With Temporary tables, SYS or SYSTEM tables Sequences (NEXTVAL or CURRVAL) Date/Time Functions – SYSDATE, CURRENT_DATE, SYS_TIMESTAMP, CURRENT_TIMESTAMP, etc Query must retrieve the most current committed state of the data No Active Transaction Against Objects in Current Session

5 System Views V$RESULT_CACHE_STATISTICS –How well is the cache doing? –Monitor CREATES vs. FINDS V$RESULT_CACHE_MEMORY –Memory components and statistics V$RESULT_CACHE_OBJECTS –Objects that are in the cache along with attributes V$RESULT_CACHE_DEPENDENCY –Dependencies of the results in cache

6 VISIBLE AND INVISIBLE INDEXES TEST THE REMOVAL OF INDEX BEFORE DROPPING IT. PARAMETER OPTIMIZER_USE_INVISIBLE_INDEXES=TRUE

7 READ ONLY TABLES  USED TO RESTRICT DML OPERATIONS  WE CAN MAKE TABLE READ ONLY IN DIFFERENT WAYS PRIOR TO ORACLE 11G THEY ARE:  CREATE A TRIGGER WHICH RAISES AN EXCEPTION  CREATE A MATERIALIZED VIEW  Create a check constraint with disable validate  RELATED VIEW: 1.USER_TABLES

8 DDL WAIT OPTION DDL WAIT OPTION DDL commands require exclusive locks on internal structures. If these locks are not available the commands return with an "ORA-00054: resource busy" error message. This can be especially frustrating when trying to modify objects that are accessed frequently. To get round this Oracle 11g includes the DDL_LOCK_TIMEOUT parameter, which can be set at instance or session level using the ALTER SYSTEM and ALTER SESSION commands respectively. The DDL_LOCK_TIMEOUT parameter indicates the number of seconds a DDL command should wait for the locks to become available before throwing the resource busy error message. The default value is zero.

9 ADDING COLUMN WITH DEFAULT VALUE if there are some millions of records in the table and updating millions of rows will not only take a very long time, it will also fill up the undo segments, generate a large amount of redo, and create massive performance overhead. SQL> alter table product add Item_code varchar2(20) default ‘AAAAA’ not null; The above statement will not issue an update to all the existing records of the table. When a user selects the column for an existing record, Oracle gets the fact about the default value from the data dictionary and returns it to the user.So there is not storage involved, no redo and undo generation and no performance overhead.

10 VIRTUAL COLUMN  virtual columns, allow you to create table columns which are purely expression-based and aren't stored on disk Limitations  Virtual columns are not supported under external, object, cluster, temporary, or index organized tables.  You can’t create virtual column as a user-defined type,large object or RAW.  All columns in column expression must be of same table.  The columsn expression the AS clause cannot refer to another virtual column.  You can’t update a virtual column by using it in SET clause of an UPDATE statement

11 Thank You