<?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"
	>

<channel>
	<title>OracleBrains.Com</title>
	<atom:link href="http://www.oraclebrains.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oraclebrains.com</link>
	<description>Oracle Blog</description>
	<pubDate>Fri, 30 Jul 2010 15:05:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Upgrading Forms 10g R1 to Oracle 11g R1 - Day 4</title>
		<link>http://www.oraclebrains.com/2010/07/upgrading-forms-10g-r1-to-oracle-11g-r1-day-4/</link>
		<comments>http://www.oraclebrains.com/2010/07/upgrading-forms-10g-r1-to-oracle-11g-r1-day-4/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 15:01:26 +0000</pubDate>
		<dc:creator>Rajender Singh</dc:creator>
		
		<category><![CDATA[Oracle Forms]]></category>

		<category><![CDATA[oracle forms 11g]]></category>

		<category><![CDATA[weblogic]]></category>

		<guid isPermaLink="false">http://www.oraclebrains.com/?p=279</guid>
		<description><![CDATA[Today while restarting my WLS_FORMS server, I came across a error &#8220;The file store &#8220;WLS_DIAGNOSTICS&#8221; could not be opened because [...]]]></description>
			<content:encoded><![CDATA[<p>Today while restarting my WLS_FORMS server, I came across a error &#8220;<strong>The file store &#8220;WLS_DIAGNOSTICS&#8221; could not be opened because it contained a file with the invalid version 1. A file of version 2 was expected.</strong>&#8221;</p>
<p>Part of Error Log was as follows:<br />
####      &lt;&gt; &lt;&gt; &lt;&gt; &lt;1280499317750&gt;</p>
<p>There are 1 nested errors:</p>
<p>weblogic.store.PersistentStoreException: [<strong>Store:280073</strong>]The <strong>file store &#8220;WLS_DIAGNOSTICS&#8221;</strong> could not be opened because it contained a file with the invalid version 1. A file of version 2 was expected.<br />
at weblogic.store.io.file.FileStoreIO.open(<strong>FileStoreIO.java</strong>:107)<br />
at weblogic.store.internal.PersistentStoreImpl.recoverStoreConnections(PersistentStoreImpl.java:413)<br />
at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:404)<br />
at weblogic.store.xa.PersistentStoreManagerXA.createFileStore(PersistentStoreManagerXA.java:120)<br />
at weblogic.diagnostics.archive.DiagnosticStoreRepository.getStore(DiagnosticStoreRepository.java:91)<br />
at weblogic.diagnostics.lifecycle.DiagnosticSystemService.start(DiagnosticSystemService.java:128)<br />
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)<br />
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)<br />
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)</p>
<p>&gt;<br />
####      &lt;&gt; &lt;&gt; &lt;&gt; &lt;1280499317953&gt;</p>
<p>After lot of searching and headbanging I came across following thread <strong>http://forums.oracle.com/forums/thread.jspa?threadID=684783</strong></p>
<p>I followed the advice of the user &#8220;<strong>user2696444</strong>&#8221; and did as follows:</p>
<p>Step 1. <strong>Shutdown Servers</strong> (including Weblogic Admin Server plus opmn components)</p>
<p>Step 2. Under <strong>DOMAIN HOME</strong> (in my case it was  D:\oracle\Middleware\user_projects\domains\ClassicDomain) I search for <strong>*.DAT</strong> and deleted those files with <strong>capital letters</strong> .DAT and <strong>not small letters</strong> .dat</p>
<p>Step 3. Under DOMAIN HOME then I <strong>search for *.lok</strong> and <strong>deleted all</strong> the files that I found.</p>
<p>Step 4. Then Started Admin Server plus all the other servers including <strong>opmn</strong> components.</p>
<p>that it, after that I could see my WLS_FORMS in green and up <img src='http://www.oraclebrains.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>

]]></content:encoded>
			<wfw:commentRss>http://www.oraclebrains.com/2010/07/upgrading-forms-10g-r1-to-oracle-11g-r1-day-4/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Oracle Portal</title>
		<link>http://www.oraclebrains.com/2010/07/oracle-portel/</link>
		<comments>http://www.oraclebrains.com/2010/07/oracle-portel/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 08:16:56 +0000</pubDate>
		<dc:creator>MAhmad</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.oraclebrains.com/?p=278</guid>
		<description><![CDATA[Hi Experts,
I&#8217;m planning to install Oracle Portal. My pc OS is windows Vista and has oracle10g installed.
Can anyone help tell [...]]]></description>
			<content:encoded><![CDATA[<p>Hi Experts,</p>
<p>I&#8217;m planning to install Oracle Portal. My pc OS is windows Vista and has oracle10g installed.</p>
<p>Can anyone help tell some information about the guidelines on how to install this software and other system requirements? Where I can find all the required software to download?</p>
<p>Please tell me software installations sequence and important steps.</p>
<p>Thanks so much for your kind instruction.</p>
<p>Regards<br />
M Ahmad</p>

]]></content:encoded>
			<wfw:commentRss>http://www.oraclebrains.com/2010/07/oracle-portel/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Oracle Application Express Release 4.0 is released :)</title>
		<link>http://www.oraclebrains.com/2010/06/oracle-application-express-release-40-is-released/</link>
		<comments>http://www.oraclebrains.com/2010/06/oracle-application-express-release-40-is-released/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 10:51:26 +0000</pubDate>
		<dc:creator>Rajender Singh</dc:creator>
		
		<category><![CDATA[Application Express]]></category>

		<guid isPermaLink="false">http://www.oraclebrains.com/?p=277</guid>
		<description><![CDATA[Oracle Application Express Release 4.0 was released on June 23, 2010 &#8230;but I got to know on train just now [...]]]></description>
			<content:encoded><![CDATA[<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: arial,helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #333333; font-family: Arial,sans-serif; line-height: 16px;">Oracle Application Express Release 4.0 was released on June 23, 2010 &#8230;but I got to know on train just now while going from Melbourn to Warrnambool..excited and getting eager to check it out..</span></span></p>
<p>Little slow on Oracle Forms 11g research&#8230;as busy with project of mine&#8230;.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.oraclebrains.com/2010/06/oracle-application-express-release-40-is-released/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Upgrading Forms 10g R1 to Oracle 11g R1 - Day 3</title>
		<link>http://www.oraclebrains.com/2010/06/upgrading-forms-10g-r1-to-oracle-11g-r1-day-3/</link>
		<comments>http://www.oraclebrains.com/2010/06/upgrading-forms-10g-r1-to-oracle-11g-r1-day-3/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 09:35:19 +0000</pubDate>
		<dc:creator>Rajender Singh</dc:creator>
		
		<category><![CDATA[Oracle Forms]]></category>

		<category><![CDATA[Oracle Reports]]></category>

		<guid isPermaLink="false">http://www.oraclebrains.com/?p=276</guid>
		<description><![CDATA[Still trying to optimize my installation for server and the developer machine&#8230;so will come with final steps later in my [...]]]></description>
			<content:encoded><![CDATA[<p>Still trying to optimize my installation for server and the developer machine&#8230;so will come with final steps later in my blog&#8230;</p>
<p>BTW while upgrading my PLL Libraries, I come across following problem.</p>
<p>I opened the forms builder, connect to the database and then I compiled my menus - No Problem</p>
<p>I<strong> open the PLL library suddenly form builder 11g crashed</strong>.. I couldn&#8217;t belive so try again and <strong>again it crash</strong>.</p>
<p>I went back to my forms 10g builder, convert the pll library to text format.</p>
<p>Then I convert this text file to PLL in forms 11g builder , although it showed some errors but still I got the output PLL.</p>
<p><strong>See the following screen-shots related to it.</strong></p>
<p>Assume I have already convert the PLL from binary to Text in same as I am converting the text to binary&#8230;</p>
<p>Now I am in Form Builder 11g and already connected the DB.</p>
<p><img src="http://www.oraclebrains.com/wp-content/uploads/2010/06/convertingpll1.GIF" alt="" /></p>
<p>Choose my Bizwiz.pld (text conversion of my Bizwiz.PLL)</p>
<p><img src="http://www.oraclebrains.com/wp-content/uploads/2010/06/convertingpll2.GIF" alt="" width="408" height="187" /></p>
<p><img src="http://www.oraclebrains.com/wp-content/uploads/2010/06/convertingpll3.GIF" alt="" /></p>
<p><img src="http://www.oraclebrains.com/wp-content/uploads/2010/06/convertingpll4.GIF" alt="" /></p>
<p> <img src="http://www.oraclebrains.com/wp-content/uploads/2010/06/convertingpll5.GIF" alt="" /></p>
<p><img src="http://www.oraclebrains.com/wp-content/uploads/2010/06/convertingpll6.GIF" alt="" /></p>
<p> </p>
<p>Result: Following is my output when I open my converted PLL file in Oracle Forms 11g</p>
<p><img src="http://www.oraclebrains.com/wp-content/uploads/2010/06/convertingpll7.GIF" alt="" /></p>
<p> </p>
<p>Following is output from my original pll when opened in Oracle Forms 11g</p>
<p><img src="http://www.oraclebrains.com/wp-content/uploads/2010/06/convertingpll8.GIF" alt="" /></p>
<p> </p>
<p>As we can see above, When I checked the PLL file coding, I saw many procedure missing and more than that one of the package having only half of the coding &#8230; <img src='http://www.oraclebrains.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> shocked..</p>
<p>So I manually need to copy those procedure and packages.. lucky our current PLL is not so huge so can survive&#8230;..</p>
<p>But not satisfy with what I did, I google about it and got to know that lot of people having same problem and overcome it in some what same way&#8230;</p>
<p>Opening it in Forms 10g and then again in Forms 11g, like I did converting it into text format in 10g and then again converting it back to binary in 11g..and so on&#8230;..</p>
<p>Then I check in metalink and got to know that this is a bug recognize by Oracle&#8230; so cannot do anything ourself and can only wait for the patch from Oracle&#8230; <img src='http://www.oraclebrains.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>But I got little bit pissed off .. that after <strong>original release of 11.1.1.0.0</strong>, oracle has <strong>two more release i.e. 11.1.1.2.0 and 11.1.1.3.0</strong> respectively, and <strong>still this bug exist</strong> <img src='http://www.oraclebrains.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p> </p>

]]></content:encoded>
			<wfw:commentRss>http://www.oraclebrains.com/2010/06/upgrading-forms-10g-r1-to-oracle-11g-r1-day-3/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Oracle error &#8220;Record updated by another user requery to see&#8221; like that</title>
		<link>http://www.oraclebrains.com/2010/06/oracle-error-record-updated-by-another-user-requery-to-see-like-that/</link>
		<comments>http://www.oraclebrains.com/2010/06/oracle-error-record-updated-by-another-user-requery-to-see-like-that/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 08:54:29 +0000</pubDate>
		<dc:creator>Dushyant Nayak</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.oraclebrains.com/?p=267</guid>
		<description><![CDATA[ 
Other day I was working on my forms application and I found some strange error “Record is update by [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;"> </span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;">Other day I was working on my forms application and I found some strange error “Record is update by another User, re query or clear to see…”</span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;">Usually when we two Users are trying to update same and no one has committed because of Oracle Lock above error is thrown to the forms application</span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;">But here in this case I was the only user to update this record.</span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;"> </span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;">After some investigation I found this error is genuine for my case as well but I could not find the concrete solution for that</span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;"> </span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;">Residing in one form (Contains database block) I pressed one button that was doing some calculation and inserting /updating into some tables</span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;">After process done I tried to update some field’s value on the current form and tried to save this record</span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;"> </span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;">System throws this error “Record is update by another User, re query or clear to see…”</span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;"> </span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;">The reason was, the moment I pressed process button on my form, this process updates the status field of the same record where I am currently </span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;">Residing in, but this record was not refreshed from the database and the moment as I told before I update some field from form and tried to save the record</span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;">It got locked and throws this error.</span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;"> </span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;">First try to reproduce this error and give me some solution to resolve this</span></p>
<p class="MsoNormal" style="0in 0in 0pt;">
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;">I tried with the setting property (block property) DML Returning value to &#8220;YES&#8221; but didn&#8217;t work.</span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;"> </span></p>
<p class="MsoNormal" style="0in 0in 0pt;"><span style="Arial;">Dushyant Nayak</span></p>

]]></content:encoded>
			<wfw:commentRss>http://www.oraclebrains.com/2010/06/oracle-error-record-updated-by-another-user-requery-to-see-like-that/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Upgrading Forms 10g R1 to Oracle 11g R1 - Day 2</title>
		<link>http://www.oraclebrains.com/2010/06/upgrading-forms-10g-r1-to-oracle-11g-r1-day-2/</link>
		<comments>http://www.oraclebrains.com/2010/06/upgrading-forms-10g-r1-to-oracle-11g-r1-day-2/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 11:46:12 +0000</pubDate>
		<dc:creator>Rajender Singh</dc:creator>
		
		<category><![CDATA[Oracle Forms]]></category>

		<category><![CDATA[Oracle Installation]]></category>

		<category><![CDATA[Oracle Reports]]></category>

		<guid isPermaLink="false">http://www.oraclebrains.com/?p=274</guid>
		<description><![CDATA[Went through following resources:
Using Oracle Enterprise Manager to Administer Forms Services
This one really open a door for me, it helped [...]]]></description>
			<content:encoded><![CDATA[<p>Went through following resources:</p>
<p><strong><a href="http://www.oracle.com/technology/sample_code/products/forms/11g/formsem/formsem.htm">Using Oracle Enterprise Manager to Administer Forms Services</a></strong></p>
<p>This one really open a door for me, it helped me understand how to deploy forms application in Forms 11g.</p>
<p>Although the configuration file need to be edited are same as Forms 10g, but in Forms 11g they reside in different directory structure.</p>
<p>It explain me where to keep jar files, location of each configuration file which need to be edited, how to edit through enterprise manager, how to edit environment file and so on&#8230;&#8230;</p>
<p><a href="http://download.oracle.com/docs/cd/E12839_01/install.1111/e12003.pdf"><strong></strong></a><strong><a href="http://download.oracle.com/docs/cd/E12839_01/install.1111/e12003.pdf">Quick Installation Guide for Oracle Portal, Forms, Reports and Discoverer</a></strong></p>
<p>This I feel is enough for me to plan my installation. Though I need to do some homework first.</p>
<p>Installation on developer PC&#8217;s I still need to sort out..how best to do the installation.</p>
<p>Logically its not difficult to sort out this problem, but what to do, even if I choose few component, oracle still do all sort of component installation under the sun <img src='http://www.oraclebrains.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Later I will come up with screen shot to show what I mean&#8230;</p>
<p><strong><a href="http://cn.forums.oracle.com/forums/thread.jspa?threadID=923709">Interesting thread </a></strong>in OTN Discussion Forum</p>
<p>Gave me some idea about challenges ahead!!!</p>

]]></content:encoded>
			<wfw:commentRss>http://www.oraclebrains.com/2010/06/upgrading-forms-10g-r1-to-oracle-11g-r1-day-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Upgrading Forms 10g R1 to Oracle 11g R1 - Day 1</title>
		<link>http://www.oraclebrains.com/2010/06/upgrading-forms-10g-r1-to-oracle-11g-r1-day-1/</link>
		<comments>http://www.oraclebrains.com/2010/06/upgrading-forms-10g-r1-to-oracle-11g-r1-day-1/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 12:01:29 +0000</pubDate>
		<dc:creator>Rajender Singh</dc:creator>
		
		<category><![CDATA[Oracle Forms]]></category>

		<category><![CDATA[Oracle Reports]]></category>

		<guid isPermaLink="false">http://www.oraclebrains.com/?p=272</guid>
		<description><![CDATA[Today I started to work on my next challenge to upgrade a customized ERP system from Oracle Forms 10g R1 [...]]]></description>
			<content:encoded><![CDATA[<p>Today I started to work on my next challenge to upgrade a customized ERP system from Oracle Forms 10g R1 to Oracle Forms 11g&#8230;</p>
<p>Till now I haven&#8217;t found any positive response regarding it.</p>
<p>In Oracle Forum everybody seem to be too much mixup, no body has any clear idea about it.</p>
<p>Each forum thread about Oracle Forms 11g Rel 1, seem to be full of doubts.</p>
<p>I mean after going through it, I got really in double mind..Should I go for Oracle Forms 11g or I should go to my client and tell them that Oracle has release a unstable product and my advise is to go for old OS i.e. Oracle Server 2003..</p>
<p>But then I did saw few answers and justifications from <a href="http://www.groundside.com/blog/content/GrantRonald/" target="_blank">Grant Ronald </a>, and felt even though there is problem lets go for it..</p>
<p>When Oracle 11g Form was release I did try installing it with my half heart, and felt its too much and too heavy.. Installation seem to going forever..</p>
<p>After so many months, Now I am required to be serious about it as one of my client is upgrading their infrastructure and will be installing Windows Server 2008.</p>
<p>So I have no choice but to go for Oracle 11g Rel 1(Oracle Application Server 10g does not support Windows Server 2008 officially, except with some tweaking at your own risk) &#8230;.</p>
<p>Any way every problem is a opportunity to do something new..</p>
<p>So in same spirit I am taking this situation&#8230;</p>
<p>Yesterday I try installation in my Laptop (with XP mode), and it failed in between <img src='http://www.oraclebrains.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Today I tried on my Server (Windows Server 2003), again it failed. After going through the error log I got to know that there was already  one service installed (left over from my last installation few months back, didn&#8217;t clean it ).</p>
<p>Any way I uninstall the Oracle Forms 11g installed components (including the Weblogic) and then removed this service.</p>
<p>Again First I run wls1031_win32.exe, to installed weblogic server and its component (Used default options).</p>
<p>Then I ran my Oracle Middleware 11g setup.</p>
<p>Choose all default options, except following:</p>
<p>1. Choose no Oracle Support required (Security Updates Screen)</p>
<p>2. No discoverer and No Oracle Portal</p>
<p>3. No OID (Specify Application OID Screen)</p>
<p>After nearly 3 hour, it was successfully installed.</p>
<p>Hurrray&#8230;at last I got it running&#8230;That&#8217;s all for time being</p>
<p>Will keep you guys updated&#8230;.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.oraclebrains.com/2010/06/upgrading-forms-10g-r1-to-oracle-11g-r1-day-1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How developers should ask for help -Tom Kyte</title>
		<link>http://www.oraclebrains.com/2009/10/how-developers-should-ask-for-help-tom-kyte/</link>
		<comments>http://www.oraclebrains.com/2009/10/how-developers-should-ask-for-help-tom-kyte/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 08:11:36 +0000</pubDate>
		<dc:creator>Rajender Singh</dc:creator>
		
		<category><![CDATA[Oracle News]]></category>

		<guid isPermaLink="false">http://www.oraclebrains.com/?p=271</guid>
		<description><![CDATA[In this video interview with ZDNet.com.au, Kyte explains how many questions he receives equate to &#8220;my car won&#8217;t start&#8221;.
Check Out

]]></description>
			<content:encoded><![CDATA[<p>In this video interview with ZDNet.com.au, Kyte explains how many questions he receives equate to &#8220;my car won&#8217;t start&#8221;.</p>
<p><a href="http://www.zdnet.com.au/video/soa/How-developers-should-ask-for-help/0,2000065477,22488727p,00.htm" target="_blank">Check Out</a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.oraclebrains.com/2009/10/how-developers-should-ask-for-help-tom-kyte/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Application Express :: Copying Application Items from one application to another.</title>
		<link>http://www.oraclebrains.com/2009/09/application-express-copying-application-items-from-one-application-to-another/</link>
		<comments>http://www.oraclebrains.com/2009/09/application-express-copying-application-items-from-one-application-to-another/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 03:32:34 +0000</pubDate>
		<dc:creator>Rajender Singh</dc:creator>
		
		<category><![CDATA[Application Express]]></category>

		<category><![CDATA[Development Tools]]></category>

		<guid isPermaLink="false">http://www.oraclebrains.com/?p=270</guid>
		<description><![CDATA[Today while working on Oracle Application Express, I came across a situation, where I need to define same variables (Application [...]]]></description>
			<content:encoded><![CDATA[<p>Today while working on Oracle Application Express, I came across a situation, where I need to define same variables (Application Items) in another 2-3 different applications. Moreover these application may or may not be residing in same Workspace.</p>
<p>I could have created the item manually across all the applications, but being a programmer brain plus lazy butt, I don&#8217;t wanted to give up.</p>
<p>I did following and it worked more than fine to me.</p>
<p>I <strong>navigate to &#8220;Share Components&#8221; Page</strong> of source Application</p>
<p>On the right hand side under &#8220;Tasks&#8221;, I <strong>selected &#8220;Export Application Components&#8221;</strong></p>
<p><strong>Exported</strong> only the &#8221; <strong>Application Items</strong>&#8221;</p>
<p><strong>Save the file</strong> as &#8220;f110_components.SQL&#8221;</p>
<p><strong>Open the file in notepad</strong></p>
<p><strong>Changed following three things depending on the target application number and workspace</strong>.</p>
<p><strong>Get the Workspace ID</strong> using following SQL at your target and note down the Workspace ID.<br />
&#8220;select WORKSPACE_ID from APEX_WORKSPACES&#8221;</p>
<p>Search for following function in the file:<br />
wwv_flow_api.set_security_group_id</p>
<p><strong>Change it using following syntax</strong><br />
<strong>wwv_flow_api.set_security_group_id(p_security_group_id=&gt;OB_WORKSPACE_ID);</strong></p>
<p>Where OB_WORKSPACE_ID is Workspace ID</p>
<p>example in my case it was &#8220;5622003592886707&#8243; so I changes as follows:<br />
wwv_flow_api.set_security_group_id(p_security_group_id=&gt;5622003592886707);</p>
<p>The search for the line where following variable is being initialized<br />
wwv_flow.g_flow_id</p>
<p><strong>Change it using following syntax<br />
wwv_flow.g_flow_id := OB_APPLICATION_ID;</strong></p>
<p>Where OB_APPLICATION_ID is the Application ID or you can say Application Number</p>
<p>In my case it was 136 I changed it as follows:<br />
wwv_flow.g_flow_id := 136;</p>
<p>Hint: Application Express always shows Application ID beside your application name.</p>
<p>The search for the line where following variable is being initialized<br />
wwv_flow_api.g_id_offset</p>
<p><strong>Change it using following syntax<br />
wwv_flow_api.g_id_offset := OB_RANDOM_NUMBER;</strong></p>
<p>Where OB_RANDOM_NUMBER is any random INTEGER other than zero</p>
<p><strong>Script Before Change:</strong><br />
&#8230;&#8230;&#8230;.<br />
&#8230;..<br />
prompt  Set Credentials&#8230;</p>
<p>begin</p>
<p>&#8211; Assumes you are running the script connected to SQL*Plus as the Oracle user APEX_030200 or as the owner (parsing schema) of the application.<br />
wwv_flow_api.set_security_group_id(p_security_group_id=&gt;1122003592886707);</p>
<p>end;<br />
/<br />
&#8230;..<br />
&#8230;&#8230;</p>
<p>prompt  Set Application ID&#8230;</p>
<p>begin</p>
<p>&#8211; SET APPLICATION ID<br />
wwv_flow.g_flow_id := 110;<br />
wwv_flow_api.g_id_offset := 0;<br />
null;</p>
<p>end;<br />
/<br />
&#8230;&#8230;<br />
&#8230;&#8230;</p>
<p><strong>Script After Change:</strong><br />
&#8230;&#8230;&#8230;.<br />
&#8230;..<br />
prompt  Set Credentials&#8230;</p>
<p>begin</p>
<p>&#8211; Assumes you are running the script connected to SQL*Plus as the Oracle user APEX_030200 or as the owner (parsing schema) of the application.<br />
wwv_flow_api.set_security_group_id(p_security_group_id=&gt;5622003592886707);</p>
<p>end;<br />
/<br />
&#8230;..<br />
&#8230;&#8230;</p>
<p>prompt  Set Application ID&#8230;</p>
<p>begin</p>
<p>&#8211; SET APPLICATION ID<br />
wwv_flow.g_flow_id := 136;<br />
wwv_flow_api.g_id_offset := 1;<br />
null;</p>
<p>end;<br />
/<br />
&#8230;&#8230;<br />
&#8230;&#8230;</p>
<p><strong>After that imported into my target application without any error.</strong></p>
<p> <img src='http://www.oraclebrains.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> hope this will help somebody!</p>

]]></content:encoded>
			<wfw:commentRss>http://www.oraclebrains.com/2009/09/application-express-copying-application-items-from-one-application-to-another/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Database Link coming handy!!!</title>
		<link>http://www.oraclebrains.com/2009/08/database-link-coming-handy/</link>
		<comments>http://www.oraclebrains.com/2009/08/database-link-coming-handy/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 06:06:07 +0000</pubDate>
		<dc:creator>Rajender Singh</dc:creator>
		
		<category><![CDATA[Oracle Administration]]></category>

		<category><![CDATA[Oracle Database]]></category>

		<guid isPermaLink="false">http://www.oraclebrains.com/?p=269</guid>
		<description><![CDATA[Today I had a situation at my client&#8217;s place which I need to tackle as soon as possible and I [...]]]></description>
			<content:encoded><![CDATA[<p>Today I had a situation at my client&#8217;s place which I need to tackle as soon as possible and I did tackle it nicely.</p>
<p> <img src='http://www.oraclebrains.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> I think so&#8230;&#8230;.</p>
<p>Any way let me explain the situation and how I tackle it.</p>
<p>Lets assume there are two database one is prod (live one) and another one dev (development).</p>
<p>There came a request from one non oracle developer that he want to have a readonly access to the &#8220;production_note&#8221; table in prod database as he wanted to access live data of &#8220;production_note&#8221; table.</p>
<p>In normal situation if it was development environment then I would have done following:</p>
<p><strong>Login</strong> into SQL*Plus as <strong>SYSTEM </strong>in<strong> &#8220;prod&#8221; database</strong></p>
<p>SQL&gt; <strong>connect</strong> system/system@biz11<br />
Connected.</p>
<p>SQL&gt; <strong>create user </strong>production identified by production default tablespace users;</p>
<p>User created.</p>
<p>SQL&gt; <strong>grant </strong>connect, resource to production;</p>
<p>Grant succeeded.</p>
<p>SQL&gt; <strong>connect actual_user</strong>/actual_user@biz11<br />
Connected.</p>
<p>SQL&gt; <strong>grant </strong>select on production_notes to production;</p>
<p>Grant succeeded.</p>
<p>SQL&gt; <strong>connect production</strong>/production@biz11<br />
Connected.</p>
<p>SQL&gt; <strong>create synonym</strong> production_notes for <strong>actual_user.production_notes</strong>;</p>
<p>Synonym created.</p>
<p><strong>Then give him access to this new user.</strong></p>
<p>But now here <strong>situation is different</strong>.I have <strong>security by IP addresses</strong> in &#8220;prod&#8221; database. Only Oracle Application Server and &#8220;dev&#8221; database server can access the  &#8220;prod&#8221; database and I <strong>don&#8217;t want to give access to IP address</strong> of this developer&#8217;s machine. If I <strong>do so it might open some loop hole in security infra</strong> of my client.</p>
<p>So to <strong>tackle this situation I did as follows</strong>:</p>
<p><strong>First </strong>I did <strong>same as above</strong> in <strong>&#8220;Prod&#8221; database</strong>.</p>
<p>Then I <strong>Login</strong> into SQL*Plus as <strong>SYSTEM </strong>in<strong> &#8220;dev&#8221; database</strong></p>
<p>SQL&gt;<strong>CREATE PUBLIC DATABASE LINK</strong> prod_remote<br />
2     CONNECT TO production IDENTIFIED BY production<br />
3     USING &#8216;biz11&#8242;;</p>
<p>Database link created.</p>
<p>SQL&gt; <strong>create user </strong>production identified by production default tablespace users;</p>
<p>User created.</p>
<p>SQL&gt; <strong>grant </strong>connect, resource to production;</p>
<p>Grant succeeded.</p>
<p>SQL&gt; <strong>CREATE SYNONYM</strong> production_notes<br />
2     FOR <strong>production.production_notes@prod_remote</strong>;</p>
<p>Synonym created.</p>
<p>Then I <strong>just gave him access</strong> to this new user in <strong>&#8220;dev&#8221; database</strong> without making things complicated for this non oracle user.</p>
<p>Thats it, Mission Accomplished <img src='http://www.oraclebrains.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I hope this post will help somebody and offcourse me as a reference material for future!</p>

]]></content:encoded>
			<wfw:commentRss>http://www.oraclebrains.com/2009/08/database-link-coming-handy/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
