<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Peerdba&#039;s Blog</title>
	<atom:link href="http://peerdba.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://peerdba.wordpress.com</link>
	<description>Just another WordPress.com site</description>
	<lastBuildDate>Mon, 09 Jan 2012 10:27:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='peerdba.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Peerdba&#039;s Blog</title>
		<link>http://peerdba.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://peerdba.wordpress.com/osd.xml" title="Peerdba&#039;s Blog" />
	<atom:link rel='hub' href='http://peerdba.wordpress.com/?pushpress=hub'/>
		<item>
		<title>funny tnsnames.ora entry story-SID or service_name?</title>
		<link>http://peerdba.wordpress.com/2011/02/01/funny-tnsnames-ora-entry-story-sid-or-service_name/</link>
		<comments>http://peerdba.wordpress.com/2011/02/01/funny-tnsnames-ora-entry-story-sid-or-service_name/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 06:53:31 +0000</pubDate>
		<dc:creator>cooldba-Knowledge is Power,spread it.</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[ORA-12154]]></category>
		<category><![CDATA[service_name issue.]]></category>
		<category><![CDATA[SID]]></category>
		<category><![CDATA[tnsnames.ora]]></category>

		<guid isPermaLink="false">http://peerdba.wordpress.com/?p=80</guid>
		<description><![CDATA[Really funny ========= Issue: I simply waste few hours.. My tnsnames.ora entry not able to connect to requested DB ..shoots ORA-12154 error that is TNS:could not resolve service name .. On all the blogs they generally say the same old &#8230; <a href="http://peerdba.wordpress.com/2011/02/01/funny-tnsnames-ora-entry-story-sid-or-service_name/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=80&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Really  funny<br />
=========<br />
Issue:<br />
I simply waste few hours.. My tnsnames.ora entry not able to connect to  requested DB ..shoots ORA-12154  error that is TNS:could not resolve  service name  .. On all the blogs they generally say the same old  explanation.</p>
<p>Solution :<br />
Just change from SID to SERVICE_NAME (Thanks to my colleague for his past experience).<br />
examples:<br />
I changed from<br />
(SID = cwsapp_dev) to (SERVICE_NAME = cwsapp_dev) ..thats it.</p>
<p>–Manzoor A.Mirza.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/peerdba.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/peerdba.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/peerdba.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/peerdba.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/peerdba.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/peerdba.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/peerdba.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/peerdba.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/peerdba.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/peerdba.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/peerdba.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/peerdba.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/peerdba.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/peerdba.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=80&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://peerdba.wordpress.com/2011/02/01/funny-tnsnames-ora-entry-story-sid-or-service_name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c0afe106784293ea343e7b91e6ab9003?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">peerdba</media:title>
		</media:content>
	</item>
		<item>
		<title>Peer not authenticated for RAC- Grid Control Agent Installation Bug.</title>
		<link>http://peerdba.wordpress.com/2011/01/30/peer-not-authenticated-for-rac-grid-control-agent-installation-bug/</link>
		<comments>http://peerdba.wordpress.com/2011/01/30/peer-not-authenticated-for-rac-grid-control-agent-installation-bug/#comments</comments>
		<pubDate>Sun, 30 Jan 2011 06:55:15 +0000</pubDate>
		<dc:creator>cooldba-Knowledge is Power,spread it.</dc:creator>
				<category><![CDATA[GRID Control]]></category>
		<category><![CDATA[Agent Installation Bug]]></category>
		<category><![CDATA[Peer not authenticated]]></category>
		<category><![CDATA[SSLPeerUnverifiedException]]></category>

		<guid isPermaLink="false">http://peerdba.wordpress.com/?p=69</guid>
		<description><![CDATA[I just want to Re Install  Grid Control Agent as to upgrade  to 10.2.0.5 (FYI- No patch available to upgrade agent from 10.2.0.4 to 10.2.0.5 ). Error:  javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated for RAC on HPUX.  (Its a bug in Grid &#8230; <a href="http://peerdba.wordpress.com/2011/01/30/peer-not-authenticated-for-rac-grid-control-agent-installation-bug/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=69&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I just want to Re Install  Grid Control Agent as to upgrade  to 10.2.0.5 (FYI- No patch available to upgrade agent from 10.2.0.4 to 10.2.0.5 ).</p>
<p>Error:  javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated for RAC on HPUX.  (Its a bug in Grid Control agent Installer..)</p>
<p>Cause:During the installation of Agent software we entered wrong password for Grid repository Database (Management server for sysman). Expected behavior,  installer should complain for wrong password, but its take that password and complain after all the installation completed as mention error.<br />
Solution :<br />
step 1    :     first check whether agent is secure or unsecure.<br />
# emctl secure(or unsecure) agent;<br />
#emctl secure agent [registration password];<br />
&#8211; When you try to secure agent as mention above<br />
It will ask for sysman password (Please enter correct password here..).</p>
<p>Step 2    :    Open Oracle Enterprise Manager (Grid Control) &gt; select Databases tab<br />
&gt; select Name of the effected Database name  &gt; click on Configure &gt; follow  the                      steps as guided by GUI. (Note: GUI ask for DBSNMP password during configuration.)  Wait for few minutes Grid discovered your DB again..</p>
<p>&#8211;Thanks and Regards</p>
<p>Manzoor A. Mirza.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/peerdba.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/peerdba.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/peerdba.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/peerdba.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/peerdba.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/peerdba.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/peerdba.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/peerdba.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/peerdba.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/peerdba.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/peerdba.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/peerdba.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/peerdba.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/peerdba.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=69&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://peerdba.wordpress.com/2011/01/30/peer-not-authenticated-for-rac-grid-control-agent-installation-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c0afe106784293ea343e7b91e6ab9003?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">peerdba</media:title>
		</media:content>
	</item>
		<item>
		<title>Points to Ponder</title>
		<link>http://peerdba.wordpress.com/2011/01/19/points-to-ponder/</link>
		<comments>http://peerdba.wordpress.com/2011/01/19/points-to-ponder/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 08:45:20 +0000</pubDate>
		<dc:creator>cooldba-Knowledge is Power,spread it.</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[good sayings]]></category>
		<category><![CDATA[ponder]]></category>
		<category><![CDATA[Proverbs]]></category>
		<category><![CDATA[think]]></category>

		<guid isPermaLink="false">http://peerdba.wordpress.com/?p=46</guid>
		<description><![CDATA[Points to ponder &#8212;&#8212;&#8212;&#8212;&#8211; Don&#8217;t compare yourself with any one in this world. If you compare, you are insulting yourself. Don&#8217;t complain about others; change yourself if you want peace. It is easier to protect your feet with slippers than &#8230; <a href="http://peerdba.wordpress.com/2011/01/19/points-to-ponder/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=46&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Points to ponder<br />
&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Don&#8217;t compare yourself with any one in this world. If you compare, you are insulting yourself.<br />
 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Don&#8217;t complain about others; change yourself if you want peace.<br />
 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  It is easier to protect your feet with slippers than to cover the earth with carpet.<br />
 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  No one can go back and change a bad beginning, but anyone can start now and create a successful ending.<br />
 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Easy is to judge the mistakes of others. Difficult is to recognize our own mistakes.<br />
 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  If a problem can be solved, no need to worry about it. If a problem cannot be solved what is the use of worrying?<br />
 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8220;Changing The Face&#8221; can change nothing. But &#8220;Facing the Change&#8221; Can change everything.<br />
 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Be bold when you loose and be calm when you win.<br />
 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  No one will manufacture a lock without a key. Similarly ALLAH won&#8217;t give problems without solutions.<br />
 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Every successful person has a painful story. Every painful story has a successful ending. Accept the pain and get ready for success.<br />
 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Heated gold becomes ornament. Beaten copper becomes wires. So the more pain your get in life you become more valuable.<br />
 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Mistakes are painful when they happen. But year’s later collection of mistakes is called experience, which leads to success.<br />
 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Life laughs at you when you are unhappy.<br />
 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Life smiles at you when you are happy.<br />
 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Life salutes you when you make others happy.<br />
 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  If you miss an opportunity don&#8217;t fill the eyes with tears. It will hide another better opportunity in front of you.</p>
<p>&nbsp;</p>
<p>&#8211;Manzoor A.Mirza</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/peerdba.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/peerdba.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/peerdba.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/peerdba.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/peerdba.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/peerdba.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/peerdba.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/peerdba.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/peerdba.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/peerdba.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/peerdba.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/peerdba.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/peerdba.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/peerdba.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=46&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://peerdba.wordpress.com/2011/01/19/points-to-ponder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c0afe106784293ea343e7b91e6ab9003?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">peerdba</media:title>
		</media:content>
	</item>
		<item>
		<title>killing expdp/impdp job.</title>
		<link>http://peerdba.wordpress.com/2011/01/13/killing-expdpimpdp-job/</link>
		<comments>http://peerdba.wordpress.com/2011/01/13/killing-expdpimpdp-job/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 18:36:35 +0000</pubDate>
		<dc:creator>cooldba-Knowledge is Power,spread it.</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[expdp/impdp killing job.]]></category>

		<guid isPermaLink="false">http://peerdba.wordpress.com/?p=61</guid>
		<description><![CDATA[killing expdb/impdb job. some time it was really necessary  to terminate  a expdb/impdp jobs because of any valid reason which impact database. here are the steps for quick references, how can we terminate the expdp/impdp job,which you really wants to &#8230; <a href="http://peerdba.wordpress.com/2011/01/13/killing-expdpimpdp-job/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=61&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>killing expdb/impdb job.</p>
<p>some time it was really necessary  to terminate  a expdb/impdp jobs because of any valid reason which impact database.</p>
<p>here are the steps for quick references, how can we terminate the expdp/impdp job,which you really wants to terminate.</p>
<p>step 1:  take the job_name from below views<br />
select * from USER_DATAPUMP_JOBS;<br />
select * from DBA_DATAPUMP_SESSIONS;</p>
<p>step 2: try to attach to that job_name which you find out in step1.</p>
<p>oracle@aa: /u02/backups # impdp system/***** attach=test_DUMP11(job_name)</p>
<p>step 3:  stop job immediate</p>
<p>impdp&gt; STOP_JOB=IMMEDIATE<br />
impdp&gt;kill_job</p>
<p>&#8211;Manzoor A.Mirza.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/peerdba.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/peerdba.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/peerdba.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/peerdba.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/peerdba.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/peerdba.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/peerdba.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/peerdba.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/peerdba.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/peerdba.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/peerdba.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/peerdba.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/peerdba.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/peerdba.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=61&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://peerdba.wordpress.com/2011/01/13/killing-expdpimpdp-job/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c0afe106784293ea343e7b91e6ab9003?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">peerdba</media:title>
		</media:content>
	</item>
		<item>
		<title>INSTR AND SUBSTR-PL/SQL</title>
		<link>http://peerdba.wordpress.com/2011/01/12/instr-and-substr-plsql/</link>
		<comments>http://peerdba.wordpress.com/2011/01/12/instr-and-substr-plsql/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 08:21:16 +0000</pubDate>
		<dc:creator>cooldba-Knowledge is Power,spread it.</dc:creator>
				<category><![CDATA[SQL-PL/SQL]]></category>
		<category><![CDATA[PL/SQL .]]></category>
		<category><![CDATA[SUBSTR]]></category>
		<category><![CDATA[SYNTAX INSTR]]></category>

		<guid isPermaLink="false">http://peerdba.wordpress.com/?p=56</guid>
		<description><![CDATA[&#8211;INSTR AND SUBSTR In Oracle/PLSQL, the instr function returns the location of a substring in a string. The syntax for the instr Oracle function is: instr( string1, string2 [, start_position [, nth_appearance ] ] ) string1 is the string to &#8230; <a href="http://peerdba.wordpress.com/2011/01/12/instr-and-substr-plsql/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=56&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8211;INSTR AND SUBSTR</p>
<p>In Oracle/PLSQL, the instr function returns the location of a substring in a string.</p>
<p>The syntax for the instr Oracle function is:</p>
<div>
<p>instr( string1, string2 [, start_position [, nth_appearance ] ] )</p>
<p>string1 is the string to search AND string2 is the substring to search for in string1.</p>
<p>start_position is the position in string1 where the search will start. This argument is optional. If omitted, it defaults to 1.<br />
The first position in the string is 1. If the start_position is negative, the function counts back start_position number of characters from the end of string1 and then searches towards the beginning of string1.</p>
<p>nth_appearance is the nth appearance of string2. This is optional. If omitted, it defaults to 1.</p>
<p>In Oracle/PLSQL, the substr functions allows you to extract a substring from a string.</p>
<p>The syntax for the substr function is:</p>
<p>substr( string, start_position, [ length ] )</p>
<p>string is the source string.</p>
<p>start_position is the position for extraction. The first position in the string is always 1.</p>
<p>length is optional. It is the number of characters to extract. If  this parameter is omitted, substr will return the entire string.</p>
<p>–Manzoor A.Mirza.</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/peerdba.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/peerdba.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/peerdba.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/peerdba.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/peerdba.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/peerdba.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/peerdba.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/peerdba.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/peerdba.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/peerdba.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/peerdba.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/peerdba.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/peerdba.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/peerdba.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=56&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://peerdba.wordpress.com/2011/01/12/instr-and-substr-plsql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c0afe106784293ea343e7b91e6ab9003?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">peerdba</media:title>
		</media:content>
	</item>
		<item>
		<title>create new oraInst.loc file for client on existing DB machine.</title>
		<link>http://peerdba.wordpress.com/2011/01/11/create-new-orainst-loc-file-for-client-on-existing-db-machine/</link>
		<comments>http://peerdba.wordpress.com/2011/01/11/create-new-orainst-loc-file-for-client-on-existing-db-machine/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 08:40:55 +0000</pubDate>
		<dc:creator>cooldba-Knowledge is Power,spread it.</dc:creator>
				<category><![CDATA[Installation]]></category>
		<category><![CDATA[new oraInst.loc for client existing database]]></category>

		<guid isPermaLink="false">http://peerdba.wordpress.com/?p=50</guid>
		<description><![CDATA[&#8211;Create new oraInst.loc file.. Issue : when we try to install client on HP-UX machine where a database is already installed. Installer try to check for oraInventory file to overwrite its registry, which is not accepted. Solution : we need &#8230; <a href="http://peerdba.wordpress.com/2011/01/11/create-new-orainst-loc-file-for-client-on-existing-db-machine/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=50&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8211;Create new oraInst.loc file..</p>
<p>Issue : when we try to install client on HP-UX machine where a database is already installed. Installer try to check for oraInventory file to overwrite its registry, which is not accepted.</p>
<p>Solution : we need to create separate oracleInst. inventory file as metnion below for client.</p>
<p>step 1: create the new file oraInst.loc under &lt;client_home_location&gt;/oraInventory,     which contain<br />
bobject@ebizwily: &lt;client_home_location&gt;/oraInventory # more oraInst.loc</p>
<p>inventory_loc=&lt;client_home_location&gt;/oraInventory<br />
inst_group=users</p>
<p>step 2: execute the installer by assigning the path as below</p>
<p>./runInstaller -invPtrLoc &lt;client_home_location&gt;/oraInventory/oraInst.loc ORACLE_HOSTNAME=ebizwily</p>
<p>&#8211;Manzoor A.Mirza</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/peerdba.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/peerdba.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/peerdba.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/peerdba.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/peerdba.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/peerdba.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/peerdba.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/peerdba.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/peerdba.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/peerdba.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/peerdba.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/peerdba.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/peerdba.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/peerdba.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=50&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://peerdba.wordpress.com/2011/01/11/create-new-orainst-loc-file-for-client-on-existing-db-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c0afe106784293ea343e7b91e6ab9003?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">peerdba</media:title>
		</media:content>
	</item>
		<item>
		<title>Issue while configuring OracleText component</title>
		<link>http://peerdba.wordpress.com/2011/01/10/issue-while-configuring-oracletext-component/</link>
		<comments>http://peerdba.wordpress.com/2011/01/10/issue-while-configuring-oracletext-component/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 10:02:00 +0000</pubDate>
		<dc:creator>cooldba-Knowledge is Power,spread it.</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[gird control.]]></category>
		<category><![CDATA[Issue]]></category>
		<category><![CDATA[OracleText]]></category>

		<guid isPermaLink="false">http://peerdba.wordpress.com/?p=30</guid>
		<description><![CDATA[&#8211;while configure oracleText component on oracle 10g R2, as requested by the developer -.IP and host name of some of mahcine on grid control is changes to default or something else(It look like a bug in grid control for oracle &#8230; <a href="http://peerdba.wordpress.com/2011/01/10/issue-while-configuring-oracletext-component/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=30&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8211;while configure oracleText component on oracle 10g R2, as requested by the developer -.IP and host name of some of mahcine on grid control is changes to default or something else(It look like a bug in grid control for oracle 10g R2 ).</p>
<p>solution:</p>
<p>We need to check and update the IPs or Hostname or port for specific down listener, and restart to it.</p>
<p>&#8211;what is Oracle Text:</p>
<p>Oracle Text enables text queries through SQL and PL/SQL from most Oracle interfaces. By installing Oracle Text with an Oracle Database server, client tools such as SQL*Plus, Oracle Forms, and Pro*C/C++ are able to retrieve and manipulate text in Oracle Database.</p>
<p>Oracle Text manages textual data in concert with traditional data types in Oracle Database. When text is inserted, updated, or deleted, Oracle Text automatically manages the change.</p>
<p>Configure ORACLE TEXT using GUI(dbca)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>OPEN Xmanager window<br />
&gt; open terminal &gt;&gt;check for xclock &gt;<br />
(set oracle_sid where you want to work );<br />
&gt;run dbca utility &gt;<br />
&gt;then follow GUI utility and select Oracle text.&gt;</p>
<p>FYI..</p>
<p>Configuring Oracle Text Using Command-Line Tools<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>&#8211;Manually configuring Oracle Database for use with Oracle Text consists of creating a tablespace for Oracle Text data dictionary tables and then creating username ctxsys and Oracle Text data dictionary tables.<br />
1.Start SQL*Plus:<br />
oracle@eippd : sqlplus /NOLOG</p>
<p>2.Connect to Oracle Database with account SYSDBA:<br />
SQL: CONNECT / AS SYSDBA</p>
<p>3.Create a tablespace for Oracle Text data dictionary tables:<br />
SQL&gt; CREATE TABLESPACE tablespace_name DATAFILE &#8216;ORACLE_BASE\oradata\db_name\drsys01.dbf&#8217; SIZE 80m;</p>
<p>4.Connect AS SYSDBA:<br />
SQL&gt; CONNECT USERNAME/PASSWORD AS SYSDBA</p>
<p>5.Run script dr0csys.sql to create username ctxsys:<br />
SQL&gt; @ORACLE_BASE\ORACLE_HOME\ctx\admin \dr0csys.sql password default_tablespace_name temporary_tablespace_name;</p>
<p>where:<br />
*password is the password that you intend to use  for username ctxsys.<br />
* default_tablespace_name is the default tablespace for Oracle Text data dictionary tables. Set the default tablespace to the value of tablespace_name in step 3.<br />
*temporary_tablespace_name is the temporary tablespace for Oracle Text data dictionary tables. Set the temporary tablespace to the value of tablespace_name in step 3.<br />
6.Connect as ctxsys:<br />
SQL&gt; CONNECT ctxsys/password<br />
7. Run script dr0inst.sql to create and populate Oracle Text data dictionary tables:<br />
SQL&gt; @ORACLE_BASE\ORACLE_HOME\bin\dr0inst.sql;</p>
<p>8.Run the language-specific default script, where xx is  the language code (for example, us):<br />
SQL&gt; @ORACLE_BASE\ORACLE_HOME\ctx\admin\defaults\drdefxx.sql;</p>
<p>9.Exit SQL*Plus:<br />
SQL&gt; EXIT</p>
<p>&#8211;Manzoor A.Mirza</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/peerdba.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/peerdba.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/peerdba.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/peerdba.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/peerdba.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/peerdba.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/peerdba.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/peerdba.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/peerdba.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/peerdba.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/peerdba.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/peerdba.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/peerdba.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/peerdba.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=30&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://peerdba.wordpress.com/2011/01/10/issue-while-configuring-oracletext-component/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c0afe106784293ea343e7b91e6ab9003?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">peerdba</media:title>
		</media:content>
	</item>
		<item>
		<title>Fine Grained Auditing-FGA</title>
		<link>http://peerdba.wordpress.com/2011/01/09/fine-grained-auditing-fga/</link>
		<comments>http://peerdba.wordpress.com/2011/01/09/fine-grained-auditing-fga/#comments</comments>
		<pubDate>Sun, 09 Jan 2011 08:56:01 +0000</pubDate>
		<dc:creator>cooldba-Knowledge is Power,spread it.</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[FGA]]></category>
		<category><![CDATA[Fine Grained Auditing]]></category>

		<guid isPermaLink="false">http://peerdba.wordpress.com/?p=40</guid>
		<description><![CDATA[FGA -Fine Grained Auditing. I put FGA audit to know which tables are not used by application or developers from very long time. Here below are the steps: &#8211;create unused_table and  a policy over this table. create table unused_tables as &#8230; <a href="http://peerdba.wordpress.com/2011/01/09/fine-grained-auditing-fga/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=40&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>FGA -Fine Grained Auditing.</p>
<p>I put FGA audit to know which tables are not used by application or developers from very long time. Here below are the steps:</p>
<p>&#8211;create unused_table and  a policy over this table.</p>
<p>create table unused_tables<br />
as select object_name from dba_objects<br />
where owner =&#8217;APP_USER&#8217;<br />
and object_type=&#8217;TABLE&#8217;<br />
and object_name not in ( select table_name from sys.dba_tab_modifications where table_owner=&#8217;APP_USER&#8217;);</p>
<p>&#8211; create policy on all unused table.</p>
<p>select &#8216;exec dbms_fga.add_policy(object_schema =&gt; &#8221;APP_USER&#8221;, object_name =&gt; &#8221;&#8217; || object_name || &#8221;&#8217;, policy_name =&gt; &#8221;&#8217; || object_name || &#8216;_P&#8221;);&#8217;<br />
from unused_tables;</p>
<p>NOTE:With the above policy, only select statement can be audited if we  required more DMLs auditing then  need to add condition to policy.</p>
<p>examples:</p>
<p>exec dbms_fga.add_policy(object_schema =&gt; &#8216;APP_USER&#8217;, object_name =&gt; &#8216;ACC_PAYSLIP_NEW&#8217;, policy_name =&gt; &#8216;ACC_PAYSLIP_NEW_P&#8217;);</p>
<p>exec dbms_fga.add_policy(<br />
object_schema=&gt;&#8217;UWCLASS&#8217;,<br />
object_name=&gt; &#8216;FGA_DEMO&#8217;,<br />
policy_name=&gt; &#8216;UW Audit&#8217;,<br />
audit_condition=&gt; &#8216;status = &#8221;A&#8221;&#8217;,<br />
audit_column=&gt; &#8216;last_name, salary&#8217;,<br />
handler_schema =&gt; &#8216;UWCLASS&#8217;,<br />
handler_module=&gt; &#8216;FGA_HANDLER&#8217;,<br />
enable =&gt; TRUE,<br />
statement_types =&gt; &#8216;INSERT, UPDATE&#8217;<br />
audit_trail =&gt; DBMS_FGA.DB+EXTENDED,<br />
audit_column_opts =&gt; dbms_fga.all_columns);</p>
<p>&#8211;dropping the policy from all unused _table.</p>
<p>select &#8216;exec dbms_fga.drop_policy(object_schema =&gt; &#8221;APP_USER&#8221;, object_name =&gt; &#8221;&#8217; || object_name || &#8221;&#8217;, policy_name =&gt; &#8221;&#8217; || object_name || &#8216;_P&#8221;);&#8217;<br />
from unused_tables;</p>
<p>&#8211;syntax for enable and disable of policy &#8211;take below select statements and execute.</p>
<p>select &#8216;begin dbms_fga.disable_policy(object_schema =&gt; &#8221;APP_USER&#8221;, object_name =&gt; &#8221;&#8217; || object_name || &#8221;&#8217;, policy_name =&gt; &#8221;&#8217; || policy_name ||&#8221;&#8217;);end; /&#8217;<br />
from dba_fga_audit_trail where db_user not in (&#8216;DBA_USER&#8217;);</p>
<p>&#8211;important VIEWS related to FGA.</p>
<p>select count(*)  from sys.fga_log$ where dbuid not in (&#8216;USER1&#8242;,&#8217;USER2&#8242;);<br />
select dbuid, count(*)  from sys.fga_log$  group by dbuid  where dbuid  not in (&#8216;USER1&#8242;,&#8217;USER2&#8242;);<br />
select * from dba_audit_policies;<br />
select * from dba_audit_policies  where  enabled=&#8217;NO&#8217;;<br />
select * from dba_audit_policies  where  enabled=&#8217;YES&#8217;;<br />
select * from dba_fga_audit_trail where db_user not in (&#8216;USER1&#8242;,&#8217;USER2&#8242;);<br />
select distinct object_name, policy_name from dba_fga_audit_trail where db_user not in (&#8216;USER1&#8242;,&#8217;USER2&#8242;);<br />
SELECT  policy_name, object_name, statement_type, os_user, db_user FROM dba_fga_audit_trail;<br />
select * from dba_fga_audit_trail where db_user not in (&#8216;USER1&#8242;,&#8217;USER2&#8242;);</p>
<p>NOTE :USER1 and USER2 are generally DBA users.</p>
<p>&#8211;Manzoor A.Mirza</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/peerdba.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/peerdba.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/peerdba.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/peerdba.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/peerdba.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/peerdba.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/peerdba.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/peerdba.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/peerdba.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/peerdba.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/peerdba.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/peerdba.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/peerdba.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/peerdba.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=40&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://peerdba.wordpress.com/2011/01/09/fine-grained-auditing-fga/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c0afe106784293ea343e7b91e6ab9003?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">peerdba</media:title>
		</media:content>
	</item>
		<item>
		<title>Virtual Private Database (VPD) or FGAC or Row Level Security-setup.</title>
		<link>http://peerdba.wordpress.com/2011/01/09/virtual-private-database-vpd-or-fgac-or-row-level-security-setup/</link>
		<comments>http://peerdba.wordpress.com/2011/01/09/virtual-private-database-vpd-or-fgac-or-row-level-security-setup/#comments</comments>
		<pubDate>Sun, 09 Jan 2011 08:03:06 +0000</pubDate>
		<dc:creator>cooldba-Knowledge is Power,spread it.</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[FGAC]]></category>
		<category><![CDATA[Row Level security]]></category>
		<category><![CDATA[VPD]]></category>

		<guid isPermaLink="false">http://peerdba.wordpress.com/?p=25</guid>
		<description><![CDATA[====VPD===== virtual private databases, or VPD, which as also known as fine-grained access control(FGAC). It is also commonly known as Row Level Security . step 1 : create a function which return true or false. /*function which return true or &#8230; <a href="http://peerdba.wordpress.com/2011/01/09/virtual-private-database-vpd-or-fgac-or-row-level-security-setup/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=25&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>====VPD=====</p>
<p>virtual private databases, or VPD, which as also known as fine-grained access control(FGAC). It is also commonly known as Row Level Security .</p>
<p>step 1 : create a function which return true or false.</p>
<p>/*function which return true or false , here always return false*/</p>
<p>CREATE OR REPLACE<br />
FUNCTION vpd_col_mask (obj_owner IN VARCHAR2, obj_name IN VARCHAR2)<br />
RETURN VARCHAR2<br />
AS<br />
BEGIN<br />
RETURN &#8216;rowid = &#8221;0&#8221;&#8217;;<br />
END vpd_col_mask;<br />
/</p>
<p>step 2:<br />
/*DBMS that add the policy for specific user&#8217;s object coluumns */</p>
<p>BEGIN<br />
DBMS_RLS.ADD_POLICY(object_schema=&gt;&#8217;YYYY&#8217;,<br />
object_name=&gt;&#8217;PS_EXTRA_INFO&#8217;,<br />
policy_name=&gt;&#8217;PS_EXTRA_INFO_policy&#8217;,<br />
function_schema=&gt;&#8217;SYSTEM&#8217;,<br />
policy_function=&gt;&#8217;vpd_col_mask&#8217;,<br />
sec_relevant_cols=&gt;&#8217;COL_NAME&#8217;,<br />
policy_type =&gt; DBMS_RLS.SHARED_STATIC,<br />
sec_relevant_cols_opt=&gt;dbms_rls.ALL_ROWS);<br />
END;<br />
/</p>
<p>/* dbms for dropping policy */</p>
<p>begin<br />
dbms_rls.drop_policy(object_schema =&gt; &#8216;YYYY&#8217;,<br />
object_name =&gt; &#8216;PS_EXTRA_INFO&#8217;,<br />
policy_name=&gt;&#8217;PS_EXTRA_INFO_policy&#8217;);<br />
end;<br />
/</p>
<p>/* grant and revoke the policy to/from individuals*/</p>
<p>grant EXEMPT ACCESS POLICY to username;<br />
revoke EXEMPT ACCESS POLICY from  username;</p>
<p>important VIEWS related to VPD:</p>
<p>select * from user_policies;<br />
select * from dba_policies;<br />
select * from v$vpd_policy;<br />
select * from DBA_POLICY_CONTEXTS;<br />
select * from  eip.STC_PS_EXTRA_INFO</p>
<p>&#8211;Manzoor A.Mirza</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/peerdba.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/peerdba.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/peerdba.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/peerdba.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/peerdba.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/peerdba.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/peerdba.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/peerdba.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/peerdba.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/peerdba.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/peerdba.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/peerdba.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/peerdba.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/peerdba.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=25&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://peerdba.wordpress.com/2011/01/09/virtual-private-database-vpd-or-fgac-or-row-level-security-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c0afe106784293ea343e7b91e6ab9003?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">peerdba</media:title>
		</media:content>
	</item>
		<item>
		<title>Issue while adding disks to RAC-ASM</title>
		<link>http://peerdba.wordpress.com/2011/01/05/issue-while-adding-disks-to-rac-asm/</link>
		<comments>http://peerdba.wordpress.com/2011/01/05/issue-while-adding-disks-to-rac-asm/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 08:39:27 +0000</pubDate>
		<dc:creator>cooldba-Knowledge is Power,spread it.</dc:creator>
				<category><![CDATA[ASM]]></category>
		<category><![CDATA[adding disks]]></category>
		<category><![CDATA[Issue]]></category>
		<category><![CDATA[RAC-ASM]]></category>

		<guid isPermaLink="false">http://peerdba.wordpress.com/?p=23</guid>
		<description><![CDATA[Issue while adding disks to RAC-ASM.. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- when we try to add disks to ASM we found that &#8216;/dev/rdsk/c2t1d0&#8242; , &#8216;/dev/rdsk/c2t1d1&#8242; and &#8216;/dev/rdsk/c2t1d1&#8242; etc doesnot have entry in init+ASM1.ora file. so we try to add that new entry in init+ASM1.ora &#8230; <a href="http://peerdba.wordpress.com/2011/01/05/issue-while-adding-disks-to-rac-asm/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=23&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Issue while adding disks to RAC-ASM..<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>when we try to add disks to ASM we found that &#8216;/dev/rdsk/c2t1d0&#8242; , &#8216;/dev/rdsk/c2t1d1&#8242; and &#8216;/dev/rdsk/c2t1d1&#8242;  etc doesnot have entry in init+ASM1.ora file. so we try to add that new entry in init+ASM1.ora file.</p>
<p>updating asm_diskstring parameter for new entry on node1 using dbca ,ignoring other node(Its a mistake). As soon we update the parameter on node1, other node2 went down because of difference in init file-thanks for RAC which prevent us from down time.<br />
we can see new disks entry on node1.</p>
<p>solution :<br />
&#8212;&#8212;&#8211;</p>
<p>As we can see new disks entry on node1.<br />
(that need to be drop manully so as to be consistent on both nodes, mount conflicting diskgroup and then bounced ASM instance &#8211; which is to be save side.)</p>
<p>(Astonishing part for me: dbca update init+ASM1.ora file also, leaving other node init+ASM2 file same as old).<br />
FYI to note..<br />
disks permission  :<br />
If direct path have permission (oracle:oinstal) then alternative path must have(bin:sys) or viceversa.  be carefull&#8230;.</p>
<p>correct way for adding entry in init+ASM1.ora file.</p>
<p>since asm_diskstring parameter is dynamic, execute below statement on all the nodes one by one.</p>
<p>SQL&gt;alter system set asm_diskstring =&#8217;/dev/rdsk/c6*&#8217;,'/dev/rdsk/c2t1*&#8217;,'/dev/rdsk/c9*&#8217;,'/dev/rdsk/c3*&#8217;</p>
<p>FYI,ASM don&#8217;t have spfile, it points to pfile.<br />
location : init+ASM1.ora -&gt; /u01/app/oracle/product/10gr2/admin/+ASM/pfile/init.ora.</p>
<p>then, update manually init+ASM1.ora file to keep ready for future bounce DB to take its new effects.Otherwise when you bounce DB, it read from old init+ASM1.ora file (reads old values) and  complain.</p>
<p>&#8211;Manzoor A.Mirza.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/peerdba.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/peerdba.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/peerdba.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/peerdba.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/peerdba.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/peerdba.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/peerdba.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/peerdba.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/peerdba.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/peerdba.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/peerdba.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/peerdba.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/peerdba.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/peerdba.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=peerdba.wordpress.com&amp;blog=17471771&amp;post=23&amp;subd=peerdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://peerdba.wordpress.com/2011/01/05/issue-while-adding-disks-to-rac-asm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c0afe106784293ea343e7b91e6ab9003?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">peerdba</media:title>
		</media:content>
	</item>
	</channel>
</rss>
