Documente Academic
Documente Profesional
Documente Cultură
Program
DAY 11 Database Administration Oracle
CONFIDENTIAL
Day 11 : Agenda
09:00 AM-10:15 AM Database Monitoring
10:15 AM-10:30 AM Break
10:30 AM-01:00 PM Additional features of BRTOOLS
01:00 PM-02:00 PM Lunch Break
02:00 PM-03:15 PM Backup Methods
03:15 PM-03:30 PM Break
03:30 PM-05:30 PM Recovery Methods
05:30 PM-06:00 PM Exercise & Break Out Session
18 October 2010
Database Monitoring
18 October 2010
DB12
DB13
DB13C
DB14
ST04
SAP DBA
Poor
Performance,
Warnings,
Errors
DB16
DB17
DB21
DB26
BR* TOOLS
18 October 2010
DB20
DBA Cockpit
DBA Planning Calendar
The DBA planning calendar is a simple interface to schedule background jobs named DBA:* performing
administrative jobs.
These background jobs look up table SDBAC to check, depending on the SAP release, the database system, and
the operating system, which operating system level command should be executed on which server.
The DBA planning calendar provides templates for all activities that are recommended to be performed regularly
on the database.
DBA Operations Monitor
Use the DBA Operations Monitor (transaction DB14 or Jobs DBA Logs in the DBA Cockpit menu tree) to
monitor online database operations.
It is used to monitor the runtime of operations.
The DBA Operations Monitor provides an overview of activities of any of the BR*Tools.
Space
Transaction DB02 or Space Space Overview in the DBA Cockpit menu tree shows the functions for monitoring
disk space in the database.
This overview contains information about how much disk space the database is using. To ensure that the required
data for this overview is available, a background job must be scheduled first.
Available disk space information about individual tablespaces or tables is provided in additional sub-monitors.
Information is also provided about the growth of the individual database objects.
Performance
Database performance can be analyzed with transaction ST04 or Performance Performance Overview in the
DBA Cockpit menu tree. ST04 has many functions, the most important for performance are: viewing the SQL
cache, checking Oracle delays using v$system_event, and monitoring database buffer activity and monitoring
Oracle shadow processes.
18 October 2010
Application toolbar
System
Landscape
Toolbar
Action area
Displays the details of the currently
selected action.
Navigation
Frame
Displays a tree structure divided at the top level into the main task areas of database
administration. These are, for example, performance monitoring, space management,
and job scheduling. Within each task area, there is a set of related action nodes.
18 October 2010
18 October 2010
DBA Cockpit
Check the database
Adapt next extents
Check and update statistics
Clean up logs
18 October 2010
18 October 2010
BREAK
18 October 2010
Additional Features of
BRTOOLS
18 October 2010
BRBACKUP
BRARCHIVE
Instance Management
Space Management
Segment Management
Backup and database copy
Restore and recovery
Check and verification
Database Statistics
Additional functions
Exit Program
BRRESTORE
BRRECOVER
BRSPACE
BRCONNECT
18 October 2010
BR*TOOLS
BRTOOLS
Responsible Tools
Log Directory
Configuration file
1. Instance Management
2. Space Management
3. Segment Management
4. Backup and database copy
5. Restore and recovery
6. Check and verification
7. Database Statistics
8. Additional functions
9. Exit Program
Brspace
Brspace
Brspace
Brbackup/Brarchive
Brrecover
Brconnect/Brbackup
Brconnect
Brconnect
Sapreorg
Sapreorg
Sapreorg
Sapbackup/saparch
Sapbackup
Sapcheck/sapbackup
Sapcheck
Sapcheck
spfile<DBSID>.sap
Init<DBSID>.sap
1. Startup database
2. Shutdown database
3. Alter database instance
4. Alter database parameters
5. Recreate database
6. Show instance status
7. Show database parameters
8. Show database owners
1. Extend tablespace
2. Create tablespace
3. Drop tablespace
4. Alter tablespace
5. Alter data file
6. Move data file
7. Additional space functions
1. Reorganize tables
2. Rebuild indexes
3. Export tables
4. Import tables
5. Alter tables
6. Alter indexes
7. Additional segment functions
1. Database backup
2. Archive log backup
3. Database copy
4. Non-database backup
5. Backup of database disk backup
6. Verification of database backup
7. Verification of archive log backup
8. Additional functions
18 October 2010
18 October 2010
18 October 2010
18 October 2010
18 October 2010
LUNCH BREAK
18 October 2010
Backup Methods
18 October 2010
External Factors
(fire, flood, earth quake)
Physical Error
(hardware failure)
Logical Error
(deleted table, dropped tablespace)
Data
loss
Procedure and
Escalation plan
------------------------------------------------------------------------------------
18 October 2010
Backup Methods
Closed or Opened
Database
Closed Database
No archive mode
Archive mode
Physical backup
18 October 2010
Control files
Parameter files
Password files
Online or offline
storage
18 October 2010
Control files
Parameter files
Password files
Online or offline
storage
18 October 2010
Backup Types
OFFLINE
ONLINE
Complete
Whole (All)
Incremental
(with RMAN)
Partial
Full
18 October 2010
BREAK
18 October 2010
Recovery Methods
18 October 2010
18 October 2010
18 October 2010
18 October 2010
18 October 2010
18 October 2010
18 October 2010
Recover Syntax
Recover a mounted database:
SQL> recover database;
SQL> recover datafile /disk1/data/df2.dbf;
SQL> alter database recover database;
Recover an opened database:
SQL> recover tablespace USER_DATA;
SQL> recover datafile 2;
SQL> alter database recover datafile 2;
18 October 2010
18 October 2010
Oracle Recovery
18 October 2010
Control files
Detailed log
Summary
Log
BRBACKUP
CPIO/DD/RMAN
parallel
Media
Offline
redo log files
Online
redo log files
BRRECOVER
BRRESTORE
BRARCHIVE
Detailed log
Summary
Log
CPIO/DD/RMAN
parallel
Media
18 October 2010
Summary
Database Monitoring
DBA Cockpit
BR*TOOLS
Backup & Recovery
Backup methods
Recovery methods
SAP Tools for Backup & Recovery
18 October 2010
Exercise &
Break Out Session
18 October 2010
Exercise
Logon to the operating system level with the userid/password provided by the instructor
Instructor Steps
Start the BRTOOLS from command line
Demonstrate how to switch from ArchiveLog Mode to Non-ArchiveLog mode
Stop the SAP instance
Perform an offline backup of the database
Note the directories involved : sapbackup , oraarch & saparch
Explain the difference between oraarch and saparch
Restart the Oracle and SAP instance
Return to BRTOOLS
Demonstrate how to check the status of extents for non auto extensible tablespaces
Add an extent
Show the commands involved in the process
Finally , explain the differences between various types of database startup modes :
NOMOUNT , MOUNT & OPEN
Explain the differences between shutdown modes : NORMAL , IMMEDIATE &
ABORT
18 October 2010
Q&A Session
18 October 2010