Oracle DBA

This course provides students with the knowledge and skills to capitalize on their skills and experience as a DBA to manage a Oracle Server system.   About The Course This Oracle DBA training course is an intensive hands-on course is designed to provide Oracle professionals with an in-depth understanding of the DBA features of Oracle, specific Oracle concepts and knowledge required for the OCP exam, and tips and techniques for passing the Oracle OCP exam on your first attempt. Broad in scope, this course covers all of the Oracle Database Administration topics including SGA instance management, file & tablespace management, user administration & security and table & index management. Hands-on exercises are used to demonstrate each feature and the student will gain first-hand experience in the key Oracle DBA concepts required to pass the Oracle OCP exam. In addition, this course provides sample OCP exam questions and an opportunity to access your overall knowledge of Oracle DBA concepts. Intended Audience This course is intended for those who want to work as a Database Administrator. This course covers Oracle Database Administration 10g. Prerequisites Knowledge of Computer Basics like A+, Network Basics and Microsoft office.Students are normally required to have Bachelors Degree along with a working knowledge of IT and computers. However, if a candidate is found exceptionally qualified in IT related field (e.g. SW programming, Networking, Hardware etc.), degree requirement for him/her is exempted, but they must have 2 years of college attendance (completed certain credits).

Module - 1: SQL & PL/SQL

SQL & PL/SQL 2 Days (12 hours)

  • Getting started with SQL
  • SQL language to create and manipulate SQL database objects.
  • Database creation and management
  • Stored Procedures
  • SQL QUERIES: UNIONS, JOINS, QUERIES, SUBQUERIES Character String Functions: LPAD, ASCII, RPAD, CHR, LTRIM, CONCAT, RTRIM, INITCAP, TRIM, INSTR,REPLACE, LENGTH, SOUNDEX, LOWER, SUBSTR, UPPER, VSIZE
  • Aggregate/ Group functions: STDDEV, AVG, SUM, COUNT, VARIANCE, MAX, Group By, MEDIAN, Incorrect Usage, MIN
  • Date Timestamp Functions: ADD_MONTHS, ROUND, CURRENT DATE, SESSIONTIMEZONE, CURRENT TIMESTAMP, SYSDATE, DBTIMEZONE, SYSTIMESTAMP, EXTRACT, TO_CHAR, LAST_DAY, TO_DATE, LOCALTIMESTAMP, TO_TIMESTAMP, MONTHS_BETWEEN, NEW_TIME, TRUNC, NEXT_DAY
  • Numerical Math Functions: Log, ABS, MOD, POWER, ROUND, CEIL, SQRT, EXP, FLOOR, TRUNC
  • Conversion Functions: ROWIDTONCHAR, DECODE, TO_CHAR, NVL, TO_NUMBER, NVL2, TRANSLATE, ROWIDTOCHAR
  • Analytical Functions: ROWNUM, CUBE, Group by, HAVING
  • Miscellaneous Functions: GREATEST, LEAST
  • Intro to DBMS, RDBMS, Normalization, SQL, PL-SQL
  • Inserting, Deleting, and Updating Data
  • Commit and Rollback
  • DM, DDL, DCL
  • SELECT, WHERE clauses, Sorting, Wildcards, Distinct
  • Create, Alter, Drop Tables
  • Different data types for fields
  • Constraints: Primary keys, Foreign keys, Unique, Not Null
  • Group and Have clause
  • Joins: inner join, outer joins, self join
  • Introduction to Functions, Procedures, Triggers, Cursor, Sequence Participants provide answers to business questions by creating ad hoc reports, customizing the reports and scheduling the reports as necessary.
  • Interview questions and answers discussion
  • Written test
  • Oral presentation test

Module - 2: Getting Started with Oracle & Installing Oracle Server- 1 Day (6 hours)

Components

  • Services
  • Editions
  • System and user database

Essential Tools

  • Oracle Management Studio
  • Transact-SQL
  • Surface Area Configuration
  • Oracle Configuration Manager

Oracle Installation

  • Choosing installation options
  • Employing multiple instances
  • Upgrading from previous version
  • Applying a Service Pack

Practice Test

  • Interview Questions and answer discussion
  • Written Test
  • Oral presentation Test

Module - 3: Managing Database - 1 Day (6 hours)

Disk Structures

  • Examining storage structures
  • Creating database and transaction logs 

Space Management Strategies

  • Handling dynamic database growth
  • Reclaiming unused space

Moving Database

  • Delaching and attaching databases
  • Copying databases with the Copy Database Wizard

Practice Exam

  • Interview questions and answers discussion
  • Written test
  • Oral presentation test

Module - 4: Controlling Server & Database Security- 1 Day (6 hours)

Login Security

  • Contrasting Windows and Oracle authentications
  • Authorizing logins
  • Making logins members of server roles
  • Enforcing password policy

Database Security

  • Designing schemas
  • Adding users
  • Defining NEW roles
  • Delegating privileges with pre-defined roles
  • Assigning users to roles

Permissions

  • Granting server, database, schema-scoped and object permissions
  • Interaction of roles and permissions

Wrap up and Closure

  • Interview questions and answers discussion
  • Written test
  • Oral presentation test

Module - 5: Migrating Data - 1 Day (6 hours)

Oracle Integration Services

  • Packages
  • Control flows
  • Data flows
  • Connections
  • Business Intelligence Development Studio

Building simple packages

  • Importing data from Access
  • Exporting a table to Excel

Practice Exam

  • Interview questions and answers discussion
  • Written test
  • Oral presentation test

Module - 6: Back up & Recovery - 1 Day (6 hours)

Planning for and recovering from disasters

  • Transaction log architecture
  • Choosing a recovery model
  • Performing full, log and differential backups
  • Recovering system and user databases

Implementing database mirroring

  • Selecting a mirroring architecture
  • Configuring the mirror and witness servers
  • Monitoring database mirroring
  • Taking a snapshot of the mirror

Practice Exam

  • Interview questions and answers discussion
  • Written test
  • Oral presentation test

Module - 7: Automating Tasks with Jobs and Alerts - 1 Day (6 hours)

The Oracle Agent

  • Configuring the Agent
  • Setting up Database Mail

Multistep jobs

  • Defining jobs to handle routine tasks
  • Creating alerts and operators
  • Associating alerts with jobs

Practice Exam

  • Interview questions and answers discussion
  • Written test
  • Oral presentation test

Module - 8: Deploying Replication - 1 Day (6 hours)

Replication Concepts

  • Publish/subscribe metaphor
  • Replication types
  • Replication agents

Managing transactional replication

  • Configuring the Publisher and Distributor
  • Creating publications
  • Subscribing to publications

Practice Exam

  • Interview questions and answers discussion
  • Written test
  • Oral presentation test

Module - 9: Monitoring Oracle - 1 Day (6 hours)

  • Identifying problems with Activity Monitor
  • Querying Dynamic Management Objects
  • Deploying the Performance Dashboard
  • Analyzing trends with the Oracle Health and History tool (SQLH2)

Practice Exam

  • Interview questions and answers discussion
  • Written test
  • Oral presentation test

Module - 10: Architecture & Configuration - 1 Day (6 hours)

1-1: Overview of Oracle DBA tasks

  • Oracle as a flexible, complex & robust RDBMS
  • The evolution of hardware and the relation to Oracle
  • Different DBA job roles (VP of DBA, developer DBA, production DBA, database babysitter)
  • The changing job role of the Oracle DBA
  • Environment management (network, CPU, disk and RAM)
  • Instance management (managing SGA regions)
  • Oracle table and index management

1-2: Instance Architecture

  • Instance vs. database
  • Components of an instance
  • Creating the OFA file structure ($DBA, bdump, udump, pfile)

1-3: Oracle Instance Internals

  • SGA vs. PGA
  • Background processes
  • Interfaces with server and disk I/O subsystem

1-4: Using SQL *Plus for DBA Management

  • Connecting and executing SQL
  • Using the ?as sysdba? syntax
  • Overview of SQL*Plus DBA commands (startup, etc.)

1-5: Control File, UNDO and REDO Management

  • Explaining the use of control files
  • Listing the Contents of the control File
  • File locations for control Files
  • Obtaining Control File Information
  • Listing control file contents
  • Displaying and Creating Undo segments
  • Altering Undo Segments
  • Determining the Number and Size of Undo segments
  • Understanding flashback technology
  • Troubleshooting Undo - snapshot too old
  • Redo log concepts for recovery
  • Online redo log (log_buffer) online redo logs and archived redo logs
  • Oracle ARCH and LGWR background processes
  • Redo log dictionary queries
  • Redo log switch frequency and performance
  • Multiplexing the Online Redo Log Files
  • Archiving the Oracle Redo Logs
  • Recovery using the redo log files

1-6: User and Privilege Management

  • The three security methods (VPD, Grant security/role-based security, grant execute)
  • Creating New Database Users
  • Using pre-spawned Oracle connections
  • Auditing User activity
  • Identifying System and Object Privileges
  • Granting and Revoking Privileges
  • Creating and Modifying Roles
  • Displaying user security Information from the Data Dictionary

Practice Exam

  • Interview questions and answers discussion
  • Written test
  • Oral presentation test

Module - 11: Oracle Database Management - 1 Day (6 hours)

2-1: Overview of Instance Management

  • Parameter files (init.ora, listener.ora, tnsnames.ora)
  • Rules for sizing SGA components
  • Automated Oracle memory management (AMM)

2-2: Initialization file Management

  • Creating the init.ora file
  • Using spfile
  • Displaying init.ora values with v$parameter

2-3: Oracle Instance Internals

  • Creating the listener.ora file
  • Creating the tnsnames.ora file

2-4: Data buffer configuration & sizing

  • Inside the Oracle data buffers
  • Using the KEEP pool
  • Monitoring buffer effectiveness
  • Using multiple blocksizes (multiple buffer pools)

2-5: Shared pool and PGA Configuration & sizing

  • Shared pool concepts and components
  • Understanding the library cache
  • Relieving shared pool contention
  • Overview of PGA for sorting and hash joins
  • Using sort_area_size, hash_area_size and pga_aggregate_target

2-6: Troubleshooting network connectivity

  • Verifying network connectivity with ping and tnsping
  • Testing database links

Practice Exam

  • Interview questions and answers discussion
  • Written test
  • Oral presentation test

Module - 12: ORACLE object Management - 1 Day (6 hours)

3-1: ORACLE tables, views and materialized views

  • Types of Oracle tables (regular, IOT, sorted hash clusters, nested tables)
  • Oracle Views
  • Oracle materialized views

3-2: Oracle indexes

  • Types of Oracle indexes (b-tree, bitmap, bitmap join index)
  • Creating B*-Tree, bitmap and function-based Indexes
  • Function-based indexes
  • Finding indexing opportunities
  • Index maintenance

3-3: Oracle Constraints

  • Costs & benefits of constraints
  • Types of Oracle indexes constraints (check, not null, unique, PK, FK)
  • Cascading constraints

3-4: Schema, File & Tablespace Management

  • Describing the relationship between data files, tablespaces and table
  • Understanding Oracle segments
  • Creating Tablespaces - using the autoextend option
  • Changing the Size of Tablespaces - alter database datafile command
  • Defining a TEMP tablespace
  • Changing the default storage Settings for a tablespace
  • Review of the storage parameters in DBA views (ASM, ASSM, pctfree, pctused and freelists).
  • Monitoring Chained rows (fetch continued rows)
  • Monitoring Insert and Update performance (pctused, APPEND)

3-5: Database Maintenance

  • Reason for reorgs - chained rows, imbalanced freelists
  • Reorganizing Tables using Export and Import
  • Using CTAS to reorganize data
  • Index rebuilding
  • Backup & Recovery overview (hot & cold Backups, RMAN, block change tracking)

3-6: Oracle DBA Utilities

  • Data pump (Imp and exp utilities)
  • SQL*Loader
  • LogMiner
  • Flashback
  • DataGuard
  • Oracle DBA utilities - Oracle dbms packages (dbms_redefinition)
  • Replication (Streams, multimaster, materialized views)

Practice Exam

  • Interview questions and answers discussion
  • Written test
  • Oral presentation test

Module - 13: Monitoring ORACLE - 1 Day (6 hours)

This section explores the methods used for monitoring all active components of the Oracle database.

4-1: Dictionary and v$ views

  • The dba_, all_ and user_ structures
  • Querying the tables, indexes, and segments views
  • Querying the AWR (STATSPACK) tables

4-2: Table & index monitoring

  • Monitoring table extents and fragmentation
  • Using the dba_tables and dba_segments views
  • Monitoring table CBO statistics
  • Monitoring table extents and fragmentation
  • Locating chained rows
  • Monitoring table & index growth
  • Monitoring index usage
  • Monitoring index fragmentation
  • Locating un-used indexes
  • Identifying IOT candidates
  • Reorganizing Indexes with alter index rebuild
  • Dropping Indexes
  • Getting Index Information from the Data Dictionary

4-3: Workload & trend monitoring

  • Oracle automated workload tools
  • Using v$bh to monitor buffer activity
  • Using v$sql and v$sql_plan

4-4: Instance monitoring

  • Monitoring with the AWR and STATSPACK
  • Creating a time-series performance report
  • Using www.statspackanalyzer.com
  • Scripts for AWR and STATSPACK
  • Plotting performance data (Ion, Excel)
  • Finding performance trends and signatures

4-5: Oracle environment monitoring

  • Displaying and managing Oracle sessions (v$session, v$process)
  • Using AWR to monitor disk, network and CPU consumption
  • Monitoring the alert log
  • Oracle trace/dump files

4-6: STATSPACK and AWR performance management

  • Installing STATSPACK
  • Running STATSPACK reports
  • Interpreting a STATSPACK report
  • Getting time series reports with STATSPACK
  • Finding performance signatures with STATSPACK

Practice Exam

  • Interview questions and answers discussion
  • Written test
  • Oral presentation test

Module - 14: Performance Management- 1 Day (6 hours)

This section explores the methods used for performance management in Oracle and shows tips and scripts for monitoring all components of any Oracle database. You will also learn the proper action to take when any area of Oracle becomes a bottleneck.

5-1: Bottleneck Performance analysis

  • Drill-down into AWR reports
  • Top-5 timed events
  • External Server Bottlenecks (Network, I/O, RAM, CPU)
  • Network troubleshooting

5-2: Instance Tuning

  • Changing init.ora optimizer parameters (index_optimizer_cost_adj, optimizer_mode)
  • Managing region parameters (shared_pool_size, db_cache_size)
  • Understanding instance contention (e.g. Buffer busy waits, library cache contention)

5-3: SQL and CBO behavior

  • Introduction to cost-based optimization
  • Changing the default optimizer modes
  • Optimizer parameters
  • Dynamic sampling
  • Collecting table and index statistics (dbms_stats)
  • Using column histograms and skewonly

5-4: Tracing SQL Execution

  • Using EXPLAIN PLAN
  • Using ?set autotrace?
  • Interpreting EXPLAIN PLAN Output
  • Using TKPROF / SQL*Trace

5-5: SQL Execution Internals

  • Review of Basic joining methods
  • Merge join
  • Hash Join
  • Nested Loop join
  • Advanced SQL operators
  • Between operator

5-6: SQL Testing

  • Using hints to improve SQL performance
  • Using parallel query to improve performance
  • SQL reusability within the library cache
  • Table high-water mark
  • Table striping and table partitions
  • Using indexes to improve performance
  • Identifying full-table scans
  • Re-writing SQL queries
  • Tuning sub-queries

Practice Exam

  • Interview questions and answers discussion
  • Written test
  • Oral presentation test

Module - 15: Oracle High Availability tools - 1 Day (6 hours)

6.1:

  • Continuous availability and disaster recovery
  • Quantifying the cost of unplanned downtime
  • Oracle multi-master replication
  • DataGuard
  • Oracle Streams
  • Real Application Clusters

6-2: Backup & Recovery

  • OS-level backups
  • Hardware-level backup & recovery
  • Block-level change tracking
  • Disk mirroring
  • Backup & recovery and RAID level
  • Oracle-level backups (expdp & RMAN)
  • Hot vs. Cold backups
  • Sample Oracle OCP exam questions
  • OCP Final Exam Review
  • Full sample OCP DBA exam
  • OCP testing techniques for success
  • Testing tips and secrets

Practice Exam

  • Interview questions and answers discussion
  • Written test
  • Oral presentation test