TOC - 19c SQL, DB Admin, Backup & Recovery and Multitenant Architecture
TOC - 19c SQL, DB Admin, Backup & Recovery and Multitenant Architecture
Contents
1 Introduction
Lesson Objectives 1-2
Lesson Agenda 1-3
Course Objectives 1-4
Icons Used in This Course 1-5
Course Roadmap 1-6
Appendixes and Practices Used in the Course 1-13
Lesson Agenda 1-14
Oracle Database 19c: Focus Areas 1-15
Oracle Database 19c 1-16
MySQL: A Modern Database for the Digital Age 1-18
High Scalability with MySQL 1-19
MySQL-Supported Operating Systems 1-20
MySQL Enterprise Edition 1-21
Why MySQL Enterprise Edition? 1-22
Oracle Premier Support for MySQL 1-23
MySQL and Oracle Integration 1-24
Lesson Agenda 1-25
Relational and Object Relational Database Management Systems 1-26
Data Storage on Different Media 1-27
Relational Database Concept 1-28
Definition of a Relational Database 1-29
Data Models 1-30
Entity Relationship Model 1-31
Entity Relationship Modeling Conventions 1-32
Relating Multiple Tables 1-34
Relational Database Terminology 1-35
Lesson Agenda 1-36
Human Resources (HR) Application 1-37
Tables Used in This Course 1-38
Tables Used in the Course 1-39
Lesson Agenda 1-40
Using SQL to Query Your Database 1-41
How SQL Works 1-42
SQL Statements Used in the Course 1-43
Development Environments for SQL in Oracle 1-44
Introduction to Oracle Live SQL 1-45
Development Environments for SQL in MySQL 1-46
Lesson Agenda 1-47
Oracle Database Documentation 1-48
Additional Resources for Oracle 1-49
Oracle University: Oracle SQL Training 1-50
Oracle SQL Certification 1-51
MySQL Websites 1-52
MySQL Community Resources 1-53
Oracle University: MySQL Training 1-54
MySQL Certification 1-55
Summary 1-56
Practice 1: Overview 1-57
14 Creating Views
Course Roadmap 14-2
Objectives 14-3
Lesson Agenda 14-4
Why Views? 14-5
Database Objects 14-6
What Is a View? 14-7
Advantages of Views 14-8
Simple Views and Complex Views 14-9
Lesson Agenda 14-10
Creating a View 14-11
Retrieving Data from a View 14-14
Modifying a View 14-15
Creating a Complex View 14-16
View Information 14-17
Lesson Agenda 14-18
Rules for Performing DML Operations on a View 14-19
Rules for Performing Modify Operations on a View 14-20
Rules for Performing Insert Operations Through a View 14-21
Using the WITH CHECK OPTION Clause 14-22
Denying DML Operations 14-23
Lesson Agenda 14-25
Removing a View 14-26
Summary 14-27
Practice 14: Overview 14-28
21 Conclusion
Course Goals 21-2
Oracle University: Oracle SQL Training 21-3
Oracle University: MySQL Training 21-4
Oracle SQL References 21-5
MySQL Websites 21-6
Your Evaluation 21-7
Thank You 21-8
Q&A Session 21-9
A Table Descriptions
C Using SQL*Plus
Objectives C-2
SQL and SQL*Plus Interaction C-3
SQL Statements Versus SQL*Plus Commands C-4
SQL*Plus: Overview C-5
Logging In to SQL*Plus C-6
Displaying the Table Structure C-7
SQL*Plus Editing Commands C-9
Using LIST, n, and APPEND C-11
Using the CHANGE Command C-12
SQL*Plus File Commands C-13
Using the SAVE and START Commands C-14
SERVEROUTPUT Command C-15
Using the SQL*Plus SPOOL Command C-16
Using the AUTOTRACE Command C-17
Summary C-18
F Hierarchical Retrieval
Objectives F-2
Sample Data from the EMPLOYEES Table F-3
Natural Tree Structure F-4
Hierarchical Queries F-5
Walking the Tree F-6
Walking the Tree: From the Bottom Up F-8
Walking the Tree: From the Top Down F-9
Ranking Rows with the LEVEL Pseudocolumn F-10
Formatting Hierarchical Reports Using LEVEL and LPAD F-11
Pruning Branches F-13
Summary F-14
G Writing Advanced Scripts
Objectives G-2
Using SQL to Generate SQL G-3
Creating a Basic Script G-4
Controlling the Environment G-5
The Complete Picture G-6
Dumping the Contents of a Table to a File G-7
Generating a Dynamic Predicate G-9
Summary G-11
Contents
14 Managing PDBs
Objectives 14-2
Changing the PDB Mode 14-3
Modifying PDB Settings 14-4
Impact of Changing Initialization Parameters 14-5
Changing Initialization Parameters: Example 14-6
Using the ALTER SYSTEM Command in a PDB 14-7
Configuring Host Name and Port Number per PDB 14-8
Dropping PDBs 14-9
Summary 14-10
Practice Overview 14-11
24 Loading Data
Objectives 24-2
SQL Loader: Review 24-3
Creating the SQL*Loader Control File 24-4
SQL*Loader Loading Methods 24-6
Protecting Against Data Loss 24-7
SQL*Loader Express Mode 24-8
Using SQL*Loader to Load a Table in a PDB 24-9
Summary 24-10
Practice Overview 24-11
25 Transporting Data
Objectives 25-2
Data Pump Export and Import Clients 25-3
Data Pump Interfaces and Modes 25-4
Data Pump Import Transformations 25-6
Using Oracle Data Pump with PDBs 25-7
Exporting from a Non-CDB and Importing into a PDB 25-8
Exporting and Importing Between PDBs 25-9
Full Transportable Export/Import 25-10
Full Transportable Export/Import: Example 25-12
Transporting a Database Over the Network: Example 25-13
Using RMAN to Transport Data Across Platforms 25-14
RMAN CONVERT Command 25-15
Transporting Data with Minimum Down Time 25-16
Transporting a Tablespace by Using Image Copies 25-17
Determining the Endian Format of a Platform 25-18
Transporting Data with Backup Sets 25-19
Transporting a Tablespace 25-20
Transporting Inconsistent Tablespaces 25-22
Database Transport: Data Files 25-23
Transporting a Database 25-24
Transporting a Database: Conversion 25-25
Transporting a Database: Example 1 25-26
Transporting a Database: Example 2 25-27
Transporting a Database: Considerations 25-28
Transporting a Database with Backup Sets 25-29
Summary 25-31
Practice Overview 25-32
Contents
4 Backup Strategies
Objectives 4-2
Understanding Types of Backups 4-3
Backup Terminology 4-4
Understanding Types of Backups 4-5
RMAN Backup Types 4-6
Backup Solutions: Overview 4-8
Balancing Backup and Restore Requirements 4-9
Comparing Backup Strategies 4-11
Option 1: Full and Incremental Backups 4-12
Option 2: Incrementally Updated Disk Backups 4-13
Option 3: Offloading Backups to Physical Standby Database in Data
Guard Environment 4-14
Backing Up Read-Only Tablespaces: Considerations 4-15
Data Warehouse Backup and Recovery: Best Practices 4-16
Summary 4-17
5 Creating Database Backups
Objectives 5-2
Using RMAN Commands to Create Backups 5-3
Syntax and Clauses in RMAN 5-4
Creating Backup Sets 5-5
Creating Image Copies 5-6
Creating a Whole Database Backup 5-7
CDB Backup: Whole CDB Backup 5-8
CDB Backup: Partial CDB Backup 5-9
PDB Backup: Partial PDB Backup 5-10
Review: RMAN Backup Types 5-11
Incrementally Updated Backups 5-13
Incrementally Updated Backups: Example 5-14
Fast Incremental Backup 5-15
Maintaining the Block Change Tracking File 5-16
Monitoring Block Change Tracking 5-17
Automatic Disk-to-Disk Backup and Recovery 5-18
Oracle-Suggested Backup 5-19
Backing Up the Control File to a Trace File 5-20
Cataloging Additional Backup Files 5-22
Reporting on Backups 5-23
Using Dynamic Views 5-24
Summary 5-25
Practice Overview 5-26