Real Application Testing (RAT); questions

Hi,
We are currently working on a missing involving RAT, both SPA and DB Replay.
The customer raised some questions and I was wondering if anybody has more detailed information to share?
FYI: we are using in most cases the API calls, as we don’t have an EMGC 11G available, only Database control.
h4. Q1: If the DB capture runs out of space, what would be the impact on Prod database
My response would be: no impact on the database as the recorder stops
Best Practice: create a separate location to store the recording
h4. Q2: What could be missing with RAT (SPA/DB Replay) --> gap analysis.
Reduce as most as possible the time needed by ADM (Development Team) in order to validate database migration.
The database team wants to be as independent as possible of the development team in order to do the upgrade of the databases more autonomous. They want to have an idea on what they could be missing if they use SPA and DB Replay to make sure they don't miss anything which could have an impact on the developers after the upgrade. Are there any particular things that SPA and DB-replay would miss, and as a consequence aren't tested, which could lead to unhappy developers after the upgrade of the database.
h4. Q3: Difference between DB Replay and SPA (when to use which one)
h4. Q4: Oracle recommends shutting down database before recording workload, but may not be always possible (Web Banking), when and how to do it then?
My response was to start recording at a the lowest load time.
Any other ideas to minimize the impact of a running instance
h4. Q5: Does it need to filter out sys/system, rman,... Activities during captures?
h4. Q6: The capture report is showing 5 user calls captured with Errors, but I can’t find any related information on what went wrong.
To what is this related?
Captured Workload Statistics
•     'Value' represents the corresponding statistic aggregated across the entire captured database workload.
•     '% Total' is the percentage of 'Value' over the corresponding system-wide aggregated total.
Statistic Name     Value     % Total
DB time (secs)     7.77     10.43
Average Active Sessions     0.03     
User calls captured     1713     9.09
User calls captured with Errors+_     5     
Session logins     23     32.39
Transactions     33     3.74
h4. Q7: During the capture we can execute an export AWR, but we also need to do an import AWR somewhere, and this is not documented on how this is done in the RAT User Guide.
Can you comment on how this process is working in order to do some proper reporting.

Q1
I have not had a space issue in the RAT capture files that caused a database issue when space ran out.
Q2
You will miss anything you filtered the capture on, anything that errored during the capture
Capture will also not get and to be aware of
Direct Path Load (SQL Loader)
Shared server (Oracle MTS)
Oracle Streams & Advanced Replication Streams
Non-PL/SQL based Advanced Queuing (AQ)
Flashback queries
OCI-based Object Navigation
Non SQL-Based Object Access
Distributed transactions, remote describe/commit operations (will be replayed as local transactions)
Q3
I typically use DB Replay for an overall work load perspective, SPA for SQL Level.
For example I will to a DB replay find from my reports SQL that needs a further look see and use SPA from there.
or potentially use SPA to focus on the SQL itself and not concern myself the the whole workload until I am ready.
Q4
Set the SCN for when capture is started, have the replay database be recovered to that SCN prior to any replay operation. No real need to shutdown, done this many times with success.
Q5
Typically I will filer any grid control agent or other agent software activities from the capture for sure.
Q6
Your Capture Report does not show anything?
Q7
You can extract and load AWR with the following packed procedures
sys.dbms_swrf_internal.awr_extract
sys.dbms_swrf_internal.awr_load

Similar Messages

  • Questions about Real Application Testing(RAT)

    Hi All,
    We have a production database running on 10gR3 on a server with local drives, while we have a Oracle 11gR2 DB running on a server with NFS mounts (using S7310 - AmberRoad) i.e. Faster and better storage.
    We captured the load on 10gR3 and replayed it on 11gR2. We noticed the following:
    (1) Replay is considerably slow even though Oracle11gR2 instance has a faster storage. We suspect that it may be something to do with the buffer cache / SGA because there is nothing in cache on the target (we didn't shutdown 10gR2 DB for capture) – what should we do then?
    (2) To make sure that we can take the advantage of cache, we replayed the load 2nd time right after the 1st replay and everything ran to our surprise. So we are wondering how’s that possible since we did not restore the DB as we do not want to wipe off the cache (chicken and egg situation)? Does Oracle rollback the changes after the replay?
    (3) Do we have to restore database on Target every time we do replay? But if we do that then we won't have anything in the SGA.
    So we need your advise and also would like to know how everyone else is doing this testing?
    Regards,
    RJiv.

    DB Replay's workload capture facility allows you to either start capture from a closed (mounted) database (capture starts upon opening the DB), or to begin capture mid-stream during normal activity. Starting capture on the production system from a closed database eliminates the divergence in performance resulting from a primed cache, as well as possible data divergence issues from open, partially-completed transactions at the time the capture started.
    For many customers, it will clearly not be possible to close their database during peak periods (!!)
    One way to address the cache priming issue is to start capture in production from a closed state during a low period of activity, and the allow capture to run through the peak period.
    Another approach is to start capture mid-stream with the DB open and to run capture for a long period (long enough to stabilize the cache). When performing the replay, begin a new AWR snapshot after the cache has stabilized.
    Your question about running the replay again after the first replay is done is confusing. Of course you will not get meaningful data from that, since replay must begin from the capture start SCN. If you run replay twice in a row without reverting the database to the capture start SCN, it will be applying meaningless changes to a database in a state that is unlike that of the original. You will be testing the data errors codepath instead of real performance.
    It is typical to enable database flashback on the repay database so that it can be repeatedly reverted to the capture start SCN for testing under a variety of scenarios.
    Regards,
    Jeremiah Wilton
    Blue Gecko, Inc.
    http://www.bluegecko.net

  • Need Help on Real Application Testing (RAT) installation and configarations

    Hi Folks,
    We are expecting an opportunity across RAT implementation in near future and our team is trying explore on RAT and need help in installation and configurations .Am looking for some RAT
    contacts ,please help me..
    Thanks,
    Jay.

    Q1
    I have not had a space issue in the RAT capture files that caused a database issue when space ran out.
    Q2
    You will miss anything you filtered the capture on, anything that errored during the capture
    Capture will also not get and to be aware of
    Direct Path Load (SQL Loader)
    Shared server (Oracle MTS)
    Oracle Streams & Advanced Replication Streams
    Non-PL/SQL based Advanced Queuing (AQ)
    Flashback queries
    OCI-based Object Navigation
    Non SQL-Based Object Access
    Distributed transactions, remote describe/commit operations (will be replayed as local transactions)
    Q3
    I typically use DB Replay for an overall work load perspective, SPA for SQL Level.
    For example I will to a DB replay find from my reports SQL that needs a further look see and use SPA from there.
    or potentially use SPA to focus on the SQL itself and not concern myself the the whole workload until I am ready.
    Q4
    Set the SCN for when capture is started, have the replay database be recovered to that SCN prior to any replay operation. No real need to shutdown, done this many times with success.
    Q5
    Typically I will filer any grid control agent or other agent software activities from the capture for sure.
    Q6
    Your Capture Report does not show anything?
    Q7
    You can extract and load AWR with the following packed procedures
    sys.dbms_swrf_internal.awr_extract
    sys.dbms_swrf_internal.awr_load

  • 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

  • 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....

  • 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

  • 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

  • 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

  • Real Application Testing 10g 64 bits?

    32 bits version is available here:
    http://www.oracle.com/technology/software/products/database/oracle10g/realapptesting.html
    But anyone know when Real Application Testing for 10g 64 bits will be out?

    But anyone know when Real Application Testing for 10g 64 bits will be out?
    Oracle corp ;-).
    Aman....

  • 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,

  • Difference between Real Application Testing and Application Testing Suite?

    We need to find out average time to execute critical reports. Some reports takes about 24 hours to execute. We want to predict the times of future reports after benchmarking our current DB.
    (1.) Which of the 2 should we use (RAT or ATS)?
    (2.) What are the differences between the 2?
    (3.) Can these products be used in both 10g and 11g DBs?
    (4.) Are these 2 ''options'' that come with the DB? or
    (5.) Do we have to purchase them separately and install separately?
    (6.) Does these tools have Windows interfaces?

    Thanks aamat.
    Most of our DBs are and will be in 10g. I think it will take at least a year or two to move to 11g. So we are basically stuck with 10g.
    So you’re saying we need a 11g DB to run RAT. I.e. you have to install RAT in a 11g. That wont suite our requirements since our DBs are in 10g.
    About ATS: The most demanding/frequent requirement from our prospective customers is:
    > "We create an ad-hoc report query. How do we find out the time it will take to execute it?"In order to solve this we are hoping to suggest this to our customers:
    1.) Replicate the servers and DB (with real data) in another identical machine.
    2.) Select about 10 report queries which normally takes a long time to execute.
    3.) Execute them and get the times (For single and multiple users).
    4.) These will form the benchmark.
    *[Q1.]* Now, can our prospective users, use ATS do this. I.e. Can they, the users on their own operate ATS (of course after giving them training)?
    *[Q2.]* Can ATS use the output of the previous (i.e. benchmark) SQL queries (with live data) and if given another SQL, estimate the time it will take to execute it?
    -- i.e. can ATS compare the tables, SQL query and times of past results and give us an estimate for our new query?
    *[Q3.]* If this is not possible in ATS can it be done it RAT? In this case we will have to demand that they upgrade to 11g.
    Edited by: Channa on Aug 26, 2010 6:56 AM

  • Real Application Testing - Not allowable

    Greetings - How is possible to prevent someone from enabling this feature ?
    Any ideas ?
    We don't want to discover that we owe Oracle large amounts of money for something that we were not aware of.
    Thanks

    Please refer to the below MOS article on how to disable RAT
    How to Check and Enable/Disable Oracle Binary Options (Doc ID 948061.1)
    This works only on Unix Platform and not on Windows platform

  • Real Application Testing Cross-Platform upgradation

    Hi,
    We are planning to migrate Production database from Oracle 10.2.0.5 on Windows 64bit platform to Oracle 11.2.0.2 on RHEL 64bit platform.
    My doubt is whether we can perform load capture on Oracle 10.2.0.5 Single instance database on Windows 64bit platform and replay it on Oracle 11.2.0.2 RAC database on RHEL 64bit platform.

    Bhavi Savla wrote:
    Hi,
    We are planning to migrate Production database from Oracle 10.2.0.5 on Windows 64bit platform to Oracle 11.2.0.2 on RHEL 64bit platform.
    My doubt is whether we can perform load capture on Oracle 10.2.0.5 Single instance database on Windows 64bit platform and replay it on Oracle 11.2.0.2 RAC database on RHEL 64bit platform.yes you can please refer MOS notes for more info.
    Master Note For Oracle Database Upgrades and Migrations [ID 1152016.1]
    Migration Of An Oracle Database Across OS Platforms [ID 733205.1]

  • Real Application Testing 11g

    DBMS_WORKLOAD_CAPTURE.START_CAPTURE (name => 'user_alex',
    dir => 'TMP',
    duration => 30);
    END;
    / 2 3 4 5 6
    BEGIN
    ERROR at line 1:
    ORA-15505: cannot start workload capture because instance 1 encountered errors
    while accessing directory "/tmp"
    ORA-06512: at "SYS.DBMS_WORKLOAD_CAPTURE", line 799
    ORA-06512: at line 2
    I can't seem to start the workload capture as sys, looks like it can't begin writing the file to /tmp.
    OWNER DIRECTORY_NAME
    DIRECTORY_PATH
    SYS TMP
    /tmp
    Any help will be appreciated.
    Thanks

    It turns out that the problem was that the directory used for capture had to be empty, even of files unrelated to capture. The instructions said nothing about using an empty location.

  • Real Application Tesing Create table(DDL) captures or skips

    Hi,
    We are testing using Oracle Real Application Testing. We were able to capture and replay successfully. However on the capture side the application creates lot of tables during batch load and then drops them. It appears like these create table statements are not getting replayed on replay database.
    Can any help me know if RAT(Real Application Testing) Capture the Create table (DDL) statements and replay's it successfully.
    Thanks,
    Ranga

    Then make sure the parsing schema of that other workspace has create table privilege granted directly to it. Better yet, review the system privileges of the working schema and make sure the broken schema has the same privs. Do not grant privileges using roles.
    Scott

Maybe you are looking for

  • Crystal Reports XI - ERROR closes Crystal Reports Entirely

    Post Author: crdev CA Forum: Data Connectivity and SQL Our company recently purchased Crystal Reports XI.  We had previously used Crystal Reports 8 and had great success using it.  Our problem is that when creating a new report using CR XI after sele

  • Function Module to Read attributes value from Classification tab

    Dear Experts , We are using material classification in the material master. Under classification tab of material master , we are maintaining certain characteristics and their corresponding values. I want to read those values and use those in one of t

  • Push notifications and tag subscriptions suddenly stopped

    Push notifications and registrations have suddenly stopped working (working fine for 4 months). I cannot figure out why. Can someone please help? The only change I made on the server is to delete the TodoItem table (from azure example, which I'm not

  • Free item - purchase order

    Dear all, I need that when I create a purchase order with a specific document type, it check automatically the check box Free item for each position. Thanks in advance.. Regards, Marianna

  • When working in literoom 3.6 or 4.0 (I have both) use mostly 3.6 ...

    When working in literoom 3.6 or 4.0 (I have both) use mostly 3.6 ... if you have finished working with a group of imported files and want to clean up all the libraries in the left column knowing that I would just re-import the photos if I chose to wo