How to use "Oracle Real Application Testing"

I am analyzing if/how my employer can make best use of "Oracle Real Application Testing". I therefore read various documentation and articles as well as the relevant sections in the "Oracle® Database PL/SQL Packages and Types Reference". However, there is one conceptual question which I could not yet answer from this documentation.
From what I understood there are (at least) two possible approaches to capture and replay SQL workload:
1) Capture the workload into a STS (SQL Tuning Set) using DBMS_SQLTUNE. Replay the workload before/after changes made to the system using DBMS_SQLPA. DBMS_SQLPA can be further used to compare the before/after execution and to generate comparison reports thereof.
2) Capture the workload into OS files (and optionally into a SQL Tuning Set in addition to that) using DBMS_WORKLOAD_CAPTURE. Replay the workload using DBMS_WORKLOAD_REPLAY. DBMS_WORKLOAD_REPLAY can be further used to compare different replay runs and generate reports thereof.
Now my questions are:
{noformat}(i){noformat} Is the overview I sketched above correct or did I misunderstand/miss important points?
(ii) What is the conceptual difference between the two approaches depicted in (1) and (2) above / what is the intended use for each of them?
(iii) What is the difference between the information that DBMS_WORKLOAD_CAPTURE writes in the corresponding OS files and the information that is stored in a STS? From what I understand, both store information related to SQL execution during a certain period, including the impact of each SQL on the entire workload. Are the two just different formats to store the data (within and outside of the database) or is there any different information stored in them?

Here you have books related to that theme:
http://otn.oracle.com/pls/db92/db92.docindex?remark=homepage
Joel Pérez

Similar Messages

  • How to install Oracle Real Application Clusters on Aix

    I am running a 64 bit kernel AIX 5.2 on IBM RISC Based p-series sever(7028-6C4).Clustered has already been configured. How can i check the clustered has configured successfully (software & hardware) for oracle installation?
    What is the procedure to install oracle real application custer on AIX ?
    Can Any body Help me......
    Arif

    Here you have books related to that theme:
    http://otn.oracle.com/pls/db92/db92.docindex?remark=homepage
    Joel Pérez

  • Oracle Real Application Testing

    I'm capturing a 10.2.0.5 RAC workload and attempting to replay it on a 11.2.0.3 RAC. All the Docs describe going from a standalone node to RAC and all the steps for doing so. However, I can't find anything outlining the process from RAC to RAC.
    Any help would be appreciated.
    Thanks

    user12006502 wrote:
    I'm capturing a 10.2.0.5 RAC workload and attempting to replay it on a 11.2.0.3 RAC. All the Docs describe going from a standalone node to RAC and all the steps for doing so. However, I can't find anything outlining the process from RAC to RAC.
    Any help would be appreciated.
    ThanksIt's in there, you just need to look around for it (and probably do a bit of reading).
    Things like
    http://docs.oracle.com/cd/E11882_01/server.112/e16540/dbr_capture.htm#CACICAAC
    Only one workload capture can be performed at any given time. If you have a Oracle Real Application Clusters (Oracle RAC) configuration, workload capture is performed for the entire database. To enable a clean state before starting to capture the workload, all the instances need to be restarted.
    and
    http://docs.oracle.com/cd/E11882_01/server.112/e16540/dbr_replay.htm#CHDBCADJ
    For Oracle Real Application Clusters (Oracle RAC) databases, you can map all connection strings to a load balancing connection string. This is especially useful if the number of nodes on the replay system is different from the capture system. Alternatively, if you want to direct workload to specific instances, you can use services or explicitly specify the instance identifier in the remapped connection strings.
    Cheers,

  • Real application testing

    Hi,
    Os:Windows 2003 and Red hat 5 ( two Environments)
    Db:Oracle 11.1.6
    How to check the Load Balancing in Oracle Real Application Testing.
    For Ex:
    Lets assume that we have 5 users 10
    tranactions/SQl statement executions. How will be the system
    perform, if we have 20% increase in the current workload or 10 users 20
    transactions...
    Currently we are having 2 node oracle 10gR2 cluster on windows 2003.
    Regards,
    Vinodh.N

    Hi,
    Thanks for reply.
    Can i check the workload gradually(5users and 10 users and so on...) in Real Application Testing in oracle11g or oracle 10.2.0.4. ?
    If n't,how can i check the workload in oracle 11g or oracle 10g?
    Real Application Testing means only captured workload in production db and replay in test db.Is it correct?
    Edited by: user3266490 on Feb 18, 2010 4:31 PM

  • Oracle Real Application Clusters

    hi all
    i am using oracle database 11g Release2 and Oracle Linux enterprise edition.
    can anyone guide me why we need to use Oracle Real Application Clusters and plz
    guide me how to install or configure all these?
    and someone told me we needed 10Gb Gigabyte Ethernet.
    how to go for 10GB by using LoopBack?
    i am using vertualbox and i checked the loopback is only 1GB so how to go for 10GB
    i posted my thread here
    Oracle Real Application Clusters
    but someone suggested me to for this forum so i posted here.
    so if i am wrong plz forgive me.

    nisha wrote:
    hi all
    i am using oracle database 11g Release2 and Oracle Linux enterprise edition.
    can anyone guide me why we need to use Oracle Real Application Clusters and plz
    guide me how to install or configure all these?
    and someone told me we needed 10Gb Gigabyte Ethernet.
    how to go for 10GB by using LoopBack?
    i am using vertualbox and i checked the loopback is only 1GB so how to go for 10GB
    i posted my thread here
    Oracle Real Application Clusters
    but someone suggested me to for this forum so i posted here.
    so if i am wrong plz forgive me.You can check the following link to learn why RAC is used:
    http://download.oracle.com/docs/cd/E11882_01/rac.112/e16795/admcon.htm#i1058057
    Moreover, I've a step by step RAC installation guide on vmware, but it's for 10gR2. However, you can check it and have a basic knowledge of the main steps
    http://kamranagayev.wordpress.com/2011/04/05/step-by-step-installing-oracle-10g-rac-on-vmware/

  • Oracle real application cluster test case

    Hello everyone! I have just finished implemented oracle real application for customer. Now I need to do UAT for them with cases. Some of the cases I am not sure whether it can make the cluster fail, or need to repair, or unrecoverable. I need to tell them what is happening if sth go wrong as the following cases:
    case 1. connection from database server to storage is down in one node, or all node in the cluster.
    case 2. private connection down
    case 3. public network down in node node or all nodes in the cluster.
    Please, help address the status and behavior of oracle rac, or suggest me some useful document regarding this cases.
    I'll appreciate your help.
    Thanks

    Hi,
    How about here site -> Oracle Clusterware
    <<http://www.datadisk.co.uk/html_docs/rac/architecture.htm>>
    <<http://onlineappsdba.com/index.php/2009/07/08/voting-disk-management-in-rac/>>
    <<http://apunhiran.blogspot.jp/2009/04/what-is-voting-disk-split-brain.html>>
    If you learned about voting disk is good.
    Regards,
    Edited by: asahideO on 2013/01/31 17:13

  • How to learn Real Application Testing

    How to Learn and Test the Real Application Testing and SQL performance analyzer.
    We only have oracle 10g. Does this require 11g.
    Can I learn/test on 10g.

    Hi,
    RAT is the feature of 11g. You can capture the load from 10g though, but for playing it you will need 11g databse.
    Regards

  • How to Install 9i real application clusters on a PC!

    How to install and deploy Oracle Real Application Clusters on a single Linux
    server with a minimal configuration (less than $1000 worth of harware):
    First of all to install Oracle cluster database you DON'T HAVE to have a cluster, but a
    single PC may do as well (of course thi kind of installation will not be of
    much use for a production DB). A minimal server that I HAVE TESTED is: Celeron 750 MhZ,
    512 Mb of RAM, 2 IDE HD, Linux Suse 7.2
    This document contains the steps needed to deploy a working Oracle 9i Database with a
    minimal comment. For a complete discussion refer to Oracle documentation, namely:
    Oracle 9i administrator's reference part number A90347-02
    Oracle 9i Linux release notes part number A90356-01
    Oracle 9i Real Application Clusters Administration part numebr A89869-01
    1) set up the partitions to user for Oracle software and the ones to use as raw devices
    for the cluster DB. Soppose you want to you use an HD mounted as the 3rd IDE device
    (/dev/hdc) for the cluster DB. Then you have to partition it with fdisk with a large
    extended partition (say hdc1). Create a large number of logical partitions inside hdc1
    (say hdc5 till hdc20) of about 300 Mb in size (all of the same size for simplicity).
    2) Real application clusters wants to store the DB strutures into raw devices or a
    cluster filesystem. Create the raw devices using the following command (as superuser):
    raw /dev/raw1 /dev/hdc5
    raw /dev/raw2 /dev/hdc6 ... etc till /dev/hdc20
    you will need to repeat these steps after every boot
    3) Set up the Oracle user (already done with the Suse distribution), environment variables
    and mount point.
    Install Oracle software enterprise edition
    4) Complete the installation with a custom install of the real application cluster option.
    This will add a directory called oracm under your oracle home, which contains the
    cluster manager software
    5) edit $ORACLE_HOME/oracm/admin/nmcfg.ora, it contains 3 lines for the set-up of the
    cluster manager sofware:
    DefinedNodes=localhost
    CmDiskFiles=/dev/raw2
    CmHostName=localhost
    6) edit /var/opt/oracle/srvConfig.loc. It contains 1 line with the location of a raw device
    used to sync the cluster nodes:
    srvconfig_loc=/dev/raw1
    7) start the cluster manager software (as superuser):
    $ORACLE_HOME/oracm/bin/ocmstart.sh
    8) as the oracle user start the global cache service:
    gsd
    9) you can now create a cluster db. to use the configuration assistant you need to set
    an extra environment variable:
    export THREADS_FLAG=native
    10) start the configuration assistant: dbca
    expect some errors in the script the dbca generates, best is to review them before
    execution
    11) after the db creation you'll be able to start two instances on the same DB,
    which means you will have a cluster DB!
    12) the environment variable ORACLE_SID will determine the instance to which you can
    connect by means of a special syntax: SID.parameter=value
    this is used for example for paramters like instance_number, thread, etc
    also the parameter cluster_database must be set to true
    All these problems are normaly handled by the dbca.
    Have fun,
    Luca Canali
    OCP-DBA

    RedHat 7.1 with the some configuration I run a production 9.0.1
    database: Compaq Proliant Hardware with a RA4100 storage.
    The script created from the dbca seems fine, but the dbca give
    me the
    some error I get from:
    srvconfig -init
    [...]stop all daemons and oracle programs on both machines, then
    start only $ORACLE_HOME/oracm/bin/ocmstart.sh,
    then run the line
    srvconfig -init
    you can check it by running
    srvconfig -version
    it should output something like "9.0.0.0.0"
    before running dbca, make sure ocmstart.sh and gsd are
    running on both machines ("lsnodes -v" should putput sbshadow1
    and dbshadow2).
    BTW - I cant run clusca... Can somenome give a sample nmcfg.ora,
    just to check my parameters? for dbshadow1:
    DefinedNodes=dbshadow1 dbshadow2
    CmDiskFiles=/dev/raw/raw2
    CmHostName=dbshadow1
    for dbshadow2:
    DefinedNodes=dbshadow1 dbshadow2
    CmDiskFiles=/dev/raw/raw2
    CmHostName=dbshadow2
    Saludos
    --Marcos.
    Ps: can you contact me by e-mail? i have some questions regarding
    your HW

  • How to use oracle TRIM functionality in XML messages

    When i am selecting data from XML message as per below query, it is returing values correctly.
    SELECT extractValue(x.column_value, '/DETAILS/EMPID') as emp_id,
    extractValue(x.column_value, '/DETAILS/NAME') as emp_name,
    extractValue(x.column_value, '/DETAILS/SALARY') as emp_sal
    FROM TABLE(
    XMLSequence(
    Extract( xmltype('<DETAILS><EMPID>2482</EMPID><NAME>SMITH</NAME><SALARY>4854</SALARY><LOC>CHENNAI</LOC></DETAILS>'),'/DETAILS'))) x;
    But when i am selecting data by using below query some additional spaces also coming with column values
    SELECT extractValue(x.column_value, '/DETAILS/EMPID') as emp_id,
    extractValue(x.column_value, '/DETAILS/NAME') as emp_name,
    extractValue(x.column_value, '/DETAILS/SALARY') as emp_sal
    FROM TABLE(
    XMLSequence(
    Extract( xmltype('<DETAILS>
                   <EMPID>
                             2482
                             </EMPID>
                             <NAME>
                             SMITH
                             </NAME>
                             <SALARY>
                             4854
                             </SALARY>
                             <LOC>
                             CHENNAI
                             </LOC>
                             </DETAILS>'),'/DETAILS'))) x;
    Please suggest how to remove additional spaces by using second query.
    Thanks
    Vikrant Jain.

    It appears that the ability to use XPath functions in the PATH expression doesn't work prior to 11g :
    Connecté à :
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> var xmldoc varchar2(4000)
    SQL> begin :xmldoc := '<DETAILS>
      2  <EMPID>
      3  2482
      4  </EMPID>
      5  <NAME>
      6  SMITH
      7  </NAME>
      8  <SALARY>
      9  4854
    10  </SALARY>
    11  <LOC>
    12  CHENNAI
    13  </LOC>
    14  </DETAILS>';
    15  end;
    16  /
    Procédure PL/SQL terminée avec succès.
    SQL> SELECT emp_id, emp_name, emp_sal
      2    FROM XMLTable('/DETAILS'
      3                  PASSING XMLTYPE(:xmldoc)
      4                  COLUMNS
      5                  emp_id     NUMBER        PATH 'normalize-space(EMPID)',
      6                  emp_name   VARCHAR2(20)  PATH 'NAME',
      7                  emp_sal    VARCHAR2(20)  PATH 'SALARY');
    SELECT emp_id, emp_name, emp_sal
    ERREUR à la ligne 1 :
    ORA-31011: Echec d'analyse XML
    ORA-19202: Une erreur s'est produite lors du traitement la fonction XML (
    LPX-00601: Invalid token in: '/*/normalize-space(EMPID)')Using it in XQuery will work though :
    SQL> SELECT *
      2  FROM XMLTable(
      3   'for $i in /DETAILS
      4    return element r
      5    {
      6     for $j in $i/*
      7     return element {local-name($j)} {normalize-space($j)}
      8    }'
      9   PASSING XMLTYPE(:xmldoc)
    10   COLUMNS
    11     emp_id     NUMBER        PATH 'EMPID',
    12     emp_name   VARCHAR2(20)  PATH 'NAME',
    13     emp_sal    NUMBER        PATH 'SALARY'
    14  );
        EMP_ID EMP_NAME                EMP_SAL
          2482 SMITH                      4854

  • Real Application Testing , hardware changes.

    hi ,
    Have always wondered How Real application test would over come one of the cost Common issues in Testing. Here is the scenario .
    Lets say , Customer is running oracle 10.2.0.5 on a Server with 16 proc's and 24 cores and 150 GB RAM on his production box ,
    Now he wants to test 11.2 on this test box, with lesser hardware specs. say 8 proc's and 12 cores and 60 GB RAM ,
    My doubt is , how will the replay process in RAT overcome this change and compare the test with production ???

    You must understand that RAT is actually a term. The underlying ways would depend on what you want to test and to what extent? Since you have mentioned a hardware change, the suggested way would be to use DB Replay using which you would capture the workload from the prod box, move it to the test box and replay that workload under the changed hardware. Using DB Replay would allow you to have a delta between the two runs and you can measure the performance gains(or loss) .
    Have a read,
    http://docs.oracle.com/cd/E11882_01/server.112/e16540/dbr_capture.htm#CACCGCFB
    HTH
    Aman....

  • 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

  • How to use oracle fusion middleware for integration project ?

    hi all,
    in my projects, customer (a bank) already has many applications (bankend & frontend) that are complicatedly connected. I intend to use oracle fusion middleware to integrate all applications and make adding new applications in the future easier. I have worked through documents in the oracle website but I still have no idea how to use oracle fusion middleware to address the requirement, besides oracle fusion middleware includes a bundle of applications I don't know which one I would need.
    could anyone give me some instructions ? appreciate your help.
    thank very much,

    Hi,
    For this short description of environment, could be ODI is a incredible tool to help you...
    Take a look into my blog that has a lot of concepts and "how to do" instructions.... http://odiexperts.com
    However to try help you, what are the used technologies?
    Where are you from?
    Cezar Santos
    http://odiexperts.com

  • How to use non sap application in sap.......?

    hi,
            anyone has any idea how to use non sap application  like java class in sap through abap programming. please let me know ...
    thanks in advance.
    saurin shah.

    Hi,
    DATA: COMMAND TYPE STRING VALUE 'C:\j2sdk1.4.2_08\bin\java',
    DIR TYPE STRING VALUE D:\eclipse\workspace',
    PARAMETER TYPE STRING VALUE 'Helloworld'. "here the name of your java program
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
    EXPORTING
    APPLICATION = COMMAND
    PARAMETER = PARAMETER
    DEFAULT_DIRECTORY = DIR
    MAXIMIZED =
    MINIMIZED = 'X' "If you need the DOS window to be minimized
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2
    BAD_PARAMETER = 3
    FILE_NOT_FOUND = 4
    PATH_NOT_FOUND = 5
    FILE_EXTENSION_UNKNOWN = 6
    ERROR_EXECUTE_FAILED = 7
    OTHERS = 8.
    check this link
    /people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection
    Regards,
    Satish

  • Oracle Clusterware and Oracle Real Application Clusters Install Guide

    I've downloaded the latest "Oracle Database - Oracle Clusterware and Oracle Real Application Clusters Install Guide - 10g Release 2 (10.2) for HP-UX PA-RISC" (part no. B14202-01) dated August 2005 from OTN. I'm getting the following error when opening the pdf file in Adobe Reader:
    "Cannot extract the embedded font 'PEPPLC+Palatino-Italic'. Some characters may not display or print properly."
    When I print the manual, I get blank pages throughout the document which, in my opinion, should contain text and don't. Specifically pages 1-11, 2-5, 2-19, 2-24, 2-33, 3-5, 3-19 to name a few. When I go to those pages within the pdf file in Adobe Reader, I get the error: "There was a problem reading this document (114)."
    Can you verify this problem on your end. Also, how do I get a good copy of this document?

    Hi!
    Apologies for the delay in responding to you. Please try the documentation library, part B19306-01 at URL: http://www.oracle.com/technology/documentation/database10gR2.html. Search for the part B14202-01 and click: pdf at top right. Part B14202-01 documentation pdf is currently displaying and printing on this end. The blank pages at the end of each main topic are inserted on purpose.
    Another link to part B14202-01, on OTN is under the OEM, Oracle Enterprise Manager 10g Release 2 (10.2): http://www.oracle.com/pls/db102/portal.portal_db?selected=21
    Thank you for your comments and feedbacks. Its much appreciated.
    Main OTN, documentation URL: http://www.oracle.com/technology/documentation/index.html
    Regards,
    Chao

  • Required hardware for a oracle real application cluster

    hello i´m a newbie and have a question:
    We want to migrate a DB2 database to Oracle database. This database will run in the cluster network. What hardware do I need a prerequisite to set up an Oracle Real Application Clusters (10g)?
    thank a lot for help!

    Hi,
    HW sizing depends on lot of information like the Size of the Database, Average load on the Database, Number of DB users, what application is using the database... could you please let us know all these information and oracle license depends on the number of CPU you on the server. Kindly let us know the OS on which you want to run the oracle RAC.
    Regards,
    Satya.

Maybe you are looking for

  • Arch Linux on SmartQ (V5II) -looking to start project-

    Upfront I will note that I am not skilled enough to accomplish this alone at my current level.  I will learn what I can in order to achieve this task, so any and all links to tutorials and ideas on how to get this working will be taken and put throug

  • Can I video chat

    can I video chat with my iphone, ipad 2 and laptop to each other, at the same time ?

  • How do you take a number out of scientific notation

    I have a number like 1.4353439E10 how do i make it say the actual number instead (1435343900).

  • Screen exit in SAPMF02D screen number 7000 (xd01) customer master

    Hi friends,          i need to add one custom field in customer master(xd01) screen number 7000. is there any screen exits for that? or how can we add a custom field in screen?. plz tell me the steps for that. The additional field which i have to add

  • Ipod mini won't respond to ANYTHING!

    I hope someone out there can help; for the last week my ipod mini hasn't worked - only had it 12 months. At first ITunes wouldn't recognise the ipod so i could put some new tracks on it, later i went to play a song while it was charging but it was sk