<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>An Oracle Man And His Journal</title>
	<atom:link href="http://savaskulah.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://savaskulah.wordpress.com</link>
	<description>Knowledge is power and the power is yours...</description>
	<pubDate>Sun, 04 May 2008 13:59:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>Mind Maps</title>
		<link>http://savaskulah.wordpress.com/2008/01/19/mind-maps/</link>
		<comments>http://savaskulah.wordpress.com/2008/01/19/mind-maps/#comments</comments>
		<pubDate>Sat, 19 Jan 2008 18:32:12 +0000</pubDate>
		<dc:creator>Savaş Külah</dc:creator>
		
		<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://savaskulah.wordpress.com/2008/01/17/mind-maps/</guid>
		<description><![CDATA[Mind maps is a taking note and technique of creative thinking. It helps you to take your notes more creative way, to remember them easier and to understand them more obvious.
This technique is the most suitable method for perception and storage style of brain. Mind maps create a visual picture of informations that save in [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p align="justify"><span style="font-family:Tahoma;">Mind maps is a taking note and technique of creative thinking. It helps you to take your notes more creative way, to remember them easier and to understand them more obvious.</span></p>
<p align="justify"><span style="font-family:Tahoma;">This technique is the most suitable method for perception and storage style of brain. Mind maps create a visual picture of informations that save in your brain. With this method your brain hold informations in memory more easier, furthermore  it helps you to extract at paper easily. This technique is completely different other working techniques, it enables creative thinking and to be earned time to person. Tony Buzan is the initiator of this technique. Many people pointed out that they have succeeded many subjects like studying lesson, solving problem, writing summary, planning, speaking etc. </span></p>
<p align="justify"><span style="font-family:Tahoma;">You can use colors, shapes, diagrams, pictures, symbols with this technique. Especially using colors is important to release imagination. </span></p>
<p align="justify"><span style="font-family:Tahoma;">There are many advantage of mind maps unlike method of taking traditional linear note. </span></p>
<p><span style="font-family:Tahoma;"> * To spend less time; note only main words called &#8220;key word&#8221; and reading </span></p>
<p><span style="font-family:Tahoma;"> * To appear creative thinking </span></p>
<p><span style="font-family:Tahoma;"> * To grow remembering power </span></p>
<p><span style="font-family:Tahoma;"> * To concentrate essential subjects</span></p>
<p><span style="font-family:Tahoma;">Mind maps is not static or restrictive. Afterwards it can be made addition or correcting.</span></p>
<p><strong></strong></p>
<p><span style="font-family:Tahoma;">Here is </span><a href="http://www.wikihow.com/Make-a-Mind-Map" target="_blank"><span style="font-family:Tahoma;">How to Make a Mind Map</span></a></p>
<p><span style="font-family:Tahoma;">There is a lot of computer programs and web sites for making a mind map. </span></p>
<p><a href="http://www.novamind.com/" target="_blank"><span style="font-family:Tahoma;">Novamind</span></a></p>
<p><a href="http://www.imindmap.com/" target="_blank"><span style="font-family:Tahoma;">imindmap</span></a><span style="font-family:Tahoma;"> , my favorite mind mapping program</span></p>
<p><a href="http://www.mindmeister.com/" target="_blank"><span style="font-family:Tahoma;">Mindmeister</span></a><span style="font-family:Tahoma;"> , my favorite online mind mapping site </span></p>
<p><a href="http://www.mindmeister.com/maps/show_public/5520017" target="_blank"><span style="font-family:Tahoma;">My example that I have made by using mindmeister</span></a></p>
<p><span style="text-align:center; display: block;"><a href="http://savaskulah.wordpress.com/2008/01/19/mind-maps/"><img src="http://img.youtube.com/vi/0UCXalYcoko/2.jpg" alt="" /></a></span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/savaskulah.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/savaskulah.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/savaskulah.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/savaskulah.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/savaskulah.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/savaskulah.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/savaskulah.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/savaskulah.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/savaskulah.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/savaskulah.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/savaskulah.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/savaskulah.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=savaskulah.wordpress.com&blog=1717771&post=28&subd=savaskulah&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://savaskulah.wordpress.com/2008/01/19/mind-maps/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/savaskulah-128.jpg" medium="image">
			<media:title type="html">Savaş Külah</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/0UCXalYcoko/2.jpg" medium="image" />
	</item>
		<item>
		<title>Oracle Shared Server</title>
		<link>http://savaskulah.wordpress.com/2008/01/03/oracle-shared-server/</link>
		<comments>http://savaskulah.wordpress.com/2008/01/03/oracle-shared-server/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 19:58:25 +0000</pubDate>
		<dc:creator>Savaş Külah</dc:creator>
		
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://savaskulah.wordpress.com/2008/01/03/oracle-shared-server/</guid>
		<description><![CDATA[In course of time number of application users may increase. And capacity of Oracle servers may be insufficient. At this situation you have to buy additional hardware resources. To buy additional resources means that spend extra money and time. But Oracle Shared Server come to help and it can be stopped your headaches. 
You know [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p align="justify"><font face="Tahoma">In course of time number of application users may increase. And capacity of Oracle servers may be insufficient. At this situation you have to buy additional hardware resources. To buy additional resources means that spend extra money and time. But Oracle Shared Server come to help and it can be stopped your headaches. </font></p>
<p align="justify"><font face="Tahoma">You know Oracle database service users via creating server process. As default one server process service only one user process (dedicated server process), one-to-one relationship. But shared server process can service multiple user process, one-to-many relationship. It is a quite useful method for minimizing usage of hardware resources. </font></p>
<p align="justify"><font face="Tahoma">Although shared server process is useful method, it cannot be applied to every application type. Which application type is suitable? Applications that have small transactions and that returning small result set are good. Because of number of server processes is limited, dealing bigger result sets reduce response time. </font></p>
<p align="justify"><font face="Tahoma">In dedicated server environment an user request assigns to one server process directly. However in shared server environment an request is treated by a <em>dispatcher </em>process<em>.&nbsp; </em>A dispatcher process is responsible for servicing user requests. It has ability for servicing many ones.</font></p>
<p align="justify"><font face="Tahoma">Dispatchers put the requests that coming from user into request queue. The requests prepared by shared server process put into response queue and these are returned the user by dispatcher. Although all dispatchers use same request queue each dispatchers have own response queue.</font></p>
<p align="justify"><font face="Tahoma">When being switched dedicated server to shared server , some changes occur in memory structure. The some session informations are holded in PGA are began to be held in SGA. This area is called User Global Area(UGA). </p>
<p>Finally note that Oracle Shared Server is a scalability enhancement option, not a performance enhancement option. This is summary of above explanations.</font></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/savaskulah.wordpress.com/27/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/savaskulah.wordpress.com/27/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/savaskulah.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/savaskulah.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/savaskulah.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/savaskulah.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/savaskulah.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/savaskulah.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/savaskulah.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/savaskulah.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/savaskulah.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/savaskulah.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=savaskulah.wordpress.com&blog=1717771&post=27&subd=savaskulah&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://savaskulah.wordpress.com/2008/01/03/oracle-shared-server/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/savaskulah-128.jpg" medium="image">
			<media:title type="html">Savaş Külah</media:title>
		</media:content>
	</item>
		<item>
		<title>Broken Windows Theory</title>
		<link>http://savaskulah.wordpress.com/2007/10/24/broken-windows/</link>
		<comments>http://savaskulah.wordpress.com/2007/10/24/broken-windows/#comments</comments>
		<pubDate>Wed, 24 Oct 2007 19:43:05 +0000</pubDate>
		<dc:creator>Savaş Külah</dc:creator>
		
		<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://savaskulah.wordpress.com/2007/10/24/broken-windows/</guid>
		<description><![CDATA[The theory propounded by James Q. Wilson and George L. Kelling in the beginning of 1980s. It explains with the following example in Wikipedia.

Consider a building with a few broken windows. If the windows are not repaired, the tendency is for vandals to break a few more windows. Eventually, they may even break into the [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p align="justify"><font face="Tahoma">The theory propounded by </font><a href="http://en.wikipedia.org/wiki/James_Q._Wilson"><font face="Tahoma" color="#000000">James Q. Wilson</font></a><font face="Tahoma"> and George L. Kelling in the beginning of 1980s. It explains with the following example in Wikipedia.</font></p>
<blockquote><dl>
<dd><font color="#595959">Consider a building with a few broken </font><a href="http://en.wikipedia.org/wiki/Window"><font color="#595959">windows</font></a><font color="#595959">. If the windows are not repaired, the tendency is for </font><a href="http://en.wikipedia.org/wiki/Vandalism"><font color="#595959">vandals</font></a><font color="#595959"> to break a few more windows. Eventually, they may even break into the building, and if it&#8217;s unoccupied, perhaps become </font><a href="http://en.wikipedia.org/wiki/Squatter"><font color="#595959">squatters</font></a><font color="#595959"> or light fires inside.</font></dd>
</dl>
<dl>
<dd><font color="#595959">Or consider a </font><a href="http://en.wikipedia.org/wiki/Sidewalk"><font color="#595959">sidewalk</font></a><font color="#595959">. Some </font><a href="http://en.wikipedia.org/wiki/Litter"><font color="#595959">litter</font></a><font color="#595959"> accumulates. Soon, more litter accumulates. Eventually, people even start leaving bags of trash from take-out restaurants there or breaking into cars.</font></dd>
</dl>
</blockquote>
<p align="justify"><font face="Tahoma">By being based on this theory, the authorities that predict much bigger problems can be solved by giving priority to the smallest problems and violations of rule in some big cities as New York provided crime ratioes reduced about zero level within next 20 years.</font>
<p align="justify"><font face="Tahoma">Broken windows theory can also constitute solution for many big problems at your business life. In your own business or in the company you work, to solve the problems seem unimportant fastly prevents to be repeated failure like them and become bigger problems supported by those small problems.</font>
<p align="justify"><a href="http://en.wikipedia.org/wiki/Broken_windows" target="_blank">http://en.wikipedia.org/wiki/Broken_windows</a>
<p align="justify"><font face="Tahoma">&nbsp; </font></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/savaskulah.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/savaskulah.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/savaskulah.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/savaskulah.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/savaskulah.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/savaskulah.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/savaskulah.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/savaskulah.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/savaskulah.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/savaskulah.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/savaskulah.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/savaskulah.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=savaskulah.wordpress.com&blog=1717771&post=26&subd=savaskulah&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://savaskulah.wordpress.com/2007/10/24/broken-windows/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/savaskulah-128.jpg" medium="image">
			<media:title type="html">Savaş Külah</media:title>
		</media:content>
	</item>
		<item>
		<title>I love PL/SQL</title>
		<link>http://savaskulah.wordpress.com/2007/10/06/i-love-plsql/</link>
		<comments>http://savaskulah.wordpress.com/2007/10/06/i-love-plsql/#comments</comments>
		<pubDate>Sat, 06 Oct 2007 21:41:55 +0000</pubDate>
		<dc:creator>Savaş Külah</dc:creator>
		
		<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false">http://savaskulah.wordpress.com/2007/10/06/i-love-plsql/</guid>
		<description><![CDATA[
Writing business logic by using PL/SQL is a good opinion to keep in database all things and in terms of security. 
On the other hand, do you think that things you can do with PL/SQL is limited with this.
The following web site you maybe give hints about what sort to do much more.
www.plpdf.com
I love PL/SQL&#8230;
 [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /></p>
<p><font face="Tahoma">Writing business logic by using PL/SQL is a good opinion to keep in database all things and in terms of security. </font></p>
<p><font face="Tahoma">On the other hand, do you think that things you can do with PL/SQL is limited with this.</font></p>
<p><font face="Tahoma">The following web site you maybe give hints about what sort to do much more.</font></p>
<p><font face="Tahoma"><a href="http://www.plpdf.com" target="_blank">www.plpdf.com</a></font></p>
<p><font face="Tahoma">I love PL/SQL&#8230;</font></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/savaskulah.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/savaskulah.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/savaskulah.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/savaskulah.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/savaskulah.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/savaskulah.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/savaskulah.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/savaskulah.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/savaskulah.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/savaskulah.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/savaskulah.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/savaskulah.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=savaskulah.wordpress.com&blog=1717771&post=25&subd=savaskulah&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://savaskulah.wordpress.com/2007/10/06/i-love-plsql/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/savaskulah-128.jpg" medium="image">
			<media:title type="html">Savaş Külah</media:title>
		</media:content>
	</item>
		<item>
		<title>Collections in PL/SQL - Part Two</title>
		<link>http://savaskulah.wordpress.com/2007/10/01/collections-in-plsql-part-two/</link>
		<comments>http://savaskulah.wordpress.com/2007/10/01/collections-in-plsql-part-two/#comments</comments>
		<pubDate>Mon, 01 Oct 2007 18:36:36 +0000</pubDate>
		<dc:creator>Savaş Külah</dc:creator>
		
		<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false">http://savaskulah.wordpress.com/2007/10/01/collections-in-plsql-part-two/</guid>
		<description><![CDATA[2. Nested Table
Nested Table is an another collection type. The difference from associative array I mentioned earlier is that need to initialize before using it. Besides nested tables can use as table columns. 
CREATE [ OR REPLACE ] TYPE type_name AS &#124; IS TABLE OF element_datatype [ NOT NULL ];
Example;

&#160;&#160;&#160; DECLARE &#160;&#160;&#160;&#160;&#160;&#160;&#160; TYPE TEmpLstType IS [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h4><font face="Tahoma"><strong>2. Nested Table</strong></font></h4>
<p><font face="Tahoma">Nested Table is an another collection type. The difference from associative array I mentioned earlier is that need to initialize before using it. Besides nested tables can use as table columns. </font></p>
<p><font face="Courier New">CREATE [ OR REPLACE ] TYPE type_name AS | IS TABLE OF element_datatype [ NOT NULL ];</font></p>
<p><font face="Tahoma">Example;</font></p>
<p><span id="more-24"></span></p>
<p><font face="Tahoma">&nbsp;&nbsp;&nbsp; </font><font face="Courier New">DECLARE <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE TEmpLstType IS TABLE OF VARCHAR2 (20); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; emp_list TEmpLstType := TEmpLstType ( );&nbsp; //&nbsp; must initialize <br />&nbsp;&nbsp;&nbsp; BEGIN <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; emp_list.EXTEND;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; emp_list (1) := &#8216;Mehmet&#8217;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; emp_list.EXTEND (2);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; emp_list (1) := &#8216;John&#8217;; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; emp_list (2) := &#8216;David&#8217;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FOR rw IN emp_list.FIRST .. emp_list.LAST <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LOOP<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DBMS_OUTPUT.PUT_LINE (emp_list (l_row)); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END LOOP;<br />&nbsp;&nbsp;&nbsp; END;</font></p>
<p><font face="Tahoma">With EXTEND method, it is opened an empty room in the emp_list nested table.<br />You can use nested tables as table columns. For example,</font></p>
<p><font face="Tahoma">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><font face="Courier New">CREATE TYPE TEmpAddresType AS TABLE OF VARCHAR2(100);<br />&nbsp;&nbsp;&nbsp; CREATE TABLE employees (<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id NUMBER,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name VARCHAR2(50), <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; address_list TEmpAddresType ) <br />&nbsp;&nbsp;&nbsp; NESTED TABLE address_list STORE AS address_list_ntable;</font></p>
<p><font face="Tahoma">The address list will store in the address_list_ntable. address_list_ntable cannot query. If you do,&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><font face="Courier New"> select * from address_list_table;</font></p>
<p><font face="Tahoma">then oracle will raise &#8220;ORA-22812: cannot reference nested table column&#8217;s storage table&#8221;.</font></p>
<h4><strong>3. VARRAY (variable-sized arrays)</strong></h4>
<p><font face="Tahoma">This type are alike nested table. The difference from nested table is that using for small arrays. It can also use as table columns like nested table. </font></p>
<p><font face="Tahoma">&nbsp;&nbsp; </font><font face="Courier New"> CREATE [ OR REPLACE ] TYPE type_name AS | IS VARRAY (max_elements) OF element_datatype&nbsp;&nbsp;&nbsp; [&nbsp; NOT NULL ];</font></p>
<p><font face="Tahoma">&nbsp;&nbsp; <font face="Courier New">&nbsp; CREATE TYPE TEmpAddresVtype IS VARRAY (2) OF VARCHAR2 (100); // have max 100 elements<br />&nbsp;&nbsp;&nbsp; CREATE TYPE TEmpBirthdateVtype IS VARRAY (1) OF VARCHAR2 (100);<br />&nbsp;&nbsp;&nbsp; CREATE TABLE employees ( <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name VARCHAR2(100), <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; address_lst TEmpAddresVtype, <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; birthdate_lst TEmpBirthdateVtype );</font></font></p>
<p><font face="Tahoma"><font face="Courier New">&nbsp;&nbsp;&nbsp; DECLARE <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; address_list&nbsp;&nbsp; TEmpAddresVtype := TEmpAddresVtype ( );<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; birthdate_list TEmpBirthdateVtype := TEmpBirthdateVtype ( );<br />&nbsp;&nbsp;&nbsp; BEGIN <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; address_list.EXTEND (2); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; address_list (1) := &#8216;MASLAK/ISTANBUL&#8217;; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; address_list (2) := &#8216;ZEYTINBURNU/ISTANBUL&#8217;; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; birthdate_list.EXTEND; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; birthdate_list (1) := &#8216;01.02.1979&#8242;; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INSERT INTO employees ( name, address_lst, birthdate_lst ) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VALUES ( &#8216;ahmet&#8217;, address_list, birthdate_list ); <br />&nbsp;&nbsp;&nbsp; END;</font>&nbsp;&nbsp;&nbsp;&nbsp; </font></p>
<p><font face="Tahoma">Finally VARRAY and Nested Table are same. But VARRAY is for small arrays and nested table is for big arrays because of storing array elements in background table.</font></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/savaskulah.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/savaskulah.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/savaskulah.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/savaskulah.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/savaskulah.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/savaskulah.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/savaskulah.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/savaskulah.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/savaskulah.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/savaskulah.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/savaskulah.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/savaskulah.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=savaskulah.wordpress.com&blog=1717771&post=24&subd=savaskulah&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://savaskulah.wordpress.com/2007/10/01/collections-in-plsql-part-two/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/savaskulah-128.jpg" medium="image">
			<media:title type="html">Savaş Külah</media:title>
		</media:content>
	</item>
		<item>
		<title>Collections in PL/SQL - Part One</title>
		<link>http://savaskulah.wordpress.com/2007/09/15/collections-in-plsql-part-one/</link>
		<comments>http://savaskulah.wordpress.com/2007/09/15/collections-in-plsql-part-one/#comments</comments>
		<pubDate>Sat, 15 Sep 2007 14:20:41 +0000</pubDate>
		<dc:creator>Savaş Külah</dc:creator>
		
		<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false">http://savaskulah.wordpress.com/2007/09/15/collections-in-plsql-part-one/</guid>
		<description><![CDATA[How do you use arrays in PL/SQL?
In other programming language like Java and C# you simply define as following line:int[] iArray = new int[5];
But in PL/SQL it&#8217;s not as easy as that. Why? Because there are three types of collections and we ought to know which collection type must use. Collections are expecially very useful [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><font face="Tahoma" size="2">How do you use arrays in PL/SQL?</font></p>
<p><font face="Tahoma" size="2">In other programming language like Java and C# you simply define as following line:<br />int[] iArray = new int[5];</font></p>
<p><font face="Tahoma" size="2">But in PL/SQL it&#8217;s not as easy as that. Why? Because there are three types of collections and we ought to know which collection type must use. Collections are expecially very useful for caching data of lookup tables. If data is cached then amount of context-switching will be less. </font></p>
<p><span id="more-23"></span></p>
<p><font face="Tahoma" size="2">There are three types of collections:</font></p>
<h3>1. Associative Array</h3>
<p><font face="Tahoma"></font>&nbsp;</p>
<p><font face="Tahoma">This type is alike sequential arrays. The difference is that you have not to use sequential index in associative arrays. Index type can be numeric or alphanumeric.</font></p>
<p><font face="Tahoma">Syntax,</font></p>
<p>&nbsp;&nbsp;&nbsp; <font face="Courier New">TYPE table_type_name IS TABLE OF datatype [ NOT NULL ] INDEX BY index_type;</font></p>
<p><font face="Tahoma">Examples of syntax,</font></p>
<p>&nbsp;&nbsp;&nbsp; <font face="Courier New">TYPE startdate_type IS TABLE OF DATE INDEX BY PLS_INTEGER;<br />&nbsp;&nbsp;&nbsp; TYPE keyval_type IS TABLE OF NUMBER INDEX BY VARCHAR2(20);</font>&nbsp;&nbsp;&nbsp; </p>
<p><font face="Tahoma">Code example,</font></p>
<p>&nbsp;&nbsp;&nbsp; <font face="Courier New">DECLARE<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE keyval_type IS TABLE OF NUMBER INDEX BY VARCHAR2(20);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; keyval_array keyval_type;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_row PLS_INTEGER;<br />&nbsp;&nbsp;&nbsp; BEGIN<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; keyval_array (&#8217;AAA&#8217;) := 2;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; keyval_array (&#8217;BBB&#8217;) := 40;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; keyval_array (&#8217;CCC&#8217;) := -7;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DBMS_OUTPUT.put_line ( keyval_array(&#8217;AAA&#8217;) || keyval_array(&#8217;BBB&#8217;) || keyval_array (&#8217;CCC&#8217;) );&nbsp; <br />&nbsp;&nbsp;&nbsp; END;</font></p>
<p><font face="Tahoma">Example of for-loop&nbsp;&nbsp;&nbsp; </font></p>
<p><font face="Tahoma">&nbsp;&nbsp;&nbsp; </font><font face="Courier New">DECLARE<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE keyval_type IS TABLE OF NUMBER INDEX BY VARCHAR2(20);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; keyval_array keyval_type;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; elmnt VARCHAR2(20);<br />&nbsp;&nbsp;&nbsp; BEGIN<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; keyval_array (&#8217;AAA&#8217;) := 2;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; keyval_array (&#8217;BBB&#8217;) := 40;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; keyval_array (&#8217;CCC&#8217;) := -7;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; elmnt := keyval_array.FIRST;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WHILE (elmnt is not null)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LOOP<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IF keyval_array.EXISTS(elmnt) THEN<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DBMS_OUTPUT.PUT_LINE ( elmnt || &#8216;=&#8217; ||&nbsp; keyval_array (elmnt) );<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END IF;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; elmnt := keyval_array.NEXT(elmnt);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END LOOP;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; END;</font></p>
<p><font face="Tahoma">There is various methods you use for associative arrays. Some of these are FIRST/LAST, EXISTS, PRIOR/NEXT, COUNT, DELETE.</font></p>
<p><font face="Tahoma">At the next post I will try to introduce other two collection types, Nested tables and VARRAYs.</font></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/savaskulah.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/savaskulah.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/savaskulah.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/savaskulah.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/savaskulah.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/savaskulah.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/savaskulah.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/savaskulah.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/savaskulah.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/savaskulah.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/savaskulah.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/savaskulah.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=savaskulah.wordpress.com&blog=1717771&post=23&subd=savaskulah&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://savaskulah.wordpress.com/2007/09/15/collections-in-plsql-part-one/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/savaskulah-128.jpg" medium="image">
			<media:title type="html">Savaş Külah</media:title>
		</media:content>
	</item>
	</channel>
</rss>