{"id":13,"date":"2013-03-20T12:38:00","date_gmt":"2013-03-20T12:38:00","guid":{"rendered":"http:\/\/anjo.pt\/wp\/keyword-oracle\/2013\/03\/20\/duplicate-problem-with-non-standard-cache-sizes\/"},"modified":"2015-11-17T20:27:23","modified_gmt":"2015-11-17T19:27:23","slug":"duplicate-problem-with-non-standard-cache-sizes","status":"publish","type":"post","link":"https:\/\/anjo.pt\/keyword-oracle\/2013\/03\/20\/duplicate-problem-with-non-standard-cache-sizes\/","title":{"rendered":"Duplicate problem with non standard cache sizes"},"content":{"rendered":"<p>\nToday I had a problem creating a standby database. Just after RMAN shutdowns and restarts the standby for copying the files, I was getting:<\/p>\n<p><span style=\"font-family: Courier New, Courier, monospace; font-size: x-small;\">RMAN-05501: aborting duplication of target database<\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace; font-size: x-small;\">RMAN-03015: error occurred in stored script Memory Script<\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace; font-size: x-small;\">RMAN-04014: startup failed: ORA-04031: unable to allocate 4128 bytes of sha<\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace; font-size: x-small;\">red memory (&#8220;shared pool&#8221;,&#8221;unknown object&#8221;,&#8221;sga heap(1,0)&#8221;,&#8221;object queue ha<\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace; font-size: x-small;\">sh buckets&#8221;)<\/span><\/p>\n<div>\n<\/div>\n<div>\nAfter investigating the problem was because I was decreasing the size of SGA on the target database (and putting it on Automatic Memory Management) but not decreasing the non-standard cache settings.<\/div>\n<div>\n<\/div>\n<div>\nThe solution was to add to the duplicate command the decrease of the non-standard cache (on the source it is 800M):<\/div>\n<div>\n<div>\n<span style=\"font-family: Courier New, Courier, monospace; font-size: x-small;\">&nbsp; SET memory_target &#8216;1G&#8217;<\/span><\/div>\n<div>\n<span style=\"font-family: Courier New, Courier, monospace; font-size: x-small;\">&nbsp; SET db_32k_cache_size &#8217;50M&#8217;<\/span><\/div>\n<\/div>\n<div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today I had a problem creating a standby database. Just after RMAN shutdowns and restarts the standby for copying the files, I was getting: RMAN-05501: aborting duplication of target database RMAN-03015: error occurred in stored script Memory Script RMAN-04014: startup failed: ORA-04031: unable to allocate 4128 bytes of sha red memory (&#8220;shared pool&#8221;,&#8221;unknown object&#8221;,&#8221;sga heap(1,0)&#8221;,&#8221;object [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,6],"tags":[],"class_list":{"0":"post-13","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-dataguard","7":"category-oracle","8":"czr-hentry"},"_links":{"self":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/comments?post=13"}],"version-history":[{"count":1,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":161,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/13\/revisions\/161"}],"wp:attachment":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/media?parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/categories?post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/tags?post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}