Академический Документы
Профессиональный Документы
Культура Документы
Memory Management AWR Baselines Automatic SQL Tuning Advisors Upgrade Considerations
Unifies system (SGA) and process (PGA) memory management Dynamic parameters for all database memory:
0(025<B7$5*(7 0(025<B0$;B7$5*(7
SGA
PGA PGA
Adaptive Thresholds
AWR Baseline
Time consuming
Each SQL statement is unique Potentially large number of statements to tune
Workload
DBA
one hour
DBA
ADDM AWR
SQL Tuning Candidates
Invoke Advisor
Workload
Generate Recommendations
Its Automatic!
AWR
DBA
Result Summary
Result Details
Result Recommendations
Indexes
Materialized views
10
11
12
Intelligent Resolution
Proactive Patching
Diagnostic
Solution
Delivery
Prevention
Resolution
DBA
Auto incident creation First failure capture Alert DBA Targeted health checks Assisted SR filling
No
DBA
Known bug?
Yes
DBA
13
Support Workbench
$ORACLE_BASE
alert
hm
trace
(others)
incdir_1
incdir_n
ADRCI
log.xml alert_SID.log
V$DIAG_INFO
14
Space management
Incident flood control minimizes number of traces ADR auto-purging reduces disk footprint
15
EM Support Workbench
16
Limitations
Package zip must be 2GB or less Cannot scrub traces or customize package
17
Reactive Checks
Trigger on error via Intelligent dumping Rules E.g. Checks blocks around corrupted block
18
Can automatically perform selected recovery steps Reduces downtime by eliminating confusion
19
20
Getting the test case to Oracle can be tricky Solution Oracle automatically creates a test case Collects necessary information relating to a SQL incident Collected data is packaged to be sent to Oracle Collected data allows a developer to reproduce the problem
21
y y
The most common types of SQL problems - exception, performance regression etc., are hard to diagnose A lot of time is spent trying to reproduce the problem If a workaround is found it has to be applied to entire system
Solution Advisor
Investigates the incident locally Automatically determines the root cause Provides a workaround (SQL Patch) for just the effected SQL If not, sends necessary diagnostic information to Oracle
Trace files SQL Repair Advisor investigates DBA run SQL Repair Advisor DBA gets alerted Statement executes successfully again Execute
DBA
DBA accept SQL patch
22
Tuning Pack
Automatic SQL Tuning Advisor Partition Advisor Real-time SQL Monitoring SQL Plan Management and Plan Evolution
Upgrade Considerations
23
Description
In an RAC environment, this per-instance process (Atomic Controlfile to Memory Service) is an agent which contributes to ensuring a distributed SGA memory update is either globally committed on success or globally aborted in the event of a failure.
Found
RAC
DIA0
ALL
DIAG DBRM
ALL ALL ALL with any registered event activity (optional non-fatal)
The Resource Manager process is responsible for setting Resource Plans and other Resource Manager related tasks. The Event Monitor Coordinator coordinates the event management and notification activity in the database which includes Streams Event Notifications, Continuous Query Notifications and Fast Application Notifications.
EMNC / e0xx
FBDA
The process archives historical rows for tracked tables into flashback data archives and manages the flashback archives.
ALL.
GMON
ASM
GTX0-j
Provides transparent support for XA global transactions in a RAC environment. The database autotunes the number of these processes based on the workload of XA global transactions.
RAC only
Description
Performs proxy I/O to an ASM metafile when a disk becomes offline.
Found
ASM, spawned on demand.
MARK
Marks ASM Allocation Units as stale following a missed write to an offline disk.
PSP0
ALL
RMSn
The RAC Management Processes perform manageability tasks for RAC, e.g. creation of RAC related resources when new instances are added to the clusters In a RACenvironment, this process manages background slave process creation and communication on remote instances. These background slave processes perform tasks on behalf of a coordinating process running in another instance. The space management coordinator process coordinates the execution of various space management related tasks, such as proactive space allocation and space reclamation. It dynamically spawns slave processes (Wnnn) to implement the task. The Virtual Keeper of TiMe is responsible for providing a Wall-Clock time (updated every second) and Reference-Time Counter (updated every 20ms and available only when running at elevated priority).
?
RAC only
RMSN
RAC only
SMCO / Wnnn
VKTM
ALL
24
25
Solution
an Access Control List (ACL) specifies a set of users and roles you assign an ACL to a host and port range you may need to explicitly grant this access in 11.1
26
In upgrade:
Passwords are case insensitive until changed Passwords become case sensitive by ALTER USER
On creation:
Passwords are case sensitive
Review:
Scripts Database links with stored passwords Consider backward compatibility parameter, SEC_CASE_SENSITIVE_LOGON
alert.log
xml format $ORACLE_BASE/diag/rdbms/orcl/orcl/alert/log.xml adrci> show alert tail RP: $ORACLE_BASE/diag/rdbms/<dbname>/trace/alert_SID.log
27
Moving On
RBO Still there, same behavior as 10.2, but even move tools to ease the move
SQL performance analyzer SQL plan management
Moving On
These deprecated features / privileges are still available for backward compatibility but the recommendation is to move on
Stored Outline SQL Plan Management Ultrasearch Secure Enterprise Search CTXPath Index XML Index SYSDBA for ASM administration SYSASM
BPEL
28
Metalink #207303.1: Client / Server / Interoperability Support Between Different Oracle Versions
Metalink #454507.1: ALERT: Oracle 11g Release 1 (11.1) Support Status and Alerts Metalink #454506.1: 11.1.0.6 Base Release - Availability and Known Issues
29