Agenda This is mean to be more of an open discussion No set time per topic - each topic has just enough info to spur questions and/or open a dialog – so talk Feel free to ask questions about other topics No cell phones with ringer turned on (use vibrate) only during breaks under penalty of death 11g adoption may have been slow – but: –11g R1 is now over one year old –11G R2 beta will be starting soon 2
Focus 11g has huge growth in functionality (install size, resource consumption, time to create database, etc) Too many features to cover them all in few hours!!! Will concentrate on key ones you may encounter Don’t underestimate Oracle (don’t drink our cool aid) MS SQL Server 2008 (coming soon) is real threat Oracle may have to adjust to compete (lower price) 3
Oracle vs. Toad Timeline Oct ‘98 v5 Initial Quest release. Yahoo! Groups and Toadsoft.com established. June ‘99 V6.1 Already has 70 distinct screens. Feb ’00 V6.3 Debugger, SQL Modeler, Oracle 8 object support. v6.5 DBA Module. April ‘01 v7.0 Toad Reports. Dec ‘01 v7.2 Script Manager, SQL*Loader Wizard. Oct ‘02 v7.4 Project Manager, QSR. May ‘03 v7.5 Team Coding, Data Grid support for advanced data types. Nov ‘03 v7.6 Session Browser, new toolbars. v8.0 XML Support, CodeXpert, Script Debugger. Rebranded – Toad for Oracle June ‘05July ‘04 v8.5 JIT Debugging, Citrix, RAC, enhanced 10g support. v8.6 Re-designed Modeler, M/D Brower, New Reporting Engine. Oct ’05 Dec ‘00 Apr ‘02 v7.3 HTML Schema Generator, CMD Line Support. Original Toad Freeware Toad for Oracle Freeware Update July ‘05 v9.0 Single Merged Editor. Improved CodeXpert integration. ASM, ADDM, AWR Mgt Oct ’06 v9.1 Policy Manager. Action Recall. Toad Tips Vista support. Jun ’07 v9.5 Integration with SQL Optimizer 7.2 Debugger, Profiler, Code Xpert enhancements. StatsPack Browser Oracle 11g support. Nov ’07 v9.6 Debugger into Standard, Schema Browser merged with DB Browser, integration with QCTO and TDM, Vulnerability Assessment in Health Check Apr ’08 9iR2 10gR2 11gR
Flash Back Transaction 21 SQL> select xid, start_scn, operation, table_name, undo_sql from flashback_transaction_query where start_timestamp>=sysdate-1 and username='BERT' and table_owner='BERT'; XID START_SCN OPERATION TABLE_NAME UNDO_SQL DELETE JUNK insert into "BERT"."JUNK"("C1","C2") values ('5','6'); DELETE JUNK insert into "BERT"."JUNK"("C1","C2") values ('3','4'); INSERT JUNK delete from "BERT"."JUNK" where ROWID = 'AAAD94AAAAAAChOAAD'; INSERT JUNK delete from "BERT"."JUNK" where ROWID = 'AAAD94AAAAAAChOAAC'; INSERT JUNK delete from "BERT"."JUNK" where ROWID = 'AAAD94AAAAAAChOAAB'; INSERT JUNK delete from "BERT"."JUNK" where ROWID = 'AAAD94AAAAAAChOAAA'; SQL> select * from bert.junk; C1 C SQL> declare trans_arr XID_ARRAY; begin trans_arr := xid_array(' ',' '); dbms_flashback.transaction_backout (numtxns => 1, xids => trans_arr, options => dbms_flashback.cascade); end; / SQL> select * from bert.junk; C1 C
Flash Back Data Archive 22 SQL> create tablespace flash_archive datafile 'c:\oracle\oradata\ordb1\flash_archive.dbf' size 50M; Tablespace created SQL> create flashback archive default flash_archive tablespace flash_archive retention 30 day; Flashback archive created. SQL> create table bert.junk (c1 int, c2 int) flashback archive flash_archive; Table created. This new feature offers the ability to retain the reciprocal UNDO information for critical data significantly beyond the point in time that it would be flushed out of the UNDO tablespace. Therefore, it’s now possible to hold onto these reciprocal transactions essentially indefinitely. Once this feature is enabled, all retained transaction history can be viewed, and this eliminates the cumbersome task of creating corresponding history tracking tables for critical transactional tables.
OEM Performance Charts for RAC
SQL Query Result Cache The SQL query result cache is an area of memory in the Shared Global Area (SGA) that can retain the result sets that a query generates.