{"id":1417,"date":"2008-06-08T12:00:00","date_gmt":"2008-06-08T12:00:00","guid":{"rendered":"http:\/\/orcldoug.com\/blog\/?p=1417"},"modified":"2008-06-08T12:00:00","modified_gmt":"2008-06-08T12:00:00","slug":"real-application-testing-and-more-relinking","status":"publish","type":"post","link":"http:\/\/orcldoug.com\/blog\/2008\/06\/08\/real-application-testing-and-more-relinking\/","title":{"rendered":"Real Application Testing and more Relinking"},"content":{"rendered":"<p>I&#8217;d been thinking of blogging about the appearance of Real Application Testing in 10.2.0.4 since I noticed it post-upgrade, just before the course in Prague.<\/p>\n<pre>Connected to:\nOracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production\nWith the Partitioning, OLAP, Data Mining and <strong>Real Application Testing<\/strong> options<\/pre>\n<p>It looked like a nice addition because, as <a href=\"http:\/\/blogs.oracle.com\/AlejandroVargas\/newsItems\/viewFullItem$353\">others<\/a> have pointed out on <a href=\"http:\/\/fuadarshad.blogspot.com\/2008\/06\/rat-and-10204.html\">their blogs<\/a>, it could prove very useful for capturing an application workload on 10g to test how it will work on 11g before upgrading. There&#8217;s a genuine business need for that. Then, having updated our first couple of test instances at work, I was reminded of the great care we take with license management at my current site (thanks, Tam) and, on closer inspection of <a href=\"http:\/\/download.oracle.com\/docs\/cd\/B28359_01\/license.111\/b28287\/options.htm\">the documentation<\/a> :-<\/p>\n<blockquote><p>The Oracle Real Application Testing license is <strong>required on both capture and replay systems<\/strong> for Database Replay and is charged by the total number of CPUs on those systems.<\/p><\/blockquote>\n<p>Whilst I realise that&#8217;s a link to the 11g documentation, I don&#8217;t imagine for a second that Oracle won&#8217;t apply the same license rules to the 10.2.0.4 or 9.2.0.8 instances where the workload is captured. The additional cost is around \u00a35000 per processor.<\/p>\n<p>So it looked like it was time for another <a href=\"http:\/\/18.133.199.212\/?p=1264\">relink operation<\/a>.<br \/>\n(Note that this operation was performed on an AIX server. Windows is very different!) It didn&#8217;t take long to have a look in ins_rdbms.mk and search for &#8216;rat&#8217;. Sure enough, there are options to enable or disable RAT. So our new standard relink command included in our installation process is.<\/p>\n<pre>\/usr\/ccs\/bin\/make -f ins_rdbms.mk olap_off dm_off <strong>rat_off<\/strong> ioracle<\/pre>\n<p>One or two people have questioned our relinking of the product because it means we&#8217;re running on an executable that few sites are using and I have some sympathy with that view, but it&#8217;s far too easy for a DBA to think &#8216;Mmmm, I&#8217;ll try that out&#8217; or not even be aware that they&#8217;re trying out an additional cost option. Oh, and if you think Oracle wouldn&#8217;t know about it, then how about this view?<\/p>\n<pre>TESTUSER@TEST1020&gt; select name, detected_usages, currently_used,\n  2  first_usage_date, feature_info, last_sample_date,\n  3  sample_interval, description\n  4  from DBA_FEATURE_USAGE_STATISTICS\n  5  where name like 'Database Replay%'\n  6  \/\n\nNAME                                     DETECTED_USAGES CURRE FIRST_USA\n---------------------------------------- --------------- ----- ---------\nFEATURE_INFO\n--------------------------------------------------------------------------------\nLAST_SAMP SAMPLE_INTERVAL\n--------- ---------------\nDESCRIPTION\n--------------------------------------------------------------------------------\n\nDatabase Replay: Workload Capture                      0 FALSE\n\n20-MAY-08          604800\nDatabase Replay: Workload was ever captured.<\/pre>\n<p>I haven&#8217;t used workload capture on this instance yet, so I thought I&#8217;d give it a quick try. Interesting though it is to try this out for the first time, I&#8217;m going to keep this post short by referring you to another blog that shows <a href=\"http:\/\/linda-smith.blogspot.com\/2008\/01\/real-application-testing.html\">how to use RAT via OEM DB Console<\/a>. Actually, my first attempt failed with the following error message.<\/p>\n<pre>SYSTEM@TEST1020&gt; BEGIN dbms_workload_capture.start_capture('CAPTURE-TEST1020-20080608151755', \n                 'DATA_FILE_DIR', 300, 'INCLUDE', FALSE); END;\n\n*\nERROR at line 1:\nORA-15591: cannot start capture because parameter \"PRE_11G_ENABLE_CAPTURE\" is\nnot enabled\nORA-06512: at \"SYS.DBMS_WORKLOAD_CAPTURE\", line 799\nORA-06512: at line 1<\/pre>\n<p>OK, so let me fix that and try again<\/p>\n<pre>SYS@TEST1020&gt; alter system set pre_11g_enable_capture=true;\n\nSystem altered.<\/pre>\n<p>Yes, it worked this time. Here&#8217;s the Summary Screen and you can pick up the associated capture report from <a href=\"\/workload.html\">here<\/a>. Note that this was a 5 minute\/2 user test of the SOE benchmark that&#8217;s supplied with Swingbench.<\/p>\n<p><!-- s9ymdb:171 --><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"312\" src=\"\/serendipity\/uploads\/xRAT_7.png.pagespeed.ic.3MsqSFp_gp.png\" style=\"border: 0px none ; padding-left: 5px; padding-right: 5px\" width=\"640\"\/><\/p>\n<p>More to the point, maybe the feature usage view has been updated?<\/p>\n<pre>SYS@TEST1020&gt; select name, detected_usages, currently_used,\n  2     first_usage_date, feature_info, last_sample_date,\n  3     sample_interval, description\n  4  from DBA_FEATURE_USAGE_STATISTICS\n  5  where name like 'Database Replay%';\n\nNAME                                     DETECTED_USAGES CURRE FIRST_USA\n---------------------------------------- --------------- ----- ---------\nFEATURE_INFO\n--------------------------------------------------------------------------------\nLAST_SAMP SAMPLE_INTERVAL\n--------- ---------------\nDESCRIPTION\n--------------------------------------------------------------------------------\n\nDatabase Replay: Workload Capture                      0 FALSE\n\n08-JUN-08          604800\nDatabase Replay: Workload was ever captured.<\/pre>\n<p>Perhaps not, but I expect it will be next time this sample is updated.<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;d been thinking of blogging about the appearance of Real Application Testing in 10.2.0.4 since I noticed it post-upgrade, just before the course in Prague. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 &#8211; Production With the Partitioning, OLAP, Data Mining and Real Application Testing options It looked like a nice addition because, as&hellip; <a class=\"more-link\" href=\"http:\/\/orcldoug.com\/blog\/2008\/06\/08\/real-application-testing-and-more-relinking\/\">Continue reading <span class=\"screen-reader-text\">Real Application Testing and more Relinking<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1417","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":1063,"url":"http:\/\/orcldoug.com\/blog\/2006\/08\/21\/10g-default-installation-and-ofa\/","url_meta":{"origin":1417,"position":0},"title":"10g Default Installation and OFA","date":"August 21, 2006","format":false,"excerpt":"or ... 'what's that all about?!?!'Last year, I blogged about some of the variations on Optimal Flexible Architecture that I've seen on my travels. I'm gradually coming round to having the service group for clustered applications as the top directory level (e.g.\/myapp1\/oradata\/\/myapp1\/oraindex\/\/myapp2\/oradata\/\/myapp2\/oraindex\/but I'm still not convinced. If people ever failed\u2026","rel":"","context":"With 7 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":831,"url":"http:\/\/orcldoug.com\/blog\/2006\/03\/19\/solaris-10-and-oracle-10g\/","url_meta":{"origin":1417,"position":1},"title":"Solaris 10 and Oracle 10g","date":"March 19, 2006","format":false,"excerpt":"Well that was an interesting if not too productive weekend.I'd been keen to install Solaris 10 on the ISP4400, which went very well. These things are always time-consuming but I was interleaving it with normal human activity to make up for my recent mental absence from those around me. So\u2026","rel":"","context":"With 4 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1386,"url":"http:\/\/orcldoug.com\/blog\/2008\/02\/27\/optimiser-upgrading-from-9i-to-10g\/","url_meta":{"origin":1417,"position":2},"title":"Optimiser &#8211; Upgrading from 9i to 10g","date":"February 27, 2008","format":false,"excerpt":"On the one hand, I regret the fact I seem to be posting a lot of links to other people's work at the moment but I couldn't let this one by, if only for those who don't use OraNA or the like and might miss it.The one consistent message I\u2026","rel":"","context":"With 15 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1019,"url":"http:\/\/orcldoug.com\/blog\/2006\/07\/14\/alter-table-move-and-table-stats-part-ii\/","url_meta":{"origin":1417,"position":3},"title":"alter table &#8230; move and table stats (part II)","date":"July 14, 2006","format":false,"excerpt":"Following up on another comment from Howard, I took the initrans change off the alter table ... move so that it was the most basic variation and then ran it on 8i, 9i and 10g. I've trimmed lots of the output this time, but I have the log files if\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1498,"url":"http:\/\/orcldoug.com\/blog\/2009\/05\/10\/adaptive-thresholds-in-10g-part-3-setting-thresholds\/","url_meta":{"origin":1417,"position":4},"title":"Adaptive Thresholds in 10g &#8211; Part 3 (Setting Thresholds)","date":"May 10, 2009","format":false,"excerpt":"Some features in this post require a Diagnostics Pack license.One of my favourite aspects of blogging is that if I were to write a proper article or conference paper, I'd be likely to fix any problems with it as I go (well, the ones I notice!). With blogging, it's more\u2026","rel":"","context":"With 7 comments","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/18.133.199.212\/wp-content\/uploads\/recovered\/oem7.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1413,"url":"http:\/\/orcldoug.com\/blog\/2008\/05\/25\/good-news-for-ash-fans\/","url_meta":{"origin":1417,"position":5},"title":"Good News for ASH Fans","date":"May 25, 2008","format":false,"excerpt":"Damn. I wish Alex had written this blog posting a few days earlier.During the 10g performance screens presentation, I pointed people to Kyle Haileys website as usual, because there's some excellent related material on there, including ASHMON and Simulated ASH. I always mention the latter for those who aren't on\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/posts\/1417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/comments?post=1417"}],"version-history":[{"count":0,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/posts\/1417\/revisions"}],"wp:attachment":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/media?parent=1417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/categories?post=1417"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/tags?post=1417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}