This action might not be possible to undo. Are you sure you want to continue?
Oracle real application testing
a) Database reply b) Sql performance analyzer
2 3 4 5 6 7 8 9 10
Automatic memory management RMAN Enhancements Schema Management Security Manageability PL/SQL performance tuning SQL Access Advisor SQL plan management Miscellaneous features
1.Real application testing • Oracle defines real application testing as a combination of two tools:- a. SQL performance analyzer . Database reply b.
A db link in the prod system. and so on. locks. redo generation. consistent gets. These files have to exported to and can be replied on a test database.DATABASE REPLY : • Database reply helps in capturing the complete database workload and then replying it on some other database or even on the same database. The AWR compare report compares statistics during capture and reply process highlights metrics such as waits. During the capture process oracle automatically takes AWR snapshots and once the capture is complete the snapshots have to be exported to the test system for comparing these statistics with those in the test system. it has be to recovered up to the scn number specified during the capture process Resolve References to External Systems : E. An example of a AWR compare report is below • • • • . Some of the important Pre-processing steps before starting the reply process are : Restore Database : Once the PROD backup is restored in the test system.g. One of them is the AWR compare report. Once the reply process is complete various reports are available to compare the reply and capture processes. The capture process captures all the dmls during the capture period and stores them in binary format.
Architecture Other useful reports are: 1. DB reply report the helps in comparing the execution of the captured workload to that of reply workload 2. AWR report that summarizes and analyzes the database‟s overall performance between the database replay operation‟s starting and ending time periods. .
the entire captured workload is replayed against the database. But what if you don‟t want to do that? What if you want to see how specific sql statements would behave after say. . It Allows you to capture specific SQL statements and replay them and also provides a report to analyze the change.SQL Performance Analyzer (SPA) • In Database Replay. a parameter change or creating a new index? SPA allows you to do that.
Along with SGA_TARGET.2. If MEMORY_TAGET is set oracle takes care of SGA and PGA automatically. This parameter is a static initialization parameter. Oracle also provides four new dynamic performance views : V$MEMORY_CURRENT_RESIZE_OPS V$MEMORY_DYNAMIC_COMPONENTS V$MEMORY_RESIZE_OPS V$MEMORY_TARGET_ADVICE • • • • • • . Oracle offered SGA_TARGET to automate the individual components inside the SGA.the total available memory is divided into two components.One is SGA and the other is PGA. In 11g oracle takes this tradition a little forward to completely automate the available memory. Automatic memory management • In 10g.PGA_AGGREGATE_TARGET oracle offers MEMORY_TARGET.
3. RMAN Enhancements • • • • • • Data recovery advisor Parallel backup of same file Virtual catalogs Proactive health checks Flashback Logs to Rescue Also rman features a GUI with full functionality .
g. recover datafile 4.RMAN Enhancements Data recovery advisor • A noticeable feature where rman provides the DBA with an automated script incase a datafile is lost or any such error. • This script can also be previewed before executing it using the command : rman > repair failure preview . sql „alter database datafile 4 online‟. • E. In case of a missing datafile the script would look like this • Repair script : • # restore and recover datafile sql „alter database datafile 4 offline‟. restore datafile 4.
rman allows to define size of each section. the channels can break the datafiles into chunks known as sections and sections can be backed up by different channels. • . where you can define more than one channel and each channel behaves as an rman session backing up the datafiles.RMAN Enhancements Parallel Backup of the Same Datafile • Oracle introduced parallel backups in 10g .This can make backup of large datafiles faster. In 11g RMAN.But the fact is each channel can backup only a single datafile at a time.
RMAN Enhancements Backup only uncommitted UNDO? • In 11g rman does a clever thing and avoids backing up committed undo data. the uncommitted undo data which is required for recovery will still be backed up. .
RMAN Enhancements Virtual Private Catalog • Oracle 11g allows you to have a single catalog database and create a virtual catalog for each target database. When you connect to the catalog database as the owner you can view all the databases registered with this catalog database but when any other user tries to list the databases registered with this catalog. connect to the catalog database as the base user and create the catalog. say. The owner is. You can have as many as target databases but every thing will have only one catalog database. Oracle 11g also offers Merging Catalogs. he can only see himself and no one else. “RMAN”. The owner or the base user of the catalog can grant a create catalog privilege to any other database user who wants to register to this catalog database. The private catalog concept can defined as follows First you need to create a base catalog that contains all the target databases. From the target database. • • • .
4 Schema Management • DDL Wait Option The ORA-00054 : resource busy and acquire with NOWAIT specified or timeout expired The ORA is generally observed during busy system time. In 11g Oracle takes care of changes like these and will not mark the view as invalid thereby improving the availability of the application. . can also be used to make this default to all sessions • Fine Grained Dependency Tracking Consider a table is altered by adding a new column and in 10g a view derived from this object will be invalid causing the objects like packages using this view to be invalid.oracle 11g does not throw a error instead tries it for 10sec‟s until it is successful. ALTER SYSTEM SET DDL_LOCK_TIMEOUT.
you can migrate your passwords to the new standard.Security • Oracle offers a new view dba_users_with_defpwd which lists all the users having default passwords.5.One can set the parameter to false to disable this When you upgrade an existing Oracle 10g database to 11g. especially the new column PASSWORD_VERSIONS. • . Case sensitive passwords • Oracle offers case sensitive passwords and also allows you to revert back if you do not like it using the parameter SEC_CASE_SENSITIVE_LOGON. You can check the status of the password by querying the DBA_USERS view.
indexing. sql access advisor in 11g also analyzes tables and queries to identify possible partitioning strategies • . materialized views as it does in 10g.SQL Access Advisor • SQL Access advisor in 11g improving schema design by partitioning. and creating materialized views based on actual frequency and type of usage—not data. Apart from analyzing indexes.8.
they actually fail in cases where the selectivity of the values affects the execution plans. because the optimizer actually freezes the execution plan when you are using a bind variable. Simply put . oracle can force all variables to be converted to bind variables.SQL Plan Management • • Oracle introduces a new initialization parameter “cursor_sharing”. This might be helpful because it does not require that the query is parsed every time it is run but at the same time this execution plan might not be the most optimized one for all queries.9. • . even if bind variables are good in most cases. If the parameter is set to force and if your code does not have bind variables and instead you are passing values to the variables in your sql statements.
The V$SQL view is modified to add two more columns IS_BIND_SENSITIVE and IS_BIND_AWARE. The column IS_BIND_AWARE is marked as Y where the plan is recalculated with every change in the value Oracle also offers features like SQL Plan Baselining • • • • . they actually decide if a plan has to be recalculated when the bind variable value changes. Oracle observes if the values have the potential to change plans and marks IS_BIND_SENSITIVE as Y if the can.SQL Plan Management Adaptive cursors • • Here comes adaptive cursors Instead of blindly using the cached execution plan whenever the query is executed.
oracle 11g introduces automatic health monitor which checks variouscomponents of the database to see that they are not corrupted.Miscellaneous features • Automatic Health Monitor Similar to advisors in 10g . all the information about the incident is placed in Automatic Diagnostic Repository. Undo Segment Integrity Check.Transaction Integrity Check.an older version of the alertlog will still be available in trace directory in the ADR home . The various “Checkers” include DB Structure Integrity Check. Data Block Integrity Checker. • Automatic Diagnostic Repository Once if any one of the above mentioned checkers find something.10. Redo Integrity Check. Dictionary Integrity Check.All the files in the repository for a particular event can be forwarded to oracle support by using the new packaging service in 11g ( Assuming OCM is configured) ADR home The new initialization parameter diagnostic_dest will point to the adr home which will have all the trace files .The *_dest parameters parameter from previous oracle versions are ignored in 11g In 11g the alert log will be available in xml format.alert_log files and other log files.
This action might not be possible to undo. Are you sure you want to continue?