Can DBMS_ADVISOR package be used for SQL Tuning Advisor ?

Can DBMS_ADVISOR package be used for SQL Tuning Advisor ?

SQL> SELECT * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE    11.1.0.6.0      Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production

Similar Messages

  • Which privileges are required for sql tuning advisor

    Hi,
    Oracle 10g
    1> I want to know which privileges are required for running sql tuning advisor...
    2> Some queries are taking long time.. if i run sql tuning advisor..shud i first try it out on development database or directly on prod database
    Regards

    1> I want to know which privileges are required for running sql tuning advisor...
    As SQL tuning advisor relies on the advisor framework, so all tuning task interfaces (XXX_TUNING_TASK) require privilege ADVISOR.
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sqltun.htm#CACDFEBH
    Some queries are taking long time.. if i run sql tuning advisor..shud i first try it out on development database or directly on prod databaseDo you mean the implementation?
    Adith

  • SQL Tuning Advisor  Error

    I wanted to use the SQL Tuning Advisor feature of the SQL Worksheet. The DBA granted me ADVISOR system privilege. But when I tried to use the feature, I get the following errors:
    An error was encountered performing the requested operation:
    ORA-06550: line 20, column 101:
    PLS-00103: Encountered the symbol "ANYDATA" when expecting one of the folllowing:
    .(),*%&=-+</> at in is mod remainder not rem
    <an exponenet (**) <> or != or ~= >= <> and or like LIKE2_
    LIKE4_LIKEC_between|| multiset member SUBMULTISET_
    The symbol "." was substituted for "ANYDATA" to continue.
    ORA-6550: line 20, column 140:
    PLS-00103: Encountered the symbol "ANYDATA" when expecting one of the folllowing:
    .(),*%&=-+</> at in is mod remainder not rem
    <an exponenet (**) <> or != or ~= >= <> and or like LIKE2_
    LIKE4_LIKEC_between|| mul
    ORA-6550:line 20, column 179:
    PLS-00103: Encountered the symbol "ANYDATA" when expecting one of the folllowing:
    .(),*%&=-+</> at in is mod remainder not rem
    <an exponenet (**) <> or != or ~= >= <> and or like LIKE2_
    LIKE4_LIKEC_between|| multiset
    06550,00000 - "line %s, column %s:\n%s"
    *Cause: Usually a PL/SQL compilation error.
    *Action:
    Vendor code 6550Then I get this right after the previous one:
    An error was encountered performing the requested operation:
    ORA-13605: The specified task or boject staName12325 does not exist for the current user.
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.PRVT_ADVISOR", line 4841
    ORA-06512: at "SYS.DBMS_SQLTUNE", line 1093
    ORA-06512: at line 2
    13605.0000 - "The specified task or object %s does not exist for the current user."
    *Cause:   The user attempted to reference an advisor task or object
        using a anme that does not exist in the Advisor repository.
    *Action:  Adjust the name and retry the operation.
    Vendor code 13605Can someone please help me? I am not a DBA so I stumped by these error codes.
    Oracle SQL Developer 3.0.04 Build MAIn-04.34
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0
    Robert

    The query is
    select      "V_CDR_OUTGOING_CALLS"."FIRST_NAME" as "FIRST_NAME",
          "V_CDR_OUTGOING_CALLS"."MIDDLE_INITIAL" as "MIDDLE_INITIAL",
          "V_CDR_OUTGOING_CALLS"."LAST_NAME" as "LAST_NAME",
          "V_CDR_OUTGOING_CALLS"."ORG_UNIT" as "ORG_UNIT",
          "V_CDR_OUTGOING_CALLS"."DEPT_DESC" as "DEPT_DESC",
          "V_CDR_OUTGOING_CALLS"."FROM_NUMBER" as "FROM_NUMBER",
          "V_CDR_OUTGOING_CALLS"."TO_NUMBER" as "TO_NUMBER",
          "V_CDR_OUTGOING_CALLS"."TO_CITY" as "TO_CITY",
          "V_CDR_OUTGOING_CALLS"."TO_STATE" as "TO_STATE",
          "V_CDR_OUTGOING_CALLS"."DATETIME_CONNECT" as "DATETIME_CONNECT",
          "V_CDR_OUTGOING_CALLS"."DURATION_MIN" as "DURATION_MIN"
    from      "V_CDR_OUTGOING_CALLS" "V_CDR_OUTGOING_CALLS"
    where :P12_PHONE_NUMBER  = FROM_NUMBER or :P12_PHONE_NUMBER = TO_NUMBER
    AND "V_CDR_OUTGOING_CALLS"."DATETIME_CONNECT" BETWEEN to_date(:P12_START_DATE,'MM/DD/YYYY') AND to_date(:P12_END_DATE,'MM/DD/YYYY')The view is
    CREATE OR REPLACE FORCE VIEW "VOIP"."V_CDR_OUTGOING_CALLS" ("ID", "EMPID", "FIRST_NAME", "MIDDLE_INITIAL", "LAST_NAME", "ORG_UNIT", "DEPT_DESC", "PHONE", "FROM_NUMBER", "TO_NUMBER", "TO_CITY", "TO_STATE", "DATETIME_CONNECT", "DATETIME_DISCONNECT", "DURATION_SEC", "DURATION_MIN")
    AS
      SELECT c.ID,
        e.empid empid,
        e.first_name,
        e.middle_initial,
        e.last_name,
        e.org_descr,
        e.dept_desc,
        e.full_telephone,
        c.from_number,
        c.to_number,
        x.city to_city,
        x.state to_state,
        c.datetime_connect,
        c.datetime_disconnect,
        c.duration_sec,
        c.duration_min
      FROM v_cdr c ,
        v_cdr_emp e,
        telephone_exchanges x
      WHERE c.from_number         = e.phone
      AND SUBSTR(c.to_number,1,7) = x.EXCHANGE
      AND LENGTH(c.to_number)     > 7;The table and views are defined as:
    CREATE TABLE "VOIP"."TELEPHONE_EXCHANGES"
        "EXCHANGE" VARCHAR2(7 BYTE) NOT NULL ENABLE,
        "CITY"     VARCHAR2(200 BYTE),
        "STATE"    VARCHAR2(2 BYTE),
        CONSTRAINT "TELEPHONE_EXCHANGES_PK" PRIMARY KEY ("EXCHANGE") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "VOIPDATA" ENABLE
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
      TABLESPACE "VOIPDATA" ;
    CREATE OR REPLACE FORCE VIEW "VOIP"."V_CDR" ("ID", "FROM_NUMBER", "TO_NUMBER", "DATETIME_CONNECT", "DATETIME_DISCONNECT", "DURATION_SEC", "DURATION_MIN", "PKID", "DATE_OF_CALL")
    AS
      SELECT ID,
        DECODE( LENGTH(CALLINGPARTYNUMBER),6, SUBSTR(CALLINGPARTYNUMBER,1,2)
        || '-'
        ||SUBSTR(CALLINGPARTYNUMBER,3) ,10, SUBSTR(CALLINGPARTYNUMBER,1,3)
        || '-'
        ||SUBSTR(CALLINGPARTYNUMBER,4,3)
        || '-'
        ||SUBSTR(CALLINGPARTYNUMBER,7) ,CALLINGPARTYNUMBER)FROM_NUMBER,
        DECODE( LENGTH(ORIGINALCALLEDPARTYNUMBER), 6, SUBSTR( ORIGINALCALLEDPARTYNUMBER,1,2)
        || '-'
        ||SUBSTR(ORIGINALCALLEDPARTYNUMBER,3) , 10, SUBSTR( ORIGINALCALLEDPARTYNUMBER,1,3)
        || '-'
        ||SUBSTR(ORIGINALCALLEDPARTYNUMBER,4,3)
        || '-'
        ||SUBSTR(ORIGINALCALLEDPARTYNUMBER,7) , 12, SUBSTR( ORIGINALCALLEDPARTYNUMBER,3,3)
        || '-'
        ||SUBSTR(ORIGINALCALLEDPARTYNUMBER,6,3)
        || '-'
        ||SUBSTR(ORIGINALCALLEDPARTYNUMBER,9) , ORIGINALCALLEDPARTYNUMBER) TO_NUMBER,
        new_time(to_date(TO_CHAR(to_date('01.01.70','dd.mm.rr')+ (DATETIMECONNECT/( 60 *60*24)), 'mm-dd-yyyy hh24:mi:ss'),'mm-dd-yyyy hh24:mi:ss'),'GMT','EDT') DATETIME_CONNECT,
        new_time(to_date(TO_CHAR(to_date('01.01.70','dd.mm.rr')+ ( DATETIMEDISCONNECT /(60*60*24)), 'mm-dd-yyyy hh24:mi:ss'),'mm-dd-yyyy hh24:mi:ss'),'GMT','EDT') DATETIME_DISCONNECT,
        duration Duration_sec,
        ROUND(duration/60,2) Duration_MIN,
        pkid,
        to_date(TO_CHAR(new_time(to_date(TO_CHAR(to_date('01.01.70','dd.mm.rr')+ (DATETIMECONNECT/( 60 *60*24)), 'mm-dd-yyyy hh24:mi:ss'),'mm-dd-yyyy hh24:mi:ss'),'GMT','EDT'),'DD-MON-YYYY')) date_of_call
      FROM CALL_DETAILS_CDR C
      WHERE datetimeconnect <> 0;
    The above view is based on table CALL_DETAILS_CDR defined as:
    CREATE TABLE "VOIP"."CALL_DETAILS_CDR"
        "ID"                             NUMBER NOT NULL ENABLE,
        "CDRRECORDTYPE"                  NUMBER,
        "G_CALLMANAGERID"                NUMBER,
        "G_CALLID"                       NUMBER,
        "O_LEGCALLIDENTIFIER"            NUMBER,
        "DATETIMEORIGINATION"            NUMBER,
        "O_NODEID"                       NUMBER,
        "O_SPAN"                         NUMBER,
        "O_IPADDR"                       NUMBER,
        "CALLINGPARTYNUMBER"             VARCHAR2(50 BYTE),
        "CALLINGPARTY_USERID"            VARCHAR2(128 BYTE),
        "O_CAUSE_LOCATION"               NUMBER,
        "O_CAUSE_VALUE"                  NUMBER,
        "O_PRECEDENCELEVEL"              NUMBER,
        "O_MEDIATRANSPORTADDR_IP"        NUMBER,
        "O_MEDIATRANSPORTADDR_PORT"      NUMBER,
        "O_MCAP_PAYLOADCAPABILITY"       NUMBER,
        "O_MCAP_MAXFRAMESPERPACKET"      NUMBER,
        "O_MCAP_G723BITRATE"             NUMBER,
        "O_VCAP_CODEC"                   NUMBER,
        "O_VCAP_BANDWIDTH"               NUMBER,
        "O_VCAP_RESOLUTION"              NUMBER,
        "O_VIDEOTRANSPORTADDR_IP"        NUMBER,
        "O_VIDEOTRANSPORTADDR_PORT"      NUMBER,
        "O_RSVPAUDIOSTAT"                VARCHAR2(64 BYTE),
        "O_RSVPVIDEOSTAT"                VARCHAR2(64 BYTE),
        "DESTLEGIDENTIFIER"              NUMBER,
        "DESTNODEID"                     NUMBER,
        "DESTSPAN"                       NUMBER,
        "DESTIPADDR"                     NUMBER,
        "ORIGINALCALLEDPARTYNUMBER"      VARCHAR2(50 BYTE),
        "FINALC_PARTYNUMBER"             VARCHAR2(50 BYTE),
        "FINALC_PARTY_USERID"            VARCHAR2(128 BYTE),
        "DESTCAUSE_LOCATION"             NUMBER,
        "DESTCAUSE_VALUE"                NUMBER,
        "DESTPRECEDENCELEVEL"            NUMBER,
        "DESTMEDIATRANSPORTADDR_IP"      NUMBER,
        "DESTMEDIATRANSPORTADDR_PORT"    NUMBER,
        "DESTMCAP_PAYLOADCAPABILITY"     NUMBER,
        "DESTMCAP_MAXFRAMESPERPACKET"    NUMBER,
        "DESTMCAP_G723BITRATE"           NUMBER,
        "DV_CAP_CODEC"                   NUMBER,
        "DV_CAP_BANDWIDTH"               NUMBER,
        "DV_CAP_RESOLUTION"              NUMBER,
        "DV_TRANSPORTADDR_IP"            NUMBER,
        "DV_TRANSPORTADDR_PORT"          NUMBER,
        "DESTRSVPAUDIOSTAT"              VARCHAR2(64 BYTE),
        "DESTRSVPVIDEOSTAT"              VARCHAR2(64 BYTE),
        "DATETIMECONNECT"                NUMBER,
        "DATETIMEDISCONNECT"             NUMBER,
        "LASTREDIRECTDN"                 VARCHAR2(50 BYTE),
        "PKID"                           VARCHAR2(4000 BYTE),
        "O_INALCALLEDPARTYNUM_PARTITION" VARCHAR2(50 BYTE),
        "CALLINGPARTYNUM_PARTITION"      VARCHAR2(50 BYTE),
        "FINALC_PARTYNUM_PARTITION"      VARCHAR2(50 BYTE),
        "LASTREDIRECTDNPARTITION"        VARCHAR2(50 BYTE),
        "DURATION"                       NUMBER,
        "O_DEVICENAME"                   VARCHAR2(129 BYTE),
        "DESTDEVICENAME"                 VARCHAR2(129 BYTE),
        "O_CALLTERMINATION_BEHALF"       NUMBER,
        "DESTCALLTERMINATION_BEHALF"     NUMBER,
        "O_CALLEDPARTYREDIRECT_BEHALF"   NUMBER,
        "LASTREDIRECTREDIRECT_BEHALF"    NUMBER,
        "O_CALLEDPARTYREDIRECTREASON"    NUMBER,
        "LASTREDIRECTREDIRECTREASON"     NUMBER,
        "DESTCONVERSATIONID"             NUMBER,
        "G_CALLID_CLUSTERID"             VARCHAR2(50 BYTE),
        "JOIN_BEHALF"                    NUMBER,
        "COMMENTS"                       VARCHAR2(2048 BYTE),
        "AUTHCODEDESCRIPTION"            VARCHAR2(50 BYTE),
        "AUTHORIZATIONLEVEL"             NUMBER,
        "CLIENTMATTERCODE"               VARCHAR2(32 BYTE),
        "O_DTMFMETHOD"                   NUMBER,
        "DESTDTMFMETHOD"                 NUMBER,
        "CALLSECUREDSTATUS"              NUMBER,
        "O_CONVERSATIONID"               NUMBER,
        "O_MCAP_BANDWIDTH"               NUMBER,
        "DESTMCAP_BANDWIDTH"             NUMBER,
        "AUTHORIZATIONCODEVALUE"         VARCHAR2(32 BYTE),
        "OUTPULSEDCALLINGPARTYNUMBER"    VARCHAR2(50 BYTE),
        "OUTPULSEDCALLEDPARTYNUMBER"     VARCHAR2(50 BYTE),
        "O_IPV4V6ADDR"                   VARCHAR2(64 BYTE),
        "DESTIPV4V6ADDR"                 VARCHAR2(64 BYTE),
        "O_VCAP_CODEC_CHAN2"             NUMBER,
        "O_VCAP_BANDWIDTH_CHAN2"         NUMBER,
        "O_VCAP_RESOLUTION_CHAN2"        NUMBER,
        "O_V_TRANSPORTADDR_IP_CHAN2"     NUMBER,
        "O_V_TRANSPORTADDR_PORT_CHAN2"   NUMBER,
        "O_V_OCHANNEL_ROLE_CHAN2"        NUMBER,
        "DV_CAP_CODEC_CHAN2"             NUMBER,
        "DV_CAP_BANDWIDTH_CHAN2"         NUMBER,
        "DV_CAP_RESOLUTION_CHAN2"        NUMBER,
        "DV_TRANSPORTADDR_IP_CHAN2"      NUMBER,
        "DV_TRANSPORTADDR_PORT_CHAN2"    NUMBER,
        "DV_CHANNEL_ROLE_CHAN2"          NUMBER,
        "DATE_CREATED" DATE,
        CONSTRAINT "CALL_DETAILS_CDR_PK" PRIMARY KEY ("ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "VOIPDATA" ENABLE,
        CONSTRAINT "PKID_UNIQUE" UNIQUE ("PKID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 167 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "VOIPDATA" ENABLE
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
      TABLESPACE "VOIPDATA" ;
    CREATE INDEX "VOIP"."CALL_DETAILS_CDR_INDEX3" ON "VOIP"."CALL_DETAILS_CDR"
        "ORIGINALCALLEDPARTYNUMBER",
        "DATETIMECONNECT"
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
      TABLESPACE "VOIPDATA" ;
    CREATE INDEX "VOIP"."CALL_DETAILS_CDR_INDEX2" ON "VOIP"."CALL_DETAILS_CDR"
        "CALLINGPARTYNUMBER",
        "DATETIMECONNECT"
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
      TABLESPACE "VOIPDATA" ;
    CREATE UNIQUE INDEX "VOIP"."CALL_DETAILS_CDR_PK" ON "VOIP"."CALL_DETAILS_CDR"
        "ID"
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
      TABLESPACE "VOIPDATA" ;
    CREATE UNIQUE INDEX "VOIP"."PKID_UNIQUE" ON "VOIP"."CALL_DETAILS_CDR"
        "PKID"
      PCTFREE 10 INITRANS 2 MAXTRANS 167 COMPUTE STATISTICS STORAGE
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
      TABLESPACE "VOIPDATA" ;
    The view, V_CDR_EMP, is defined as:
    CREATE OR REPLACE FORCE VIEW "VOIP"."V_CDR_EMP" ("EMPID", "FIRST_NAME", "MIDDLE_INITIAL", "LAST_NAME", "ORG", "ORG_DESCR", "DEPT", "DEPT_DESC", "ADDRESS", "PHONE", "FULL_TELEPHONE")
    AS
      SELECT e.empid,
        e.First_name,
        e.Middle_Initial,
        e.Last_name,
        e.Org,
        o.org_descr,
        e.Dept,
        d.Dept_desc,
        e.Address,
        DECODE (SUBSTR(e.address,1,6),'ONEMAD','10-'
        || SUBSTR (e.telephone,9), '225PAS','10-'
        || SUBSTR (e.telephone,9), '233PAS','10-'
        || SUBSTR (e.telephone,9), '115BWA','10-'
        || SUBSTR (e.telephone,9), DECODE(SUBSTR(e.address,1,4),'PATC','11-'
        || SUBSTR (e.telephone,9), 'JAMS','12-'
        || SUBSTR (e.telephone,9), 'JSTC','12-'
        || SUBSTR (e.telephone,9), 'PABT','19-'
        || SUBSTR (e.telephone,9), 'TLPT','08-'
        || SUBSTR (e.telephone,9), 'HCMF','12-'
        || SUBSTR (e.telephone,9), DECODE(SUBSTR(e.address,1,3),'GWB','17-'
        || SUBSTR (e.telephone,9), 'LGA','13-'
        || SUBSTR (e.telephone,9), 'EWR','14-'
        || SUBSTR (e.telephone,9), 'JFK','15-'
        || SUBSTR (e.telephone,9), 'SIB','18-'
        || SUBSTR (e.telephone,9), 'MVP','14-'
        || SUBSTR (e.telephone,9), 'WTC','10-'
        || SUBSTR (e.telephone,9), 'CON','12-'
        || SUBSTR (e.telephone,9), DECODE(SUBSTR(e.address,1,2),'HT','11-'
        || SUBSTR (e.telephone,9), 'BP','06-'
        || SUBSTR (e.telephone,9), 'LT','16-'
        || SUBSTR (e.telephone,9), 'PN','07-'
        || SUBSTR (e.telephone,9), DECODE(SUBSTR(e.address,1,5),'2GWAY','04-'
        || SUBSTR (e.telephone,9), '3GWAY','04-'
        || SUBSTR (e.telephone,9), DECODE(SUBSTR(e.address,1,10),'PORT IVORY','07-'
        || SUBSTR (e.telephone,9),e.telephone) ) ) ) ) ) phone,
        e.telephone full_telephone
      FROM [email protected] e ,
        [email protected] d ,
        [email protected] o
      WHERE e.active = 'Y'
      AND e.dept     = d.dept
      AND e.org      = o.org;Robert

  • Additional licenses reuired for using Sql Tuning Advisor In SQL Developer 4.0.3

    Hi,
    We have Oracle Database 11g Enterprise Edition Release 11.2.0.3.0. Do we need to purchase an additional oracle license for using SQL Tuning Advisor Option in SQL Developer 4.0.3 

    We have Oracle Database 11g Enterprise Edition Release 11.2.0.3.0. Do we need to purchase an additional oracle license for using SQL Tuning Advisor Option in SQL Developer 4.0.3 
    The Oracle Tuning Pack is DATABASE functionality - it is part of the database. Sql Developer just uses it.
    Yes - to use ANY of the features of the tuning pack requires an extra cost license.
    http://docs.oracle.com/cd/B28359_01/license.111/b28287/options.htm#CIHFIHFG
    Oracle Tuning Pack
    The Oracle Tuning Pack provides database administrators with expert performance management for the Oracle environment, including SQL tuning and storage optimizations. The Oracle Diagnostic Pack is a prerequisite product to the Oracle Tuning Pack. Therefore, to use the Tuning Pack, you must also have a Diagnostic Pack.
    The Tuning Pack includes the following features:
      SQL Access Advisor
      SQL Tuning Advisor
      Automatic SQL Tuning
      SQL Tuning Sets
      SQL Monitoring
      Reorganize objects
    In order to use the features listed above, you must purchase licenses for the Tuning Pack, with one exception: SQL Tuning Sets can be used if you have licensed either the Tuning Pack or Oracle Real Application Testing. A new initialization parameter, CONTROL_MANAGEMENT_PACK_ACCESS, is introduced to control access to the Diagnostic Pack and Tuning Pack in the database server. This parameter can be set to one of three values:
      DIAGNOSTIC+TUNING: Diagnostic Pack and Tuning Pack functionally is enabled in the database server.
      DIAGNOSTIC: Only Diagnostic Pack functionality is enabled in the server.
      NONE: Diagnostic Pack and Tuning pack functionally is disabled in the database server.
    The Tuning Pack functionality can be accessed by the Enterprise Manager links as well as through the database server command-line APIs. The use of either interface requires licensing of the Tuning Pack

  • Use of SQL Tuning pack  in SAP

    We have activated the Oracle 'SQL Tuning pack'  however only one function "SQL Tuning Advisor" is activated/visible in ST04
    and other functionality is not visible. We have already taken license of 'SQL Tuning pack' .
    Other then this we want to use following oracle supported features.
    1) Automatic SQL Tuning Advisor
    2) Real-time SQL Monitoring
    3) Object Reorganization Wizard
    As I know we can use "oracle enterprise manager" to use such oracle features, If SAP allow use of OEM in SAP environment.
    can someone help here please..?
    Thanks,
    Kapil Pandey

    Hello Kapil,
    which other options did you expect to find in ST04? SAP note 1028068 speaks only of the "SQL Tuning Advisor" which will be activated:
    As of Enhancement Package 1 for Basis Release 7.00 (that is, Basis Release 7.01), the function "SQL Tuning Advisor" is contained in the DBA Cockpit. This optional function requires the Oracle Tuning Pack to be licensed.
    The other features should be used via the OEM, because they are not integrated in the DBACOCKPIT transaction:
    - Automatic SQL Tuning Advisor
    - Real-time SQL Monitoring (with OEM you even get a really useful visualization)
    - Object Reorganization Wizard -> better use brspace because it is supported by SAP
    Regards,
    Mark

  • SQL Tuning Advisor evaluates statement using wrong plan_hash_value

    The execution plan for one of my SQL statements changed this morning. The statement is in a third-party package. The new plan runs worse than the old plan. I had the SQL tuning advisor evaluate the statement. I ran it three times. Each time it evaluated the original plan, not the new one. I can tell that because the plan_hash_value shown in the advisor's recommendations is the old plan's plan_hash_value. The old plan no longer appears in DBA_HIST_SQL_PLAN. I do not understand why the advisor is using the original plan, nor where it is getting it. It does not show up in Oracle Enterprise Manager either.
    Has anyone see this before?
    Do you have any suggestions how I can force the advisor to evaluate the new execution plan?
    I am running Oracle Database Server 10gR2 Enterprise Edition.
    Thanks,
    Bill

    Following advice given earlier, I ran the SQL Tuning Advisor by executing DBMS_SQLTUNE from within a SQL*Plus session instead of via Oracle Enterprise Manager. The problem I originally encountered in OEM also happened using DBMS_SQLTUNE. Using DBMS_SQLTUNE I specified plan_hash_value => '3657286666' but the results of running create_tuning_task shows that the utility used a different plan_hash_value. See below:
    Based on this, I think the problem I originally blamed on OEM's creation of a SQL Tuning Advisor job was misdirected. I now believe that OEM supplied the proper information to the advisor, but the advisor did not correctly use what is was given.
    Below is what I submitted when I ran create_tuning_task and execute_tuning_task. Note that the value assigned to plan_hash_value is 3657286666. Following the messages from execute_tuning_task, see the output produced by the execution of report_tuning_task. In EXPLAIN PLANS SECTION heading 1 - ORIGINAL, note that Plan Hash Value = 3541843898.
    I submitted instructions to use plan_hash_value 3657286666 but instead it used 3541843898. Why did it do this??????
    I have not found a published bug that describes this condition.
    Thanks,
    Bill
    SQL> DECLARE
    2 stmt_task VARCHAR2(64);
    3 BEGIN
    4 stmt_task:=dbms_sqltune.create_tuning_task(sql_id => 'ab30ujpshkur3', plan_hash_
    value => '3657286666', time_limit => 3600, task_name => 'Tune_ab30ujpshkur3_3657286666'
    , description => 'Task to tune sql_id ab30ujpshkur3 plan_hash_value 3657286666');
    5 END;
    6 /
    PL/SQL procedure successfully completed.
    SQL> EXECUTE dbms_sqltune.execute_tuning_task('Tune_ab30ujpshkur3_3657286666');
    PL/SQL procedure successfully completed.
    Here is the output produced by report_tuning_task:
    SQL> SET linesize 200
    SQL> SET LONG 999999999
    SQL> SET pages 1000
    SQL> SET longchunksize 20000
    SQL> SELECT dbms_sqltune.report_tuning_task('Tune_ab30ujpshkur3_3657286666', 'TEXT', 'ALL') FROM dual;
    SELECT dbms_sqltune.script_tuning_task('Tune_ab30ujpshkur3_3657286666', 'ALL')
    FROM dual;
    DBMS_SQLTUNE.REPORT_TUNING_TASK('TUNE_AB30UJPSHKUR3_3657286666','TEXT','ALL')
    GENERAL INFORMATION SECTION
    Tuning Task Name : Tune_ab30ujpshkur3_3657286666
    Tuning Task Owner : EXPTEST
    Tuning Task ID : 110190
    Scope : COMPREHENSIVE
    Time Limit(seconds) : 3600
    Completion Status : COMPLETED
    Started at : 08/03/2012 14:47:45
    Completed at : 08/03/2012 14:48:54
    Number of Index Findings : 1
    Schema Name: EXPTEST
    SQL ID : ab30ujpshkur3
    SQL Text : SELECT ATTACHED_ACC_ID FROM SERVICE_EVENTS WHERE TSERV_ID = :B4
    AND EQ_NBR = :B3 AND ASSOC_EQ_NBR = :B2 AND (PERFORMED <= :B1 +
    1/1440 AND PERFORMED >= :B1 - 1/1440)
    FINDINGS SECTION (1 finding)
    1- Index Finding (see explain plans section below)
    The execution plan of this statement can be improved by creating one or more
    indices.
    Recommendation (estimated benefit: 100%)
    - Consider running the Access Advisor to improve the physical schema design
    or creating the recommended index.
    create index EXPTEST.IDX$$_1AE6E0001 on
    EXPTEST.SERVICE_EVENTS('EQ_NBR','ASSOC_EQ_NBR');
    Rationale
    Creating the recommended indices significantly improves the execution plan
    of this statement. However, it might be preferable to run "Access Advisor"
    using a representative SQL workload as opposed to a single statement. This
    will allow to get comprehensive index recommendations which takes into
    account index maintenance overhead and additional space consumption.
    EXPLAIN PLANS SECTION
    1- Original
    Plan hash value: 3541843898
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
    Time |
    | 0 | SELECT STATEMENT | | 1 | 32 | 4 (0)|
    00:00:01 |
    |* 1 | FILTER | | | | |
    |
    |* 2 | TABLE ACCESS BY INDEX ROWID| SERVICE_EVENTS | 1 | 32 | 4 (0)|
    00:00:01 |
    |* 3 | INDEX RANGE SCAN | SEVENTS_PERFORMED | 18 | | 2 (0)|
    00:00:01 |
    Query Block Name / Object Alias (identified by operation id):
    1 - SEL$1
    2 - SEL$1 / SERVICE_EVENTS@SEL$1
    3 - SEL$1 / SERVICE_EVENTS@SEL$1
    Predicate Information (identified by operation id):
    1 - filter(:B1+.000694444444444444444444444444444444444444>=:B1-.0006944444444444444
    444
    44444444444444444444)
    2 - filter("EQ_NBR"=:B3 AND "ASSOC_EQ_NBR"=:B2 AND "TSERV_ID"=:B4)
    3 - access("PERFORMED">=:B1-.000694444444444444444444444444444444444444 AND
    "PERFORMED"<=:B1+.000694444444444444444444444444444444444444)
    Column Projection Information (identified by operation id):
    1 - "ATTACHED_ACC_ID"[VARCHAR2,12]
    2 - "ATTACHED_ACC_ID"[VARCHAR2,12]
    3 - "SERVICE_EVENTS".ROWID[ROWID,10]
    2- Using New Indices
    Plan hash value: 2568062050
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| T
    ime |
    | 0 | SELECT STATEMENT | | 1 | 32 | 2 (0)| 0
    0:00:01 |
    |* 1 | FILTER | | | | |
    |
    |* 2 | TABLE ACCESS BY INDEX ROWID| SERVICE_EVENTS | 1 | 32 | 2 (0)| 0
    0:00:01 |
    |* 3 | INDEX RANGE SCAN | IDX$$_1AE6E0001 | 1 | | 2 (0)| 0
    0:00:01 |
    Query Block Name / Object Alias (identified by operation id):
    1 - SEL$1
    2 - SEL$1 / SERVICE_EVENTS@SEL$1
    3 - SEL$1 / SERVICE_EVENTS@SEL$1
    Predicate Information (identified by operation id):
    1 - filter(:B1+.000694444444444444444444444444444444444444>=:B1-.0006944444444444444
    4
    4444444444444444444444)
    2 - filter("TSERV_ID"=:B4 AND "PERFORMED">=:B1-.000694444444444444444444444444444444
    4
    44444 AND "PERFORMED"<=:B1+.000694444444444444444444444444444444444444)
    3 - access("EQ_NBR"=:B3 AND "ASSOC_EQ_NBR"=:B2)
    Column Projection Information (identified by operation id):
    1 - "ATTACHED_ACC_ID"[VARCHAR2,12]
    2 - "ATTACHED_ACC_ID"[VARCHAR2,12]
    3 - "SERVICE_EVENTS".ROWID[ROWID,10]
    SQL> 2
    DBMS_SQLTUNE.SCRIPT_TUNING_TASK('TUNE_AB30UJPSHKUR3_3657286666','ALL')
    -- Script generated by DBMS_SQLTUNE package, advisor framework --
    -- Use this script to implement some of the recommendations --
    -- made by the SQL tuning advisor. --
    -- NOTE: this script may need to be edited for your system --
    -- (index names, privileges, etc) before it is executed. --
    create index EXPTEST.IDX$$_1AE6E0001 on EXPTEST.SERVICE_EVENTS('EQ_NBR','ASSOC_EQ_NBR')
    ;

  • Sql tuning advisor for concurrent requests

    Dear all,
    I am having one doubt in my mind from very long time.Can we use sql tuning advisor from 10G(EM) to tune concurrent requests and reports?
    Regards

    Hi Helios,
    I am just thinking wiht voice. If you have one code blog which is typed in sql-pl/sql for your concurrent request, its going and run on dbtier. So it has one SQL'ID and also can be check on AWR report. So i belive you can use sqltuning adviser for to can tune related sqlAFAIK, some Instances a single concurrent request may contain multiple SQLID's and in that scenario tuning approach is difficult. Any information how can we consolidate it. If tune one specific sql then the explain plan for other sql become more worst. I came across this situation so many time.
    Any information or inputs on this is really appreciated.
    thanks,
    X A H E E R

  • SQL tuning Advisor for old statements

    Hi all,
    i've identified SQL ID (through snapshots AWR) that make me performance problem. This is a old select statement (Mar 10, 2008) and when i try to run sql tuning advisor, it shows me this error:
    "There was a problem creating a SQL tuning task. ORA-13780: SQL statement does not exist. ORA-06512"
    I've set AWR for retain 60 days of Snapshot Retention, why i can't run tuning advisor for this statement??
    thanks very much for answers.
    Andrea

    Hi
    The problem is that the information of AWR is based on Historical information that Oracle retrieve of historical tables . AWR means Automatic Workload Repository.
    But when you execute the SQL tuning advisor task, Oracle needs retrieve the information of sql statement from SHARED POOL.
    The Library Cache is a part of Shared pool and contains an area named SQLAREA that stored information of execution plan for sql statements. This memory area is managed by LRU alghoritm.(last recently used) and the error is produced because this sql statement not is stored in this memory area.
    When the sql stament not reside in memory Oracle can't build the execution plan and then the error appear
    Regards

  • SQL Server 2012 Cumulative update package 2 (CU2) for SQL Server 2012 Service Pack 2 - why only for x86 ?

    Hey guys...
    Im a little bit confused... i wanted to download the newest hotfixes for SQL server 2012...
    But the download for :
    2983175 Cumulative update package 2 (CU2) for SQL Server 2012 Service Pack
    is only for the platform: x86 available ... but my SQL server 2012 is running in a x64 environment...
    (when i checked the older cumulative updates... they're all only for x86.. can someone tell me why ? )
    thanks and regards,
    Dominic

    There doesn't exist an SQL Express "Standard". It's two different editions.
    For Express there are three 32bit/64bit editions:
    Express, Express with Tools and Express with Advanced Services.
    Express with Tools is essentially Express with Management Studio Tools, Express with Advanced Services adds also BI (Business Intelligence) + Reporting Services.
    As for where you can apply the cumulative update, on the link you can see this:
        Microsoft SQL Server 2012 Service Pack 2, when used with:
            Microsoft SQL Server 2012 Analysis Services
            Microsoft SQL Server 2012 Developer
            Microsoft SQL Server 2012 Enterprise
            Microsoft SQL Server 2012 Express
            Microsoft SQL Server 2012 Business Intelligence
            Microsoft SQL Server 2012 Standard
            Microsoft SQL Server 2012 Web
    "If there's nothing wrong with me, maybe there's something wrong with the universe!"

  • B2B software package you use for AS2

    Hi All,
    We are using Oracle 10G B2B. We are adding a new supplier. Our new supplier asks " what is your B2B software package you use for AS2"
    I said " Application server integration B2B of version 10.1.2.3.0", then immediately he replied
    "I could not find Oracle Application Server Integration B2B 10.1.2.3 listed on the Drummond Group website for AS2 interoperability certification. Would the software package be listed under another name?"
    Could you please help us to reply his question..

    Hi,
    Ask your supplier to check the AS2-3Q05 report of Drummond group. It is available at below link -
    http://www.drummondgroup.com/html-v2/as2-archive.html
    You can find Oracle Application Server 10g (10.1.2) listed here. Also give him the refernce of below doc -
    http://www.drummondgroup.com/pdfs/AS2_5.05.04_Final_release.pdf
    Regards,
    Anuj

  • Enterprise Manager - sql tuning advisor , Access advisor for SQL Tuning

    Hi,
    NO I mean in oracle 10g you have the enterprise manager which can be used to tune sql statements using the SQL ADvisor and SQL access advisor.
    I believe in oracle 10g the process of SQL Tuning is slightly easier using the Enterprise Manager ...so if some one could explain me that process...
    Again thanking you in advance
    regds
    Manoj Gokhale

    Hi Manoj,
    tune sql statements using the SQL ADvisor and SQL access advisor.Do you have the OEM extra cost "performance pack"?
    The OEM screens are fairly self-explainatory, but here are some references on the 10 SQL tuning advisors:
    http://www.oracle-base.com/articles/10g/AutomaticSQLTuning10g.php
    http://www.remote-dba.net/oracle_10g_tuning/t_oracle_sql_tuning_advisor_session_example.htm

  • Can Audit Vault be used for getting detailed read type information from the siebel database?

    Can Audit Vault be used for getting detailed read type information from the siebel database?

    Kramer wrote:
    saurabh wrote:
    check below cmd to see where archive are generated.
    SQL> archive log list
    And also check the following
    SQL> select flashback_on from v$database;
    Hi
    Here is the out put
    SQL>  select flashback_on from v$database;
    FLASHBACK_ON
    NO
    SQL>  archive log list
    Database log mode              Archive Mode
    Automatic archival             Enabled
    Archive destination            USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     11
    Next log sequence to archive   12
    Current log sequence           12
    The flashback is not enabled. But archive log list shows archive destination is specified to use_db_recovery_file_dest.  And I checked the log_archive_dest_10 still empty
    Flashback off or on has nothing to do with it. 

  • Can arch binaries be used for other distros

    hi,
    Can arch binaries be used for other linux distributions like slackware and ubuntu?

    Acecero wrote:
    karol wrote:
    Acecero wrote:
    There was a community project that started a while ago where you can create packages for other distros in Arch called unipkg.
    Though I don't know if there is any activity anymore...
    http://github.com/paradoq/unipkg looks quite fresh.
    To me it appears there was no activity since it started 2 months ago.  I understand it is a fresh project, just no recent updates.
    Ooops, you're right, not much going on there.

  • Can FW CS3 be used for graphic for printing?

    I am very familiar with FW but I do not like Photoshop,
    however I have both I preffer to use FW. As I have seen on one
    presentation new FW CS3 has CMYK pallete so my question is: can FW
    CS3 be used for preparation of graphic for printing or what are the
    obstacles? After preparing images in FW I will use InDesign for
    text or maybe the text in FW is wector and maybe I could use FW
    including text and not to use INDEsign far small projects? Does
    anyone has any experience with this subject?
    Regards
    Martin

    qnnick wrote:
    > I am very familiar with FW but I do not like Photoshop,
    however I have both I
    > preffer to use FW. As I have seen on one presentation
    new FW CS3 has CMYK
    > pallete so my question is: can FW CS3 be used for
    preparation of graphic for
    > printing or what are the obstacles?
    Fireworks does not operate or export in CMYK color space. It
    was
    developed for screen images only, and operates and exports in
    RGB color
    space. It is not recommended that you use it in preparation
    of images
    for print. You mentioned that you don't like photoshop. You
    might like
    Illustrator better.
    Linda Rathgeber [PVII] *Adobe Community Expert-Fireworks*
    http://www.projectseven.com
    Fireworks Newsgroup:
    news://forums.projectseven.com/fireworks/
    CSS Newsgroup: news://forums.projectseven.com/css/
    http://www.adobe.com/communities/experts/

  • Can an iMac be used for WD My Book Live safepoints?

    I have a Western Digitial My Book Live network drive.  All Mac's and PC's can read/write without a problem.  I would like to create a safepoint (WD term for backup) on an iMac but can't seem to get past correctly discovering the devices on the network.  The MBL can 'see' the shares on the XP PC but nothing on the Mac's.  Unfortunately the XP PC is not suitable for backups.
    Can a Mac be used for MBL safepoints?  If so, how is that accomplished? 
    Yes, I've posted this same question the WD Support and WD Communities but no responses.  Most MBL Mac users posting on WD forums are using them for Time Machine.  I thought maybe someone on the Apple forums might have solved this problem.
    Thanks in advance for any help.
    Mike

    I am having the same issue.  Did you ever find an answer?  I see no one ever responded to you.  I have a WD cust service Tech support question submitted but no answer yet there either.  Thanks for any info you have.
    I get the error
    30000 - Unknown error. Retry your last operation. If the error persists, contact WD Support for assistance.
    (share_discover_9)
    when I choose the iMac as the location I would like to use.

Maybe you are looking for