<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rittman Mead Consulting &#187; Ragnar Wessels</title>
	<atom:link href="http://www.rittmanmead.com/author/ragnar-wessels/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rittmanmead.com</link>
	<description>Delivering Oracle Business Intelligence</description>
	<lastBuildDate>Mon, 06 Feb 2012 21:18:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Changing your password in OBIEE 11G.</title>
		<link>http://www.rittmanmead.com/2011/10/changing-your-password-in-obiee-11g/</link>
		<comments>http://www.rittmanmead.com/2011/10/changing-your-password-in-obiee-11g/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 14:13:37 +0000</pubDate>
		<dc:creator>Ragnar Wessels</dc:creator>
				<category><![CDATA[FMW]]></category>
		<category><![CDATA[Oracle BI Suite EE]]></category>

		<guid isPermaLink="false">http://www.rittmanmead.com/?p=8895</guid>
		<description><![CDATA[Since the release of OBIEE 11G, one of the questions asked relates to what most people consider a fairly basic bit of functionality: how can a user change his/her own password ? The simple answer is that, out of the box, this is not (yet) supported in the 11G release, unless the user has administrative [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify">Since  the release of OBIEE 11G, one of the questions asked relates to what  most people consider a fairly basic bit of functionality: how can a user  change his/her own password ?</p>
<p style="text-align: justify">The  simple answer is that, out of the box, this is not (yet)  supported in the 11G release, unless the user has administrative  privileges on the weblogic server.<br />
This leaves :</p>
<ol style="text-align: justify">
<li>Asking an administrator to do it.</li>
<li>Granting more privileges on the BI stack, allowing them to log into the weblogic console and modifying the password there.</li>
</ol>
<p style="text-align: justify">Neither of these methods is very flexible since it requires 3rd party intervention on some level to make it happen. Worse,  administrative access would have to be granted to those users,  defeating in large part the purpose of the security infrastructure.</p>
<p style="text-align: justify">One  option would be to create a set of WLST scripts that, to some degree,  hide the administrator credentials, but that option requires users to  run scripts outside of the web front-end. It works but it&#8217;s hardly  intuitive or user-friendly.</p>
<p style="text-align: justify">This  post will explore a method that would enable users to do this  themselves, directly from within Analytics, without the need to  divulge any higher privileged credentials.</p>
<p style="text-align: justify">Since the introduction of OBIEE 11G running on weblogic an extensive API is available containing the functionality that is  already present in the enterprise manager and weblogic console. Part of this is the Mbean tree that OBIEE uses to manage its configuration. This Mbean tree can be browsed using the Enterprise Manager. Each of the Mbeans in this  tree relates a part of the stack and exposes methods to either get or  set bits of the configuration. Of  interest in this case are the Mbeans relating to the Authenticators.  More specifically, in the case of a default installation, the  DefaultAuthenticator linked to the myRealm security provider.</p>
<p style="text-align: justify">Logging into the enterprise manager gives us its exact name and exposed methods:</p>
<p style="text-align: justify"><img class="aligncenter size-full wp-image-8977" src="http://www.rittmanmead.com/wp-content/uploads/2011/10/blog_obiee_pwd_01.png" alt="" width="597" height="364" /></p>
<p>From here we can invoke the ChangeUserPassword method and change the password for a user.</p>
<p style="text-align: justify">In  order to leverage these Mbean methods outside of the Enterprise Manager  a simple java class can be built, using the aforementioned API.</p>
<p>The steps to be taken in this class are:</p>
<ol style="text-align: justify">
<li>create a connection to the Mbean server</li>
<li>call the password change method in the appropriate Mbean</li>
</ol>
<p style="text-align: justify">I used Jdeveloper 11G R1 for this.</p>
<p style="text-align: justify"><img class="aligncenter size-full wp-image-8978" src="http://www.rittmanmead.com/wp-content/uploads/2011/10/blog_obiee_pwd_02.png" alt="" width="598" height="302" /></p>
<p style="text-align: justify">So  far so good. I can now change the weblogic password by calling  the java class and verifying success by logging into Analytics with the  new password.</p>
<p style="text-align: justify">In  order to make this class available from within the OBIEE dashboards  I&#8217;ll use a feature that was introduced in OBIEE 11G: the ability to  consume web services. This is possible in 10G as well but some  jiggery pokery is required to get this to work. OBIEE 11G on  the other hand has this functionality by default.</p>
<p style="text-align: justify">First  I have to expose the class as a Web Service. In order to do so I have to  create a Web Service out of it and deploy it to an application server  in the form of a war file. The good thing is that no additional  installation or configuration is required since I already have a full  fledged application server at my fingertips viz. weblogic.<br />
A few clicks in JDeveloper later and it is deployed to the Admin server where it’s visible under the deployments:</p>
<p style="text-align: justify"><img class="aligncenter size-full wp-image-8979" src="http://www.rittmanmead.com/wp-content/uploads/2011/10/blog_obiee_pwd_03.png" alt="" width="406" height="428" /></p>
<p style="text-align: justify">A quick test in Jdeveloper verifies that it&#8217;s working as advertised.</p>
<p style="text-align: justify"><img class="aligncenter size-full wp-image-9002" src="http://www.rittmanmead.com/wp-content/uploads/2011/10/blog_obiee_pwd_05a.bmp" alt="" /></p>
<p style="text-align: justify">Now all that remains is to create an action item, call the webservice and place it on a dashboard somewhere.</p>
<p style="text-align: justify">1. Create a new action item in Answers</p>
<p style="text-align: justify">2. Point it to the WSDL descibing my ChangePassword web service</p>
<p style="text-align: justify"><img class="aligncenter size-full wp-image-8982" src="http://www.rittmanmead.com/wp-content/uploads/2011/10/blog_obiee_pwd_06.png" alt="" width="439" height="405" /></p>
<p>3. Make it prettier by setting prompts, messages and a few of the other options</p>
<p><img class="aligncenter size-full wp-image-8983" src="http://www.rittmanmead.com/wp-content/uploads/2011/10/blog_obiee_pwd_07.png" alt="" width="660" height="304" /><img class="aligncenter size-full wp-image-8984" src="http://www.rittmanmead.com/wp-content/uploads/2011/10/blog_obiee_pwd_08.png" alt="" width="660" height="417" /><img class="aligncenter size-full wp-image-8985" src="http://www.rittmanmead.com/wp-content/uploads/2011/10/blog_obiee_pwd_09.png" alt="" width="660" height="416" /></p>
<p>4. Put in on a dashboard.</p>
<p><img class="aligncenter size-full wp-image-8987" src="http://www.rittmanmead.com/wp-content/uploads/2011/10/blog_obiee_pwd_11.png" alt="" width="626" height="150" /></p>
<p>And  there we are. Any user can now change their password from the within  Analytics, without being exposed to any administrative credentials.</p>
<p><img class="aligncenter size-full wp-image-8988" src="http://www.rittmanmead.com/wp-content/uploads/2011/10/blog_obiee_pwd_12.png" alt="" width="366" height="201" /><img class="aligncenter size-full wp-image-8989" src="http://www.rittmanmead.com/wp-content/uploads/2011/10/blog_obiee_pwd_13.png" alt="" width="198" height="115" /></p>
<p>To finish, this consideration:</p>
<p style="text-align: justify">The Web Service can hardcode the weblogic password to connect to the Mbean server. Obviously this is not  ideal since, should it be used to change the weblogic password itself,  the  webservice would stop working. This means that the weblogic user has  to be treated as the exception.</p>
<p>One  way of dealing with this is to not use username/password  authentication but rather use config- and key files to authenticate the  weblogic user. The Web Service in that case would have to regenerate these files each time it&#8217;s used to change the weblogic password.</p>
<p style="text-align: justify">But there&#8217;s an <del>app</del> API call for that.</p>
<p style="text-align: justify">Ragnar</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<hr />
<em>Unfortunately we can’t send the code or make it available as it’s for a client project. But all that you need is actually in the screenshots, and it’s also documented well in the WLS docs. Sorry about this.</em></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rittmanmead.com/2011/10/changing-your-password-in-obiee-11g/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Customizing OBIEE Dashboard Banners</title>
		<link>http://www.rittmanmead.com/2009/04/customizing-obiee-dashboard-banners/</link>
		<comments>http://www.rittmanmead.com/2009/04/customizing-obiee-dashboard-banners/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 11:16:49 +0000</pubDate>
		<dc:creator>Ragnar Wessels</dc:creator>
				<category><![CDATA[Oracle BI Suite EE]]></category>

		<guid isPermaLink="false">http://www.rittmanmead.com/2009/04/08/customizing-obiee-dashboard-banners/</guid>
		<description><![CDATA[One of the requirements regarding OBIEE dashboards often is to replace the default dashboard graphics and bring it in line with the &#8216;corporate look and feel&#8217;. So let&#8217;s have a look and change the top banner on a dashboard. OBIEE comes with a set of default styles for dashboards (e.g. oracle10 and siebel77), each with [...]]]></description>
			<content:encoded><![CDATA[<p>One of the requirements regarding OBIEE dashboards often is to replace the default dashboard graphics and bring it in line with the &#8216;corporate look and feel&#8217;. So let&#8217;s have a look and change the top banner on a dashboard.</p>
<p>OBIEE comes with a set of default styles for dashboards (e.g. oracle10 and siebel77), each with their own top banners.</p>
<p align="center"><img src="http://www.rittmanmead.com/wp-content/uploads/2009/04/1_obiee_default_schemes.JPG" height="201" width="500" /></p>
<p>So how does one go about modifying these styles and replacing the top banner?</p>
<p>Let&#8217;s say I wish to replace the standard Oracle10 banner:</p>
<p align="center"><a href="http://www.rittmanmead.com/wp-content/uploads/2009/04/2_obiee_bg_banner.jpg"><img src="http://www.rittmanmead.com/wp-content/uploads/2009/04/2_obiee_bg_banner.thumbnail.jpg" height="15" width="500" /></a></p>
<p>with this one:</p>
<p align="center"><a href="http://www.rittmanmead.com/wp-content/uploads/2009/04/3_obiee_bg_banner_new.jpg"><img src="http://www.rittmanmead.com/wp-content/uploads/2009/04/3_obiee_bg_banner_new.jpg" height="15" width="500" /></a></p>
<p>(obviously graphic design is not part of my main skill set)</p>
<p>It turns out that creating and modifying a style has to be done in at least 2 locations:</p>
<ul>
<li>The Presentation Server</li>
<li>The Analytics application running in an OC4J container</li>
</ul>
<p>So first let&#8217;s have a look at the presentation server.</p>
<p>The styles are all located under &lt;ORACLE_BI_HOME&gt;\web\app\res.<br />
Here we find several directories but the ones of interest to us in this case are the ones starting with &#8216;s_&#8217;.</p>
<p align="center"><a href="http://www.rittmanmead.com/wp-content/uploads/2009/04/4_obiee_theme_dir.JPG" title="4_obiee_theme_dir.JPG"><img src="http://www.rittmanmead.com/wp-content/uploads/2009/04/4_obiee_theme_dir.JPG" alt="4_obiee_theme_dir.JPG" /></a></p>
<p>The &#8216;s_&#8217; directories contain the specific elements for each of the styles.</p>
<p>In order to change the banner I first make a copy of the &#8216;s_oracle10&#8242; directory and rename it to &#8216;s_mynewtheme&#8217; in order to preserve the original.</p>
<p align="center"><a href="http://www.rittmanmead.com/wp-content/uploads/2009/04/5_obiee_newtheme_dir.JPG" title="5_obiee_newtheme_dir.JPG"><img src="http://www.rittmanmead.com/wp-content/uploads/2009/04/5_obiee_newtheme_dir.JPG" alt="5_obiee_newtheme_dir.JPG" /></a></p>
<p>Under the new style directory you will find the &#8216;b_mozilla_4&#8242; directory which contains the banner image currently used. The filename is &#8216;bg_banner.jpg&#8217;. I could simply replace the image with the new one but I prefer to make my life a little bit more difficult so I opt to leave the original banner in place and copy my new one into the directory under another name (bg_banner_new.jpg).</p>
<p align="center"><a href="http://www.rittmanmead.com/wp-content/uploads/2009/04/6_obiee_newbanner_jpg.JPG" title="6_obiee_newbanner_jpg.JPG"><img src="http://www.rittmanmead.com/wp-content/uploads/2009/04/6_obiee_newbanner_jpg.JPG" alt="6_obiee_newbanner_jpg.JPG" /></a></p>
<p>To have the theme use the new file instead of the original file I have to alter &#8216;portalbanner.css&#8217; which can be found in the same directory as the banner images and modify the &#8216;.PortalBanner&#8217; entry.</p>
<blockquote><p>.PortalBanner {<br />
margin: 0px;<br />
background-position: top left;<br />
background-image: url(<strong><font color="#ff0000">bg_banner_new.jpg</font></strong>); /* DO NOT REMOVE RTL-ONLY: background-rtl-image: url(bg_banner.jpg); */<br />
background-repeat: no-repeat;<br />
background-color: #1765AC; /*095BA9;*/<br />
width: 100%;<br />
padding: 0px;<br />
}</p></blockquote>
<p>That should do it for the Presentation Server.</p>
<p>Now all I have to do is copy the new style directory over to the OC4J container running the Analytics application.  For an installation using the default OC4J installed with OBIEE it should be copied to<br />
&lt;ORACLE_BI_HOME&gt;\oc4j_bi\j2ee\home\applications\analytics\analytics\res.</p>
<p>For installations using application server OC4J containers the new style should be copied to the appropriate spot on those servers. Make sure to copy the new style to all of the servers if you are using a load balancing setup with multiple application servers.</p>
<p>The new theme will only be available once the Presentation server and the OC4J containers have been restarted. After restarting I reopen the dashboard and modify its properties in order to use the newly created style.</p>
<p>Before:</p>
<p align="center"><a href="http://www.rittmanmead.com/wp-content/uploads/2009/04/8_obiee_old_dash.JPG" title="8_obiee_old_dash.JPG"><img src="http://www.rittmanmead.com/wp-content/uploads/2009/04/8_obiee_old_dash.JPG" alt="8_obiee_old_dash.JPG" height="287" width="499" /></a><a href="http://www.rittmanmead.com/wp-content/uploads/2009/04/8_obiee_old_dash.JPG" title="8_obiee_old_dash.JPG"> </a></p>
<p>After:</p>
<p align="center"><a href="http://www.rittmanmead.com/wp-content/uploads/2009/04/9_obiee_new_dash.JPG" title="9_obiee_new_dash.JPG"><img src="http://www.rittmanmead.com/wp-content/uploads/2009/04/9_obiee_new_dash.JPG" alt="9_obiee_new_dash.JPG" height="286" width="497" /></a></p>
<p>Not bad at all. However, the list of available dashboards is superimposed over the banner text and the attentive reader may have noticed that my new banner is actually a little higher than the old one but this is not visible on the dashboard. To fix both these issues I simply modify the portalbanner.css file again for the new syle.</p>
<p>To move the dashboard list over to the right modify the width (default 276 pixels) in the &#8216;.PortalLogo entry&#8217;. In my case I set it to 650, roughly the position of the vertical black line.</p>
<blockquote><p>.PortalLogo {<br />
vertical-align: top;<br />
padding: 0px;<br />
width:<font color="#ff0000">650</font> px;<br />
}</p></blockquote>
<p>My banner is 96 pixels in height. In order to change this modify the height (default 46 pixels) in the &#8216;.PanelHdg&#8217; entry:</p>
<blockquote><p>.PanelHdg {<br />
width:1%;<br />
height: <font color="#ff0000">96</font> px;<br />
}</p></blockquote>
<p>Do not forget to make the changes on both the Presentation server and the OC4J instances running Analytics!</p>
<p>Restart the appropriate services and voilà!</p>
<p align="center"><a href="http://www.rittmanmead.com/wp-content/uploads/2009/04/10_obiee_new_dash_final.jpg" title="10_obiee_new_dash_final.jpg"><img src="http://www.rittmanmead.com/wp-content/uploads/2009/04/10_obiee_new_dash_final.jpg" alt="10_obiee_new_dash_final.jpg" height="322" width="499" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rittmanmead.com/2009/04/customizing-obiee-dashboard-banners/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

