Возможные источники проблем

  • View
    38

  • Download
    3

Embed Size (px)

DESCRIPTION

: , -. . . - PowerPoint PPT Presentation

Transcript

  • :

    , -

  • ,

  • .

  • SQL

    CBOSQL hint injection SQL

    CBO

  • select * from table(dbms_xplan.display_cursor(,,'outline')); , : Stored Outlines -> SQL Plan Baselines

  • 0.test_data.sql-- drop user test cascade;create user test identified by test;grant connect, resource to test;

    -- create table test.drop_tbl as select rownum n, 'txt'||rownum txt from dual connect by level 'test', tabname => 'drop_tbl');end;

  • Oracle 11 Enterprise Edition - -: dbms_spm.load_plan_from_cursor_cache , , : 1.sql_plan_baseline.sql: V$SQL.SQL_PLAN_BASELINE , 1: SQL Plan Baseline

  • Oracle 11 ( EE, SQL Repair Advisor Enterprise Manager, - ) SQL patch SQL Repair Advisor, 2.sql_patch.sql V$SQL.SQL_PATCH , : sys.dbms_sqldiag_internal.i_create_patch 2: SQL Patch

  • Oracle 10, 11, Diagnostic & Tuning Pack : DBMS_SQLTUNE.IMPORT_SQL_PROFILE : 3.sql_profile.sql V$SQL.SQL_PROFILE: - 3: SQL Profile

  • Oracle 9,10,11, private outline public outline.: 4.1.outlines.sql, 4.2.outlines.sql - ALL_OUTLINES , ! 4: Outlines

  • IGNORE_OPTIM_EMBEDDED_HINTS

  • SQL plan baselineSQL ProfileSQLpatchOutlineselect * from table(dbms_xplan.display(null,null,'basic+note')); -- Note++++ - outline "OL_4AAY3KXC7RDDG" used for this statement+++ - SQL patch "patch_4aay3kxc7rddg" used for this statement - SQL plan baseline "SQL_PLAN_3dm7hzprspdufe13b857f" used for this statement++ - SQL profile "PROF_4aay3kxc7rddg" used for this statement - SQL plan baseline "SQL_PLAN_3dm7hzprspdufe13b857f" used for this statement+ - SQL plan baseline "SQL_PLAN_3dm7hzprspdufe13b857f" used for this statement