Universitatea Politehnica Bucureşti - Facultatea de Automatica si Calculatoare. 4. Managing Data. Tables, Indexes and Constraints
|
|
- Agatha Fitzgerald
- 6 years ago
- Views:
Transcription
1 4. Managing Data Tables, Indexes and Constraints Administrarea Bazelor de Date I 1
2 Overview Managing Tables Managing Indexes Managing Data Integrity Using Clusters and Index-Organized Tables
3 Managing Tables
4 Objectives After completing this lesson you should be able to do the following: Distinguishing between different Oracle data types Distinguish between an extended versus a restricted ROWID Creating tables using appropriate storage settings Manage storage structures within a table Reorganize, truncate, and drop a table Drop a column within a table Control the space used by tables Analyze tables to check integrity and migration Retrieve information about tables from the data dictionary
5 Storing User Data There are several methods of storing user data in Oracle: Regular table Partitioned table Index-organized table Cluster
6 Regular Table Partitioned Table Storing User Data Range partitioning Hash partitioning Composite partitioning Types of partitioning List partitioning Each partition is a segment and can be stored separately Index-Organized Table Like a heap table with a primary key index Clustered Table A table or group of tables that share the same data blocks Have a cluster key identify the rows that are stored together
7 Oracle Built-in in Data Types Data type User-defined Scalar Built-in Collection Relationship CHAR(N), NCHAR(N) VARCHAR2(N), NVARCHAR2(N) NUMBER(P,S) DATE RAW(N) BLOB, CLOB, NCLOB, BFILE LONG, LONG RAW ROWID VARRAY TABLE REF
8 Data Types for Storing Large Objects LONG, LONG RAW Single column per table Up to 2 gigabytes SELECT returns data Data stored in-line No object type support Sequential access to chunks LOB Multiple columns per table Up to 4 gigabytes SELECT returns locator Data stored in-line or out-of-line Supports object types Random access to chunks
9 ROWID Data Type Unique identifier for a row Not stored explicitly as a column value stored in indexes to specify rows with a given set of key values Used to locate a row the fastest means (Extended) ROWID Format OOOOOO FFF BBBBBB RRR Data object number Relative file number Block number Row number 10 bytes of storage Displayed by 18 characters
10 Example SQL> SELECT department_id, rowid FROM hr.departments; DEPARTMENT_ID ROWID AAABQMAAFAAAAA6AAA 20 AAABQMAAFAAAAA6AAB 30 AAABQMAAFAAAAA6AAC Data object number Block number Relative file number Row number for the department with ID=10
11 Restricted ROWID Can identify rows within a segment Needs less space X BBBBBBBB. RRRR. FFFF Block number Row number File number Does not contain the data object number
12 Collections Collections are objects that contain objects. VARRAYs are ordered sets of elements containing a count and a limit. Nested tables are tables with a column or variable of the TABLE data type. VARRAY Nested table
13 Creating a Table CREATE TABLE employees( empno NUMBER(4), last_name VARCHAR2(30) deptno NUMBER(2)) PCTFREE 20 PCTUSED 50 STORAGE(INITIAL 200K NEXT 200K PCTINCREASE 0 MINEXTENTS 1 MAXEXTENTS 50) TABLESPACE data01; Minimum number of extents that is to be allocated Maximum number of extents that is to be allocated The percentage of increase in extent size after NEXT extent
14 Creating a Table: Guidelines Place tables in separate tablespaces To avoid/reduce fragmentation: Use locally-managed tablespaces Use a few standard extent sizes for tables Use the CACHE clause for frequently used, small tables.
15 Creating Temporary Tables Created using the GLOBAL TEMPORARY clause: CREATE GLOBAL TEMPORARY TABLE hr.employees_temp AS SELECT * FROM hr.employees; Tables retain data only for the duration of a transaction or session. The clauses that control the duration of the rows are: ON COMMIT DELETE ROWS: Rows are visible within the transaction (default) ON COMMIT PRESERVE ROWS: Rows are visible for the entire session DML locks are not acquired on the data. You can create indexes, views, and triggers on temporary tables.
16 Setting PCTFREE and PCTUSED Compute PCTFREE (Average Row Size Initial Row Size) * 100 Average Row Size Compute PCTUSED 100 PCTFREE Average Row Size * 100 Available Data Space AVERAGE ROW SIZE can be obtained using the ANALYZE TABLE command
17 Row Migration and Chaining Before update After update
18 Row Migration Row Migration and Chaining If PCTFREE too small => insufficient space in a block to accommodate a row that grows as a result of an update Oracle then moves the entire row to a new block Row Chaining Occurs when a row is too large to fit into any block eq: columns that are very long Oracle divides the tow into smaller chunks called row pieces Can be minimized by setting a higher block size
19 Copying an Existing Table CREATE TABLE new_emp STORAGE(INITIAL 200K NEXT 200K PCTINCREASE 0 MAXEXTENTS 50) NOLOGGING TABLESPACE data01 AS SELECT * FROM scott.employees;
20 Changing Storage and Block Utilization Parameters ALTER TABLE scott.employees PCTFREE 30 PCTUSED 50 STORAGE(NEXT 500K MINEXTENTS 2 MAXEXTENTS 100);
21 Manually Allocating Extents ALTER TABLE scott.employees ALLOCATE EXTENT(SIZE 500K DATAFILE /DISK3/DATA01.DBF ); Extents may need to be allocated manually: To control the distribution of extents of a table across files Before loading data in bulk to avoid dynamic extension of tables
22 Nonpartitioned Table Reorganization ALTER TABLE hr.employees MOVE TABLESPACE data1; A nonpartitioned table can be moved without having to run the Export or Import utility It also allows the storage parameters to be changed Useful when: Moving a table from one tablespace to another Reorganizing the table to eliminate row migration After moving a table you must rebuild its indexes
23 After inserts High Water Mark Extent ID After deletes High water mark Extent ID Used block Unused block Free space after delete
24 Finding the High Water Mark: DBMS_SPACE.UNUSED_SPACE TOTAL_BLOCKS UNUSED_BLOCKS Extent ID High water mark LAST_USED_EXTENT_FILE_ID, LAST_USED_EXTENT_BLOCK_ID
25 Deallocation of Unused Space Before deallocation ALTER TABLE scott.employees DEALLOCATE UNUSED; High water mark After deallocation Used block Unused block Free space after delete
26 Truncating a Table TRUNCATE TABLE hr.employees; Truncating a table Deletes all rows in a table Releases used space Corresponding indexes are also truncated A table referenced by a foreign key cannot be truncated
27 Dropping a Table DROP TABLE scott.departments CASCADE CONSTRAINTS; The extents used by the table are released The CASCADE CONTRAINTS is necessary if the table is the parent table in a foreign key relationship
28 Dropping a Column Removing a column from a table: ALTER TABLE hr.employees DROP COLUMN comments CASCADE CONSTRAINTS CHECKPOINT 1000; Removes the column length and data from each row, freeing space in the data block. Dropping a column in a large table takes a considerable amount of time. To resume an interrupted drop operation: Checkpoint occurs every 1000 rows SQL> ALTER TABLE hr.employees DROP COLUMN CONTINUE;
29 Renaming a Column ALTER TABLE hr.employees RENAME COLUMN hire_date TO start_date;
30 Mark a column as unused: Universitatea Politehnica Bucureşti - Facultatea de Automatica si Calculatoare Using the UNUSED Option ALTER TABLE hr.employees SET UNUSED COLUMN comments CASCADE CONSTRAINTS Relatively quick, no need to free the space, do it later, the data is not removed Drop unused columns: ALTER TABLE hr.employees DROP UNUSED COLUMNS CHECKPOINT 1000; Continue to drop column operation: ALTER TABLE hr.employees DROP COLUMNS CONTINUE CHECKPOINT 1000;
31 Validating Table Structure The Oracle server verifies the integrity of each data block. Use the CASCADE option to validate the structure of all indexes on the table, and perform cross-referencing between the table and its indexes. ANALYZE TABLE scott.employees VALIDATE STRUCTURE;
32 Detecting Row Migration The Oracle server gathers statistics based on sample data and updates data dictionary. ANALYZE TABLE scott.employees ESTIMATE STATISTICS; Check CHAIN_CNT SELECT chain_cnt FROM DBA_TABLES WHERE table_name= EMPLOYEES AND owner= SCOTT ;
33 Obtaining Table Information Information about tables can be obtained by querying the following views: DBA_TABLES DBA_OBJECTS SQL> SELECT table_name 2 FROM dba_tables WHERE owner= HR ; TABLE_NAME COUTRIES DEPARTMENTS DEPARTMENTS_HIST EMPLOYEES EMPLOYEES_HIST
34 Retrieving Table Information DBA_OBJECTS OWNER OBJECT_NAME OBJECT_ID DATA_OBJECT_ID CREATED DBA_SEGMENTS OWNER SEGMENT_NAME TABLESPACE_NAME HEADER_FILE HEADER_BLOCK DBA_TABLES OWNER TABLE_NAME PCT_FREE PCT_USED INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE CACHE BLOCKS EMPTY_BLOCKS CHAIN_CNT
35 Retrieving Extent Information DBA_EXTENTS OWNER SEGMENT_NAME EXTENT_ID FILE_ID BLOCK_ID BLOCKS
36 DBMS_ROWID Package Commonly used functions: Function Name ROWID_CREATE ROWID_OBJECT ROWID_RELATIVE_FNO ROWID_BLOCK_NUMBER ROWID_ROW_NUMBER ROWID_TO_ABSOLUTE_FNO ROWID_TO_EXTENDED ROWID_TO_RESTRICTED Description Creates a ROWID from individual components Returns the object identifier for a ROWID Returns the relative file number for a ROWID Returns the block number for a ROWID Returns the row number for a ROWID Returns the absolute file number for a ROWID Converts a ROWID from restricted to extended Converts a ROWID from extended to restricted 25/11/2009 Administrarea Bazelor de Date I
37 Managing Indexes
38 Objectives After completing this lesson you should be able to do the following: List the different types of indexes and their use Create various types of indexes Reorganize indexes Maintain indexes Monitor the usage of an index Obtain index information from the data dictionary Index = Tree structure that allows direct access to a row in a table
39 Logical Universitatea Politehnica Bucureşti - Facultatea de Automatica si Calculatoare Classification of Indexes Single column or concatenated Unique or nonunique Function-based Domain Physical Partitioned or nonpartitioned B-tree: Normal or reverse key Bitmap
40 Single column index Indexes Has only one column in the index key eq: an index on the employees number column Concatenated index (or composite index) Created on multiple columns in a table eq: an index on the department and job columns The maximum number of columns in a composite key index is 32 Unique index Guarantee that no rows of a table have duplicate values in the key column Function-based index Created when using functions or expressions that involve one or more columns in the table that is being indexed
41 B-Tree Index Index entry Root Branch Leaf Index entry header Key column length Key column value ROWID
42 Reverse Key Index Index on EMP (EMPNO) EMP table KEY ROWID EMPNO (BLOCK# ROW# FILE#) F F F F F F F EMPNO ENAME JOB ALLEN SALESMAN 7369 SMITH CLERK 7521 WARD SALESMAN JONES MANAGER 7654 MARTIN SALESMAN 7698 BLAKE MANAGER 7782 CLARK MANAGER
43 Bitmap Indexes Table File 3 Block 10 Block 11 Index Block 12 key start end ROWID ROWID bitmap <Blue, , , > <Green, , , > <Red, , , > <Yellow, , , >
44 Bitmap Indexes
45 Comparing B-Tree B and Bitmap Indexes B-tree Suitable for high-cardinality columns Updates on keys relatively inexpensive Inefficient for queries using OR predicates Bitmap Suitable for low-cardinality columns Updates to key columns very expensive Efficient for queries using OR predicates Useful for OLTP Useful for DSS 25/11/2009 Administrarea Bazelor de Date I
46 Creating B-Tree B Indexes CREATE INDEX scott.emp_lname_idx ON scott.employees(last_name) PCTFREE 30 STORAGE(INITIAL 200K NEXT 200K PCTINCREASE 0 MAXEXTENTS 50) TABLESPACE indx01;
47 Creating B-Tree B Indexes Syntax Options UNIQUE: Used to specify a unique index (nonunique is default) Schema: Owner of the index or table Index: Name of the index Table: Name of the table Column: Name of the column ASC/DESC: Indicates whether the index should be created in ascending or descending order TABLESPACE: Identifies the tablespace where the index will be created LOGGING: Specifies that the creation of the index and subsequent operations on the index are logged in the online redo file (this is the default)
48 Creating Indexes: Guidelines Balance query and DML needs Place in separate tablespace Use uniform extent sizes: multiples of five blocks or MINIMUM EXTENT size for tablespace Consider NOLOGGING for large indexes INITRANS should generally be higher on indexes than on the corresponding tables Index entries are smaller than the rows they index index blocks tend to have more entries per block
49 Creating Reverse Key Indexes CREATE UNIQUE INDEX scott.ord_ord_no_idx ON scott.ord(ord_no) REVERSE PCTFREE 30 STORAGE(INITIAL 200K NEXT 200K PCTINCREASE 0 MAXEXTENTS 50) TABLESPACE indx01;
50 Creating Bitmap Indexes CREATE BITMAP INDEX scott.ord_region_id_idx ON scott.ord(region_id) PCTFREE 30 STORAGE(INITIAL 200K NEXT 200K PCTINCREASE 0 MAXEXTENTS 50) TABLESPACE indx01; The CREATE_BITMAP_AREA_SIZE initialization parameter determines the amount of space used for storing bitmap segments in memory Default 8 MB
51 Changing Storage Parameters for Indexes ALTER INDEX scott.emp_lname_idx STORAGE(NEXT 400K MAXEXTENTS 100);
52 Allocating and Deallocating Index Space ALTER INDEX scott.ord_region_id_idx ALLOCATE EXTENT (SIZE 200K DATAFILE /DISK6/indx01.dbf ); ALTER INDEX scott.ord_ord_no_idx DEALLOCATE UNUSED;
53 Use this command to: Universitatea Politehnica Bucureşti - Facultatea de Automatica si Calculatoare Rebuilding Indexes Move an index to a different tablespace Improve space utilization by removing deleted entries Change a reverse key index to a normal B-tree index and vice versa ALTER INDEX scott.ord_region_id_idx REBUILD TABLESPACE indx02;
54 Coalescing Indexes Before coalescing After coalescing ALTER INDEX orders_id_idx COALESCE;
55 Checking Index Validity ANALYZE INDEX scott.ord_region_id_idx VALIDATE STRUCTURE; Check the index blocks for block corruption Populate the INDEX_STATS view with information about the index INDEX_STATS
56 Dropping Indexes Drop and re-create an index before bulk loads. Drop indexes that are infrequently needed and build them when necessary. Drop and recreate invalid indexes. DROP INDEX scott.dept_dname_idx;
57 Identifying Unused Indexes To start monitoring the usage of an index: ALTER INDEX hr.dept_id_idx MONITORING USAGE To stop monitoring the usage of an index: ALTER INDEX hr.dept_id_idx MONITORING USAGE Statistics displayed in V$OBJECT_USAGE
58 Obtaining Index Information DBA_INDEXES OWNER INDEX_NAME INDEX_TYPE TABLE_OWNER TABLE_NAME UNIQUENESS TABLESPACE_NAME LOGGING STATUS DBA_IND_COLUMNS INDEX_OWNER INDEX_NAME TABLE_OWNER TABLE_NAME COLUMN_NAME COLUMN_POSITION COLUMN_LENGTH
59 Maintaining Data Integrity
60 Objectives After completing this lesson you should be able to do the following: Implement data integrity constraints Maintain integrity constraints Obtain constraint information from the data dictionary
61 Data Integrity DI = data in a database adhere to business rules 3 primary ways: Data Database trigger Integrity constraint Application code Table
62 Types of Constraints Constraint NOT NULL UNIQUE PRIMARY KEY FOREIGN KEY CHECK Description Specifies that a column cannot contain null values Designates a column or combination of columns as unique Designates a column or combination of columns as the table s primary key Designates a column or combination of columns as the foreign key in a referential integrity constraint Specifies a condition that each row of the table must satisfy
63 Constraint States DISABLE NOVALIDATE DISABLE VALIDATE ENABLE NOVALIDATE ENABLE VALIDATE = = Data entered is not checked Data in the table may not conform to the rules defined by the constraint New data Existing data
64 Constraint States DISABLE NOVALIDATE DISABLE VALIDATE ENABLE NOVALIDATE ENABLE VALIDATE = = Any modification of the constrained columns is not allowed The index on the constraint is dropped and the constraint is disabled New data Existing data
65 Constraint States DISABLE NOVALIDATE DISABLE VALIDATE ENABLE NOVALIDATE ENABLE VALIDATE = = New data that violates the constraint cannot be entered The table may contain data that is invalid New data Existing data
66 Constraint States DISABLE NOVALIDATE DISABLE VALIDATE ENABLE NOVALIDATE ENABLE VALIDATE = = A row that violates the constraint cannot be inserted into the table When a constraint changes to ENABLE VALIDATE the table is locked and all data in the table is checked for conformity New data Existing data
67 Constraint Checking You can defer checking constraints for validity until the end of the transaction: DML statement Check nondeferred constraints COMMIT Check deferred constraints
68 Defining Constraints Immediate or Deferred Use the SET CONSTRAINTS statement to make constraints either DEFERRED or IMMEDIATE The ALTER SESSION statement also has clauses to set constraints to DEFERRED or IMMEDIATE
69 Primary and Unique Key Enforcement Key enabled? Yes Is an index available for use? Yes No No Use existing index Constraint deferrable? Yes Do not use index No Create unique index Create nonunique index
70 Foreign Key Considerations To Drop parent table Truncate parent table Drop tablespace containing parent table Avoid locks on child table while performing DML on parent table Perform DML on child table Perform Cascade constraints Disable/drop foreign key Use CASCADE CONSTRAINTS clause Create index on foreign key Ensure tablespace containing parent key index online 25/11/2009 Administrarea Bazelor de Date I
71 Database Triggers DML action Trigger Table Trigger types INSERT or UPDATE or DELETE BEFORE or AFTER ROW or STATEMENT
72 Defining Constraints While Creating a Table CREATE TABLE scott.employees( empno NUMBER(4) CONSTRAINT emp_pk PRIMARY KEY DEFERRABLE USING INDEX STORAGE(INITIAL 100K NEXT 100K) TABLESPACE indx01, last_name VARCHAR2(30) CONSTRAINT emp_ln_nn NOT NULL, deptno NUMBER(2)) TABLESPACE data01;
73 Guidelines for Defining Constraints Primary and unique constraints: Place indexes in a separate tablespace Use nonunique indexes if bulk loads are frequent Self-referencing foreign keys: Define or enable foreign keys after initial load Defer constraint checking
74 Disabling Constraints Disable before bulk load, especially self-referencing foreign keys. Disable referencing foreign keys before disabling parent keys. ALTER TABLE scott.departments DISABLE CONSTRAINT dept_pk CASCADE; Unique indexes are dropped, but nonunique indexes are retained.
75 Enabling Constraints Enable NOVALIDATE No locks on table Primary/unique keys must use nonunique indexes ALTER TABLE scott.departments ENABLE NOVALIDATE CONSTRAINT dept_pk;
76 Enabling Constraints Enable VALIDATE Locks table Can use unique or nonunique indexes Needs valid table data ALTER TABLE scott.employees ENABLE VALIDATE CONSTRAINT emp_dept_fk;
77 Renaming Constraints Use the following to rename a constraint: ALTER TABLE employees RENAME CONSTRAINT emp_dept_fk TO employees_dept_fk;
78 Using the EXCEPTIONS Table 1. Create EXCEPTIONS table by running the utlexcpt.sql script. 2. Execute ALTER TABLE with EXCEPTIONS option. ALTER TABLE hr.employee ENABLE VALIDATE CONSTRAINT employee_dept_id_fk EXCEPTIONS INTO system.exceptions; 3. Use subquery on EXCEPTIONS to locate rows with invalid data. 4. Rectify the errors. 5. Reexecute ALTER TABLE to enable the constraint. SQL> SQL> SELECT rowid, id, id, last_name, dept_id 2 FROM hr.employee 3 WHERE ROWID in in (SELECT row_id 4 FROM exceptions) 5 FOR FOR UPDATE;
79 Disabling and Enabling Triggers Use ALTER TRIGGER to disable or enable one trigger. ALTER TRIGGER scott.emp_conv_ln DISABLE; Use ALTER TABLE to disable or enable all triggers. ALTER TABLE scott.employees ENABLE ALL TRIGGERS;
80 Dropping Constraints Drop constraints using this command: ALTER TABLE scott.employees DROP CONSTRAINT emp_ln_uk; Drop a table and any referencing foreign key using this command: DROP TABLE departments CASCADE CONSTRAINTS;
81 Dropping Triggers DROP TRIGGER scott.audit_dept;
82 Getting Constraint Information DBA_CONSTRAINTS OWNER CONSTRAINT_NAME CONSTRAINT_TYPE TABLE_NAME SEARCH_CONDITION R_OWNER R_CONSTRAINT_NAME DELETE_RULE STATUS DEFERRABLE DEFERRED VALIDATED GENERATED BAD LAST_CHANGE DBA_CONS_COLUMNS OWNER CONSTRAINT_NAME TABLE_NAME COLUMN_NAME POSITION
83 Getting Information on Triggers DBA_TRIGGERS OWNER TRIGGER_NAME TRIGGER_TYPE TRIGGERING_EVENT TABLE_OWNER TABLE_NAME STATUS DESCRIPTION TRIGGER_BODY DBA_TRIGGER_COLS TRIGGER_OWNER TRIGGER_NAME TABLE_OWNER TABLE_NAME COLUMN_NAME DBA_OBJECTS OWNER OBJECT_NAME OBJECT_TYPE STATUS
84 Using Clusters and Index-Organized Tables* *nu intra la examen
85 Objectives After completing this lesson you should be able to do the following: Create and maintain clusters Use index-organized tables Retrieve information about clusters and tables from the data dictionary
86 Distribution of Rows Within a Table Table Cluster Index-organized table Ordering of Rows Random Grouped Ordered
87 Clusters ORD_NO PROD QTY A A G N A W ORD_NO ORD_DT CUST_CD JAN-97 R JAN-97 N45 Cluster Key (ORD_NO) 101 ORD_DT CUST_CD 05-JAN-97 R01 PROD QTY A A W ORD_DT CUST_CD 07-JAN-97 N45 PROD QTY A G N Unclustered ORD and ITEM tables Clustered ORD and ITEM tables
88 Cluster Types Index cluster Hash cluster Hash function
89 1. Create a cluster. 2. Create a cluster index. Universitatea Politehnica Bucureşti - Facultatea de Automatica si Calculatoare Creating Index Clusters CREATE CLUSTER scott.ord_clu (ord_no NUMBER(3)) SIZE 200 TABLESPACE DATA01 STORAGE(INITIAL 5M NEXT 5M PCTINCREASE 0); CREATE INDEX scott.ord_clu_idx ON CLUSTER scott.ord_clu TABLESPACE INDX01 STORAGE(INITIAL 1M NEXT 1M PCTINCREASE 0);
90 3. Create tables in the cluster. Creating Index Clusters CREATE TABLE scott.ord (ord_no NUMBER(3) CONSTRAINT ord_pk PRIMARY KEY, ord_dt DATE, cust_cd VARCHAR2(3)) CLUSTER scott.ord_clu(ord_no); CREATE TABLE scott.item (ord_no NUMBER(3) CONSTRAINT item_ord_fk REFERENCES scott.ord, prod VARCHAR2(5), qty NUMBER(3), CONSTRAINT item_pk PRIMARY KEY(ord_no,prod)) CLUSTER scott.ord_clu(ord_no);
91 1. Create a cluster. Universitatea Politehnica Bucureşti - Facultatea de Automatica si Calculatoare 2. Create tables in a cluster. Creating Hash Clusters CREATE CLUSTER scott.off_clu (country VARCHAR2(2),postcode VARCHAR2(8)) SIZE 500 HASHKEYS 1000 TABLESPACE DATA01 STORAGE(INITIAL 5M 5M NEXT 5M 5M PCTINCREASE 0); CREATE TABLE scott.office( office_cd NUMBER(3), cost_ctr NUMBER(3), country VARCHAR2(2), postcode VARCHAR2(8)) CLUSTER scott.off_clu(country,postcode);
92 Defining SIZE for Clusters Defines space used by all the rows for a given key. Used in both types of cluster to estimate: The maximum number of key values per block for an index cluster The exact number of key values per block for a hash cluster
93 Parameters Specific to Hash Clusters HASHKEYS: Number of key values HASH IS: Optional user-defined hash function Key 21 Key 11 Key 12 Key 1 Key 2 Key 3 Key 22 Preallocated blocks Overflow block
94 Altering Clusters Change storage and block space usage parameters Change SIZE for index clusters Allocate and deallocate space ALTER CLUSTER scott.ord_clu SIZE 300 STORAGE (NEXT 2M); SIZE, HASH IS, or HASHKEYS cannot be altered for hash clusters
95 Dropping Clusters Use INCLUDING TABLES to drop tables and cluster DROP CLUSTER scott.ord_clu INCLUDING TABLES; or drop tables before dropping cluster. DROP TABLE scott.ord; DROP TABLE scott.item; DROP CLUSTER scott.ord_clu;
96 Situations Where Clusters Are Useful Criterion Index Hash Uniform key distribution Evenly spread key values Rarely updated key Often joined master-detail tables Predictable number of key values Queries using equality predicate on key 25/11/2009 Administrarea Bazelor de Date I
97 Retrieving Cluster Information DBA_CLUSTERS OWNER CLUSTER_NAME TABLESPACE_NAME KEY_SIZE CLUSTER_TYPE FUNCTION HASHKEYS DBA_CLU_COLUMNS OWNER CLUSTER_NAME CLU_COLUMN_NAME TABLE_NAME TAB_COLUMN_NAME DBA_TAB_COLUMNS OWNER TABLE_NAME COLUMN_NAME DATA_TYPE DATA_LENGTH DATA_PRECISION DATA_SCALE DBA_CLUSTER_ HASH_EXPRESSIONS OWNER CLUSTER_NAME HASH_EXPRESSION
98 Index-Organized Tables Indexed access on table Accessing index- organized table ROWID Non-key columns Key column Row header
99 Index-Organized Tables Compared with Regular Tables Regular Table Unique identifier ROWID ROWID implicit Supports several indexes FTS returns rows in no specific order Unique constraints allowed Distribution, replication, and partitioning supported Index-Organized Table Identified by primary key No ROWID No secondary indexes Full index scans return rows in PK order No support for unique constraints Distribution, replication, and partitioning not supported
100 Creating Index-Organized Tables CREATE TABLE scott.sales ( office_cd NUMBER(3), qtr_end DATE, revenue NUMBER(10,2), review VARCHAR2(1000), CONSTRAINT sales_pk PRIMARY KEY(office_code, qtr_end)) ORGANIZATION INDEX TABLESPACE data01 PCTTHRESHOLD 20 OVERFLOW TABLESPACE data02;
101 Row Overflow IOT tablespace Segment = PK Name Type = Index Overflow tablespace Segment = SYS_IOT_OVER_n Type=Table Block Rows within PCTTHRESHOLD Row bigger than PCTTHRESHOLD
102 Retrieving IOT Information from Data Dictionary DBA_TABLES OWNER TABLE_NAME IOT_TYPE IOT_NAME TABLESPACE_NAME DBA_INDEXES OWNER TABLE_NAME INDEX_NAME INDEX_TYPE PCT_THRESHOLD INCLUDE_COLUMN
Tuning Considerations for Different Applications Lesson 4
4 Tuning Considerations for Different Applications Lesson 4 Objectives After completing this lesson, you should be able to do the following: Use the available data access methods to tune the logical design
More informationDBA_VIEWS DBA_SEQUENCES
Findexesontosabb táblák, nézetek DBA_OBJECTS/ALL_OBJECT OWNER (char) OBJECT_NAME (char) OBJECT_ID (number) OBJECT_TYPE (char) TABLE/INDEX/TRIGGER/VIEW CREATED létrehozva (dátum) LAST_DDL_TIME módosítva
More informationOracle9i DBA Fundamentals I
Oracle9i DBA Fundamentals I Volume 2 Student Guide D11321GC10 Production 1.0 May 2001 D32644 Authors Sarath Chandran Marie St. Gelais S Matt Taylor Jr Technical Reviewers Howard Bradley Ruth Baylis Paul
More informationENHANCING DATABASE PERFORMANCE
ENHANCING DATABASE PERFORMANCE Performance Topics Monitoring Load Balancing Defragmenting Free Space Striping Tables Using Clusters Using Efficient Table Structures Using Indexing Optimizing Queries Supplying
More informationCreating and Managing Tables Schedule: Timing Topic
9 Creating and Managing Tables Schedule: Timing Topic 30 minutes Lecture 20 minutes Practice 50 minutes Total Objectives After completing this lesson, you should be able to do the following: Describe the
More informationDatabase Foundations. 6-3 Data Definition Language (DDL) Copyright 2015, Oracle and/or its affiliates. All rights reserved.
Database Foundations 6-3 Roadmap You are here Introduction to Oracle Application Express Structured Query Language (SQL) Data Definition Language (DDL) Data Manipulation Language (DML) Transaction Control
More informationOracle Tables TECHGOEASY.COM
Oracle Tables TECHGOEASY.COM 1 Oracle Tables WHAT IS ORACLE DATABASE TABLE? -Tables are the basic unit of data storage in an Oracle Database. Data is stored in rows and columns. -A table holds all the
More informationSeminar: Presenter: Oracle Database Objects Internals. Oren Nakdimon.
Seminar: Oracle Database Objects Internals Presenter: Oren Nakdimon www.db-oriented.com oren@db-oriented.com 054-4393763 @DBoriented 1 Oren Nakdimon Who Am I? Chronology by Oracle years When What Where
More informationUsing DDL Statements to Create and Manage Tables. Copyright 2004, Oracle. All rights reserved.
Using DDL Statements to Create and Manage Tables Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Categorize the main database
More informationUsing DDL Statements to Create and Manage Tables. Copyright 2004, Oracle. All rights reserved.
Using DDL Statements to Create and Manage Tables Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Categorize the main database
More informationData Warehousing & Big Data at OpenWorld for your smartphone
Data Warehousing & Big Data at OpenWorld for your smartphone Smartphone and tablet apps, helping you get the most from this year s OpenWorld Access to all the most important information Presenter profiles
More informationQuestion: Which statement would you use to invoke a stored procedure in isql*plus?
What are the two types of subprograms? procedure and function Which statement would you use to invoke a stored procedure in isql*plus? EXECUTE Which SQL statement allows a privileged user to assign privileges
More informationOptimal Physical Database Design for Oracle8i
Optimal Physical Database Design for Oracle8i Dave Ensor BMC Software, Inc The opinions expressed in this paper are those of the author, and are not necessarily shared by BMC Software, Inc. Introduction
More informationCourse Contents of ORACLE 9i
Overview of Oracle9i Server Architecture Course Contents of ORACLE 9i Responsibilities of a DBA Changing DBA Environments What is an Oracle Server? Oracle Versioning Server Architectural Overview Operating
More informationRDBMS Topic 4 Adv. SQL, MSBTE Questions and Answers ( 12 Marks)
2017 RDBMS Topic 4 Adv. SQL, MSBTE Questions and Answers ( 12 Marks) 2016 Q. What is view? Definition of view: 2 marks) Ans : View: A view is a logical extract of a physical relation i.e. it is derived
More informationABSTRACT INTRODUCTION. Bhaskar Himatsingka, Oracle Corporation & Juan Loaiza, Oracle Corporation
HOW TO STOP DEFRAGMENTING AND START LIVING: THE DEFINITIVE WORD ON FRAGMENTATION Bhaskar Himatsingka, Oracle Corporation & Juan Loaiza, Oracle Corporation ABSTRACT Fragmentation is an issue of great concern
More informationCorrectexams.com. Exam :1Z0-031 Title:Oracle9i: DBA Fundamentals I Version Number:Version Last Verified and Updated on Jan 4, 2003
Correctexams.com Exam :1Z0-031 Title:Oracle9i: DBA Fundamentals I Version Number:Version 1-2003 Last Verified and Updated on Jan 4, 2003 Fast Way to get your Certification Real Level Practice Questions
More informationRNDr. Michal Kopecký, Ph.D. Department of Software Engineering, Faculty of Mathematics and Physics, Charles University in Prague
seminář: Administrace Oracle (NDBI013) LS2017/18 RNDr. Michal Kopecký, Ph.D. Department of Software Engineering, Faculty of Mathematics and Physics, Charles University in Prague Database structure Database
More informationQuestion: 1 Identify three components of an Oracle instance for which you can change the size dynamically. (Choose three.)
Question: 1 Identify three components of an Oracle instance for which you can change the size dynamically. (Choose three.) A. Java Pool B. Large Pool C. Shared Pool D. Redo Log Buffer E. Database Buffer
More informationUsing DDL Statements to Create and Manage Tables. Copyright 2006, Oracle. All rights reserved.
Using DDL Statements to Create and Manage Tables Objectives After completing this lesson, you should be able to do the following: Categorize the main database objects Review the table structure List the
More informationOracle Alter Table Add Unique Constraint Using Index Tablespace
Oracle Alter Table Add Unique Constraint Using Index Tablespace You must also have space quota in the tablespace in which space is to be acquired in Additional Prerequisites for Constraints and Triggers
More informationROLLBACK SEGMENTS. In this chapter, you will learn about: Rollback Segment Management Page 272
C H A P T E R 1 2 ROLLBACK SEGMENTS CHAPTER OBJECTIVES In this chapter, you will learn about: Rollback Segment Management Page 272 The information in a rollback segment is used for query read consistency,
More informationOracle Tuning Pack. Table Of Contents. 1 Introduction. 2 Installation and Configuration. 3 Documentation and Help. 4 Oracle SQL Analyze
Oracle Tuning Pack Readme Release 2.1.0.0.0 for Windows February 2000 Part No. A76921-01 Table Of Contents 1 Introduction 2 Installation and Configuration 3 Documentation and Help 4 Oracle SQL Analyze
More informationOracle.ActualTests.1Z0-023.v by.Ramon.151q
Oracle.ActualTests.1Z0-023.v2009-03-18.by.Ramon.151q Number: 1Z0-023 Passing Score: 800 Time Limit: 120 min File Version: 33.4 http://www.gratisexam.com/ Oracle 1z0-023 Exam Exam Name: Architecture and
More informationNORAD DBControl Online Whitepaper
NORAD DBControl Online Whitepaper Ensuring Modern Database Service Standards with Online Reorganizations and Structural Changes Bradmark Technologies, Inc. 1 Contents Introduction... 3 Reasons to Reorganize...
More information04 Storage management 15/07/17 12:34 AM. Storage management
Storage management 1 "High water" and "low water" marks PCTFREE and PCTUSED parameters PCTFREE ("high water" mark) and PCTUSED ("low water" mark) parameters control the use of free space for inserts and
More informationOracle ActualTests v by BeCKS
Oracle ActualTests v1.0 12.11.06 by BeCKS Number: 1Z0-031 Passing Score: 750 Time Limit: 180 min File Version: 24.8 http://www.gratisexam.com/ Oracle 1z0-031 Exam Exam Name: Oracle9i:Database Fundamentals
More informationORACLE 12C NEW FEATURE. A Resource Guide NOV 1, 2016 TECHGOEASY.COM
ORACLE 12C NEW FEATURE A Resource Guide NOV 1, 2016 TECHGOEASY.COM 1 Oracle 12c New Feature MULTITENANT ARCHITECTURE AND PLUGGABLE DATABASE Why Multitenant Architecture introduced with 12c? Many Oracle
More informationAdvanced indexing methods Usage and Abusage. Riyaj Shamsudeen Ora!nternals
Advanced indexing methods Usage and Abusage Riyaj Shamsudeen Ora!nternals Introduction Who am I? Various indexing features Use and abuse of index types Questions Riyaj Shamsudeen @Orainternals 2 Who am
More informationTablespace Usage By Schema In Oracle 11g Query To Check Temp
Tablespace Usage By Schema In Oracle 11g Query To Check Temp The APPS schema has access to the complete Oracle E-Business Suite data model. E-Business Suite Release 12.2 requires an Oracle database block
More informationAppendix C. Database Administration. Using SQL. SQL Statements. Data Definition Statements (DDL)
Appendix C Appendix C Database Administration The following sections provide information about the tools that can be used to maintain your Oracle Utilities Work and Asset Management database. Using SQL
More informationCHAPTER. Getting Started with the Oracle Architecture
CHAPTER 1 Getting Started with the Oracle Architecture 3 4 Oracle Database 11g DBA Handbook Oracle Database 11g is an evolutionary step from the previous release of Oracle 10g; Oracle 10g was, in turn,
More informationDumpsKing. Latest exam dumps & reliable dumps VCE & valid certification king
DumpsKing http://www.dumpsking.com Latest exam dumps & reliable dumps VCE & valid certification king Exam : 1z1-062 Title : Oracle Database 12c: Installation and Administration Vendor : Oracle Version
More informationExam: 1Z Title : Oracle9i: Performance Tuning. Ver :
Exam: Title : Oracle9i: Performance Tuning Ver : 01.22.04 Section A contains 226 questions. Section B contains 60 questions. The total number of questions is 286. Answers to the unanswered questions will
More informationD B M G Data Base and Data Mining Group of Politecnico di Torino
Database Management Data Base and Data Mining Group of tania.cerquitelli@polito.it A.A. 2014-2015 Optimizer operations Operation Evaluation of expressions and conditions Statement transformation Description
More informationOracle DB-Tuning Essentials
Infrastructure at your Service. Oracle DB-Tuning Essentials Agenda 1. The DB server and the tuning environment 2. Objective, Tuning versus Troubleshooting, Cost Based Optimizer 3. Object statistics 4.
More information6232B: Implementing a Microsoft SQL Server 2008 R2 Database
6232B: Implementing a Microsoft SQL Server 2008 R2 Database Course Overview This instructor-led course is intended for Microsoft SQL Server database developers who are responsible for implementing a database
More informationChapter 4 Database Administration
Appendix Chapter 4 Database Administration The following sections provide information about the tools that can be used to maintain your Oracle Utilities Work and Asset Management Database. Using SQL SQL
More information1z Oracle9i Performance Tuning. Version 19.0
1z0-033 Oracle9i Performance Tuning Version 19.0 Important Note Please Read Carefully Study Tips This product will provide you questions and answers along with detailed explanations carefully compiled
More informationOracle 1Z0-235 Exam Questions & Answers
Oracle 1Z0-235 Exam Questions & Answers Number: 1z0-235 Passing Score: 800 Time Limit: 120 min File Version: 26.5 http://www.gratisexam.com/ Oracle 1Z0-235 Exam Questions & Answers Exam Name: Oracle 11i
More informationOracle 1Z0-031 Exam Questions & Answers
Oracle 1Z0-031 Exam Questions & Answers Number: 1z0-031 Passing Score: 600 Time Limit: 105 min File Version: 10.2 http://www.gratisexam.com/ Oracle 1Z0-031 Exam Questions & Answers Exam Name: orcacle9i
More informationExam : 1Z : Oracle 9i Database Fundamentals I. Title. Ver :
Exam : 1Z0-031 Title : Oracle 9i Database Fundamentals I Ver : 03.27.07 QUESTION 1 You executed the following command to change the default temporary tablespace in your database: ALTER DATABASE DEFAULT
More informationIndexes (continued) Customer table with record numbers. Source: Concepts of Database Management
12 Advanced Topics Objectives Use indexes to improve database performance Examine the security features of a DBMS Discuss entity, referential, and legal-values integrity Make changes to the structure of
More informationLab # 4. Data Definition Language (DDL)
Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 4113: Lab # 4 Data Definition Language (DDL) Eng. Haneen El-Masry November, 2014 2 Objective To be familiar with
More informationCHAPTER4 CONSTRAINTS
CHAPTER4 CONSTRAINTS LEARNING OBJECTIVES After completing this chapter, you should be able to do the following: Explain the purpose of constraints in a table Distinguish among PRIMARY KEY, FOREIGN KEY,
More informationIntroduction to Computer Science and Business
Introduction to Computer Science and Business This is the second portion of the Database Design and Programming with SQL course. In this portion, students implement their database design by creating a
More informationCHAPTER: 4 ADVANCE SQL: SQL PERFORMANCE TUNING (12 Marks)
(12 Marks) 4.1 VIEW View: Views are virtual relations mainly used for security purpose, and can be provided on request by a particular user. A view can contain all rows of a table or select rows from a
More informationC Examcollection.Premium.Exam.58q
C2090-610.Examcollection.Premium.Exam.58q Number: C2090-610 Passing Score: 800 Time Limit: 120 min File Version: 32.2 http://www.gratisexam.com/ Exam Code: C2090-610 Exam Name: DB2 10.1 Fundamentals Visualexams
More informationData Definition Language (DDL)
Islamic University of Gaza Faculty of Engineering Computer Engineering Dept. Database Lab (ECOM 4113) Lab 6 Data Definition Language (DDL) Eng. Mohammed Alokshiya November 11, 2014 Database Keys A key
More informationExperiences of Global Temporary Tables in Oracle 8.1
Experiences of Global Temporary Tables in Oracle 8.1 Global Temporary Tables are a new feature in Oracle 8.1. They can bring significant performance improvements when it is too late to change the design.
More informationData Organization and Processing I
Data Organization and Processing I Data Organization in Oracle Server 11g R2 (NDBI007) RNDr. Michal Kopecký, Ph.D. http://www.ms.mff.cuni.cz/~kopecky Database structure o Database structure o Database
More informationVerifiedDumps. Get the Valid and Verified Exam Questions & Answers Dump for 100% Pass
VerifiedDumps http://www.verifieddumps.com Get the Valid and Verified Exam Questions & Answers Dump for 100% Pass Exam : 1Z0-031 Title : Oracle9i database:fundamentals i Vendors : Oracle Version : DEMO
More informationLab # 2. Data Definition Language (DDL) Eng. Alaa O Shama
The Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 4113: Database Lab Lab # 2 Data Definition Language (DDL) Eng. Alaa O Shama October, 2015 Objective To be familiar
More informationPart 4: B-Tree Indexes
4. B-Tree Indexes 4-1 References: Part 4: B-Tree Indexes Elmasri/Navathe: Fundamentals of Database Systems, 3nd Ed., 6. Index Structures for Files, 16.3 Physical Database Design in Relational Databases,
More informationKing Fahd University of Petroleum and Minerals
1 King Fahd University of Petroleum and Minerals Information and Computer Science Department ICS 334: Database Systems Semester 041 Major Exam 1 18% ID: Name: Section: Grades Section Max Scored A 5 B 25
More informationFile Structures and Indexing
File Structures and Indexing CPS352: Database Systems Simon Miner Gordon College Last Revised: 10/11/12 Agenda Check-in Database File Structures Indexing Database Design Tips Check-in Database File Structures
More informationC. Use the TO_CHAR function around SYSDATE, that is, 1_date := TO_CHAR (SYSDATE).
Volume: 75 Questions Question: 1 Examine this code: Users of this function may set different date formats in their sessions. Which two modifications must be made to allow the use of your session s date
More informationEDUVITZ TECHNOLOGIES
EDUVITZ TECHNOLOGIES Oracle Course Overview Oracle Training Course Prerequisites Computer Fundamentals, Windows Operating System Basic knowledge of database can be much more useful Oracle Training Course
More informationCustomer PTC E-Newsletter Date: 4/9/03
Customer PTC E-Newsletter Date: 4/9/03 PTC Product Focus: A) Pro/ENGINEER ModelCHECK Structure Tips of the Week: Fragmentation B) Oracle for Windchill : Understanding the Basic Database A) Associative
More informationCourse Outline and Objectives: Database Programming with SQL
Introduction to Computer Science and Business Course Outline and Objectives: Database Programming with SQL This is the second portion of the Database Design and Programming with SQL course. In this portion,
More informationOracle Syllabus Course code-r10605 SQL
Oracle Syllabus Course code-r10605 SQL Writing Basic SQL SELECT Statements Basic SELECT Statement Selecting All Columns Selecting Specific Columns Writing SQL Statements Column Heading Defaults Arithmetic
More informationINDEX. 1 Basic SQL Statements. 2 Restricting and Sorting Data. 3 Single Row Functions. 4 Displaying data from multiple tables
INDEX Exercise No Title 1 Basic SQL Statements 2 Restricting and Sorting Data 3 Single Row Functions 4 Displaying data from multiple tables 5 Creating and Managing Tables 6 Including Constraints 7 Manipulating
More informationCS6312 DATABASE MANAGEMENT SYSTEMS LABORATORY L T P C
CS6312 DATABASE MANAGEMENT SYSTEMS LABORATORY L T P C 0 0 3 2 LIST OF EXPERIMENTS: 1. Creation of a database and writing SQL queries to retrieve information from the database. 2. Performing Insertion,
More informationKathleen Durant PhD Northeastern University CS Indexes
Kathleen Durant PhD Northeastern University CS 3200 Indexes Outline for the day Index definition Types of indexes B+ trees ISAM Hash index Choosing indexed fields Indexes in InnoDB 2 Indexes A typical
More informationExam Name: Oracle 11i Applications DBA: Fundamentals I Exam Type Oracle Exam Code: 1z0-235 Total Questions: 108
Question: 1 You receive the following error while connecting to an Oracle9i database instance: ORA-12523 TNS:listener could not find instance appropriate for the client connection Which action would be
More information5. Single-row function
1. 2. Introduction Oracle 11g Oracle 11g Application Server Oracle database Relational and Object Relational Database Management system Oracle internet platform System Development Life cycle 3. Writing
More informationImplementation of Database Systems David Konopnicki Taub 715 Spring Sources
Implementation of Database Systems 236510 David Konopnicki Taub 715 Spring 2000 1 2 Sources Oracle 7 Server Concepts - Oracle8i Server Concepts. Oracle Corp. Available on the course Web Site: http://www.cs.technion.ac.il/~cs236510
More informationDATA CONSTRAINT. Prepared By: Dr. Vipul Vekariya
DATA CONSTRAINT Prepared By: Dr. Vipul Vekariya What is constraint? Constraints enforce rules at the table level. Constraints prevent the deletion of a table if there are dependencies. There are two types
More informationCopyright 2013, Oracle and/or its affiliates. All rights reserved.
2 Copyright 23, Oracle and/or its affiliates. All rights reserved. Oracle Database 2c Heat Map, Automatic Data Optimization & In-Database Archiving Platform Technology Solutions Oracle Database Server
More informationOracle Database 11gR2 Optimizer Insights
Oracle Database 11gR2 Optimizer Insights Marcus Bender Distinguished Sales Consultant Presales Fellow Strategic Technical Support (STU) ORACLE Deutschland GmbH, Geschäftsstelle Hamburg Parallel Execution
More informationDifficult I.Q on Databases, asked to SCTPL level 2 students 2015
Do you know the basic memory structures associated with any Oracle Database. (W.r.t 10g / 11g / 12c)? The basic memory structures associated with Oracle Database include: System Global Area (SGA) The SGA
More informationSQL is an English like language consisting of commands to store, retrieve, maintain & regulate access to your database.
SQL SQL is an English like language consisting of commands to store, retrieve, maintain & regulate access to your database. SQL*Plus SQL*Plus is an application that recognizes & executes SQL commands &
More informationOracle 1z z0-146 Oracle Database 11g: Advanced PL/SQL. Practice Test. Version QQ:
Oracle 1z0-146 1z0-146 Oracle Database 11g: Advanced PL/SQL Practice Test Version 1.1 QUESTION NO: 1 Which two types of metadata can be retrieved by using the various procedures in the DBMS_METADATA PL/SQL
More informationeinfach. gut. beraten. How to reorganize and why? DOAG Conference + Exhibition , Nuremberg Klaus Reimers
einfach. gut. beraten. How to reorganize and why? DOAG Conference + Exhibition 2015 17.11.2015, Nuremberg Klaus Reimers info@ordix.de www.ordix.de Agenda Reorganizing tables Reorganizing indexes Conclusions
More informationOracle Alter Table Add Primary Key Using Index
Oracle Alter Table Add Primary Key Using Index Partition open Syntax for Schema Objects and Parts in SQL Statements One or more columns of a table, a partitioned table, an index-organized table, or a cluster
More informationA <column constraint> is a constraint that applies to a single column.
Lab 7 Aim: Creating Simple tables in SQL Basic Syntax for create table command is given below: CREATE TABLE ( [DEFAULT ] [], {
More informationOracle Database Performance Tuning, Benchmarks & Replication
Oracle Database Performance Tuning, Benchmarks & Replication Kapil Malhotra kapil.malhotra@software.dell.com Solutions Architect, Information Management Dell Software 2 11/29/2013 Software Database Tuning
More informationOracle DB-Tuning Essentials
Infrastructure at your Service. Oracle DB-Tuning Essentials Agenda 1. The DB server and the tuning environment 2. Objective, Tuning versus Troubleshooting, Cost Based Optimizer 3. Object statistics 4.
More information: ADMINISTRATION I EXAM OBJECTIVES COVERED IN THIS CHAPTER:
4367c01.fm Page 1 Wednesday, April 6, 2005 8:14 AM Chapter 1 Oracle Database 10g Components and Architecture ORACLE DATABASE 10G: ADMINISTRATION I EXAM OBJECTIVES COVERED IN THIS CHAPTER: Installing Oracle
More informationIndexing. Jan Chomicki University at Buffalo. Jan Chomicki () Indexing 1 / 25
Indexing Jan Chomicki University at Buffalo Jan Chomicki () Indexing 1 / 25 Storage hierarchy Cache Main memory Disk Tape Very fast Fast Slower Slow (nanosec) (10 nanosec) (millisec) (sec) Very small Small
More informationLecture7: SQL Overview, Oracle Data Type, DDL and Constraints Part #2
IS220 : Database Fundamentals College of Computer and Information Sciences - Information Systems Dept. Lecture7: SQL Overview, Oracle Data Type, DDL and Constraints Part #2 Ref. Chapter6 Prepared by L.
More informationObjectives. After completing this lesson, you should be able to do the following:
Objectives After completing this lesson, you should be able to do the following: Describe the types of problems that subqueries can solve Define subqueries List the types of subqueries Write single-row
More informationIT Certification Exams Provider! Weofferfreeupdateserviceforoneyear! h ps://
IT Certification Exams Provider! Weofferfreeupdateserviceforoneyear! h ps://www.certqueen.com Exam : 1Z0-146 Title : Oracle database 11g:advanced pl/sql Version : Demo 1 / 9 1.The database instance was
More informationOracle Data Pump Internals
Oracle Data Pump Internals Dean Gagne Oracle USA Nashua NH USA Keywords: Oracle Data Pump, export, import, transportable tablespace, parallel, restart Introduction Oracle Data Pump was a new feature introduced
More informationRMOUG Training Days 2018
RMOUG Training Days 2018 Pini Dibask Product Manager for Database Tools February 22 nd, 2018 Oracle Database Locking Mechanism Demystified About the Speaker Pini Dibask, Product Manager for Database Tools,
More informationSecureFiles Migration O R A C L E W H I T E P A P E R F E B R U A R Y
SecureFiles Migration O R A C L E W H I T E P A P E R F E B R U A R Y 2 0 1 8 Table of Contents Disclaimer 1 Introduction 2 Using SecureFiles 2 Migration Techniques 3 Migration with Online Redefinition
More informationOracle Architectural Components
Oracle Architectural Components Date: 14.10.2009 Instructor: Sl. Dr. Ing. Ciprian Dobre 1 Overview of Primary Components User process Shared Pool Instance SGA Server process PGA Library Cache Data Dictionary
More informationMySQL Introduction. By Prof. B.A.Khivsara
MySQL Introduction By Prof. B.A.Khivsara Note: The material to prepare this presentation has been taken from internet and are generated only for students reference and not for commercial use. Outline Design
More informationOracle MOOC: SQL Fundamentals
Week 4 Homework for Lesson 4 Homework is your chance to put what you've learned in this lesson into practice. This homework is not "graded" and you are encouraged to write additional code beyond what is
More informationLecture7: SQL Overview, Oracle Data Type, DDL and Constraints Part #2
Lecture7: SQL Overview, Oracle Data Type, DDL and Constraints Part #2 Ref. Chapter6 Prepared by L. Nouf Almujally & Aisha AlArfaj& L.Fatima Alhayan Colleg Comp Informa Scien Informa Syst D 1 IS220 : Database
More informationTable Compression in Oracle9i Release2. An Oracle White Paper May 2002
Table Compression in Oracle9i Release2 An Oracle White Paper May 2002 Table Compression in Oracle9i Release2 Executive Overview...3 Introduction...3 How It works...3 What can be compressed...4 Cost and
More informationORACLE VIEWS ORACLE VIEWS. Techgoeasy.com
ORACLE VIEWS ORACLE VIEWS Techgoeasy.com 1 Oracle VIEWS WHAT IS ORACLE VIEWS? -A view is a representation of data from one or more tables or views. -A view is a named and validated SQL query which is stored
More informationSQL Coding Guidelines
SQL Coding Guidelines 1. Always specify SET NOCOUNT ON at the top of the stored procedure, this command suppresses the result set count information thereby saving some amount of time spent by SQL Server.
More informationCopyright 2012, Oracle and/or its affiliates. All rights reserved.
1 Oracle Partitioning für Einsteiger Hermann Bär Partitioning Produkt Management 2 Disclaimer The goal is to establish a basic understanding of what can be done with Partitioning I want you to start thinking
More informationORACLE DATABASE 12C INTRODUCTION
SECTOR / IT NON-TECHNICAL & CERTIFIED TRAINING COURSE In this training course, you gain the skills to unleash the power and flexibility of Oracle Database 12c, while gaining a solid foundation of database
More information.. Spring 2008 CSC 468: DBMS Implementation Alexander Dekhtyar..
.. Spring 2008 CSC 468: DBMS Implementation Alexander Dekhtyar.. Tuning Oracle Query Execution Performance The performance of SQL queries in Oracle can be modified in a number of ways: By selecting a specific
More information1 Writing Basic SQL SELECT Statements 2 Restricting and Sorting Data
1 Writing Basic SQL SELECT Statements Objectives 1-2 Capabilities of SQL SELECT Statements 1-3 Basic SELECT Statement 1-4 Selecting All Columns 1-5 Selecting Specific Columns 1-6 Writing SQL Statements
More informationPhysical Schema Design. Storage structures Indexing techniques in DBS
Physical Schema Design Storage structures Indexing techniques in DBS 1 Physical Design: Goal and influence factors Physical schema design goals Effective data organization Effective access to disc Effectiveness
More informationOracle Database 10g: Introduction to SQL
ORACLE UNIVERSITY CONTACT US: 00 9714 390 9000 Oracle Database 10g: Introduction to SQL Duration: 5 Days What you will learn This course offers students an introduction to Oracle Database 10g database
More informationStorage hierarchy. Textbook: chapters 11, 12, and 13
Storage hierarchy Cache Main memory Disk Tape Very fast Fast Slower Slow Very small Small Bigger Very big (KB) (MB) (GB) (TB) Built-in Expensive Cheap Dirt cheap Disks: data is stored on concentric circular
More information