Sei sulla pagina 1di 16

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

has a non-transferable

julian Perez (julianฺperez@carvajalฺcom)

license to use this Student Guideฺ

Contents

I

Introduction Course Objectives

I-2

Suggested Schedule

I-3

Oracle Products and Services

I-4

Oracle Database 11g: “g” Stands for Grid

I-5

Grid Infrastructure for Single-Instance

I-7

1

Exploring the Oracle Database Architecture Objectives 1-2

Oracle Database

Connecting to a Server

Oracle Database Server Architecture: Overview

Instance: Database Configurations

Connecting to the Database Instance

Oracle Database Memory Structures

Shared Pool

Database Buffer Cache

Redo Log Buffer

Large Pool

Java Pool and Streams Pool

Program Global Area (PGA)

Quiz 1-18

Process Architecture

Process Structures

Database Writer Process (DBWn)

Log Writer Process (LGWR) Checkpoint Process (CKPT)

System Monitor Process (SMON) Process Monitor Process (PMON)

Recoverer Process

1-3

1-4

1-7

1-8

1-9

1-11

1-15

1-13

1-14

1-16

1-17

1-20

1-21

1-23

1-28

1-29

1-25

1-27

1-30

1-6

Archiver Processes (ARCn) Process Startup Sequence

Archiver Processes (ARC n ) Process Startup Sequence

1-31

1-32

Database Storage Architecture

Logical and Physical Database Structures

1-33

iii

1-35

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

has a non-transferable

julian Perez (julianฺperez@carvajalฺcom)

license to use this Student Guideฺ

Segments, Extents, and Blocks

Tablespaces and Data Files

SYSTEM and SYSAUX Tablespaces

Automatic Storage Management

ASM Storage Components

Interacting with an Oracle Database: Memory, Processes and Storage Quiz 1-44 Summary 1-46

Practice 1: Overview

1-37

1-38

1-39

1-40

1-41

1-47

2 Installing your Oracle Software Objectives 2-2

1-42

Tasks of an Oracle Database Administrator Tools for Administering an Oracle Database

Tasks of an Oracle Database Administrator Tools for Administering an Oracle Database

2-3

2-4

Planning Your Installation

Oracle Grid Infrastructure and Oracle Database Installation: System

2-6

Requirements

2-8

2-9

Setting Environment Variables

Checking the System Requirements

Oracle Universal Installer (OUI)

Example: Installation Scenario

Part One: Installing the Oracle Grid Infrastructure for Standalone Server

Preparing the Operating System

2-10

2-12

2-13

2-11

Selecting Product Languages

Creating an ASM Disk Group

Defining ASM Passwords

Defining Privileged Operating System Groups

2-15

2-16

2-17

2-18

Specifying Installation Location

2-19

Creating Inventory

2-20

Performing Prerequisite Checks

2-21

Verifying Installation Summary Data

Monitoring Installation Progress

Executing root Configuration Scripts

Executing Configuration Assistants

Finishing Installation

Configuring the FRA Disk Group

Quiz 2-28 Part Two: Installing the Oracle Database Software

Choosing the Type of Installation Choosing Grid Installation Options

Choosing Language Settings

2-22

2-24

2-23

2-25

2-26

2-27

2-31

2-32

2-33

2-30

iv

2-14

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

has a non-transferable

julian Perez (julianฺperez@carvajalฺcom)

license to use this Student Guideฺ

Choosing the Database Edition

2-34

Specifying Installation Location

2-35

Choosing Operating System Groups

Performing Prerequisite Checks

Installation Summary Page

The Install Product Page

Installation Finished

Installation Option: Silent Mode

Quiz 2-42 Summary 2-44 Practice 2 Overview: Preparing the Database Environment

2-36

2-37

2-38

2-39

2-40

2-41

2-45

3 Creating an Oracle Database Using DBCA Objectives 3-2

Planning the Database Databases: Examples

Planning the Database Databases: Examples

3-3

3-4

Choosing the Appropriate Character Set

How Are Character Sets Used?

Problems to Avoid

Database Configuration Assistant (DBCA)

Using the DBCA to Create a Database

Create Database Summary

Password Management

Creating a Database Design Template

Using the DBCA to Delete a Database

Using the DBCA for Additional Tasks

Quiz 3-22

Summary 3-24 Practice 3 Overview: Using the DBCA

3-5

3-9

3-7

3-8

3-10

3-18

3-19

3-21

3-25

3-16

3-17

4 Managing the Database Instance Objectives 4-2

Management Framework

Starting and Stopping Database Control

Oracle Enterprise Manager

Database Home Page Other Oracle Tools

Using SQL*Plus

4-7

4-3

4-5

4-8

4-9

4-4

Calling SQL*Plus from a Shell Script

4-10

Calling a SQL Script from SQL*Plus

4-11

Initialization Parameter Files

4-12

v

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

has a non-transferable

julian Perez (julianฺperez@carvajalฺcom)

license to use this Student Guideฺ

Simplified Initialization Parameters Initialization Parameters: Examples Using SQL*Plus to View Parameters

Changing Initialization Parameter Values Changing Parameter Values: Examples

4-14

4-15

4-19

4-21

4-23

Quiz 4-24 Database Startup and Shutdown: Credentials

4-26

Starting Up an Oracle Database Instance

Starting Up an Oracle Database Instance: NOMOUNT

Starting Up an Oracle Database Instance: MOUNT

Starting Up an Oracle Database Instance: OPEN

Startup Options: Examples

Shutting Down an Oracle Database Instance

Shutdown Modes Shutdown Options

Shutdown Options: Examples

Viewing the Alert Log

Using Trace Files

Dynamic Performance Views

Dynamic Performance Views: Usage Examples

Dynamic Performance Views: Considerations

Data Dictionary: Overview

Data Dictionary Views

Data Dictionary: Usage Examples

Quiz 4-49

Summary 4-51

Practice 4 Overview: Managing the Oracle Instance

4-27

4-28

4-29

4-30

4-31

4-32

4-33

4-34

4-37

4-42

4-38

4-40

4-43

4-44

4-45

4-46

4-48

4-52

5 Managing the ASM Instance Objectives 5-2

ASM Benefits for Administrators

ASM Instance

5-4

5-3

ASM Components: ASM Instance—Primary Processes

5-6

ASM Instance Initialization Parameters

5-7

Interaction Between Database Instances and ASM

5-9

ASM Instance: Dynamic Performance Views

5-10

ASM System Privileges

5-11

Using Enterprise Manager to Manage ASM Users

5-12

Starting and Stopping ASM Instances Using SQL*Plus

5-13

Starting and Stopping ASM Instances Using srvctl

vi

5-15

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

has a non-transferable

julian Perez (julianฺperez@carvajalฺcom)

license to use this Student Guideฺ

6

Starting and Stopping ASM Instances Using asmcmd

Disk Group Overview

ASM Disks

Allocation Units

ASM Files

Extent Maps

Striping Granularity

Fine-Grained Striping ASM Failure Groups

Stripe and Mirror Example

Failure Example

Managing Disk Groups

Creating and Dropping Disk Groups Using SQL*Plus

Adding Disks to Disk Groups

Miscellaneous ALTER Commands

5-32

ASM Disk Group Compatibility

ASM Disk Group Attributes

ASM Management Using Enterprise Manager

5-17

5-18

5-20

5-21

5-19

5-22

5-23

5-25

5-28

5-26

5-27

5-30

5-31

5-33

5-35

5-16

5-29

Using Enterprise Manager to Edit Disk Group Attributes

Retrieving ASM Metadata

ASM Fast Mirror Resync Overview

Quiz 5-39

Summary 5-41

Practice 5 Overview: Managing the ASM Instance

5-37

5-38

5-42

5-36

Configuring the Oracle Network Environment

Objectives 6-2

Oracle Net Services

6-3

Oracle Net Listener

6-4

Establishing Net Connections

Establishing a Connection

User Sessions

Tools for Configuring and Managing the Oracle Network

Listener Control Utility

Listener Control Utility Syntax

Using SRVCTL to Start and Stop the Listener

Listener Home Page

Net Services Administration Page

Creating a Listener

Adding Listener Addresses

Database Service Registration

6-5

6-6

6-7

6-10

6-11

6-13

6-14

6-16

6-15

6-17

6-18

vii

6-8

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

has a non-transferable

julian Perez (julianฺperez@carvajalฺcom)

license to use this Student Guideฺ

Naming Methods

6-20

Easy Connect

6-21

Local Naming

6-22

Directory Naming

External Naming Method

Configuring Service Aliases

6-23

6-24

6-25

Advanced Connection Options Testing Oracle Net Connectivity

Advanced Connection Options Testing Oracle Net Connectivity

6-26

6-28

User Sessions: Dedicated Server Process

6-29

User Sessions: Shared Server Processes

6-30

7

SGA and PGA

Shared Server: Connection Pooling When Not to Use a Shared Server

Configuring Communication Between Databases

Connecting to Another Database Quiz 6-36

Summary 6-38

Practice 6 Overview: Working with Oracle Network Components

6-31

6-32

6-33

6-35

6-34

6-39

Managing Database Storage Structures

Objectives 7-2

How Table Data Is Stored

Database Block: Contents

Exploring the Storage Structure

Creating a New Tablespace

Storage for Tablespaces

Tablespaces in the Preconfigured Database

Altering a Tablespace

Actions with Tablespaces

Dropping Tablespaces

Viewing Tablespace Information

Viewing Tablespace Contents Oracle-Managed Files (OMF)

Enlarging the Database

Quiz 7-22 Summary 7-24 Practice 7 Overview: Managing Database Storage Structures

7-3

7-4

7-8

7-6

7-5

7-10

7-12

7-14

7-16

7-17

7-18

7-19

7-21

7-25

8 Administering User Security Objectives 8-2

Database User Accounts

8-3

viii

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

has a non-transferable

julian Perez (julianฺperez@carvajalฺcom)

license to use this Student Guideฺ

Predefined Administrative Accounts

Creating a User

Authenticating Users

Administrator Authentication

Unlocking a User Account and Resetting the Password

8-5

8-6

8-7

8-9

Privileges 8-11 System Privileges Object Privileges

Privileges 8-11 System Privileges Object Privileges

8-12

8-14

8-10

Revoking System Privileges with ADMIN OPTION

Revoking Object Privileges with GRANT OPTION

Benefits of Roles

Assigning Privileges to Roles and Assigning Roles to Users

Predefined Roles Creating a Role

Secure Roles

Assigning Roles to Users

Quiz 8-23

Profiles and Users

8-15

8-16

8-17

8-19

8-20

8-21

8-22

8-25

8-18

Implementing Password Security Features

Creating a Password Profile

Supplied Password Verification Function: VERIFY_FUNCTION_11 G

Assigning Quotas to Users

Applying the Principle of Least Privilege

Protect Privileged Accounts

Quiz 8-36

Summary 8-38

Practice 8 Overview: Administering Users

8-27

8-29

8-31

8-35

8-33

8-39

9 Managing Data Concurrency Objectives 9-2 Locks 9-3

Locking Mechanism Data Concurrency

DML Locks

Enqueue Mechanism

Lock Conflicts

9-4

9-5

9-8

9-7

9-9

Possible Causes of Lock Conflicts

9-10

Detecting Lock Conflicts

9-11

Resolving Lock Conflicts

9-12

Resolving Lock Conflicts with SQL

9-13

ix

8-30

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

has a non-transferable

julian Perez (julianฺperez@carvajalฺcom)

license to use this Student Guideฺ

Deadlocks 9-14 Quiz 9-15 Summary 9-17 Practice 9 Overview: Managing Data and Concurrency

9-18

10 Managing Undo Data Objectives 10-2

Undo Data

Transactions and Undo Data

Storing Undo Information

Undo Data Versus Redo Data

Managing Undo

Configuring Undo Retention Guaranteeing Undo Retention

Changing an Undo Tablespace to a Fixed Size

General Undo Information

Using the Undo Advisor

Viewing System Activity

Quiz 10-16

Summary 10-18

Practice 10 Overview: Managing Undo Segments

10-3

10-5

10-7

10-6

10-8

10-9

10-11

10-12

10-13

10-14

10-15

10-19

11

Implementing Oracle Database Auditing

Objectives 11-2

Separation of Responsibilities

Database Security

Monitoring for Compliance

Standard Database Auditing

Configuring the Audit Trail

Uniform Audit Trails

Specifying Audit Options

Default Auditing

Enterprise Manager Audit Page

11-3

11-4

11-6

11-7

11-8

11-10

11-9

11-11

11-12

Using and Maintaining Audit Information

11-13

Value-Based Auditing

11-14

Fine-Grained Auditing

11-16

FGA Policy

11-17

Audited DML Statement: Considerations

11-19

FGA Guidelines SYSDBA Auditing

FGA Guidelines SYSDBA Auditing

11-20

11-21

Maintaining the Audit Trail

11-22

x

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

has a non-transferable

julian Perez (julianฺperez@carvajalฺcom)

license to use this Student Guideฺ

Oracle Audit Vault

Quiz 11-24 Summary 11-26 Practice 11 Overview: Implementing Oracle Database Security

11-23

12 Database Maintenance Objectives 12-2 Database Maintenance Viewing the Alert History

12-3

12-4

Terminology 12-5 Oracle Optimizer: Overview

Optimizer Statistics

Using the Manage Optimizer Statistics Page

Gathering Optimizer Statistics Manually

Preferences for Gathering Statistics

Automatic Workload Repository (AWR)

12-14

AWR Baselines

Enterprise Manager and the AWR

Managing the AWR

Statistic Levels

Automatic Database Diagnostic Monitor (ADDM)

ADDM Findings

12-21

Advisory Framework

Enterprise Manager and Advisors

DBMS_ADVISOR Package

Quiz 12-26 Automated Maintenance Tasks

12-25

ADDM Recommendations

12-6

12-7

12-8

12-9

12-11

12-13

AWR Infrastructure

12-15

12-16

12-17

12-18

12-20

12-22

12-24

12-27

12-19

11-27

Automated Maintenance Tasks Configuration

12-29

Server-Generated Alerts

12-30

Setting Thresholds

12-31

Creating and Testing an Alert

12-32

 

Alerts Notification

12-33

Reacting to Alerts

12-35

Alert Types and Clearing Alerts

12-36

 

Quiz 12-37 Summary 12-38 Practice 12 Overview: Proactive Maintenance

12-39

xi

13

Performance Management

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

has a non-transferable

julian Perez (julianฺperez@carvajalฺcom)

license to use this Student Guideฺ

Objectives 13-2 Performance Monitoring

Enterprise Manager Performance Page

Drilling Down to a Particular Wait Category

Performance Page: Throughput

13-3

13-4

13-5

13-6

Performance Monitoring: Top Sessions

13-7

Performance Monitoring: Top Services

13-8

Managing Memory Components

13-9

14

Enabling Automatic Memory Management (AMM)

Enabling Automatic Shared Memory Management (ASMM)

Automatic Shared Memory Advisor

Dynamic Performance Statistics

Troubleshooting and Tuning Views

Invalid and Unusable Objects Quiz 13-18

Summary 13-20

Practice 13 Overview: Monitoring and Improving Performance

13-10

13-11

13-12

13-13

13-15

13-16

13-21

Backup and Recovery Concepts

Objectives 14-2

Part of Your Job

Categories of Failure

Statement Failure

User Process Failure

Network Failure

User Error

Flashback Technology

Instance Failure

Understanding Instance Recovery: Checkpoint (CKPT) Process

Understanding Instance Recovery: Redo Log Files and Log Writer

Understanding Instance Recovery

Phases of Instance Recovery

Tuning Instance Recovery Using the MTTR Advisor

Media Failure

Configuring for Recoverability

Configuring the Fast Recovery Area

Multiplexing Control Files

Redo Log Files

Multiplexing the Redo Log

14-3

14-6

14-8

14-12

14-5

14-7

14-10

14-9

14-13

14-14

14-15

14-16

14-17

14-18

14-19

14-20

14-21

14-22

14-25

14-24

xii

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

has a non-transferable

julian Perez (julianฺperez@carvajalฺcom)

license to use this Student Guideฺ

Archive Log Files

Archiver (ARC n ) Process

Archive Log File: Naming and Destinations

Enabling ARCHIVELOG Mode

Quiz 14-30 Summary 14-32 Practice 14 Overview: Configuring for Recoverability

14-26

14-27

14-28

14-29

14-33

15 Performing Database Backups Objectives 15-2

Backup Solutions: Overview

Oracle Secure Backup User-Managed Backup

Terminology 15-6 Recovery Manager (RMAN) Configuring Backup Settings

Scheduling Backups: Strategy

Scheduling Backups: Options

Scheduling Backups: Settings

Scheduling Backups: Schedule

Scheduling Backups: Review

Backing Up the Control File to a Trace File

Managing Backups

Viewing Backup Reports

15-19

Monitoring the Fast Recovery Area

Using the RMAN Command Line

Quiz 15-21

Summary 15-22 Practice 15 Overview: Creating Database Backups

15-3

15-4

15-5

15-8

15-9

15-11

15-12

15-13

15-14

15-15

15-16

15-17

15-18

15-20

15-23

16 Performing Database Recovery Objectives 16-2

Opening a Database

Keeping a Database Open

Data Recovery Advisor Loss of a Control File

Loss of a Redo Log File

Loss of a Data File in NOARCHIVELOG Mode

Loss of a Noncritical Data File in ARCHIVELOG Mode

16-3

16-5

16-6

16-8

16-9

16-11

xiii

16-12

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

has a non-transferable

julian Perez (julianฺperez@carvajalฺcom)

license to use this Student Guideฺ

Loss of a System-Critical Data File in ARCHIVELOG Mode

16-13

Data Failure: Examples

16-14

Data Recovery Advisor

16-15

Assessing Data Failures

Data Failures

Listing Data Failures Advising on Repair

Executing Repairs

Data Recovery Advisor Views

Quiz 16-22 Summary 16-24 Practice 16 Overview: Performing Database Recovery

16-16

16-17

16-18

16-19

16-20

16-21

16-25

17 Moving Data Objectives 17-2

Moving Data: General Architecture

Oracle Data Pump: Overview

Oracle Data Pump: Benefits

Directory Objects for Data Pump

Creating Directory Objects

Data Pump Export and Import Clients: Overview

17-10

Data Pump Export using Database Control

Data Pump Export Example: Basic Options

Data Pump Export Example: Advanced Options

Data Pump Utility: Interfaces and Modes

17-3

17-4

17-5

17-8

17-7

17-9

17-11

17-12

17-13

Data Pump Export Example: Files

Data Pump Export Example: Schedule

17-14

17-16

Data Pump Export Example: Review

17-17

Data Pump Import Example: impdp

17-18

Data Pump Import: Transformations

17-19

Using Enterprise Manager to Monitor Data Pump Jobs

Migration with Data Pump Legacy Mode

Data Pump Legacy Mode Managing File Locations SQL*Loader: Overview

Loading Data with SQL*Loader

SQL*Loader Control File

Loading Methods External Tables

External Table Benefits

Defining an External Tables with ORACLE_LOADER

17-20

17-21

17-22

17-24

17-25

17-28

17-32

17-27

17-30

17-31

17-33

xiv

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

has a non-transferable

julian Perez (julianฺperez@carvajalฺcom)

license to use this Student Guideฺ

External Table Population with ORACLE_DATAPUMP

Using External Tables

Data Dictionary

Quiz 17-37 Summary 17-39 Practice 17 Overview: Moving Data

17-35

17-36

17-40

17-34

18 Working with Support Objectives 18-2 Using the Support Workbench

18-3

Viewing Critical Error Alerts in Enterprise Manager

Viewing Problem Details

Viewing Incident Details: Dump Files

Viewing Incident Details: Checker Findings

Creating a Service Request

Packaging and Uploading Diagnostic Data to Oracle Support

Tracking the Service Request and Implementing Repairs

Closing Incidents and Problems

Incident Packaging Configuration

18-4

18-5

18-6

18-7

18-8

18-9

18-10

18-12

18-13

Enterprise Manager Support Workbench for ASM

Working with Oracle Support

My Oracle Support Integration

Using My Oracle Support

Researching an Issue

Logging Service Requests

Managing Patches

18-24

Using the Patch Advisor Using the Patch Wizard

Applying a Patch Staging a Patch

Online Patching: Overview Installing an Online Patch Benefits of Online Patching

Conventional Patching and Online Patching

Online Patching Considerations

Quiz 18-35 Summary 18-36 Practice 18 Overview: Using EM Tools for Alerts and Patches

Applying a Patch Release

18-14

18-15

18-16

18-17

18-19

18-21

18-23

18-25

18-26

18-27

18-28

18-29

18-30

18-31

18-32

18-33

18-37

xv

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

has a non-transferable

julian Perez (julianฺperez@carvajalฺcom)

license to use this Student Guideฺ

Appendix A: Practices and Solutions

Appendix B: Basic Linux and vi Commands

Appendix C: SQL Statement Syntax

Appendix D: Oracle Background Processes

Appendix E: Acronyms and Terms

F

Oracle Restart

Objectives F-2

Oracle Restart

F-3

Oracle Restart Process Startup

Controlling Oracle Restart

Choosing the Correct SRVCTL Utility

Oracle Restart Configuration

Using the SRVCTL Utility

Obtaining Help for the SRVCTL Utility

Starting Components by Using the SRVCTL Utility

Stopping Components by Using the SRVCTL Utility

Viewing Component Status

Displaying the Oracle Restart Configuration for a Component

Manually Adding Components to the Oracle Restart Configuration

Quiz F-17

Summary F-18

F-5

F-6

F-8

F-11

F-9

F-10

F-12

F-13

F-14

F-15

F-16

G Continuing Your Education and Further Reading

Where Do You Go from Here?

G-2

Continuing Education Resources

G-3

Oracle University

G-4

Continuing Your Education

G-5

Database Specialty Areas

G-6

Oracle Real Application Clusters

G-7

Oracle Data Guard

G-8

Streams Overview

G-9

Oracle Technology Network Security G-12

Oracle by Example Oracle Magazine

G-13

G-14

G-11

xvi

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

has a non-transferable

julian Perez (julianฺperez@carvajalฺcom)

license to use this Student Guideฺ

Oracle Applications Community

Technical Support: My Oracle Support

G-17

Oracle Database Product Page

Thank You!

G-15

G-18

G-16

xvii

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2015, Oracle and/or its affiliatesฺ

has a non-transferable

julian Perez (julianฺperez@carvajalฺcom)

license to use this Student Guideฺ