{
  "date": "2018-06-29T19:24:30",
  "slug": "statspack-installation-scripts",
  "link": "https://www.dbi-services.com/blog/statspack-installation-scripts/",
  "title": {
    "rendered": "Statspack installation scripts"
  },
  "content": {
    "rendered": "<h2>By Franck Pachot</h2>\n<p>.<br />\nWhen Diagnostic Pack is disabled, either because you don&#8217;t have Diagnostic Pack or you are in Standard Edition, I highly recommend to install Statspack. When you will need it, to investigate on an issue that occured in the past, you will be happy to have it already installed and gathering snapshots.<br />\n<!--more--><br />\nI order to be sure to have it installed correctly, there&#8217;s a bit more to do than just what is described in spcreate.doc and I detail that in a UKOUG Oracle Scene article <a href=\"http://viewer.zmags.com/publication/dd9ed62b#/dd9ed62b/36\" target=\"_blank\" rel=\"noopener noreferrer\">Improving Statspack Experience</a>.</p>\n<p>For easy download, I&#8217;ve put the scripts on GitHub: <a href=\"https://github.com/FranckPachot/scripts/tree/master/statspack\" target=\"_blank\" rel=\"noopener noreferrer\">https://github.com/FranckPachot/scripts/tree/master/statspack</a></p>\n<p>You will find the following scripts for Statspack installation:</p>\n<ul>\n<li>01-install.sql to create the tablespace and call spcreate</li>\n<li>02-schedule.sql to schedule snap and purge jobs</li>\n<li>03-idle-events.sql to fix issue described at <a href=\"https://www.dbi-services.com/blog/statspack-idle-events/\" rel=\"nofollow\">https://www.dbi-services.com/blog/statspack-idle-events/</a></li>\n<li>04-modify-level.sql to collect execution plans and segment statistics</li>\n</ul>\n<p>And some additional scripts:</p>\n<ul>\n<li>08-create-delta-views.sql to create views easy to query</li>\n<li>11-comment-with-load.sql to add load information to snapshots without comments</li>\n</ul>\n<p>You can leave feedback and comment on Twitter:</p>\n<blockquote class=\"twitter-tweet\" data-width=\"500\" data-dnt=\"true\">\n<p lang=\"en\" dir=\"ltr\">The scripts I use to install Statspack are on GitHub:<a href=\"https://t.co/qboDoX2pc9\">https://t.co/qboDoX2pc9</a><br />&#8211; I&#39;ll be happy to have your feedback here &#8211;</p>\n<p>&mdash; Franck Pachot (@FranckPachot) <a href=\"https://twitter.com/FranckPachot/status/1012778144091262976?ref_src=twsrc%5Etfw\">June 29, 2018</a></p></blockquote>\n<p><script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script></p>\n",
    "protected": false
  }
}
