Oracle 11g


Published on


  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Oracle 11g

  1. 1. ORACLE DATABASE 11gPeriod: 3 Months (1Month/Module)Module I: SQL FUND IIPrefaceI IntroductionObjectives I-2Course Objectives I-3Course Overview I-4Summary I-61 Controlling User AccessObjectives 1-2Controlling User Access 1-3Privileges 1-4System Privileges 1-5Creating Users 1-6User System Privileges 1-7Granting System Privileges 1-8What Is a Role? 1-9Creating and Granting Privileges to a Role 1-10Changing Your Password 1-11Object Privileges 1-12Granting Object Privileges 1-14Passing On Your Privileges 1-15Confirming Privileges Granted 1-16Revoking Object Privileges 1-17Summary 1-19Practice 1: Overview 1-202 Manage Schema ObjectsObjectives 2-2The ALTER TABLE Statement 2-3Adding a Column 2-5Modifying a Column 2-6Dropping a Column 2-7The SET UNUSED Option 2-8Adding a Constraint Syntax 2-10Adding a Constraint 2-11ON DELETE CASCADE 2-12Deferring Constraints 2-13Dropping a Constraint 2-14Disabling Constraints 2-15Enabling Constraints 2-16
  2. 2. Cascading Constraints 2-18Overview of Indexes 2-20CREATE INDEX with CREATE TABLE Statement 2-21Function-Based Indexes 2-23Removing an Index 2-25DROP TABLE ... PURGE 2-26The FLASHBACK TABLE Statement 2-27External Tables 2-29Creating a Directory for the External Table 2-31Creating an External Table 2-33Creating an External Table Using ORACLE_LOADER 2-35Querying External Tables 2-37Summary 2-38Practice 2: Overview 2-393 Manipulating Large Data SetsObjectives 3-2Using Subqueries to Manipulate Data 3-3Copying Rows from Another Table 3-4Inserting Using a Subquery as a Target 3-5Retrieving Data with a Subquery as Source 3-7Updating Two Columns with a Subquery 3-8Updating Rows Based on Another Table 3-9Deleting Rows Based on Another Table 3-10Using the WITH CHECK OPTION Keyword on DML Statements 3-11Overview of the Explicit Default Feature 3-12Using Explicit Default Values 3-13Overview of Multitable INSERT Statements 3-14Types of Multitable INSERT Statements 3-16Multitable INSERT Statements 3-17Unconditional INSERT ALL 3-19Conditional INSERT ALL 3-20Conditional INSERT FIRST 3-22Pivoting INSERT 3-24The MERGE Statement 3-27The MERGE Statement Syntax 3-28Merging Rows 3-29Tracking Changes in Data 3-31Example of the Flashback Version Query 3-32The VERSIONS BETWEEN Clause 3-34Summary 3-35Practice 3: Overview 3-364 Generating Reports by Grouping Related DataObjectives 4-2
  3. 3. Review of Group Functions 4-3Review of the GROUP BY Clause 4-4Review of the HAVING Clause 4-5GROUP BY with ROLLUP and CUBE Operators 4-6ROLLUP Operator 4-7ROLLUP Operator: Example CUBE Operator 4-9CUBE Operator: Example 4-10GROUPING Function 4-11GROUPING Function: Example 4-12GROUPING SETS 4-13GROUPING SETS: Example 4-15Composite Columns 4-17Composite Columns: Example 4-19Concatenated Groupings 4-21Concatenated Groupings: Example 4-22Summary 4-23Practice 4: Overview 4-245 Managing Data in Different Time ZonesObjectives 5-2Time Zones 5-3TIME_ZONE Session Parameter 5-4CURRENT_DATE, CURRENT_TIMESTAMP, and LOCALTIMESTAMP 5-5CURRENT_DATE 5-6CURRENT_TIMESTAMP 5-7LOCALTIMESTAMP 5-8DBTIMEZONE and SESSIONTIMEZONE 5-9TIMESTAMP Data Type 5-10TIMESTAMP Data Types 5-11TIMESTAMP Fields 5-12Difference between DATE and TIMESTAMP 5-13TIMESTAMP WITH TIMEZONE Data Type 5-14TIMESTAMP WITH TIMEZONE: Example 5-15TIMESTAMP WITH LOCAL TIMEZONE 5-16TIMESTAMP WITH LOCAL TIMEZONE: Example 5-17INTERVAL Data Types 5-18INTERVAL Fields 5-20INTERVAL YEAR TO MONTH Data Type 5-21INTERVAL YEAR TO MONTH: Example 5-22INTERVAL DAY TO SECOND Data Type 5-23INTERVAL DAY TO SECOND Data Type: Example 5-24EXTRACT 5-25TZ_OFFSET 5-26TIMESTAMP Conversion Using FROM_TZ 5-28Converting to TIMESTAMP Using TO_TIMESTAMP and TO_TIMESTAMP_TZ 5-29Time Interval Conversion with TO_YMINTERVAL 5-30Using TO_DSINTERVAL: Example 5-31Daylight Saving Time 5-32
  4. 4. Summary 5-34Practice 5: Overview 5-356 Retrieving Data Using SubqueriesObjectives 6-2Multiple-Column Subqueries 6-3Column Comparisons 6-4Pairwise Comparison Subquery 6-5Nonpairwise Comparison Subquery 6-6Scalar Subquery Expressions 6-7Scalar Subqueries: Examples 6-8Correlated Subqueries 6-10Using Correlated Subqueries 6-12Using the EXISTS Operator 6-14Find Employees Who Have at Least One Person Reporting to Them 6-15Find All Departments That Do Not Have Any Employees 6-16Correlated UPDATE 6-17Using Correlated UPDATE 6-18Correlated DELETE 6-20Using Correlated DELETE 6-21The WITH Clause 6-22WITH Clause: Example 6-23Summary 6-25Practice 6: Overview 6-277 Hierarchical RetrievalObjectives 7-2Sample Data from the EMPLOYEES Table 7-3Natural Tree Structure 7-4Hierarchical Queries 7-5Walking the Tree 7-6Walking the Tree: From the Bottom Up 7-8Walking the Tree: From the Top Down 7-9Ranking Rows with the LEVEL Pseudocolumn 7-10Formatting Hierarchical Reports Using LEVEL and LPAD 7-11Pruning Branches 7-13Summary 7-14Practice 7: Overview 7-158. Regular Expression SupportObjectives 8-2Regular Expression Overview 8-3Meta Characters 8-4Using Meta Characters 8-5Regular Expression Functions 8-7
  5. 5. The REGEXP Function Syntax 8-8Performing Basic Searches 8-9Checking the Presence of a Pattern 8-10Example of Extracting Substrings 8-11Replacing Patterns 8-12Regular Expressions and Check Constraints 8-13Summary 8-14Practice 8: Overview 8-15
  6. 6. ORACLE DATABASE 11gModule II: ADMINISTRATION I1. Introduction2. Installation3. DB Creation4. Instance5. Storage6. Users7. Schema8. Data & Concurrency9. Undo10. Security11. Network12. Proactive Maintenance13. Performance14. Backup & Recovery Concepts15. Backup16. Recovery
  7. 7. 17. Flashback18. Moving DataORACLE DATABASE 11gModule III: ADMINISTRATION II1: Introduction2: Configuring RMAN3: Using RMAN4: Non-Critical Recovery5: Recovery6: Flashback7: Corruption8: Memory9: Performance10: Schema11: Storage12: ASM13: Resources14: Scheduler
  8. 8. 15: Security16: Globalization17: Workshop