<?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>MemoSoup &#187; function</title>
	<atom:link href="http://www.memosoup.com/tag/function/feed" rel="self" type="application/rss+xml" />
	<link>http://www.memosoup.com</link>
	<description>Mix of the things I always forget</description>
	<lastBuildDate>Thu, 09 Feb 2012 12:24:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Oracle: password function</title>
		<link>http://www.memosoup.com/20090923/oracle-password-function.html</link>
		<comments>http://www.memosoup.com/20090923/oracle-password-function.html#comments</comments>
		<pubDate>Wed, 23 Sep 2009 11:39:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[password]]></category>

		<guid isPermaLink="false">http://www.memosoup.com/?p=169</guid>
		<description><![CDATA[<p>Find the name of the current password function</p> SELECT * FROM DBA_PROFILES WHERE RESOURCE_NAME='PASSWORD_VERIFY_FUNCTION'; <p>Change the password function for the profile:</p> ALTER PROFILE &#38;PROFILE. LIMIT PASSWORD_VERIFY_FUNCTION &#38;function_name.; <p>Example of the password function:</p> CREATE OR REPLACE FUNCTION dummy_func &#160;&#40;USERNAME VARCHAR2, PASSWORD VARCHAR2, OLD_PASSWORD VARCHAR2&#41; &#160;RETURN BOOLEAN IS &#160;BEGIN &#160; &#160;IF NLS_LOWER&#40;password&#41; = NLS_LOWER&#40;username&#41; THEN &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Find the name of the current password function</p>
<div class="codecolorer-container oracle8 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="oracle8 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> DBA_PROFILES <span style="color: #993333; font-weight: bold; text-transform: uppercase;">WHERE</span> RESOURCE_NAME<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'PASSWORD_VERIFY_FUNCTION'</span>;</div></div>
<p>Change the password function for the profile:</p>
<div class="codecolorer-container oracle8 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="oracle8 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold; text-transform: uppercase;">ALTER</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">PROFILE</span> &amp;<span style="color: #993333; font-weight: bold; text-transform: uppercase;">PROFILE</span>. LIMIT PASSWORD_VERIFY_FUNCTION &amp;function_name.;</div></div>
<p>Example of the password function:</p>
<div class="codecolorer-container oracle8 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="oracle8 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold; text-transform: uppercase;">CREATE</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">OR</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">REPLACE</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FUNCTION</span> dummy_func<br />
&nbsp;<span style="color: #66cc66;">&#40;</span>USERNAME <span style="color: #993333; font-weight: bold; text-transform: uppercase;">VARCHAR2</span><span style="color: #66cc66;">,</span> PASSWORD <span style="color: #993333; font-weight: bold; text-transform: uppercase;">VARCHAR2</span><span style="color: #66cc66;">,</span> OLD_PASSWORD <span style="color: #993333; font-weight: bold; text-transform: uppercase;">VARCHAR2</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp;<span style="color: #993333; font-weight: bold; text-transform: uppercase;">RETURN</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">BOOLEAN</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">IS</span><br />
&nbsp;<span style="color: #993333; font-weight: bold; text-transform: uppercase;">BEGIN</span><br />
&nbsp; &nbsp;<span style="color: #993333; font-weight: bold; text-transform: uppercase;">IF</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">NLS_LOWER</span><span style="color: #66cc66;">&#40;</span>password<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">NLS_LOWER</span><span style="color: #66cc66;">&#40;</span>username<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">THEN</span><br />
&nbsp; &nbsp; &nbsp; raise_application_error<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">20001</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'Password is the same as the username'</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp;<span style="color: #993333; font-weight: bold; text-transform: uppercase;">END</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">IF</span>;<br />
&nbsp; &nbsp;<span style="color: #993333; font-weight: bold; text-transform: uppercase;">RETURN</span><span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold; text-transform: uppercase;">TRUE</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">END</span>;</div></div>
<div style="height:33px; padding-top:2px; padding-bottom:2px; clear:both;" class="zare366"><div style="float:left; width:100px; " class="zare366_facebook_like"> 
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.memosoup.com%2F20090923%2Foracle-password-function.html&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=27" 
					scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:27px;" allowTransparency="true"></iframe>
			</div><div style="float:left; width:90px; padding-left:10px;" class="zare366_google1"> 
				<g:plusone size="medium" href="http://www.memosoup.com/20090923/oracle-password-function.html" ></g:plusone>
			</div><div style="float:left; width:110px; padding-left:10px;" class="zare366_twitter"> 
				<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
					data-text="Oracle: password function" data-url="http://www.memosoup.com/20090923/oracle-password-function.html">Tweet</a> 
			</div></div>
		<div style="display:none;"><a href="http://www.news365live.com">news and informations</a>&nbsp;<a href="http://news365online.com">automotive,business,crime,health,life,politics,science,technology,travel</a><a href="http://worldnews365online.com">automotive,business,crime,health,life,politics,science,technology,travel</a></div><div style="clear:both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.memosoup.com/20090923/oracle-password-function.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

