SQL Performance Analyzer - no insert statements possible ?

Hi together
I traced a insert-stament on 9i, made a tuning set on the 11g for run in 10g. The creation of the tunig set was succesful. But if i want to play the tuning set on 10g with same data i get an error :
Type of SQL Statement not supported !
Can i only trace the select ? Have you made a test with bind variables ?
Thanks for your input.

user626582 wrote:
Double postingHa ha , I was going to mention exactly the same!
Aman....

Similar Messages

  • Real Application Testing/Sql Performance Analyzer Docs in 10g....

    I believed that both the tools mentioned in the subject are a part of 11g and so are in the 11g docs.
    http://download.oracle.com/docs/cd/B28359_01/server.111/e12253/toc.htm
    But I was just looking at 10g book listing and I saw the same book in 10g documentation as well.
    http://download.oracle.com/docs/cd/B19306_01/server.102/e12024/toc.htm
    Now my best guess is that this is due to the backporting of 11g tools for the previous releases. Means that we can do RAT or use SPA in pre 11g databases as well so this doc book is added. Is it correct or there is some other reason?
    Cheers
    Aman....

    Real Application Testing was introduced as a new feature in Oracle Database 11g. The documentation for Real Application Testing was released in 4 phases.
    In the initial phase, the usage of Real Application Testing was documented in the Performance Tuning Guide for release 11.1.
    In the second phase, the Real Application Testing User's Guide was released for release 10.2 to document certain backported functionalities. For Database Replay, the capability to capture a database workload was backported. For SQL Performance Analyzer, the capability to capture a SQL workload into a SQL tuning set was backported. These functionalities were backported to Oracle Database 10g Release 2 (version 10.2.0.4 or higher) to support customers who want to use Real Application Testing to test database upgrades from a previous version of Oracle Database to Oracle Database 11g.
    In the third phase, the Real Application Testing Addendum was released for release 11.1 to document the added functionality to read SQL trace files from Oracle Database 9i to construct a SQL tuning set that can be used as an input source for SQL Performance Analyzer in release 11.1.0.7.
    In the final phase, all available documentation for Real Application Testing contained in the above documents were consolidated into the Real Application Testing User's Guide for release 11.1. Going forward, this guide will contain all documentation of Real Application Testing and be updated for each release.
    Regards,
    Immanuel

  • Regarding SQL performance Analyzer

    Hi,
    I am working on oracle 11g new feature Real application testing.I want to test the performance of DB after setting DB_BLOCK_CHECKSUM and DB_BLOCK_CHECKING parameters to TRUE(currently FALSE) by using SQL performance Analyzer. I have collected the SQL Tuning Sets from production and imported in Test server(replica of PROD), and will test the same in Test server only.
    Will it be feasible to check by using SPA ? My concern is that in Test environment concurrent transaction and DML operation will not be done .
    Please help me out on this .
    Rgds,
    At

    Hi,
    Look at http://download.oracle.com/docs/cd/B28359_01/server.111/e12253/dbr_intro.htm
    Regards,

  • Ignore - SQL PERFORMANCE ANALYZER of 11g (dulpicate question)

    I am using 11g on Windows 2000, I want to run SQL PERFORMANCE ANALYZER to see the impact of init.ora parameter changes on some sql’s. Currently, I am using it in a test environment, but eventually I want to apply it to production environment.
    Let us say I want to see the effect of different values for db_file_muntilbock_readcount.
    When I run this in my database, will the values changed impact only the session where I am running sql performance analyzer, or will it impact any other sessions, which are accessing the same database instance during the analysis period. I think, it impacts only the session where SQL Performance analyzer is being run, but want to make sure that is the case? I am not making any changes to paremeters myself using alter satementsm but Oracle is changing the parameters behind the scenes as part of its analysis,
    Appreciate your feedback.
    Message was edited by:
    user632098

    Analyzer analyzes.
    When you change in init parameter you change the parameter for everybody.

  • SQL Performance Analyzer Information

    Hi,
    i would use SQL Performance Analyzer to test changes between 10g and 11g database.
    I will use Parameter Change option in SQL Performance Analyzer Workflows and test the change of parameter OPTIMIZER_FEATURES_ENABLE.
    Now, if I find some query that should be optimized how can I save new profiles from the test environment and apply it after i upgrade the production environment?
    tnx

    >
    i would use SQL Performance Analyzer to test changes between 10g and 11g database.
    I will use Parameter Change option in SQL Performance Analyzer Workflows and test the change of parameter OPTIMIZER_FEATURES_ENABLE.
    Now, if I find some query that should be optimized how can I save new profiles from the test environment and apply it after i upgrade the production environment?
    >
    To me, your question translates to: 'How can I export SQL Profiles from test and import into production?'
    Answer: Use
    DBMS_SQLTUNE.CREATE_STGTAB_SQLPROF
    DBMS_SQLTUNE.PACK_STGTAB_SQLPROF
    to create a util table on test and store SQL Profiles into.
    Then datapump util table to production and
    DBMS_SQLTUNE.UNPACK_STGTAB_SQLPROF
    there.
    Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • Using sql:variable in an insert statement

    I'm writing an insert statement for a table with an XML column.  Most of the XML is static, but I need to replace the value of an element with the value of a T-SQL variable, as shown here:
    CREATE TABLE [dbo].[OrderDetail](
    [OrderID] [int] NULL,
    [OrderDetail] [xml] NULL
    GO
    DECLARE @XMLData XML;
    DECLARE @ItemID INT;
    SET @ItemID = 1000;
    SELECT @XMLData = N'
    <OrderDetail xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    </OrderDetail>
    SET @XMLData.modify('insert <ItemID>[sql:variable("@ItemID")]</ItemID> into (/OrderDetail)[1]')
    INSERT INTO [dbo].[OrderDetail] ([OrderID], [OrderDetail])
    VALUES (@ItemID, @XMLData);
    When I run this, it inserts "[sql:variable("@ItemID")]" instead of the value of @ItemID.  If someone could show me the proper syntax, I would really appreciate it.  Thanks.

    Yes, that worked.  Now I want to change it a little.  I also have an attribute that I need to update with the value of a variable.
    DECLARE @XMLData XML;
    DECLARE @SetID INT;
    DECLARE @SetIDStr VARCHAR(12);
    DECLARE @SetIDXML XML;
    SET @SetID = 9999;
    SET @SetIDStr = CONVERT(VARCHAR(12), @SetID);
    SET @SetIDXML = CONVERT(XML, @SetIDStr);
    SELECT @XMLData = N'
    <OrderDetail xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <ItemID>1000</ItemID>
    <RightOperand ID="15524" Name="ItemName" Value="15524" />
    </OrderDetail>
    SET @XMLData.modify('replace value of (/OrderDetail/RightOperand/@ID)[1] with sql:variable("@SetIDXML")');
    INSERT INTO [dbo].[OrderDetail] ([OrderID], [OrderDetail])
    VALUES (@SetID, @XMLData);
    SELECT * FROM [dbo].[OrderDetail];
    I'm trying to replace "ID="15524"" with the value of @SetID.  This code throws an exception:
    Msg 9342, Level 16, State 1, Line 23
    XQuery [modify()]: An XML instance is only supported as the direct source of an insert using sql:column/sql:variable.
    Thanks again for your help.

  • Export to INSERT STATEMENT Possible Bug

    h2. Synopsis
    Currently, if your table has nested tables using Types, the export to INSERT STATEMENT does correctly create the insert statement. In the sample below, the PURGE_WHERE_CLAUSE is a nested table (TYPE and TABLE of TYPE)
    h2. Examples
    h4. Below is an example of the incorrectly created insert statement made by SQL Developer.
    INSERT
    INTO PRG_DTLS
    PRG_NAME,
    TABLE_ID,
    FILE_ID,
    PRG_ORDER_SEQ_NO,
    PRG_ACTION_ID,
    OPERATING_SYSTEMS_ID,
    PRG_WHERE_CLAUSE,
    CREATED_BY,
    CREATED_DATE,
    LAST_UPDATED_BY,
    LAST_UPDATED_DATE
    VALUES
    'GUITEST01',
    26,
    NULL,
    1,4,
    NULL,
    *'STGMGR.PRG_CRITERIA(STGMGR.PRG_CRITERIA(PRCS_ID,=,1,null,null,null))',*
    'XXXXXXX',
    to_date('21-MAY-09','DD-MON-RR'),
    'XXXXXXX',
    to_date('21-MAY-09','DD-MON-RR')
    h4. Below is a sample of how it should correctly be made
    INSERT
    INTO STGMGR.PRG_DTLS
    PRG_NAME,
    TABLE_ID,
    PRG_ORDER_SEQ_NO,
    PRG_ACTION_ID,
    PRG_WHERE_CLAUSE,
    CREATED_BY,
    CREATED_DATE,
    LAST_UPDATED_BY,
    LAST_UPDATED_DATE
    VALUES
    'GUITEST01',
    26,
    1,
    4,
    *"STGMGR"."PRG_CRITERIA_NT"( "STGMGR".PRG_CRITERIA('PRCS_ID','=','1',NULL,NULL,NULL)),*
    'XXXXXXXX',
    TO_DATE('05/21/2009 15:45:18', 'MM/DD/YYYY HH24:MI:SS'),
    'XXXXXXX',
    TO_DATE('05/21/2009 15:45:18', 'MM/DD/YYYY HH24:MI:SS')
    COMMIT;
    h2. Is there a workaround or fix?
    I've attempted to see if I can find a fix for this in some type of settings in the preference but I have not yet found anything. Has anyone found a fix for this issue?

    Hi Barry,
    It is a Type and Table of types stored as a nested table in a regular table.
    Its basically a tool we created to store the WHERE clauses for an automated tool that will delete old data that we no longer need from our database.
    So, it dynamically stores and creates the DELETE statements.
    Hope this answers your question Barry.
    Thanks.

  • 11g sql performance analyzer

    dear all,
    i am trying to use 11g new feature sql perfomance analyzer SPA to check the result of changing intialization parameter on certain sql tuning set , the problem is the enterprize manager gives me list of 106 parameter to choose one of them , which is the isses_modifiable parameters,
    my questions is can i use this feature to check the result of changing one of parameters out of this scope (db_block_size) for example,
    thanks for reading

    This is a duplicate.
    Please be courteous to others and only post your question one time and in the appropriate forum.
    Thank you.

  • 11g SQL Performance Analyzer backport to 10g?

    My Question:
    In the context of 9i -> 10g upgrade and to deal with perfomance issues, would be good to have this tool available as well. I understood it's PL/SQL so, was wondering if anybody has knowledge of it being requested for back-port or even if back-ported already?

    Given the amount of infrastructure required to support it my guess is that it isn't going to happen. But then I thought the same thing about Streams.
    What prevents you from using it in 11g while running production in 10gR2?

  • Sql Performance Analyzer/ RAT for 11g R2

    I have been attempting to get a download of RAT/SPA for 11g R2. Currently it is not installed on my new r2 db. looked in OTN and Oracle Support no luck...is it the same as 11g R1?

    Welcome to the forums !
    Pl see if MOS Doc 948061.1 (How to Check and Enable/Disable Oracle Binary Options) can help.
    Ensure that you have appropriate licenses :-) http://download.oracle.com/docs/cd/E11882_01/license.112/e10594/options.htm#DBLIC154
    HTH
    Srini

  • SQL PERFORMANCE SQL ANALYZER of 11g

    I am using 11g on Windows 2000, I want run SQL PERFORMANCE ANALYZER to see the impact of parameter change on some sql’s. Currently, I am using it in a test environment, but eventually I want to apply t to production environment.
    Let us say I want to see the effect of different values db_file_muntilbock_readcount.
    When I run this in my database, will the values changed impact only the session where I am running sol performance analyzer, or will it impact any other sessions, which are accessing the same database instance. I think, it impacts only the session where SQL Performance analyzer is being run, but want to make sure that is the case?
    Appreciate your feedback.

    I think, it impacts only the session where
    SQL Performance analyzer is being run, but want to
    make sure that is the case?The database instance is part of a larger 'system' which includes a fixed set of physical resources. Your session, and every other session, work within the constraints of those resources. When you change the current SQL statement, you will be moving the balance between those resources.
    For example, a disk can only respond to one access request at a time. A memory location can be used for one piece of data at a time. A DB cache buffer can only reflect one block at a time. There are a lot of 'points of serialization'.
    Although the major impact should be on the current session, there will be some impact on every other session in the system.
    BY the way, there is an 'edit' button available to you for every post you create. As a courtesy, you could edit the title of the duplicate and let us know it is indeed a duplicate - or you could edit that other thread to ask that other question you were going to ask.

  • Insert statement approaches

    Hello,
    I noted in a post recently that an insert statement was formed like the one below the advantage being that there was one commit statement,
    INSERT INTO TABLE
    SELECT COLUMNS FROM DUAL
    UNION ALL
    SELECT COLUMNS FROM DUAL
    So I have attempted to use something like it, I have three examples below two (first and third example) using the syntax above.
    The last example attempts to use the syntax above but I have not included all the columns and it fails, is there anyway to form an insert statement similar to above that inserts multiple records for only some of the columns in the table with one commit statement.
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Apr 2 09:42:05 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    SQL> CONNECT SCOTT/TIGER
    Connected.
    ... INSERT STATEMENT WITH 8 OF 8 COLUMNS REPRESENTED
    SQL>
    SQL> INSERT INTO SCOTT.EMP
      2  SELECT 1000,'BELL','SALESMAN',7698,to_date('01/JAN/00','DD/MON/RR'),10000,100,30 FROM DUAL
      3  UNION ALL
      4  SELECT 2000,'HOOK','SALESMAN',7698,to_date('01/JAN/00','DD/MON/RR'),10000,100,30 FROM DUAL
      5  /
    2 rows created.
    SQL>
    ... INSERT STATEMENT WITH 3 OF 8 COLUMNS REPRESENTED
    SQL> Insert into SCOTT.EMP (EMPNO,ENAME,JOB) values (3000,'FRASER','SALESMAN');
    1 row created.
    SQL> Insert into SCOTT.EMP (EMPNO,ENAME,JOB) values (4000,'EATON','SALESMAN');
    1 row created.
    SQL>
    ... IS IT POSSIBLE TO USE A STATEMENT LIKE THIS TO INSERT 3 OF 8 COLUMNS.
    SQL> INSERT INTO SCOTT.EMP
      2  SELECT 5000,'CARR','SALESMAN' FROM DUAL
      3  UNION ALL
      4  SELECT 6000,'PLATT','SALESMAN' FROM DUAL
      5
    SQL> COMMIT
      2  /
    Commit complete.Thank You for any assistance
    Ben

    Thank You for the clarification Chen,
    This is the address that I was refering to about 6 posts down Oracle Database 10g Express Edition help
    After rereading it I may have come to the wrong conclusion on what Sentinel was saying.
    So is there any advantage to doing an insert with join all? I had the impression it was more efficient, faster or easier to write, what do you think?
    Ben

  • Insert statement taking too long

    Hi,
    I am inserting in a TAB_A from TAB_B using following statement
    INSERT INTO TAB_A
    SELECT * FROM TAB_B;
    In TAB_A more than 98000000 rows exits. While in TAB_B rows may be vary from 1000 to 1000000.
    TAB_A is a partition table.
    This insert is taking more than 3 hrs to insert 800000 rows from TAB_B.
    I need to improve performance of this insert statement.
    Can you please help me ???

    Hi,
    Try this:
    INSERT INTO tab_a SELECT /*+append*/  * FROM tab_b;                                                                                                                                                                                           

  • Looking for some help with building insert statements...

    Hi, I am using some sql to build some insert statements for me to update a set of tables in our qa environments. The scripts that I have created were working great until someone added a column to some of the tables in the qa env which in turn makes my scripts break because I was simply building the statment to do someting like this...
    insert into dest_table (select * from source_table@dblink);
    But now when the coumns in the tables do not match it breaks...
    This is the dynamic create script I use, can anyone help or suggest a better way to be able to build update statements update to qa tables when the columns are mismatched?
    spool insert.sql
    select
    'insert into ' || table_name || ' (select * from ' || table_name || '@prod );' || chr(10) || ' commit;'
    from user_tables
    where table_name in
    (select * from refresh_tablesl)
    any help is greatly appreciated,
    Thanks.

    See my reply to your duplicate post
    looking for help building dynamic insert statements...

  • Diff b/w Run time Analyizer(se30),Sql Trace (st05) and Performance Analyzie

    Can any one tell me the Diff b/w Run time Analyizer(se30),Sql Trace (st05) and Performance Analyzie(al21) ?

    Hi
    these all are doing t he same thing that is checking the program for better performance
    Tools for Performance Analysis
    Run time analysis transaction SE30
    SQL Trace transaction ST05
    Extended Program Check (SLIN)
    Code Inspector ( SCI)
    Run time analysis transaction SE30 :This transaction gives all the analysis of an ABAP program with respect to the database and the non-database processing. 
    SQL Trace transaction ST05: The trace list has many lines that are not related to the SELECT statement in the ABAP program. This is because the execution of any ABAP program requires additional administrative SQL calls. To restrict the list output, use the filter introducing the trace list.
    The trace list contains different SQL statements simultaneously related to the one SELECT statement in the ABAP program. This is because the R/3 Database Interface - a sophisticated component of the R/3 Application Server - maps every Open SQL statement to one or a series of physical database calls and brings it to execution. This mapping, crucial to R/3s performance, depends on the particular call and database system. For example, the SELECT-ENDSELECT loop on a particular database table of the ABAP program would be mapped to a sequence PREPARE-OPEN-FETCH of physical calls in an Oracle environment.
    The WHERE clause in the trace list's SQL statement is different from the WHERE clause in the ABAP statement. This is because in an R/3 system, a client is a self-contained unit with separate master records and its own set of table data (in commercial, organizational, and technical terms). With ABAP, every Open SQL statement automatically executes within the correct client environment. For this reason, a condition with the actual client code is added to every WHERE clause if a client field is a component of the searched table.
    To see a statement's execution plan, just position the cursor on the PREPARE statement and choose Explain SQL. A detailed explanation of the execution plan depends on the database system in use.
    Extended Program Check
    This can be called in through transaction SE38 or through transaction SLIN. This indicates possible problems that may cause performance problems.
    Code Inspector (SCI)
    You can call the Code Inspector from the ABAP Editor (SE38), the Function Builder (SE37), the Class Builder (SE24), or as a separate transaction (SCI).
    The Code Inspector indicates possible problems. However, note that, especially with performance issues: There is no rule without exception. If a program passes an inspection, it does not necessarily mean that this program will have no performance problems.
    reward if usefull

Maybe you are looking for