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

<channel>
	<title>OCILIB</title>
	<atom:link href="http://orclib.sourceforge.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://orclib.sourceforge.net</link>
	<description>C Wrapper for Oracle OCI : Open source C library for accessing Oracle databases</description>
	<pubDate>Fri, 20 Nov 2009 11:58:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OCILIB v3.4.1 coming on November, Monday 23th !</title>
		<link>http://orclib.sourceforge.net/2009/11/ocilib-v341-coming-on-november-monday-23th/</link>
		<comments>http://orclib.sourceforge.net/2009/11/ocilib-v341-coming-on-november-monday-23th/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 11:56:48 +0000</pubDate>
		<dc:creator>Vincent Rogier</dc:creator>
		
		<category><![CDATA[Code]]></category>

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

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

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

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

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

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

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

		<guid isPermaLink="false">http://orclib.sourceforge.net/?p=352</guid>
		<description><![CDATA[Hello !
OCILIB v3.4.1 will be available by next monday (2009-11-23).
The SourceForge SVN will be updated with the last sources this weekend and release packages available on SourceForge by monday.
This release only contains bug fixes and minor changes that could not wait for v3.5.0 that has been developed for last few month.
Here is the changelog of [...]]]></description>
			<content:encoded><![CDATA[<p>Hello !</p>
<p>OCILIB v3.4.1 will be available by next monday (2009-11-23).</p>
<p>The SourceForge SVN will be updated with the last sources this weekend and release packages available on SourceForge by monday.</p>
<p>This release only contains bug fixes and minor changes that could not wait for v3.5.0 that has been developed for last few month.</p>
<p>Here is the changelog of the 3.4.1 :</p>

<div class="wp_syntax"><div class="code"><pre class="c c" style="font-family:monospace;"><span style="color: #0000dd;">2009</span><span style="color: #339933;">-</span><span style="color: #0000dd;">11</span><span style="color: #339933;">-</span><span style="color: #0000dd;">23</span> Version 3.4.1 Vincent Rogier vince.<span style="color: #202020;">rogier</span>@gmail.<span style="color: #202020;">com</span>
&nbsp;
    <span style="color: #339933;">*</span> Native <span style="color: #0000dd;">64</span> bits fixes
&nbsp;
      <span style="color: #339933;">-</span> Fixed Direct Path API
      <span style="color: #339933;">-</span> Added casts <span style="color: #339933;">+</span> modified some variables types
&nbsp;
    <span style="color: #339933;">*</span> PL<span style="color: #339933;">/</span>SQL support fixes
      <span style="color: #339933;">-</span> Segmentation fault could happen when using OCI_Date binds in PL<span style="color: #339933;">/</span>SQL statements
      <span style="color: #339933;">-</span> Binds values <span style="color: #b1b100;">for</span> OCI_Date and big_int variable where not updated after OCI_Execute <span style="color: #b1b100;">for</span> PL<span style="color: #339933;">/</span>SQL
      <span style="color: #339933;">-</span> OCI_ServerGetOutput<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> ouput was broken <span style="color: #b1b100;">if</span> statements PL<span style="color: #339933;">/</span>LSQL statmeent<span style="color: #339933;">/</span>blocks were re<span style="color: #339933;">-</span>executed
      <span style="color: #339933;">-</span> OCI_ServerGetOutput<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> trash <span style="color: #993333;">string</span> was returned <span style="color: #b1b100;">if</span> the number of amonut of output lines was greater than the value of the  <span style="color: #339933;">&lt;</span>arrsize<span style="color: #339933;">&gt;</span> parameter of OCI_ServerEnableOutput<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
&nbsp;
    <span style="color: #339933;">*</span> Miscellaneous fixes
&nbsp;
      <span style="color: #339933;">-</span> OCI_ImmediateFmt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> OCI_PrepareFmt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> OCI_ExecuteStmtFmt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>  trailing character of formatted <span style="color: #993333;">string</span> representation of dates was missing on non windows plaftorms
      <span style="color: #339933;">-</span> OCI_ObjectGetColl<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the internal OCI Collection handle of the returned OCI_Coll object was invalid and thus caused segfault when calling OCI_Coll functions afterward <span style="color: #b1b100;">for</span> these objects
      <span style="color: #339933;">-</span> OCI_DateNextDay<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> On unixes platforms<span style="color: #339933;">+</span>Unicode builds <span style="color: #339933;">-&gt;</span> wrong value passed to the OCI internal call
&nbsp;
    <span style="color: #339933;">*</span> Miscellaneous  changes
&nbsp;
      <span style="color: #339933;">-</span> OCI_RefToText<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> parameter size is now <span style="color: #b1b100;">if</span> type <span style="color: #339933;">&lt;</span>unsigned int<span style="color: #339933;">&gt;</span> instead of <span style="color: #339933;">&lt;</span>int<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">-</span> Modified <span style="color: #339933;">:</span> OCI_BIND_MAX <span style="color: #009900;">&#40;</span>maximum number of binds <span style="color: #b1b100;">for</span> a statement<span style="color: #009900;">&#41;</span> is now <span style="color: #0000dd;">1024</span> by <span style="color: #b1b100;">default</span> instead of <span style="color: #0000dd;">512</span>
      <span style="color: #339933;">-</span> Added Oracle spatial demo source <span style="color: #009900;">&#40;</span>demo<span style="color: #339933;">/</span>geometry.<span style="color: #202020;">c</span><span style="color: #009900;">&#41;</span></pre></div></div>

<p>Next version, v3.5.0, is a massive internal rewrite for handling different types of strings.</p>
<p>At the moment, OCILIB handles string as :</p>

<div class="wp_syntax"><div class="code"><pre class="c c" style="font-family:monospace;"><span style="color: #339933;">-</span> <span style="color: #993333;">char</span> <span style="color: #339933;">*</span>  <span style="color: #009900;">&#40;</span>OCI_CHARSET_ANSI<span style="color: #009900;">&#41;</span>
<span style="color: #339933;">-</span> <span style="color: #993333;">wchar_t</span> <span style="color: #339933;">*</span> <span style="color: #009900;">&#40;</span>OCI_CHARSET_UNICODE<span style="color: #009900;">&#41;</span>
<span style="color: #339933;">-</span> mixed mode <span style="color: #b1b100;">for</span> <span style="color: #993333;">char</span> <span style="color: #339933;">*</span> statements and <span style="color: #993333;">wchar_t</span> <span style="color: #339933;">*</span> user data <span style="color: #009900;">&#40;</span>OCI_CHARSET_MIXED<span style="color: #009900;">&#41;</span></pre></div></div>

<p>I implemented a portable way to use wchar_t on all platforms (but a real pain internally!) as OCI handles Unicode string as fixed 2 bytes UTF16.</p>
<p>On MS windows, that&#8217;s good because Microsoft C runtime implements wchar_t as UTF16.<br />
On most of unixes, wchart_t is 4 bytes and OCILIB uses internal buffers when talking to OCI and pack/unpack data from/to user strings.</p>
<p>All of that works well&#8230;. But when working in Unicode mode on unixes with big resultsets or binds, performance can suffer of internal conversions (even if the internal routines are quite efficient)</p>
<p>So, I decided to refactor OCILIB charset modes as follow :</p>

<div class="wp_syntax"><div class="code"><pre class="c c" style="font-family:monospace;">OCI_CHARSET_ANSI
OCI_CHARSET_UTF8
OCI_CHARSET_UTF16
OCI_CHARSET_UTF32</pre></div></div>

<p>For backwards compatibility, OCILIB v3.5.0  defines :</p>
<p>OCI_CHARSET_UTF16 if user has defined OCI_CHARSET_UNICODE on MS Windows<br />
OCI_CHARSET_UTF32 if user has defined OCI_CHARSET_UNICODE on unixes</p>
<p>The new mode OCI_CHARSET_UTF8 internally initializes OCI in UTF16 and performs conversion on the fly when needed to not loose surrogates.</p>
<p>These new modes would allow an Unix programmer to pass its own UTF16 strings (from a third party lib or from its own implementation) to OCILIB with better performances.<br />
And a programmer that want to use native wchar_t would still be able to do so (using the actual OCILIB implementation).</p>
<p>To summarize, OCILIB users will be able to chose the type of strings that they want to use between ANSI, UTF8, UTF16 and UTF32 whatever the platform</p>
<p>Have a nice week end !</p>
]]></content:encoded>
			<wfw:commentRss>http://orclib.sourceforge.net/2009/11/ocilib-v341-coming-on-november-monday-23th/feed/</wfw:commentRss>
		</item>
		<item>
		<title>OCILIB v3.4.0 now available for download</title>
		<link>http://orclib.sourceforge.net/2009/07/ocilib-v340-now-available-for-download/</link>
		<comments>http://orclib.sourceforge.net/2009/07/ocilib-v340-now-available-for-download/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 12:04:26 +0000</pubDate>
		<dc:creator>Vincent Rogier</dc:creator>
		
		<category><![CDATA[News]]></category>

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

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

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

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

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

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

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

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

		<guid isPermaLink="false">http://orclib.sourceforge.net/?p=348</guid>
		<description><![CDATA[
OCILIB v3.4.0 is now available for download ! Here is the list of the main changes :

Added support for Oracle 11g remote instance management
Miscelleanous fixes (binds, collections, etc.., see changelog for more details)
Miscelleanous modifications (Oracle version handling, etc&#8230;, see changelog for more details)

See the complete v3.4.0 change log here
Get the release and enjoy it !
Have [...]]]></description>
			<content:encoded><![CDATA[<p>
OCILIB v3.4.0 is now <a href="http://orclib.sourceforge.net/download/"><u>available for download</u></a> ! Here is the list of the main changes :</p>
<ul>
<li>Added support for Oracle 11g remote instance management</li>
<li>Miscelleanous fixes (binds, collections, etc.., see changelog for more details)</li>
<li>Miscelleanous modifications (Oracle version handling, etc&#8230;, see changelog for more details)</li>
</ul>
<p>See the <a href="http://orclib.sourceforge.net/public/changelogs/ocilib-changelog-v3.4.0.txt" target="_blank"><u>complete v3.4.0 change log here</u></a></p>
<p>Get the release and enjoy it !</p>
<p>Have a nice weekend.
</ul>
]]></content:encoded>
			<wfw:commentRss>http://orclib.sourceforge.net/2009/07/ocilib-v340-now-available-for-download/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Working with Oracle spatial types &#8230;</title>
		<link>http://orclib.sourceforge.net/2009/07/working-with-oracle-spatial-types/</link>
		<comments>http://orclib.sourceforge.net/2009/07/working-with-oracle-spatial-types/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 10:38:18 +0000</pubDate>
		<dc:creator>Vincent Rogier</dc:creator>
		
		<category><![CDATA[Code]]></category>

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

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

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

		<guid isPermaLink="false">http://orclib.sourceforge.net/?p=335</guid>
		<description><![CDATA[Few days ago, I saw thread in OTN Oracle Call Interface forum about how to handle Oracle Spacial SDO_GEOMETRY in OCI. 
I decided to show how it could be done with OCILIB  
Here is the writegeom sample app from Oracle rewritten with OCILIB :

number of lines reduced by factor 4-5
much easier code to read
the [...]]]></description>
			<content:encoded><![CDATA[<p>Few days ago, I saw thread in OTN Oracle Call Interface forum about how to handle Oracle Spacial SDO_GEOMETRY in OCI. </p>
<p>I decided to show how it could be done with OCILIB <img src='http://orclib.sourceforge.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here is the <a href="http://www.oracle.com/technology/sample_code/products/spatial/htdocs/oci_sample/oci_sample_readme.htm">writegeom sample app from Oracle</a> rewritten with OCILIB :</p>
<ul>
<li>number of lines reduced by factor 4-5</li>
<li>much easier code to read</li>
<li>the whole sdo_object is binded to the statement</li>
</ul>
<p>Here is the code :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
</pre></td><td class="code"><pre class="c c" style="font-family:monospace;"><span style="color: #339933;">#include &quot;ocilib.h&quot;</span>
&nbsp;
<span style="color: #339933;">#define NB_ELEM 500</span>
&nbsp;
<span style="color: #993333;">void</span> error<span style="color: #009900;">&#40;</span>OCI_Error <span style="color: #339933;">*</span>err<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #000066;">printf</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;msg   : %s<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> OCI_ErrorGetString<span style="color: #009900;">&#40;</span>err<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>;
    exit<span style="color: #009900;">&#40;</span>EXIT_FAILURE<span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #993333;">int</span> main<span style="color: #009900;">&#40;</span><span style="color: #993333;">int</span> argc<span style="color: #339933;">,</span> <span style="color: #993333;">char</span> <span style="color: #339933;">**</span>argv<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    OCI_Connection <span style="color: #339933;">*</span>cn;
    OCI_Statement  <span style="color: #339933;">*</span>st;
    OCI_Object     <span style="color: #339933;">*</span>obj_sdo;
    OCI_Coll       <span style="color: #339933;">*</span>coll_inf<span style="color: #339933;">,</span>  <span style="color: #339933;">*</span>coll_ord;
    OCI_Elem       <span style="color: #339933;">*</span>elem_inf<span style="color: #339933;">,</span>  <span style="color: #339933;">*</span>elem_ord;
    OCI_TypeInfo   <span style="color: #339933;">*</span>tif_inf<span style="color: #339933;">,</span>   <span style="color: #339933;">*</span>tif_ord<span style="color: #339933;">,</span> <span style="color: #339933;">*</span>tif_sdo;
&nbsp;
    <span style="color: #993333;">int</span> i;
&nbsp;
    <span style="color: #808080; font-style: italic;">/* check command line */</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>argc <span style="color: #339933;">&lt;</span> <span style="color: #0000dd;">3</span><span style="color: #009900;">&#41;</span> 
    <span style="color: #009900;">&#123;</span>
        fprintf<span style="color: #009900;">&#40;</span>stderr<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;Usage: %s user password<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> argv<span style="color: #009900;">&#91;</span><span style="color:#800080;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #b1b100;">return</span> EXIT_FAILURE;
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #808080; font-style: italic;">/* init OCILIB */</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>OCI_Initialize<span style="color: #009900;">&#40;</span>error<span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">NULL</span><span style="color: #339933;">,</span> OCI_ENV_DEFAULT<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #808080; font-style: italic;">/* connect to oracle */</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>cn <span style="color: #339933;">=</span> OCI_ConnectionCreate<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">NULL</span><span style="color: #339933;">,</span> argv<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> argv<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> OCI_SESSION_DEFAULT<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
            <span style="color: #000066;">printf</span> <span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Connected to Oracle.<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
            <span style="color: #808080; font-style: italic;">/* retreive type info */</span>
            tif_sdo <span style="color: #339933;">=</span> OCI_TypeInfoGet<span style="color: #009900;">&#40;</span>cn<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;MDSYS.SDO_GEOMETRY&quot;</span><span style="color: #339933;">,</span> OCI_TIF_TYPE<span style="color: #009900;">&#41;</span>;
            tif_inf <span style="color: #339933;">=</span> OCI_TypeInfoGet<span style="color: #009900;">&#40;</span>cn<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;MDSYS.SDO_ELEM_INFO_ARRAY&quot;</span><span style="color: #339933;">,</span> OCI_TIF_TYPE<span style="color: #009900;">&#41;</span>;
            tif_ord <span style="color: #339933;">=</span> OCI_TypeInfoGet<span style="color: #009900;">&#40;</span>cn<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;MDSYS.SDO_ORDINATE_ARRAY&quot;</span><span style="color: #339933;">,</span> OCI_TIF_TYPE<span style="color: #009900;">&#41;</span>;
&nbsp;
            <span style="color: #808080; font-style: italic;">/* create sdo object */</span>
            obj_sdo <span style="color: #339933;">=</span> OCI_ObjectCreate<span style="color: #009900;">&#40;</span>cn<span style="color: #339933;">,</span> tif_sdo<span style="color: #009900;">&#41;</span>;
&nbsp;
            <span style="color: #808080; font-style: italic;">/* create sub arrays */</span>
            coll_inf <span style="color: #339933;">=</span> OCI_CollCreate<span style="color: #009900;">&#40;</span>tif_inf<span style="color: #009900;">&#41;</span>;
            coll_ord <span style="color: #339933;">=</span> OCI_CollCreate<span style="color: #009900;">&#40;</span>tif_ord<span style="color: #009900;">&#41;</span>;
&nbsp;
            <span style="color: #808080; font-style: italic;">/* create sub array element accessors */</span>
            elem_inf <span style="color: #339933;">=</span> OCI_ElemCreate<span style="color: #009900;">&#40;</span>tif_inf<span style="color: #009900;">&#41;</span>;
            elem_ord <span style="color: #339933;">=</span> OCI_ElemCreate<span style="color: #009900;">&#40;</span>tif_ord<span style="color: #009900;">&#41;</span>;
&nbsp;
            <span style="color: #808080; font-style: italic;">/* build ordinates collection with test values */</span>
            <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span>i <span style="color: #339933;">=</span> <span style="color:#800080;">0</span>; i <span style="color: #339933;">&lt;</span> NB_ELEM; i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
            <span style="color: #009900;">&#123;</span>
                OCI_ElemSetDouble<span style="color: #009900;">&#40;</span>elem_ord<span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span><span style="color: #993333;">double</span><span style="color: #009900;">&#41;</span> i<span style="color: #009900;">&#41;</span>;
                OCI_CollAppend<span style="color: #009900;">&#40;</span>coll_ord<span style="color: #339933;">,</span> elem_ord<span style="color: #009900;">&#41;</span>;
                OCI_CollAppend<span style="color: #009900;">&#40;</span>coll_ord<span style="color: #339933;">,</span> elem_ord<span style="color: #009900;">&#41;</span>;
            <span style="color: #009900;">&#125;</span>
&nbsp;
            <span style="color: #808080; font-style: italic;">/* setup information collection attribute 'starting_offset' */</span>
            OCI_ElemSetUnsignedInt<span style="color: #009900;">&#40;</span>elem_inf<span style="color: #339933;">,</span> <span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span>;
            OCI_CollAppend<span style="color: #009900;">&#40;</span>coll_inf<span style="color: #339933;">,</span> elem_inf<span style="color: #009900;">&#41;</span>;
&nbsp;
            <span style="color: #808080; font-style: italic;">/* setup information collection attribute 'element_type' */</span>
            OCI_ElemSetUnsignedInt<span style="color: #009900;">&#40;</span>elem_inf<span style="color: #339933;">,</span> <span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span>;
            OCI_CollAppend<span style="color: #009900;">&#40;</span>coll_inf<span style="color: #339933;">,</span> elem_inf<span style="color: #009900;">&#41;</span>;
&nbsp;
            <span style="color: #808080; font-style: italic;">/* setup information collection attribute 'interpretation' */</span>
            OCI_ElemSetUnsignedInt<span style="color: #009900;">&#40;</span>elem_inf<span style="color: #339933;">,</span> <span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span>;
            OCI_CollAppend<span style="color: #009900;">&#40;</span>coll_inf<span style="color: #339933;">,</span> elem_inf<span style="color: #009900;">&#41;</span>;
&nbsp;
&nbsp;
            <span style="color: #808080; font-style: italic;">/* set sdo object member attributes */</span>
            OCI_ObjectSetInt<span style="color: #009900;">&#40;</span>obj_sdo<span style="color: #339933;">,</span>  <span style="color: #ff0000;">&quot;SDO_GTYPE&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">4</span><span style="color: #009900;">&#41;</span>;
            OCI_ObjectSetNull<span style="color: #009900;">&#40;</span>obj_sdo<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;SDO_SRID&quot;</span><span style="color: #009900;">&#41;</span>;
            OCI_ObjectSetNull<span style="color: #009900;">&#40;</span>obj_sdo<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;SDO_POINT&quot;</span><span style="color: #009900;">&#41;</span>;
            OCI_ObjectSetColl<span style="color: #009900;">&#40;</span>obj_sdo<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;SDO_ELEM_INFO&quot;</span><span style="color: #339933;">,</span> coll_inf<span style="color: #009900;">&#41;</span>;
            OCI_ObjectSetColl<span style="color: #009900;">&#40;</span>obj_sdo<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;SDO_ORDINATES&quot;</span><span style="color: #339933;">,</span> coll_ord<span style="color: #009900;">&#41;</span>;
&nbsp;
            <span style="color: #808080; font-style: italic;">/*create statement object */</span>
            st <span style="color: #339933;">=</span> OCI_StatementCreate<span style="color: #009900;">&#40;</span>cn<span style="color: #009900;">&#41;</span>;
&nbsp;
            <span style="color: #808080; font-style: italic;">/* prepare, bind and excute statement then commit*/</span>
            OCI_Prepare<span style="color: #009900;">&#40;</span>st<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;INSERT INTO test_insert (gid, geometry) VALUES (1, :sdo)&quot;</span><span style="color: #009900;">&#41;</span>;
            OCI_BindObject<span style="color: #009900;">&#40;</span>st<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;sdo&quot;</span><span style="color: #339933;">,</span> obj_sdo<span style="color: #009900;">&#41;</span>;
            OCI_Execute<span style="color: #009900;">&#40;</span>st<span style="color: #009900;">&#41;</span>;
            OCI_Commit<span style="color: #009900;">&#40;</span>cn<span style="color: #009900;">&#41;</span>;
&nbsp;
            <span style="color: #808080; font-style: italic;">/* free local objects */</span>
            OCI_ObjectFree<span style="color: #009900;">&#40;</span>obj_sdo<span style="color: #009900;">&#41;</span>;
            OCI_CollFree<span style="color: #009900;">&#40;</span>coll_inf<span style="color: #009900;">&#41;</span>;
            OCI_CollFree<span style="color: #009900;">&#40;</span>coll_ord<span style="color: #009900;">&#41;</span>;
            OCI_ElemFree<span style="color: #009900;">&#40;</span>elem_inf<span style="color: #009900;">&#41;</span>;
            OCI_ElemFree<span style="color: #009900;">&#40;</span>elem_ord<span style="color: #009900;">&#41;</span>;
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #808080; font-style: italic;">/* disconnect from oracle and cleanup OCILIB */</span>
    OCI_Cleanup<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
    <span style="color: #000066;">printf</span> <span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Disconnected from Oracle.<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
    <span style="color: #b1b100;">return</span> EXIT_SUCCESS;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://orclib.sourceforge.net/2009/07/working-with-oracle-spatial-types/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Support for 11g remote Instance management in OCILIB v3.4.0</title>
		<link>http://orclib.sourceforge.net/2009/07/support-for-11g-remote-instance-management-in-ocilib-v340/</link>
		<comments>http://orclib.sourceforge.net/2009/07/support-for-11g-remote-instance-management-in-ocilib-v340/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 10:26:57 +0000</pubDate>
		<dc:creator>Vincent Rogier</dc:creator>
		
		<category><![CDATA[Code]]></category>

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

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

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

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

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

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

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

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

		<guid isPermaLink="false">http://orclib.sourceforge.net/?p=329</guid>
		<description><![CDATA[Hello,
OCILIB v3.4.0 is coming soon  
This release fixes 3 bugs and adds support for Oracle 11g remote Instance startup/shutdown.
Here is a sample app that startups a remote instance and then shuts it down :


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include &#34;ocilib.h&#34;
&#160;
int main&#40;int argc, char **argv&#41;
&#123; 
    OCI_Initialize&#40;error, NULL,  OCI_ENV_DEFAULT&#41;;
&#160;
    /* start remote instance [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>OCILIB v3.4.0 is coming soon <img src='http://orclib.sourceforge.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>This release fixes 3 bugs and adds support for Oracle 11g remote Instance startup/shutdown.</p>
<p>Here is a sample app that startups a remote instance and then shuts it down :<br />
</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
</pre></td><td class="code"><pre class="c c" style="font-family:monospace;"><span style="color: #339933;">#include &quot;ocilib.h&quot;</span>
&nbsp;
<span style="color: #993333;">int</span> main<span style="color: #009900;">&#40;</span><span style="color: #993333;">int</span> argc<span style="color: #339933;">,</span> <span style="color: #993333;">char</span> <span style="color: #339933;">**</span>argv<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span> 
    OCI_Initialize<span style="color: #009900;">&#40;</span>error<span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">NULL</span><span style="color: #339933;">,</span>  OCI_ENV_DEFAULT<span style="color: #009900;">&#41;</span>;
&nbsp;
    <span style="color: #808080; font-style: italic;">/* start remote instance */</span>
&nbsp;
    OCI_DatabaseStartup<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;db&quot;</span><span style="color: #339933;">,</span> 
                        <span style="color: #ff0000;">&quot;sys_user&quot;</span><span style="color: #339933;">,</span> 
                        <span style="color: #ff0000;">&quot;sys_pwd&quot;</span><span style="color: #339933;">,</span>                
                        OCI_SESSION_SYSDBA<span style="color: #339933;">,</span> 
                        OCI_DB_SPM_FULL<span style="color: #339933;">,</span>
                        OCI_DB_SPF_DEFAULT<span style="color: #339933;">,</span>
                        <span style="color: #000000; font-weight: bold;">NULL</span><span style="color: #009900;">&#41;</span>;
&nbsp;
&nbsp;
     <span style="color: #808080; font-style: italic;">/* shutdown remote instance */</span>
&nbsp;
    OCI_DatabaseShutdown<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;db&quot;</span><span style="color: #339933;">,</span> 
                        <span style="color: #ff0000;">&quot;sys_user&quot;</span><span style="color: #339933;">,</span> 
                        <span style="color: #ff0000;">&quot;sys_pwd&quot;</span><span style="color: #339933;">,</span> 
                         OCI_SESSION_SYSDBA<span style="color: #339933;">,</span>
                         OCI_DB_SDM_FULL<span style="color: #339933;">,</span>
                         OCI_DB_SDF_DEFAULT<span style="color: #009900;">&#41;</span>;
&nbsp;
    OCI_Cleanup<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
    <span style="color: #b1b100;">return</span> EXIT_SUCCESS;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><strong>Isn&#8217;t cool ?</strong></p>
<p>Have a nice day..</p>
]]></content:encoded>
			<wfw:commentRss>http://orclib.sourceforge.net/2009/07/support-for-11g-remote-instance-management-in-ocilib-v340/feed/</wfw:commentRss>
		</item>
		<item>
		<title>OCILIB v3.3.0 now available for download</title>
		<link>http://orclib.sourceforge.net/2009/07/ocilib-v330-now-available-for-download/</link>
		<comments>http://orclib.sourceforge.net/2009/07/ocilib-v330-now-available-for-download/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 20:04:31 +0000</pubDate>
		<dc:creator>Vincent Rogier</dc:creator>
		
		<category><![CDATA[News]]></category>

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

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

		<category><![CDATA[batch errors]]></category>

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

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

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

		<guid isPermaLink="false">http://orclib.sourceforge.net/?p=323</guid>
		<description><![CDATA[
OCILIB v3.3.0 is now available for download ! Here is the list of the main changes :

Added SQL command and verb retrieving
Added support for batched errors for Array DML
Extended Lob Support
Extended Collection API
Modified and extended Bind API
Extended OCI_ImmediateXXX() API
Extended OCI_XXXFmt() API
Miscelleanous fixes (see changelog)
Miscelleanous modifications (see changelog)

See the complete v3.3.0 change log here
Get the release [...]]]></description>
			<content:encoded><![CDATA[<p>
OCILIB v3.3.0 is now <a href="http://orclib.sourceforge.net/download/"><u>available for download</u></a> ! Here is the list of the main changes :</p>
<ul>
<li>Added SQL command and verb retrieving</li>
<li>Added support for batched errors for Array DML</li>
<li>Extended Lob Support</li>
<li>Extended Collection API</li>
<li>Modified and extended Bind API</li>
<li>Extended OCI_ImmediateXXX() API</li>
<li>Extended OCI_XXXFmt() API</li>
<li>Miscelleanous fixes (see changelog)</li>
<li>Miscelleanous modifications (see changelog)</li>
</ul>
<p>See the <a href="http://orclib.sourceforge.net/public/changelogs/ocilib-changelog-v3.3.0.txt" target="_blank"><u>complete v3.3.0 change log here</u></a></p>
<p>Get the release and enjoy it !</p>
<p>Have a nice week.
</ul>
]]></content:encoded>
			<wfw:commentRss>http://orclib.sourceforge.net/2009/07/ocilib-v330-now-available-for-download/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
