Introduction to Utilities for New DBAs Session #332 4/19/2008 Erik Hobbs Introduction to Utilities for New DBAs.

Slides:



Advertisements
Similar presentations
ITEC474 INTRODUCTION.
Advertisements

Chris Ruel * Image used without permission.
ArrayExpress Oracle DBA Ahmet Oezcimen. Agenda 1. Tasks 2. System Overview 3. Oracle DB System 4. Database Monitoring 5. Database Security 6. Performance.
Introduction to Oracle
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
17 Copyright © 2005, Oracle. All rights reserved. Performing Flashback.
The New Data Pump Caleb Small Next generation Import / Export New features Better performance Improved security Versatile interfaces.
Page Footer Keed Education Oracle Database Administration Basic Copyright 2009 Keed Education BV Version Concept.
Always Start With The Database Browser
IT Database Administration Section 04. The Oracle 9i Data Dictionary  A set of tables and views owned by SYS and accessible using SQL  Can be.
12 Copyright © 2005, Oracle. All rights reserved. Proactive Maintenance.
Discovering Flexcube 12 For DBAs
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle SQL Developer For the DBA Jeff Smith
Presenter: Raman Chohan. AGENDA Oracle Best Practices Oracle Backups Why upgrade to Oracle 11? Performance Troubleshooting axiUm Pre-Upgrade Checklist.
Chapter 12 Performing Incomplete Recovery. Background Viewed as one of the more difficult chapters to write Thought it was important to put in material.
AGENDA Tools used in SQL Server 2000 Graphical BOL Enterprise Manager Service Manager CLI Query Analyzer OSQL BCP.
Week 5 – Chap. 5 Data Transfer DBAs often must transfer data to and from text files, Excel spreadsheets, Access, Oracle or other SQL Server databases This.
Introduction to Oracle Backup and Recovery
SQL Server 2005 SP2 Israeli SQL Server User Group March 2005 Ami Levin
Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
Chapter 15 Database Administration and Security
CHAPTER 21 Automating Jobs. Introduction to Automating Jobs DBAs rely heavily on automating jobs. DBAs cannot be effective without automation. Listed.
Concepts of Database Management Sixth Edition
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
Chapter 9 Scripting RMAN. Background Authors felt that scripting was a topic not covered well Authors wanted to cover both Unix/Linux and Windows environments.
15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups.
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
Preface 1 Introduction Course Objectives 1-2 How DBAs Spend Their Time 1-3 Oracle Database 10g Manageability Goals 1-4 Database Management Challenges 1-5.
ORACLE
Informix IDS Administration with the New Server Studio 4.0 By Lester Knutsen My experience with the beta of Server Studio and the new Informix database.
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
18 Copyright © Oracle Corporation, All rights reserved. Workshop.
1 Copyright © 2004, Oracle. All rights reserved. Introduction.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
Managing users and security Akhtar Ali. Aims Understand and manage profiles Understand and manage users Understand and manage privileges Understand and.
11 Copyright © 2004, Oracle. All rights reserved. Dealing with Database Corruption.
Database Security. Multi-user database systems like Oracle include security to control how the database is accessed and used for example security Mechanisms:
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
SQL School is strongly committed to provide COMPLETE PRACTICAL REALTIME Trainings on SQL Server Technologies – Dev, SQL DBA, MSBI (SSIS, SSAS, SSRS) and.
Troubleshooting 11i issues Adam Janbolat
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
The Self-managing Database: Proactive Space and Schema Object Management Amit Ganesh Director, Data, Space and Transaction Processing Oracle Corporation.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
Transactions, Roles & Privileges Oracle and ANSI Standard SQL Lecture 11.
© 2006 Northgate Information Solutions plc and its associated companies. All rights reserved. Slide 1.
Michelle Malcher PepsiCo Session # For the DBA Manager – Understanding Oracle and DBAs.
Database Security. Multi-user database systems like Oracle include security to control how the database is accessed and used for example security Mechanisms:
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
Internship with Contemporary Technologies (Remote DBA Experts) Jenna LuttonFebruary 1, 2007.
ORACLE DBA INTRODUCTION: Undo Introduction offline status Pending Rollback segments Features of Flashback Flashback Table Flashback query Flashback Version.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
What is the Flashback Database? Improves a database’s availability Useful alternative to traditional restoration methods Contains Flashback logs Archived.
23 Copyright © 2004, Oracle. All rights reserved. Preferring the Past: Flashback.
SQL Database Management
Smarter Technology for Better Business
Data, Space and Transaction Processing
Database Security.
SQL Server Monitoring Overview
Database Security.
Introduction of Week 3 Assignment Discussion
Get Verified Oracle 1z0-062 Study Material - Oracle 1z0-062 Exam Dumps PDF Realexamdumps.com
How to Thrive as a DBA in an Oracle10g World
Create New User in Database. First Connect the System.
Index Index.
Performance Tuning ETL Process
Presentation transcript:

Introduction to Utilities for New DBAs Session #332 4/19/2008 Erik Hobbs Introduction to Utilities for New DBAs

Erik Hobs | Page #2 © 2008 Blackbaud Introduction to Utilities for New DBAs Server-Side utilities Alert log monitor Alert log monitor Trace file cleanup script Trace file cleanup script File system space monitor File system space monitor Other server-side utilities Other server-side utilities

Erik Hobs | Page #3 © 2008 Blackbaud Introduction to Utilities for New DBAs Monitoring the Alert Log Why monitor the alert log? Why monitor the alert log? Things to consider Things to consider

Erik Hobs | Page #4 © 2008 Blackbaud Introduction to Utilities for New DBAs Alert log monitor, things to consider: How many databases to monitor? How many databases to monitor? How often? How often? What happens when alert is detected? What happens when alert is detected? What needs to be set up? What needs to be set up?

Erik Hobs | Page #5 © 2008 Blackbaud Introduction to Utilities for New DBAs Alert Log Monitor: an example

Erik Hobs | Page #6 © 2008 Blackbaud Introduction to Utilities for New DBAs Cleaning up trace files What are trace files? What are trace files? Where are trace files? Where are trace files? Why clean up trace files? Why clean up trace files?

Erik Hobs | Page #7 © 2008 Blackbaud Introduction to Utilities for New DBAs Trace file cleanup script: an example

Erik Hobs | Page #8 © 2008 Blackbaud Introduction to Utilities for New DBAs Monitoring filesystem space Why monitor space? Why monitor space? –Detect space issues (before users!) –Identify growth trends (for planning) What impacts filesystem space? What impacts filesystem space? –Database files –Dump (trace) files –Exports –Other OS files

Erik Hobs | Page #9 © 2008 Blackbaud Introduction to Utilities for New DBAs Filesystem space monitor: an example

Erik Hobs | Page #10 © 2008 Blackbaud Introduction to Utilities for New DBAs Scheduling Server-Side Jobs Cron: the Linux/Unix job scheduler Cron: the Linux/Unix job scheduler Windows Scheduled Tasks Windows Scheduled Tasks

Erik Hobs | Page #11 © 2008 Blackbaud Introduction to Utilities for New DBAs Database-side Utilities Sql Scripts Sql Scripts Backup & Recovery Utilities Backup & Recovery Utilities Tuning & Troubleshooting Utilities Tuning & Troubleshooting Utilities Job schedulers Job schedulers

Erik Hobs | Page #12 © 2008 Blackbaud Introduction to Utilities for New DBAs SQL Scripts Writing SQL Scripts Writing SQL Scripts SQL Script Examples SQL Script Examples

Erik Hobs | Page #13 © 2008 Blackbaud Introduction to Utilities for New DBAs Writing SQL Scripts Become SQL proficient Become SQL proficient Know the Data Dictionary Know the Data Dictionary Build a Library Build a Library

Erik Hobs | Page #14 © 2008 Blackbaud Introduction to Utilities for New DBAs SQL Script Examples Monitoring Database space Monitoring Database space Monitoring Database sessions/processes Monitoring Database sessions/processes Detecting Locks Detecting Locks Checking temp space usage Checking temp space usage

Erik Hobs | Page #15 © 2008 Blackbaud Introduction to Utilities for New DBAs Backup & Recovery Utilities Recovery Manager: RMAN Recovery Manager: RMAN Flashback Technology Flashback Technology

Erik Hobs | Page #16 © 2008 Blackbaud Introduction to Utilities for New DBAs RMAN What is RMAN? What is RMAN? RMAN Hot Backups RMAN Hot Backups RMAN Recoveries RMAN Recoveries Duplicating a database with RMAN Duplicating a database with RMAN Validating RMAN backups Validating RMAN backups

Erik Hobs | Page #17 © 2008 Blackbaud Introduction to Utilities for New DBAs Flashback Technology What is Flashback? What is Flashback? Flashback Query Flashback Query Flashback Table Flashback Table Flashback Drop Flashback Drop Flashback Versions Flashback Versions

Erik Hobs | Page #18 © 2008 Blackbaud Introduction to Utilities for New DBAs Requirements for using Flashback Query Oracle 9i or higher Oracle 9i or higher undo_management=AUTO undo_management=AUTO Changes still exist in UNDO Changes still exist in UNDO Execute privilege on dbms_flashback Execute privilege on dbms_flashback

Erik Hobs | Page #19 © 2008 Blackbaud Introduction to Utilities for New DBAs Requirements for using Flashback Table Oracle 10g or higher Oracle 10g or higher Enterprise Edition only Enterprise Edition only Granted Flashback Table privilege Granted Flashback Table privilege Row movement enabled on table Row movement enabled on table

Erik Hobs | Page #20 © 2008 Blackbaud Introduction to Utilities for New DBAs Requirements for using Flashback Drop Oracle 10g or higher Oracle 10g or higher Table still exists in recyclebin Table still exists in recyclebin

Erik Hobs | Page #21 © 2008 Blackbaud Introduction to Utilities for New DBAs Requirements for using Flashback Versions Oracle 10g and higher Oracle 10g and higher Data still exists in UNDO Data still exists in UNDO

Erik Hobs | Page #22 © 2008 Blackbaud Introduction to Utilities for New DBAs Tuning & Troubleshooting Utilities SQL_TRACE and TKPROF SQL_TRACE and TKPROF Statspack Statspack

Erik Hobs | Page #23 © 2008 Blackbaud Introduction to Utilities for New DBAs SQLTRACE and TKPROF Starting a Trace Starting a Trace Stopping a Trace Stopping a Trace Locating the trace file Locating the trace file Formatting the trace file using TKPROF Formatting the trace file using TKPROF

Erik Hobs | Page #24 © 2008 Blackbaud Introduction to Utilities for New DBAs TKPROF Report Reading a TKPROF report Reading a TKPROF report Using TKPROF reports for troubleshooting Using TKPROF reports for troubleshooting Using TKPROF reports for development Using TKPROF reports for development

Erik Hobs | Page #25 © 2008 Blackbaud Introduction to Utilities for New DBAs Statspack Installing Statspack Installing Statspack Taking snapshots Taking snapshots Statspack reports Statspack reports

Erik Hobs | Page #26 © 2008 Blackbaud Introduction to Utilities for New DBAs Database Job Schedulers DBMS_JOB DBMS_JOB DBMS_SCHEDULER DBMS_SCHEDULER

Erik Hobs | Page #27 © 2008 Blackbaud Introduction to Utilities for New DBAs DBMS_JOB Requirements Requirements –CREATE JOB privilege Submitting Jobs Submitting Jobs –DBMS_JOB.SUBMIT Managing Jobs Managing Jobs –DBA_JOBS view

Erik Hobs | Page #28 © 2008 Blackbaud Introduction to Utilities for New DBAs DBMS_SCHEDULER Advantages of DBMS_SCHEDULER Advantages of DBMS_SCHEDULER Using DBMS_SCHEDULER Using DBMS_SCHEDULER

Erik Hobs | Page #29 © 2008 Blackbaud Introduction to Utilities for New DBAs Advantages of DBMS_SCHEDULER Reusable schedules and programs Reusable schedules and programs Ability to run stored procedures and server-side executables Ability to run stored procedures and server-side executables User-named schedules, programs, jobs User-named schedules, programs, jobs Job chaining Job chaining Event triggers Event triggers

Erik Hobs | Page #30 © 2008 Blackbaud Introduction to Utilities for New DBAs Using DBMS_SCHEDULER Creating schedules Creating schedules Creating programs Creating programs Creating jobs Creating jobs

Erik Hobs | Page #31 © 2008 Blackbaud Introduction to Utilities for New DBAs Where to get Utilities Write your own Write your own Professional Journals Professional Journals Technical Books Technical Books Websites Websites

Erik Hobs | Page #32 © 2008 Blackbaud Introduction to Utilities for New DBAs What was Learned? Learn server-side utilities to enhance DBA effectiveness Learn server-side utilities to enhance DBA effectiveness Learn database-side utilities to enhance DBA effectiveness Learn database-side utilities to enhance DBA effectiveness Learn how easy it is to set up and utilize many of these utilities Learn how easy it is to set up and utilize many of these utilities

Erik Hobs | Page #33 © 2008 Blackbaud Introduction to Utilities for New DBAs Questions?

Erik Hobs | Page #34 © 2008 Blackbaud Introduction to Utilities for New DBAs Thank You Please fill out an evaluation form Please fill out an evaluation form Introduction to Utilities for New DBAs Erik Hobbs Session #332