{"id":4093,"date":"2012-08-27T03:57:08","date_gmt":"2012-08-27T07:57:08","guid":{"rendered":"http:\/\/onlineappsdba.com\/?p=4093"},"modified":"2012-08-27T03:59:39","modified_gmt":"2012-08-27T07:59:39","slug":"requestcachetype-setting-in-oam-11g","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2012\/08\/27\/requestcachetype-setting-in-oam-11g\/","title":{"rendered":"&#8220;RequestCacheType&#8221; setting in OAM 11g"},"content":{"rendered":"<p>This post will talk about an important setting of OAM 11g high availability environment. The Oracle doc for setting up OAM 11g in HA is <a href=\"http:\/\/docs.oracle.com\/cd\/E17904_01\/core.1111\/e10106\/imha.htm#CDEJFEGC\">here<\/a>.<\/p>\n<p>The <a href=\"http:\/\/docs.oracle.com\/cd\/E17904_01\/core.1111\/e10106\/imha.htm#CDECGGEB\">section 8.8.3.11 <\/a>explains changing request cache type. Let us see the importance of this flag and certain other factors where this is essential.<\/p>\n<p>When a user access a OAM 11g protected resource then the OAM server needs to remember about the user&#8217;s original request. This data is defined using a parameter in oam-config.xml located at $DOMAIN_NAME\/config\/fmwconfig as shown below.<\/p>\n<p><code>&lt;Setting Name=\"serverRequestCacheType\" Type=\"xsd:string\"&gt;COOKIE&lt;\/Setting&gt;<\/code><\/p>\n<p>The permitted values are BASIC (set by default), COOKIE and FORM.<\/p>\n<p><em>NOTE: FORM is introducted in OAM 11.1.1.5 and is not present in 11.1.1.3 version.<\/em><\/p>\n<p><strong>BASIC:<\/strong> In this mode the OAM Server stores the information in memory. This mode could <strong>not<\/strong> be used in an <strong>OAM Cluster High Availability environment<\/strong> because during the authentication process, the client might be redirected to different OAM Server instances and the information about the original request is only available in the memory of one OAM Server instance. This mode requires the Login Page to return the <strong>&#8220;request_id&#8221;<\/strong> value.<\/p>\n<p><strong>COOKIE:<\/strong> In this mode the OAM Server creates an encrypted OAM_REQ cookie to store the information. This mode could be used in a High Availability environment.\u00a0 The Login Page only needs to return the username and password.<\/p>\n<p><strong>FORM:<\/strong>\u00a0 In this mode the OAM Server sends the information about the original request via a POST request using an encrypted OAM_REQ value.\u00a0 This mode could be used in a High Availability environment. The login page must return the <strong>OAM_REQ<\/strong> value.<\/p>\n<p>So OAM_REQ cookie is set in both cases COOKIE and FORM by the OAM server but login page should return to OAM server only for FORM scenario.<\/p>\n<p>If you are using custom Login page in your environment then you will need to return specific values to the OAM server from login page as per the Request Cache Type setting.<\/p>\n<p><strong>How to change this parameter?<\/strong><\/p>\n<p><strong>wlst.st<\/strong> tool can be used to change it to either BASIC or COOKIE but it does not reflect the changes for FORM.<\/p>\n<p>So as an alternative solution perform manual changes to oam-config.xml as follows:<\/p>\n<ol>\n<li>Stop all OAM servers (admin + managed servers)<\/li>\n<li>Change the <code>serverRequestCacheType<\/code> value in the oam-config.xml located at $DOMAIN_HOME\/config\/fmwconfig<\/li>\n<li>Start all OAM servers.<\/li>\n<\/ol>\n<p>Another scenario where this parameter is essential is when the requested resource URL is too large. Consider the user is having a valid OAM session and access another resource A where resource A URL is too large.<\/p>\n<p>Since the user is having a valid session already it does not generate OAM_REQ cookie anymore and user will be redirected to resource A succesfully.<\/p>\n<p>However if the user does not a valid session and access resource A directly then OAM server stores the original requested resource information in an encrypted cookie OAM_REQ. Since the original resource URL is too large the OAM_REQ cookie is also too large. The problem only occurs if long URL access triggers redirect to OAM for login.<\/p>\n<p>In case of IE it may result in error &#8220;Internet Explorer cannot display the webpage&#8221;. This is because of the IEs maximum browser URL restriction (2083 characters)<\/p>\n<p>If the user is using Firefox where there is no URL restriction but the problem occurs when cookies (OAM_REQ in this case) are storing large content and it will result in firefox crash.<\/p>\n<p>So the best solution is to change the Request Cache Type setting to FORM value.<\/p>\n<p>Hope this helps.<\/p>\n<p><strong>References:<\/strong> metalink note 1348419.1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post will talk about an important setting of OAM 11g high availability environment. The Oracle doc for setting up [&hellip;]<\/p>\n","protected":false},"author":115,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[40,42],"tags":[],"class_list":["post-4093","post","type-post","status-publish","format-standard","hentry","category-sso","category-troubleshooting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>&quot;RequestCacheType&quot; setting in OAM 11g -<\/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:\/\/onlineappsdba.com\/index.php\/2012\/08\/27\/requestcachetype-setting-in-oam-11g\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&quot;RequestCacheType&quot; setting in OAM 11g -\" \/>\n<meta property=\"og:description\" content=\"This post will talk about an important setting of OAM 11g high availability environment. The Oracle doc for setting up [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2012\/08\/27\/requestcachetype-setting-in-oam-11g\/\" \/>\n<meta property=\"article:published_time\" content=\"2012-08-27T07:57:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-08-27T07:59:39+00:00\" \/>\n<meta name=\"author\" content=\"Masroof Ahmad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Masroof Ahmad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2012\/08\/27\/requestcachetype-setting-in-oam-11g\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2012\/08\/27\/requestcachetype-setting-in-oam-11g\/\",\"name\":\"\\\"RequestCacheType\\\" setting in OAM 11g -\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"datePublished\":\"2012-08-27T07:57:08+00:00\",\"dateModified\":\"2012-08-27T07:59:39+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2012\/08\/27\/requestcachetype-setting-in-oam-11g\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2012\/08\/27\/requestcachetype-setting-in-oam-11g\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2012\/08\/27\/requestcachetype-setting-in-oam-11g\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"&#8220;RequestCacheType&#8221; setting in OAM 11g\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/onlineappsdba.com\/#website\",\"url\":\"https:\/\/onlineappsdba.com\/\",\"name\":\"\",\"description\":\"Oracle Implementation &amp; Training Experts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/onlineappsdba.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\",\"name\":\"Masroof Ahmad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"caption\":\"Masroof Ahmad\"},\"url\":\"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\"RequestCacheType\" setting in OAM 11g -","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:\/\/onlineappsdba.com\/index.php\/2012\/08\/27\/requestcachetype-setting-in-oam-11g\/","og_locale":"en_US","og_type":"article","og_title":"\"RequestCacheType\" setting in OAM 11g -","og_description":"This post will talk about an important setting of OAM 11g high availability environment. The Oracle doc for setting up [&hellip;]","og_url":"https:\/\/onlineappsdba.com\/index.php\/2012\/08\/27\/requestcachetype-setting-in-oam-11g\/","article_published_time":"2012-08-27T07:57:08+00:00","article_modified_time":"2012-08-27T07:59:39+00:00","author":"Masroof Ahmad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Masroof Ahmad","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/onlineappsdba.com\/index.php\/2012\/08\/27\/requestcachetype-setting-in-oam-11g\/","url":"https:\/\/onlineappsdba.com\/index.php\/2012\/08\/27\/requestcachetype-setting-in-oam-11g\/","name":"\"RequestCacheType\" setting in OAM 11g -","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"datePublished":"2012-08-27T07:57:08+00:00","dateModified":"2012-08-27T07:59:39+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2012\/08\/27\/requestcachetype-setting-in-oam-11g\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2012\/08\/27\/requestcachetype-setting-in-oam-11g\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2012\/08\/27\/requestcachetype-setting-in-oam-11g\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"&#8220;RequestCacheType&#8221; setting in OAM 11g"}]},{"@type":"WebSite","@id":"https:\/\/onlineappsdba.com\/#website","url":"https:\/\/onlineappsdba.com\/","name":"","description":"Oracle Implementation &amp; Training Experts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/onlineappsdba.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb","name":"Masroof Ahmad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","caption":"Masroof Ahmad"},"url":"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/"}]}},"_links":{"self":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/4093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/comments?post=4093"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/4093\/revisions"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=4093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=4093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=4093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}