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.

Similar Messages

  • 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

  • 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

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

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

  • 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

  • Global application context available in Real Application Clusters 11G R1?

    Does anyone know if Global application context is availble is 11G R1? We have an application that uses it and I cannot retrieve context from node two for a client_id that was created and set on node one. I thought this was availbale after 10g? Is anyone else doing this?

    found the answer. It's available in 11G R2
    http://download.oracle.com/docs/cd/E11882_01/network.112/e10574/whatsnew.htm#CJADFCBF

  • 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

  • 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 Clusters 11g Release 2 (11.2.0.2) Oracle VM Template

    Hello,
    I am triying to build an Oracle Rac with 2 nodes under: Oracle VM Server 2.2.1 (All in one server).
    I downloaded the templates:
    Oracle RAC 11gR2 (11.2.0.2.0) VM template Linux X86 64bit
    I followed the instructions in the document: rac11202-ovm-tmplt-test-config-170450.pdf
    All goes well until: Install Grid Infrastructure and Oracle RAC
    After I execute:
    cd /u01/racovm
    ./buildcluster.sh
    It ends with the errors:
    ACFS-9327: Verifying ADVM/ACFS devices.
    ACFS-9309: ADVM/ACFS installation correctness verified.
    ..CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node racnode1, number 1, and is terminating
    .An active cluster was found during exclusive startup, restarting to join the cluster
    INFO (node:racnode1): Waiting for all girootcrslocal operations to complete on all nodes (At 15:17:40, elapsed: 0h:03m:31s, 1 node(s) remaining, all background pid(s): 13979)...
    INFO (node:racnode1): Waiting for all girootcrslocal operations to complete on all nodes (At 15:20:41, elapsed: 0h:06m:32s, 1 node(s) remaining, all background pid(s): 13979)...
    ....Failed to start Cluster Ready Services at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 1065.
    Start of resource "ora.crsd" failed
    CRS-2800: Cannot start resource 'ora.asm' as it is already in the INTERMEDIATE state on server 'racnode2'
    CRS-4000: Command Start failed, or completed with errors.
    Failed to start Oracle Clusterware stack
    ERROR (node:racnode2): Failed to run rootcrs.pl, status: 25
    See log at: /u01/app/11.2.0/grid/cfgtoollogs/crsconfig/rootcrs_racnode2.log
    2011-02-18 15:23:09:[girootcrslocal:Time :racnode2] Completed with errors in 540 seconds (0h:09m:00s), status: 25
    ACFS-9323: Creating module dependencies - this may take some time.
    INFO (node:racnode1): All girootcrslocal operations completed on all (1) node(s) at: 15:23:11
    2011-02-18 15:23:11:[girootcrs:Time :racnode1] Completed with errors in 905 seconds (0h:15m:05s), status: 1
    2011-02-18 15:23:11:[creategrid:Time :racnode1] Completed with errors in 934 seconds (0h:15m:34s), status: 1
    2011-02-18 15:23:11:[buildcluster:Time :racnode1] Completed with errors in 1013 seconds (0h:16m:53s), status: 1
    Do you have any idea, what could be the problem. ?
    Greetings.

    I would like to add more information:
    After the error, in DOM-0 there is a proccess consuming 100% of CPU, and it never ends.
    top
    top - 21:13:08 up 2 days, 3:33, 1 user, load average: 2.51, 2.47, 2.34
    Tasks: 287 total, 2 running, 284 sleeping, 0 stopped, 1 zombie
    Cpu(s): 0.0%us, 6.2%sy, 0.0%ni, 93.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
    Mem: 582656k total, 543440k used, 39216k free, 99168k buffers
    Swap: 1052216k total, 132k used, 1052084k free, 264948k cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    28491 root 5 -20 0 0 0 R 99.5 0.0 2868:13 loop109
    9897 root 15 0 2344 1148 812 R 0.3 0.2 0:00.04 top
    1 root 15 0 2080 708 612 S 0.0 0.1 0:00.15 init
    2 root RT -5 0 0 0 S 0.0 0.0 0:01.66 migration/0
    3 root 34 19 0 0 0 S 0.0 0.0 0:00.20 ksoftirqd/0
    4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
    5 root RT -5 0 0 0 S 0.0 0.0 0:01.36 migration/1
    6 root 34 19 0 0 0 S 0.0 0.0 0:01.07 ksoftirqd/1
    7 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/1
    thanks.

  • 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

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

Maybe you are looking for

  • I am getting a permissions error when trying to install an extension for CS5. How do I resolve this?

    After entering this: "/Applications/Adobe Extension Manager CS5/Adobe Extension Manager CS5.app/Contents/MacOS/Adobe Extension Manager CS5"in the terminal this is the message I get with still no luck on being able to update the extension... Mar 17 23

  • Cursor moves around but doesn't open anything

    A couple of times my mouse was able to move the cursor, but I wasn't able to open or close programs or show drop-down menus. I turned the computer off to see if that would help. It didn't, but they finally it was ok when I tried again. Is there an ea

  • Bridge CS5 Not Working

    I currently have PS CS5 installed on my Mac OS X 10.6.8 with Snow Leopard.  PS5 works fine but when I try to use bridge, bridge opens but that's it.  If I try to do anything I get the spinning beach ball and eventually have to force quit. I have done

  • IPod Buttons not working - Solved

    I have a 60G iPod that wasn't working and I resolved it. I don't know what generation iPod I have but I bought it in 2005. Anyways I was recently having issues where the buttons just weren't responding no matter what I did, it was just unusable. I co

  • Please throw me a life-line: Problem with HP Recovery Manager's File backup option

    Product: Pavilion g7-1070us notebook Operating system: Window 7 64-bit Problematic system: HP Recovery Manager (triggered by hitting F11), made by "Cyberlink"? Error message: The notebook crashed a few times before but I was able to restart it. Then