{"id":9598,"date":"2016-12-19T19:42:50","date_gmt":"2016-12-19T18:42:50","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/"},"modified":"2016-12-19T19:42:50","modified_gmt":"2016-12-19T18:42:50","slug":"oracle-12cr2-awr-views-in-multitenant","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/","title":{"rendered":"Oracle 12cR2: AWR views in multitenant"},"content":{"rendered":"<h2>By Franck Pachot<\/h2>\n<p>.<br \/>\nIn a <a href=\"http:\/\/dbi-services.com\/blog\/12c-multitenant-internals-awr-tables-and-views\/\" target=\"_blank\" rel=\"noopener noreferrer\">previous post<\/a> I explained how the AWR views have changed between 12.1.0.1 and 12.1.0.2 and now in 12.2.0.1 they have changed again. This is a good illustration of multitenant object link usage.<\/p>\n<p>What&#8217;s new in 12<em>c<\/em>R2 is the ability to run AWR snapshots at CDB or PDB level. I really think that it makes more sense to read an AWR report at CDB level because it&#8217;s about analysing the system (=instance) activity. But with PDBaaS I can understand the need to give a report to analyse PDB sessions, resource and statements.<\/p>\n<p>I&#8217;ll start with the conclusion &#8211; a map of AWR view to show which ones read from CDB level snapshots, or PDB snapshots, or both:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/C0DLx2GXEAALIG4.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/C0DLx2GXEAALIG4.jpg\" alt=\"C0DLx2GXEAALIG4\" width=\"1024\" height=\"493\" class=\"alignnone size-large wp-image-13769\" \/><\/a><br \/>\nI&#8217;ll explain AWR reports in a future post. Basically when you run awrrpt.sql from CDB$ROOT you get CDB snapshots and when you run it from PDB you have the choice.<\/p>\n<p>In the diagram above, just follow the arrows to know which view reads from PDB or CDB or both. You see two switches between the root and the PDB: data link for one way and common view for the other way. Note that all are metadata links so switches occurs also at parse time.<\/p>\n<h3>WRM$_<\/h3>\n<p>Let&#8217;s start from the table where AWR snapshots are stored:<\/p>\n<pre><code>\nSQL&gt; select owner,object_name,object_type,sharing from dba_objects where object_name='WRM$_SNAPSHOT';\n&nbsp;\nOWNER OBJECT_NAME                    OBJECT_TYPE             SHARING\n----- ------------------------------ ----------------------- ------------------\nSYS   WRM$_SNAPSHOT                  TABLE                   METADATA LINK\n<\/code><\/pre>\n<p>This is a table. METADATA LINK means that the structure is the same in all containers, but data is different.<\/p>\n<p>I have the following containers:<\/p>\n<pre><code>\nSQL&gt; select con_id,dbid,name from v$containers;\n&nbsp;\n    CON_ID       DBID NAME\n---------- ---------- ------------------------------\n         1  904475458 CDB$ROOT\n         2 2066620152 PDB$SEED\n         3 2623271973 PDB1\n<\/code><\/pre>\n<p>From CDB$ROOT I see data for the CDB:<\/p>\n<pre><code>\nSQL&gt; select dbid,count(*) from WRM$_SNAPSHOT group by dbid;\n&nbsp;\n      DBID   COUNT(*)\n---------- ----------\n 904475458         91\n<\/code><\/pre>\n<p>and from PDB I see snapshots taken from PDB:<\/p>\n<pre><code>\nSQL&gt; alter session set container=PDB1;\nSession altered.\n&nbsp;\nSQL&gt; select dbid,count(*) from WRM$_SNAPSHOT group by dbid;\n&nbsp;\n      DBID   COUNT(*)\n---------- ----------\n2623271973         79\n<\/code><\/pre>\n<p>So remember, CDB$ROOT has 91 snapshots with DBID= 904475458 and PDB1 has 79 snapshots with DBID=2623271973<\/p>\n<h3>AWR_ROOT_ and AWR_PDB_<\/h3>\n<p>Views on WRM$_SNAPSHOT are referenced in DBA_DEPENDENCIES:<\/p>\n<pre><code>\nSQL&gt; select owner,name,type from dba_dependencies where referenced_name='WRM$_SNAPSHOT' and type like 'VIEW';\n&nbsp;\nOWNER NAME                           TYPE\n----- ------------------------------ -------------------\nSYS   AWR_ROOT_SNAPSHOT              VIEW\nSYS   AWR_ROOT_SYSSTAT               VIEW\nSYS   AWR_ROOT_ACTIVE_SESS_HISTORY   VIEW\nSYS   AWR_ROOT_ASH_SNAPSHOT          VIEW\nSYS   AWR_PDB_SNAPSHOT               VIEW\nSYS   AWR_PDB_ACTIVE_SESS_HISTORY    VIEW\nSYS   AWR_PDB_ASH_SNAPSHOT           VIEW\n<\/code><\/pre>\n<p>I&#8217;m interested in views that show snapshot information: AWR_ROOT_SNAPSHOT and AWR_PDB_SNAPSHOT<\/p>\n<pre><code>\nSQL&gt; select owner,object_name,object_type,sharing from dba_objects where object_name in ('AWR_ROOT_SNAPSHOT','AWR_PDB_SNAPSHOT') order by 3;\n&nbsp;\nOWNER  OBJECT_NAME                    OBJECT_TYPE             SHARING\n------ ------------------------------ ----------------------- ------------------\nPUBLIC AWR_ROOT_SNAPSHOT              SYNONYM                 METADATA LINK\nPUBLIC AWR_PDB_SNAPSHOT               SYNONYM                 METADATA LINK\nSYS    AWR_ROOT_SNAPSHOT              VIEW                    DATA LINK\nSYS    AWR_PDB_SNAPSHOT               VIEW                    METADATA LINK\n<\/code><\/pre>\n<p>Besides the synonyms, we have a metadata link view AWR_PDB_SNAPSHOT and a data link view AWR_ROOT_SNAPSHOT. The data link one means that it switches to CDB$ROOT when queried from a PDB. Here is the definition:<\/p>\n<pre><code>\nSQL&gt; select owner,view_name,container_data,text from dba_views where view_name in ('AWR_ROOT_SNAPSHOT','AWR_PDB_SNAPSHOT');\n&nbsp;\nOWNER  VIEW_NAME                      C TEXT\n------ ------------------------------ - --------------------------------------------------------------------------------\nSYS    AWR_ROOT_SNAPSHOT              Y select snap_id, dbid, instance_number, startup_time,\n                                               begin_interval_time, end_interval_time,\n                                               flush_elapsed, snap_level, error_count, snap_flag, snap_timezone,\n                                               decode(con_dbid_to_id(dbid), 1, 0, con_dbid_to_id(dbid)) con_id\n                                        from WRM$_SNAPSHOT\n                                        where status = 0\n&nbsp;\nSYS    AWR_PDB_SNAPSHOT               N select snap_id, dbid, instance_number, startup_time,\n                                               begin_interval_time, end_interval_time,\n                                               flush_elapsed, snap_level, error_count, snap_flag, snap_timezone,\n                                               decode(con_dbid_to_id(dbid), 1, 0, con_dbid_to_id(dbid)) con_id\n                                        from WRM$_SNAPSHOT\n                                        where status = 0\n<\/code><\/pre>\n<p>Same definition. The difference is that AWR_PDB_SNAPSHOT reads from the current container but AWR_ROOT_SNAPSHOT being a DATA LINK always read from CDB$ROOT.<\/p>\n<p>This is what we can see:<\/p>\n<pre><code>\nSQL&gt; alter session set container=CDB$ROOT;\nSession altered.\n&nbsp;\nSQL&gt; select dbid,count(*) from AWR_ROOT_SNAPSHOT group by dbid;\n&nbsp;\n      DBID   COUNT(*)\n---------- ----------\n 904475458         91\n&nbsp;\nSQL&gt; select dbid,count(*) from AWR_PDB_SNAPSHOT group by dbid;\n&nbsp;\n      DBID   COUNT(*)\n---------- ----------\n 904475458         91\n&nbsp;\nSQL&gt; alter session set container=PDB1;\nSession altered.\n&nbsp;\nSQL&gt; select dbid,count(*) from AWR_ROOT_SNAPSHOT group by dbid;\n&nbsp;\n      DBID   COUNT(*)\n---------- ----------\n 904475458         91\n<\/code><\/pre>\n<p>This query when run in PDB1 displays the 91 snapshots from the CDB.<\/p>\n<pre><code>\nSQL&gt; select dbid,count(*) from AWR_PDB_SNAPSHOT group by dbid;\n&nbsp;\n      DBID   COUNT(*)\n---------- ----------\n2623271973         79\n<\/code><\/pre>\n<p>This one shows what is in the current container.<\/p>\n<p>Those are the views used by the AWR report, depending on the AWR location choice. But what about the DBA_HIST_ views that we know and use from previous versions?<\/p>\n<h3>DBA_HIST_ and CDB_HIST_<\/h3>\n<p>I continue to follow the dependencies:<\/p>\n<pre><code>\nSQL&gt; select owner,name,type from dba_dependencies where referenced_name in ('AWR_ROOT_SNAPSHOT','AWR_PDB_SNAPSHOT') and name like '%SNAPSHOT' order by 3;\n&nbsp;\nOWNER  NAME                           TYPE\n------ ------------------------------ -------------------\nPUBLIC AWR_ROOT_SNAPSHOT              SYNONYM\nPUBLIC AWR_PDB_SNAPSHOT               SYNONYM\nSYS    DBA_HIST_SNAPSHOT              VIEW\nSYS    CDB_HIST_SNAPSHOT              VIEW\n&nbsp;\nSQL&gt; select owner,object_name,object_type,sharing from dba_objects where object_name in ('CDB_HIST_SNAPSHOT','DBA_HIST_SNAPSHOT');\n&nbsp;\nOWNER  OBJECT_NAME                    OBJECT_TYPE             SHARING\n------ ------------------------------ ----------------------- ------------------\nSYS    DBA_HIST_SNAPSHOT              VIEW                    METADATA LINK\nSYS    CDB_HIST_SNAPSHOT              VIEW                    METADATA LINK\nPUBLIC DBA_HIST_SNAPSHOT              SYNONYM                 METADATA LINK\nPUBLIC CDB_HIST_SNAPSHOT              SYNONYM                 METADATA LINK\n<\/code><\/pre>\n<p>Here are the views I&#8217;m looking for. They are metadata link only. Not data link. This means that they do not switch to CDB$ROOT.<\/p>\n<p>But there&#8217;s more in the view definition:<\/p>\n<pre><code>\nSQL&gt; select owner,view_name,container_data,text from dba_views where view_name in ('CDB_HIST_SNAPSHOT','DBA_HIST_SNAPSHOT');\n&nbsp;\nOWNER  VIEW_NAME                      C TEXT\n------ ------------------------------ - --------------------------------------------------------------------------------\nSYS    DBA_HIST_SNAPSHOT              N select \"SNAP_ID\",\"DBID\",\"INSTANCE_NUMBER\",\"STARTUP_TIME\",\"BEGIN_INTERVAL_TIME\",\"\n                                        END_INTERVAL_TIME\",\"FLUSH_ELAPSED\",\"SNAP_LEVEL\",\"ERROR_COUNT\",\"SNAP_FLAG\",\"SNAP_\n                                        TIMEZONE\",\"CON_ID\" from AWR_ROOT_SNAPSHOT\n&nbsp;\nSYS    CDB_HIST_SNAPSHOT              Y SELECT k.\"SNAP_ID\",k.\"DBID\",k.\"INSTANCE_NUMBER\",k.\"STARTUP_TIME\",k.\"BEGIN_INTERV\n                                        AL_TIME\",k.\"END_INTERVAL_TIME\",k.\"FLUSH_ELAPSED\",k.\"SNAP_LEVEL\",k.\"ERROR_COUNT\",\n                                        k.\"SNAP_FLAG\",k.\"SNAP_TIMEZONE\",k.\"CON_ID\", k.CON$NAME, k.CDB$NAME FROM CONTAINE\n                                        RS(\"SYS\".\"AWR_PDB_SNAPSHOT\") k\n<\/code><\/pre>\n<p>The DBA_HIST_SNAPSHOT is a simple one view on AWR_ROOT_SNAPSHOT which, as we have seen above, always show snapshots from CDB:<\/p>\n<pre><code>\nSQL&gt; alter session set container=CDB$ROOT;\nSession altered.\n&nbsp;\nSQL&gt; select dbid,count(*) from DBA_HIST_SNAPSHOT group by dbid;\n&nbsp;\n      DBID   COUNT(*)\n---------- ----------\n 904475458         91\n&amp;nbsp\nSQL&gt; alter session set container=PDB1;\nSession altered.\n&nbsp;\nSQL&gt; select dbid,count(*) from DBA_HIST_SNAPSHOT group by dbid;\n&nbsp;\n      DBID   COUNT(*)\n---------- ----------\n 904475458         91\n<\/code><\/pre>\n<p>Then CDB_HIST_SNAPSHOT reads AWR_PDB_SNAPSHOT which show current container snapshots. But this view is a COMMON DATA one, with the CONTAINER() function. This means that from CDB$ROOT when executed with a common user data from all open containers will be retrieved:<\/p>\n<pre><code>\nSQL&gt; alter session set container=CDB$ROOT;\nSession altered.\n&nbsp;\nSQL&gt; select dbid,count(*) from CDB_HIST_SNAPSHOT group by dbid;\n&nbsp;\n      DBID   COUNT(*)\n---------- ----------\n2623271973         79\n 904475458         91\n<\/code><\/pre>\n<p>However, from a PDB you cannot see anything else:<\/p>\n<pre><code>\nSQL&gt; alter session set container=PDB1;\nSession altered.\n&nbsp;\nSQL&gt; select dbid,count(*) from CDB_HIST_SNAPSHOT group by dbid;\n&nbsp;\n      DBID   COUNT(*)\n---------- ----------\n2623271973         79\n<\/code><\/pre>\n<h3>So what?<\/h3>\n<p>Multitenant adds a new dimension in the dictionary views and we must be aware of that. However, compatibility is still there. The scripts that we used to run to query DBA_HIST views should still work. Don&#8217;t forget to always join on DBID and INSTANCE_NUMBER in addition to SNAP_ID so that your scripts are still working in RAC, and cross containers.<br \/>\nIn 12.2 you can do the same for your application: used metadata links, data links, and common views for your tables. But remember to keep it simple&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By Franck Pachot . In a previous post I explained how the AWR views have changed between 12.1.0.1 and 12.1.0.2 and now in 12.2.0.1 they have changed again. This is a good illustration of multitenant object link usage. What&#8217;s new in 12cR2 is the ability to run AWR snapshots at CDB or PDB level. I&hellip;&nbsp;<\/p>\n","protected":false},"author":27,"featured_media":9600,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[4133],"tags":[422,220,455,64,209,1025,66,223],"class_list":["post-9598","post","type-post","status-publish","format-standard","has-post-thumbnail","category-database","tag-awr","tag-cdb","tag-internals","tag-multitenant","tag-oracle-12c","tag-oracle-12cr2","tag-pdb","tag-pluggable-databases"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.9 (Yoast SEO v28.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Oracle 12cR2: AWR views in multitenant - dbi services Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Oracle 12cR2: AWR views in multitenant\" \/>\n<meta property=\"og:description\" content=\"By Franck Pachot . In a previous post I explained how the AWR views have changed between 12.1.0.1 and 12.1.0.2 and now in 12.2.0.1 they have changed again. This is a good illustration of multitenant object link usage. What&#8217;s new in 12cR2 is the ability to run AWR snapshots at CDB or PDB level. I&hellip;&nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi services Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-12-19T18:42:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/C0DLx2GXEAALIG4-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1164\" \/>\n\t<meta property=\"og:image:height\" content=\"560\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Oracle Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Oracle Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-12cr2-awr-views-in-multitenant\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-12cr2-awr-views-in-multitenant\\\/\"},\"author\":{\"name\":\"Oracle Team\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bf7c7eb0bec165183207237c9d0ee1d5\"},\"headline\":\"Oracle 12cR2: AWR views in multitenant\",\"datePublished\":\"2016-12-19T18:42:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-12cr2-awr-views-in-multitenant\\\/\"},\"wordCount\":652,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-12cr2-awr-views-in-multitenant\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/C0DLx2GXEAALIG4-1.jpg\",\"keywords\":[\"AWR\",\"CDB\",\"internals\",\"Multitenant\",\"Oracle 12c\",\"Oracle 12cR2\",\"PDB\",\"Pluggable Databases\"],\"articleSection\":[\"Database\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-12cr2-awr-views-in-multitenant\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-12cr2-awr-views-in-multitenant\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-12cr2-awr-views-in-multitenant\\\/\",\"name\":\"Oracle 12cR2: AWR views in multitenant - dbi services Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-12cr2-awr-views-in-multitenant\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-12cr2-awr-views-in-multitenant\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/C0DLx2GXEAALIG4-1.jpg\",\"datePublished\":\"2016-12-19T18:42:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-12cr2-awr-views-in-multitenant\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-12cr2-awr-views-in-multitenant\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-12cr2-awr-views-in-multitenant\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/C0DLx2GXEAALIG4-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/C0DLx2GXEAALIG4-1.jpg\",\"width\":1164,\"height\":560},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/oracle-12cr2-awr-views-in-multitenant\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Oracle 12cR2: AWR views in multitenant\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\",\"name\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bf7c7eb0bec165183207237c9d0ee1d5\",\"name\":\"Oracle Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"caption\":\"Oracle Team\"},\"description\":\"Posts published under the Oracle Team account are collective contributions by the dbi services Oracle consultants. The practice covers the full Oracle Database lifecycle: architecture, migration and upgrade, high availability with RAC and Data Guard, backup and recovery, performance tuning, and engineered systems such as Oracle Database Appliance and Exadata. The team holds Oracle certifications up to Certified Master level and operates customer platforms under service level agreements.\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/oracle-team\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Oracle 12cR2: AWR views in multitenant - dbi services Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/","og_locale":"en_US","og_type":"article","og_title":"Oracle 12cR2: AWR views in multitenant","og_description":"By Franck Pachot . In a previous post I explained how the AWR views have changed between 12.1.0.1 and 12.1.0.2 and now in 12.2.0.1 they have changed again. This is a good illustration of multitenant object link usage. What&#8217;s new in 12cR2 is the ability to run AWR snapshots at CDB or PDB level. I&hellip;&nbsp;","og_url":"https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/","og_site_name":"dbi services Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2016-12-19T18:42:50+00:00","og_image":[{"width":1164,"height":560,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/C0DLx2GXEAALIG4-1.jpg","type":"image\/jpeg"}],"author":"Oracle Team","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","twitter_misc":{"Written by":"Oracle Team","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/"},"author":{"name":"Oracle Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bf7c7eb0bec165183207237c9d0ee1d5"},"headline":"Oracle 12cR2: AWR views in multitenant","datePublished":"2016-12-19T18:42:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/"},"wordCount":652,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/C0DLx2GXEAALIG4-1.jpg","keywords":["AWR","CDB","internals","Multitenant","Oracle 12c","Oracle 12cR2","PDB","Pluggable Databases"],"articleSection":["Database"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/","url":"https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/","name":"Oracle 12cR2: AWR views in multitenant - dbi services Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/C0DLx2GXEAALIG4-1.jpg","datePublished":"2016-12-19T18:42:50+00:00","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/C0DLx2GXEAALIG4-1.jpg","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/C0DLx2GXEAALIG4-1.jpg","width":1164,"height":560},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/oracle-12cr2-awr-views-in-multitenant\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Oracle 12cR2: AWR views in multitenant"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dbi-services.com\/#organization","name":"dbi services","url":"https:\/\/www.dbi-services.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bf7c7eb0bec165183207237c9d0ee1d5","name":"Oracle Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","caption":"Oracle Team"},"description":"Posts published under the Oracle Team account are collective contributions by the dbi services Oracle consultants. The practice covers the full Oracle Database lifecycle: architecture, migration and upgrade, high availability with RAC and Data Guard, backup and recovery, performance tuning, and engineered systems such as Oracle Database Appliance and Exadata. The team holds Oracle certifications up to Certified Master level and operates customer platforms under service level agreements.","url":"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/9598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=9598"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/9598\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media\/9600"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=9598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=9598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=9598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}