<?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>SnapJag Creative Designs &#187; Oracle</title>
	<atom:link href="http://www.snapjag.com/tag/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.snapjag.com</link>
	<description>Specialists in busines consulting, database administration, programming, hosting, photography, and creative system designs.</description>
	<lastBuildDate>Fri, 25 Nov 2011 00:59:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Oracle buys Sun Microsystems</title>
		<link>http://www.snapjag.com/2009/04/oracle-buys-sun-microsystems/</link>
		<comments>http://www.snapjag.com/2009/04/oracle-buys-sun-microsystems/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 19:36:39 +0000</pubDate>
		<dc:creator>snapjag</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Sun Micrososystems]]></category>

		<guid isPermaLink="false">http://www.snapjag.com/?p=438</guid>
		<description><![CDATA[It was revealed today that Oracle will buy Sun Microsystems. The deal is expected to close in the summer. It has come as a joyous moment for the board, directors and all involved with the latest acquisition fiascos. While IBM was interested in buying, they bailed out. Maybe because it was too costly in comparison [...]]]></description>
			<content:encoded><![CDATA[<p>It was revealed today that <a href="http://blogs.techrepublic.com.com/hiner/?p=1506" target="_blank">Oracle will buy Sun Microsystems</a>. The deal is expected to close in the summer. It has come as a joyous moment for the board, directors and all involved with the latest acquisition fiascos.<span id="more-438"></span></p>
<p>While IBM was interested in buying, they bailed out. Maybe because it was too costly in comparison to all the hoops IBM would have to go through. Being a hardware builder and integrator IBM would be required to pass through a ton of red tape to acquire Sun. Whereas with Oracle, who is more of a software builder and integrator has now acquired a new hardware endeavor and won&#8217;t have to cut through as much red tape.</p>
<p>When puzzles fit, and all the pieces are down, found and integrate, the reward is always a breath of fresh air. Executives and architects can get on with life &#8211; fixing things and getting on with business; and where sometimes a heated debate and heated acquisition can cause ire and bad feelings for years. That may be the best thing going for this deal.</p>
<p>As a database architect, I am most interested in the Oracle-MySQL debate. I&#8217;m all for the fact that Oracle can now narrow the focus of hardware-software integrations and make data centers more compatible and thus more stable from top to bottom. I am more worried about the possibilities of killing MySQL.</p>
<p>My interests for years have naturally fallen on Microsoft SQL Server becuase of the low-cost of ownership and the great amounts of opportunities in the database field to help business. I like the Oracle is a very mature software platform and has a tremendous amount of support in backing and technical allegiences. It&#8217;s very robust and capable. Just very costly. Then comes MySQL. I love the fact that it&#8217;s free. It has offered so many possibilities for small businesses and integrating a decent backend for applications and startups that it&#8217;s a great platform with some tremendous capabilities.</p>
<p>In hindsite, is the integration of transactions, logging, improved security, and clustering a little to late? Could this acquisition kill MySQL. As individual organizations (Oracle vs. Sun/MySQL) work on their independent database technologies, a healthy competition breeds momentum, creativity, and drive for improvement.</p>
<p>How will this stir the pot in kitchen? Does MySQL stand a chance as a spice in the rack of a restaurant like Oracle?</p>
<p>I will look forward to Oracle&#8217;s comments in the next few weeks about their plans with MySQL. Destroy or enhance?</p>
<p>I love the potential of MySQL and how it helps so many LAMP environments. The upcoming years will be interesting in the database world because of this acquisition, what will we see.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snapjag.com/2009/04/oracle-buys-sun-microsystems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
		<item>
		<title>ORACLE initialization or shutdown in progress</title>
		<link>http://www.snapjag.com/2008/10/oracle-shutdown-in-progress/</link>
		<comments>http://www.snapjag.com/2008/10/oracle-shutdown-in-progress/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 20:43:32 +0000</pubDate>
		<dc:creator>snapjag</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://gleew.wordpress.com/?p=97</guid>
		<description><![CDATA[Error &#8220;ORA-01033 ORACLE initialization or shutdown in progress&#8221; plagued me twice, not a third, unprepared! Since this was the second time this happened to me so I decided I should get all my ducks in a row cause if it happened twice, it will most likely happen a third time, if not to me, then [...]]]></description>
			<content:encoded><![CDATA[<p>Error &#8220;ORA-01033 ORACLE initialization or shutdown in progress&#8221; plagued me twice, not a third, unprepared!</p>
<p>Since this was the second time this happened to me so I decided I should get all my ducks in a row cause if it happened twice, it will most likely happen a third time, if not to me, then to someone else.</p>
<p>The reason this happened was because my automated script that restores two databases and does everything to shut down and restart the instance got fowled up. It fowled up when I accidentally ran both scripts simultaneously. The first script did the shutdown operations, and the second script did the same. &#8230; which then barfed everything up and locked the files and considered everything in a shutdown state.<span id="more-264"></span>This is what I did to get out of it. Parts of this came from the following <a href="http://www.orafaq.com/forum/t/38120/0/" target="_blank">weblog</a> (<a href="http://www.orafaq.com/forum/t/38120/0/" target="_blank">http://www.orafaq.com/forum/t/38120/0/</a>), but it was too convoluted, and got me in the mood to put down exactly what I did. (&#8217;cause that&#8217;s my real job, Systems Analysis and Design)</p>
<p>Execute the following commands to get things started.</p>
<ul>
<li>VNC to or access the oracle server in some way</li>
<li>go to a command prompt (cmd at the Start | Run dialog)</li>
</ul>
<p>In the command window execute the following</p>
<ul>
<li>sqlplus /nolog</li>
<li>connect sys/change_on_install as sysdba;</li>
<li>shutdown abort;</li>
<li>startup nomount;</li>
<li>alter database mount;</li>
<li>alter database open;</li>
</ul>
<p>If an error appears like&#8230;</p>
<blockquote><p>cannot identify/lock data file 5<br />
data file 5: &#8216;&lt;filename&gt;&#8217;</p></blockquote>
<p>&#8230; then execute the following</p>
<ul>
<li>alter database datafile &#8216;&lt;filename&gt;&#8217; offline drop;</li>
<li>alter database open;</li>
</ul>
<p>If another error occurs, because another file is locked, then repeat the same command. Do these two commands until you see a &#8220;<strong>database is altered</strong>&#8221; response, and no errors. If there are other errors, they are not covered here. For me I have three database files, so it took doing those two commands three times.</p>
<h2>Successful Response</h2>
<p>Finally execute this last command</p>
<ul>
<li>shutdown immediate;</li>
</ul>
<p>And you should see this response.</p>
<blockquote><p>Database closed.<br />
Database dismounted.<br />
ORACLE instance shut down.</p></blockquote>
<h2>Test</h2>
<p>To prepare for the test make sure these commands are executed to ensure the instance is properly started.</p>
<ul>
<li> cmd prompt</li>
<li> sqlplus /nolog</li>
<li> connect sys/change_on_install as sysdba;</li>
<li> startup;</li>
</ul>
<p>Everything should come online.</p>
<p>Now test the connection with the following steps.</p>
<ul>
<li>get to a command prompt</li>
<li>sqlplus</li>
<li>username: &#8220;sys as sysdba&#8221; (without the double-quotes)</li>
<li>password: &#8220;change_on_install&#8221; (without the double-quotes)</li>
</ul>
<p>You should now be connected to the database without any errors.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snapjag.com/2008/10/oracle-shutdown-in-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
		<item>
		<title>Oracle Maximum Open Cursors Exceeded</title>
		<link>http://www.snapjag.com/2008/05/oracle-maximum-open-cursors-exceeded/</link>
		<comments>http://www.snapjag.com/2008/05/oracle-maximum-open-cursors-exceeded/#comments</comments>
		<pubDate>Wed, 21 May 2008 20:33:14 +0000</pubDate>
		<dc:creator>snapjag</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://gleew.wordpress.com/?p=27</guid>
		<description><![CDATA[In writing my application that checks certain settings and values every few seconds received the following error today. ORA-01000: maximum open cursors This error presented itself because I wasn&#8217;t closing the OracleDataReader object in my code. I&#8217;ll show below the entire code and then bold the code that I had to add to rid my [...]]]></description>
			<content:encoded><![CDATA[<p>In writing my application that checks certain settings and values every few seconds received the following error today.</p>
<blockquote><p>ORA-01000: maximum open cursors</p></blockquote>
<p>This error presented itself because I wasn&#8217;t closing the OracleDataReader object in my code. I&#8217;ll show below the entire code and then bold the code that I had to add to rid my code of the leak. I used <em>TOAD for Oracle</em> to find the <em>opened cursors current</em> in the Statistics of the Session Browser on the database.<span id="more-252"></span></p>
<p>I am using Oracle 10g and the C# code is as follows:</p>
<blockquote><p>public int OracleActiveConnections<br />
{<br />
get // SELECT * FROM V$SESSION WHERE PROGRAM IS NOT NULL<br />
{<br />
OracleConnection oraConn = new OracleConnection(&#8220;Data Source=main_new_prod;User ID=system;Password=manager;&#8221;);<br />
oraConn.Open();<br />
OracleCommand oraCmd = oraConn.CreateCommand();<br />
oraCmd.CommandText = &#8220;select count(server) as Value, server from v$session group by server&#8221;;<br />
oraCmd.CommandType = System.Data.CommandType.Text;<br />
oraCmd.CommandTimeout = 15;<br />
OracleDataReader oResult = oraCmd.ExecuteReader();<br />
oResult.Read();<br />
int iValue = Convert.ToInt32(oResult["Value"].ToString());<br />
<strong> oResult.Close();<br />
oResult.Dispose();</strong><br />
oraCmd.Dispose();<br />
oraConn.Close();<br />
oraConn.Dispose();</p>
<p>return iValue;<br />
}<br />
}</p></blockquote>
<p>Adding the code in bold above closed the object cursors without having to tinker with the <em>max-pooled</em> settings on the datasource or the <em>cursors</em> setting on the database. Although this is something may need to be changed. Test, test test.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snapjag.com/2008/05/oracle-maximum-open-cursors-exceeded/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
		<item>
		<title>Error while reverse engineering Oracle 10g with Erwin</title>
		<link>http://www.snapjag.com/2008/05/error-while-reverse-engineering-oracle-10g-with-erwin/</link>
		<comments>http://www.snapjag.com/2008/05/error-while-reverse-engineering-oracle-10g-with-erwin/#comments</comments>
		<pubDate>Wed, 07 May 2008 18:59:28 +0000</pubDate>
		<dc:creator>snapjag</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://gleew.wordpress.com/?p=26</guid>
		<description><![CDATA[&#8220;ORA-00942 -Table or view does not exist&#8221;. This is the error get trying to reverse-engineer two table spaces in my Oracle 10g database server. Thanks to the following link. I was able to resolve this. Nothing is wrong with Erwin or the Oracle database or it&#8217;s connections. It&#8217;s a matter of offering the right privileged [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;ORA-00942 -Table or view does not exist&#8221;. This is the error get trying to reverse-engineer two table spaces in my Oracle 10g database server. Thanks to the following <a href="http://www.dbasupport.com/forums/showthread.php?t=34169" target="_blank">link</a>. I was able to resolve this.</p>
<p>Nothing is wrong with Erwin or the Oracle database or it&#8217;s connections. It&#8217;s a matter of offering the right privileged user&#8217;s username/password to retrieve objects owned by a specific user.</p>
<p><span id="more-251"></span>I had setup two TNS entries, one to each server. The two users/databases I have are PBX and Clients. I was using these instead of my system user account.</p>
<p>This is what I did to do it wrong:</p>
<ul>
<li>Tools | Reverse Engineer</li>
<li>Template: Option: Physical; Database: Oracle 10.x</li>
<li>Set Options:
<ul>
<li>From: Database</li>
<li>Items: Default Option Set</li>
<li><strong>Tables/Views Owned By: PBX</strong></li>
</ul>
<ul>
<li>
<ul>
<li>I didn&#8217;t want to include Clients, although I could, because I didn&#8217;t want to combine the Clients and PBX database in to the same Erwin schema.</li>
</ul>
</li>
<li>All else default</li>
</ul>
</li>
<li>Oracle connection:
<ul>
<li>Login: system/password</li>
<li>Connect string: TNS name to connect to</li>
</ul>
</li>
</ul>
<p>Once this was all set, I repeated for the other databases and servers. Again, I wasn&#8217;t providing the username and password that had enough rights to gather details. Any special tables only available to the <em>system</em> user would error.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snapjag.com/2008/05/error-while-reverse-engineering-oracle-10g-with-erwin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
		<item>
		<title>ORA-00911 invalid character</title>
		<link>http://www.snapjag.com/2008/04/ora-00911-invalid-character/</link>
		<comments>http://www.snapjag.com/2008/04/ora-00911-invalid-character/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 21:26:37 +0000</pubDate>
		<dc:creator>snapjag</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://gleew.wordpress.com/?p=20</guid>
		<description><![CDATA[I am using .NET 2005 and the Oracle 10g 10.2 Oracle .NET data framework and I received this error while trying to run a simple statement that is used to find out how many dedicated processes are being used in my Oracle database (&#8220;select count(server) as Value, Server from v$session group by server&#8221;). Something similar [...]]]></description>
			<content:encoded><![CDATA[<p>I am using .NET 2005 and the Oracle 10g 10.2 Oracle .NET data framework and I received this error while trying to run a simple statement that is used to find out how many dedicated processes are being used in my Oracle database (&#8220;select count(server) as Value, Server from v$session group by server&#8221;). Something similar to ActiveConnections in the SQL .NET SMO environment. This happened with both Oracle .Net Data Framework Assembly and the Microsoft SQL OLEDB Assembly.<span id="more-246"></span></p>
<p>I figured I would write it like I normal in SQLPlus using the &#8220;;&#8221; (semicolon) similar to any other statement. But No! It doesn&#8217;t like it. I&#8217;m sure there are other &#8220;invalid characters&#8221;, but I haven&#8217;t taken the time to find out what all of them. You you know of any and want to list them here I would be greatful.</p>
<p>I figured this might be enough to start the thread and because others would most likely think a common character like that wouldn&#8217;t be &#8220;invalid&#8221;, hmmm, but &#8230; it is! Hope it helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snapjag.com/2008/04/ora-00911-invalid-character/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
		<item>
		<title>SQL Server Linked Server to Oracle</title>
		<link>http://www.snapjag.com/2008/03/sql-server-linked-server-to-oracle/</link>
		<comments>http://www.snapjag.com/2008/03/sql-server-linked-server-to-oracle/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 21:46:44 +0000</pubDate>
		<dc:creator>snapjag</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.snapjag.com/?p=200</guid>
		<description><![CDATA[As a database administrator by trade, I have had a very perplexing task to have my SQL Server 2005 Enterprise servers communicate with my Oracle 10g box and gather data in real-time in fast, efficient ways. This article will go over the steps to setup the the linked server and some of the gotchas so [...]]]></description>
			<content:encoded><![CDATA[<p>As a database administrator by trade, I have had a very perplexing task to have my SQL Server 2005 Enterprise servers communicate with my Oracle 10g box and gather data in real-time in fast, efficient ways. This article will go over the steps to setup the the linked server and some of the gotchas so others have a successful scenario to glean from.<span id="more-200"></span></p>
<ol>
<li>Install the Oracle Client from Oracle (10.2.x client version) on the SQL Server box</li>
<li>Setup the TNS to the Oracle box through the Oracle Net Manager application
<ol>
<li>Click the ADD (+) icon under Local | Service Naming</li>
<li>Type in the Service Name, which is used to find in the Service Naming list and the reference to the Service Name in SQL Developer, for example</li>
<li>Choose the Protocol, which is usually TCP/IP</li>
<li>Type in the Host Name, which is the Name or IP Address of the Oracle server.</li>
<li>Type in the Service Name, which is the name of the service or the Global Database Name. It can get confusing between this one and the Service Name above (#1). The difference is that this one (#5) is used to identify the Oracle Name. TNS is a go between. Use (#1) in your app, which then goes through the TNS, which then points to the Service Name (#5) at the database. Another way to look at it is, from your Webserver or SQL Server, directly to Oracle, you go through the TNS using (#1) as the hard coded reference</li>
<li>Specify the Connection Type, which is either Default or Dedicated Server</li>
</ol>
</li>
<li>First, turn on the Allow InProcess option
<ol>
<li>In SQL Server enterprise manager, expand Server Objects node, and then expand the Providers node.</li>
<li>Right-click on the OraOLEDB.Oracle provider and click Properties</li>
<li>Check the Allow Inprocess option (at least this has to be done on my machines)</li>
</ol>
</li>
<li>Second, create the Oracle linked server
<ol>
<li>Right-click on Linked Servers node and click New Linked Server</li>
<li>Type in the name of the linked server as it would appear in the Linked Server list and as it would be referenced by SQL scripts</li>
<li>Choose &#8220;Other data source&#8221; and select the <em>Oracle Provider for Ole DB</em>. If this is not an option, then follow instructions to install the Oracle Client.</li>
<li>Type in the Product Name, which is the Service Name in #2 of #2 above.</li>
<li>Type in the Data Source, which is the Service Name in #2 of #2 above.</li>
<li>In the Security tab, type in the Remote Login and Password under the last option &#8220;Be made using this security context:&#8221;</li>
<li>Click OK to commit the changes</li>
</ol>
</li>
<li>Write the sql query using the following example
<ol>
<li>select * from openquery(oraclels, &#8216;select * from &lt;dbname&gt;.&lt;tablename&gt; where &lt;clause&gt;&#8217;)</li>
</ol>
</li>
</ol>
<p>This doesn&#8217;t give the fastest results that we have been able to achieve. There is NOT an easy way to build the query on the fly with variable parameters and have it work quickly. You could create an EXECUTE @SQL statement that has been built around the same query above, but not one that is then in the same batch. The query has to be static and then supply any variable clauses. For example&#8230;</p>
<p>select field1, field2<br />
from (select * from openquery (oraclels, &#8216;select * from db.table where &lt;static clause&gt;&#8217;)<br />
where &lt;variable clause&gt;</p>
<p>Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snapjag.com/2008/03/sql-server-linked-server-to-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
	</channel>
</rss>

