Oracle 11g By Naresh Index for Oracle SQL/PLSQL 10g/11g 1. Oracle Architecture and Administration What is Oracle Instance? What is SGA? Memory Components of the SGA Mount and Dismount Oracle Database. 2. Getting Started with data Types: Character data types Number data types Date and time data types Long and Long raw data types Lob data types Rowid data types 3. Structured Query Language Statements What is SQL? DDL (Data Definition Language) Create Alter Drop Rename DML (Data Manipulation Language) Insert, Delete, Update, Merge TCL (Transaction Control Language) Commit, Rollback and Save point DCL (Data Control Language) Grant and Revoke DRL (Data Retrieval Language) Select 4. Creating /inserting table statement Ways to create tables. Ways to insert into tables. 5. Substitution Variables & and && Oracle 11g by Naresh Krishna Oracle 11g By Naresh 6. Creating an SQL Script File. 7. Querying the data from tables 8. Applying Column Heading (Aliases) 9. Applying Arithmetical Operations in Select Statements Arithmetic Operators 10. Handling NULL values 11. Working with Aliases 12. Literals in Oracle Using Literals Character Strings Applying Concatenation Operator (||) 13. Eliminating the Duplicate Rows. Distinct function 14. Filtering of Records. Where Clause Having Clause 15. Logical Operators. AND, OR, NOT 16. SQL*Plus Operators SET SERVEROUTPUT on Set AUTOTRACE on Set Auto commit on Set numwidth Set echo on Set pagesize Show error More…….. 17. Ordering Information. Order by Clause Ascending order Descending order 18. Single Row Function. 19. Multiple Row Function. 20. Character Manipulation Function. Oracle 11g by Naresh Krishna Oracle 11g By Naresh 21. Number Function 22. Date Function 23. Conversion Function. 24. Format Models. 25. Date Format models. 26. Aggregate or Group Function. Max function Min function Avg function Count function Sum function 27. Miscellaneous Functions. 28. Data Integrity in Database. What is Constraints? Primary Key Foreign Key Not null Unique Check Composite Default 29. JOINS Inner/simple/Equal Joins Self Joins Outer Joins Non-Equal-Joins Cartesian product ASCII JOINS Full outer join Right outer join Left outer join Natural join Cross join Oracle 11g by Naresh Krishna Oracle 11g By Naresh 30. Sub Queries: SUB Queries /Nested Select / Sub Select / Inner Select Reference Types Inline view Correlated sub query Single row sub query Multiple rows sub query Multiple column sub query Hierarchical Queries 31. Pseudo Columns What are pseudo columns? Types of pseudo columns Rownum Rowid Level Cur value Next value 32. Set Operators Union Union All Intersection Minus 33. View in Oracle What is View? Advantage of views Type of views: Simple View Complex View Materialized View Force View View constraints Data dictionary in View 34. Working with Index What is index? Advantage of index Type of index: Normal Index Bit-Map Index Function Based Index Composite Index Oracle 11g by Naresh Krishna Oracle 11g By Naresh Unique index B-Tree Index Data dictionary in index 35. Database Security Grant Revoke Working with Roles 36. Working with Synonyms. What is Synonyms? Advantage of Synonyms Type of Synonyms: Public Synonyms Private Synonyms. Data dictionary in Synonyms 37. Regular Expressions in oracle 10g/11g REGEXP_LIKE REGEXP_SUBSTR REGEXP_REPLACE REGEXP_INSTR REGEXP_COUNT 38. Working with CASE Expression. Types of Case Simple Case Search Case 38. Analytic Functions Rank function Dense Rank Cube Rollup Grouping Grouping Id LAG Oracle 11g by Naresh Krishna Oracle 11g By Naresh LAST LEAD 39. Oracle Database 11g SQL New Features. Naming conversion Sequence expression Continue Regular Expression Result Cache Virtual Columns Introduction to PL/SQL and Advantages of PL/SQL 1. Block Structure Approach. Declaration Block Executable Block Exception Block 2. Types of Block in PL/SQL Anonymous block statement Named block statement 3. PL/SQL Supports data types Number (n,m) , Char (n) , Varchar2 (n) , Date , Long, Lob, Boolean, constant Binary Integer Pls_Integer Simple integer 4. Scope and Visibility of PL/SQL Identifiers Local variables Global variables Oracle 11g by Naresh Krishna Oracle 11g By Naresh 5. Variable Types in PL/SQL Programming. %type and %Row type 6. Control Structure in PL/SQL. Iterative Statements in PL/SQL For Loop While loop Simple loop Conditional Statements in PL/SQL If then else 7. Applying Composite Data types in PL/SQL * RECORD * TABLE *NESTED TABLE *VARRAY 8. Cursor in PL/SQL. What is Cursor? Type of Cursor Implicit Cursor Explicit Cursor Ref cursor Use cursors to work with database data. For loop cursor Cursor attributes Cursor parameter Cursor communication 9. Working with Exception in PL/SQL. What is Exception Handling? Structure of Exception Handling Types of Exception Handling Predefine Exception. Non predefine exception Users define exception. Functions for trapping exception. SQLCODE SQLERRM Write robust programs that handle runtime exceptions. 10. PL/SQL stored procedures Oracle 11g by Naresh Krishna Oracle 11g By Naresh What is a Stored Procedure? Advantages of Procedures Data Dictionary Types of Parameters 1) IN-parameters 2) OUT-parameters 3) IN OUT-parameters General Syntax to create a procedure How to execute a Stored Procedure? Calling Stored Procedure? 11. PL/SQL Function What is a function? Advantages of function Data Dictionary Types of Parameters 1) IN-parameters 2) OUT-parameters 3) IN OUT-parameters General Syntax to create a function How to execute a function? Calling function in select query 12. PL/SQL packages What is a package? Advantages of packages Data Dictionary General Syntax for packages How to execute packages? Types of packages: Public Private Build in packages supplied by Oracle. 13. PL/SQL triggers What is a trigger? Advantages of trigger Data Dictionary General Syntax for triggers Types of triggers: Row level Statement Level Event in triggers: Before After Oracle 11g by Naresh Krishna Oracle 11g By Naresh PL/SQL Trigger Execution Hierarchy . 14. Use PL/SQL's collection data types. 15. Use bulk operations for improved performance. 16. Oracle Database 11g SQL and PLSQL New Feature. 17. PLSQL Enhancements in oracle 11g. Oracle 11g by Naresh Krishna