<?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>//TODO: Create Blog Title &#187; Oracle</title>
	<atom:link href="http://DontForgetYourTODOs.com/tag/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://DontForgetYourTODOs.com</link>
	<description></description>
	<lastBuildDate>Mon, 26 Jul 2010 03:20:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Oracle GUID Converter</title>
		<link>http://DontForgetYourTODOs.com/2009/08/oracle-guid-converter/</link>
		<comments>http://DontForgetYourTODOs.com/2009/08/oracle-guid-converter/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 19:00:25 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Shout Out]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://DontForgetYourTODOs.com/?p=417</guid>
		<description><![CDATA[Using the Entity Framework against Oracle requires the presence of a third party provider. It becomes even more difficult when one of the data types that you store is a GUID which is not natively supported in Oracle.]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 0px 10px 10px 0px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="Oracle Guid Converter" src="http://robobunny.com/images/robo_head.png" align="left">Important lesson for those who prefer using GUIDs as record identifiers.</p>
<p>The MS SQL data type, <strong>uniqueidentifier, </strong>does not have a counterpart in Oracle. In the past it was easy to make the column CHAR(36), the max string length of a GUID. I was not in a situation to do this as we were dealing with the Entity Framework against Oracle.&nbsp; </p>
<p>Entity Framework is compatible with SQL Server out of the box and translates the uniqueidentifier column to GUID type. This is not the case for Oracle. The use of a third party adapter, <a href="http://http://www.devart.com/dotconnect/oracle/">dotConnect for Oracle</a>, is required. This provider requires that the storage data type for GUID be RAW(16).</p>
<h4>What&#8217;s the problem with RAW(16)?</h4>
<p>GUID representation</p>
<p><span style="border-right: black thin dashed; padding-right: 10px; border-top: black thin dashed; padding-left: 10px; padding-bottom: 10px; border-left: black thin dashed; padding-top: 10px; border-bottom: black thin dashed">{922B0A87-7A88-DE11-BBA7-0AEA0522E79F}</span></p>
<p>&nbsp;</p>
<p>RAW(16) representation</p>
<p><span style="border-right: black thin dashed; padding-right: 10px; border-top: black thin dashed; padding-left: 10px; padding-bottom: 10px; border-left: black thin dashed; padding-top: 10px; border-bottom: black thin dashed">870A2B92887A11DEBBA70AEA0522E79F</span></p>
<p>&nbsp;</p>
<p>As if it was not tough enough already to read and write a GUID. Now it is represented differently in Oracle!!??</p>
<p>The best solution that I discovered to get around this was through the use of a handy <a href="http://www.robobunny.com/cgi-bin/guid">GUID Converter</a>. I don&#8217;t know how many times I have relied on this to help me out. </p>
]]></content:encoded>
			<wfw:commentRss>http://DontForgetYourTODOs.com/2009/08/oracle-guid-converter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
