<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Andrew Channels Dexter Pinion (Posts about database)</title><link>https://halfcooked.com/</link><description></description><atom:link href="https://halfcooked.com/categories/database.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Mon, 19 Feb 2024 21:51:00 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Gerald release 0.4.1</title><link>https://halfcooked.com/blog/2010/10/26/gerald-release-0-4-1/</link><dc:creator>Andrew J Todd esq.</dc:creator><description>&lt;p&gt;Before starting on some of the big changes planned for version 0.5, and thanks to patches and suggestions from various people I've addressed a couple of issues with Gerald 0.4. This means that we now have release &lt;a href="http://pypi.python.org/pypi/gerald/0.4.1"&gt;Gerald 0.4.1&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;What's new in this release? Not much, just some bug fixes, documentation changes and (hopefully) an egg that is installable on all platforms. The .egg files available from PyPI (and soon to be available on SourceForge) should install without any errors and if my testing is correct will be usable on multiple platforms including Windows.&lt;/p&gt;



&lt;p&gt;Downloads are available at the &lt;a href="http://pypi.python.org/pypi/gerald/0.4.1"&gt;PyPI page&lt;/a&gt; and the &lt;a href="https://sourceforge.net/projects/halfcooked/files/"&gt;SourceForge project page&lt;/a&gt;. As always, please send me an email with any problems or suggestions for improvement.&lt;/p&gt;</description><category>database</category><category>python</category><guid>https://halfcooked.com/blog/2010/10/26/gerald-release-0-4-1/</guid><pubDate>Tue, 26 Oct 2010 11:45:43 GMT</pubDate></item><item><title>Gerald release 0.4</title><link>https://halfcooked.com/blog/2010/06/27/gerald-release-0-4/</link><dc:creator>Andrew J Todd esq.</dc:creator><description>&lt;p&gt;I've been revelling in the &lt;a href="http://www.python.org/"&gt;Python&lt;/a&gt; goodness this weekend at &lt;a href="http://pycon-au.org/2010"&gt;PyCon Australia&lt;/a&gt;. This has motivated me to fix the last couple of issues and then package and release &lt;a href="http://pypi.python.org/pypi/gerald/0.4.0"&gt;Gerald 0.4&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;What's new in this release? The most important changes are fixes to a number of issues identified by users of &lt;a href="http://pypi.python.org/pypi/sqlpython"&gt;SQLPython&lt;/a&gt;. Gerald was appearing to take a long time to collect large schemas but was actually failing silently. I added test cases to show the problem and then fixed the code. This shouldn't happen any more. &lt;/p&gt;



&lt;p&gt;I applied a couple of patches supplied by &lt;a href="http://catherinedevlin.blogspot.com/"&gt;Catherine Devlin&lt;/a&gt; to cope with columns without defined lengths and to not get DBA objects in Oracle schemas.&lt;/p&gt;



&lt;p&gt;I slipped in some new features as well; I implemented the &lt;code&gt;to_xml&lt;/code&gt; and &lt;code&gt;compare&lt;/code&gt; methods on the &lt;code&gt;CodeObject&lt;/code&gt; class, and Gerald now supports views in MySQL (as long as you are running 5.1 or above).&lt;/p&gt;



&lt;p&gt;Finally, I changed the project documentation to use &lt;a href="http://sphinx.pocoo.org/"&gt;Sphinx&lt;/a&gt;.&lt;/p&gt;



&lt;p&gt;Downloads are available at the &lt;a href="http://pypi.python.org/pypi/gerald/0.4.0"&gt;PyPI page&lt;/a&gt; and the &lt;a href="https://sourceforge.net/projects/halfcooked/files/"&gt;SourceForge project page&lt;/a&gt;.&lt;/p&gt;



&lt;p&gt;If you find any problems or want to contribute any code just send me an &lt;a href="mailto:andy47@halfcooked.com"&gt;email&lt;/a&gt;.&lt;/p&gt;</description><category>database</category><category>oracle</category><category>python</category><guid>https://halfcooked.com/blog/2010/06/27/gerald-release-0-4/</guid><pubDate>Sun, 27 Jun 2010 15:36:17 GMT</pubDate></item><item><title>Gerald release 0.3.6</title><link>https://halfcooked.com/blog/2010/02/14/gerald-release-0-3-6/</link><dc:creator>Andrew J Todd esq.</dc:creator><description>&lt;p&gt;I have just released version 0.3.6 of &lt;a href="http://halfcooked.com/code/gerald/"&gt;Gerald&lt;/a&gt;. Gerald is a general purpose database schema toolkit written in &lt;a href="http://www.python.org/"&gt;Python&lt;/a&gt;.



&lt;/p&gt;&lt;p&gt;This release was at the request of the &lt;a href="http://pypi.python.org/pypi/sqlpython"&gt;sqlpython&lt;/a&gt; project and contains only one change. A new convenience method &lt;span class="inlinecode"&gt;connect&lt;/span&gt; has been added to the &lt;span class="inlinecode"&gt;Schema&lt;/span&gt; class. This enables a schema to be initiated and then later have a database connection associated with it. Because this changes the public API of gerald I've released this under a new version number.&lt;/p&gt;



&lt;p&gt;Development, bug and issue tracking and the project wiki are available on the project &lt;a href="http://trac.edgewall.org/"&gt;Trac&lt;/a&gt; site. Source code and distribution files are available at the &lt;a href="http://sourceforge.net/projects/halfcooked"&gt;sourceforge page&lt;/a&gt;. &lt;/p&gt;



&lt;p&gt;The next release will be 0.4. Exactly what will make up that release is still evolving, although it is likely to feature &lt;a href="http://www.microsoft.com/sqlserver/"&gt;SQL Server&lt;/a&gt; support as I have just started a new job and all of the systems there use it. To see what else is in the release and to track progress take a look at the &lt;a href="https://apps.sourceforge.net/trac/halfcooked/milestone/0.4"&gt;version 0.4 roadmap&lt;/a&gt;.&lt;/p&gt;</description><category>database</category><category>python</category><guid>https://halfcooked.com/blog/2010/02/14/gerald-release-0-3-6/</guid><pubDate>Sun, 14 Feb 2010 14:06:28 GMT</pubDate></item><item><title>Gerald release 0.3.5</title><link>https://halfcooked.com/blog/2010/01/21/gerald-release-0-3-5/</link><dc:creator>Andrew J Todd esq.</dc:creator><description>&lt;p&gt;This last weekend I released version 0.3.5 of &lt;a href="http://halfcooked.com/code/gerald/"&gt;gerald&lt;/a&gt;. 



&lt;/p&gt;&lt;p&gt;The major component of this release was to add a 'User' class to the oracle_schema module. This is similar to the 'Schema' class but whilst that shows all of the objects a database user owns the 'User' class contains details of all of the objects they can access, including those owned by other database users. This was requested by the &lt;a href="http://pypi.python.org/pypi/sqlpython"&gt;sqlpython&lt;/a&gt; project to enable them to use gerald for database introspection.&lt;/p&gt;



&lt;p&gt;The only other change was to ensure that the &lt;span class="inlinecode"&gt;NotImplementedError&lt;/span&gt; exception is raised in all of the super type methods that are just stubs. This is mainly in the &lt;span class="inlinecode"&gt;Schema.py&lt;/span&gt; module and thus meant that I had to add a set of tests for this module.&lt;/p&gt;



&lt;p&gt;Development, bug and issue tracking and the project wiki are available on the project &lt;a href="http://trac.edgewall.org/"&gt;Trac&lt;/a&gt; site. Source code and distribution files are available at the &lt;a href="http://sourceforge.net/projects/halfcooked"&gt;sourceforge page&lt;/a&gt;. &lt;/p&gt;



&lt;p&gt;The next release will be 0.4. Exactly what will make up that release is still evolving. To see what is in the release and to track progress take a look at the &lt;a href="https://apps.sourceforge.net/trac/halfcooked/milestone/0.4"&gt;version 0.4 roadmap&lt;/a&gt;.&lt;/p&gt;</description><category>database</category><category>General</category><category>python</category><guid>https://halfcooked.com/blog/2010/01/21/gerald-release-0-3-5/</guid><pubDate>Thu, 21 Jan 2010 09:40:34 GMT</pubDate></item><item><title>Gerald release 0.3.1</title><link>https://halfcooked.com/blog/2009/11/25/gerald-release-0-3-1/</link><dc:creator>Andrew J Todd esq.</dc:creator><description>&lt;p&gt;Everyone, say hello to version 0.3.1 of &lt;a href="http://halfcooked.com/code/gerald/"&gt;gerald&lt;/a&gt;. This is a minor update that fixed some issues introduced in release 0.3 In summary these are:&lt;/p&gt;

&lt;ul&gt;

  &lt;li&gt;&lt;a href="https://sourceforge.net/apps/trac/halfcooked/ticket/17"&gt;Ticket 17&lt;/a&gt; - Views have been converted to dictionaries from tuples&lt;/li&gt;

  &lt;li&gt;&lt;a href="https://sourceforge.net/apps/trac/halfcooked/ticket/18"&gt;Ticket 18&lt;/a&gt; - Reading an Oracle sequence updates it's current value&lt;/li&gt;

  &lt;li&gt;&lt;a href="https://sourceforge.net/apps/trac/halfcooked/ticket/19"&gt;Ticket 19&lt;/a&gt; - Postgres primary keys were not represented properly when read from the database&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;Development, bug and issue tracking and the project wiki are available on the project &lt;a href="http://trac.edgewall.org/"&gt;Trac&lt;/a&gt; site. Source code and distribution files are available at the &lt;a href="http://sourceforge.net/projects/halfcooked"&gt;sourceforge page&lt;/a&gt;. &lt;/p&gt;



&lt;p&gt;The next release will be 0.3.5 and will introduce the concept of a 'User'. This is similar to a 'Schema' but will reference all of the objects a database user can see &lt;em&gt;even if they don't own them&lt;/em&gt;. You can track progress for the release using the &lt;a href="https://apps.sourceforge.net/trac/halfcooked/milestone/0.3.5"&gt;version 0.3.5 roadmap&lt;/a&gt;.&lt;/p&gt;</description><category>database</category><category>python</category><guid>https://halfcooked.com/blog/2009/11/25/gerald-release-0-3-1/</guid><pubDate>Wed, 25 Nov 2009 15:25:27 GMT</pubDate></item><item><title>Gerald release 0.2.6</title><link>https://halfcooked.com/blog/2009/05/04/gerald-release-026/</link><dc:creator>Andrew J Todd esq.</dc:creator><description>&lt;p&gt;I have packaged and released version 0.2.6 of &lt;a href="http://halfcooked.com/code/gerald/"&gt;gerald&lt;/a&gt;. This is an update that doesn't change any functionality but has involved a major re-factoring of the module unit tests. Rather than wait I have released the package in it's current form to give a base for some major changes coming in release 0.3



Gerald is being considered for use in the &lt;a href="http://pypi.python.org/pypi/sqlpython/"&gt;SQLPython&lt;/a&gt; toolkit. For them to get full value I will need to make a number of changes to the code. Luckily for all of us these were on the development roadmap anyway, so I've just moved them up the priority list. 



As other people have shown an interest in the tool I have also invested in a little infrastructure and have fired up &lt;a href="http://trac.edgewall.org/"&gt;Trac&lt;/a&gt; for the &lt;a href="http://sourceforge.net/projects/halfcooked"&gt;sourceforge project&lt;/a&gt;. Gerald now has a &lt;a href="https://apps.sourceforge.net/trac/halfcooked/"&gt;wiki&lt;/a&gt; and, more importantly, a &lt;a href="https://apps.sourceforge.net/trac/halfcooked/report"&gt;ticketing system&lt;/a&gt; for bug reports and feature requests. I've put the changes coming for release 0.3 in a number of tickets and you can track progress for the release using the &lt;a href="https://apps.sourceforge.net/trac/halfcooked/milestone/0.3"&gt;version 0.3 roadmap&lt;/a&gt;.&lt;/p&gt;</description><category>database</category><category>python</category><guid>https://halfcooked.com/blog/2009/05/04/gerald-release-026/</guid><pubDate>Mon, 04 May 2009 12:38:43 GMT</pubDate></item><item><title>Gerald release 0.2.5</title><link>https://halfcooked.com/blog/2009/04/19/gerald-release-025/</link><dc:creator>Andrew J Todd esq.</dc:creator><description>&lt;p&gt;I have packaged and released version 0.2.5 of &lt;a href="http://halfcooked.com/code/gerald/"&gt;gerald&lt;/a&gt;. This is another minor release with a couple of bugs fixes and one important administration update. You can find all of the details in the CHANGELOG.txt file that comes with the source distribution (or view it &lt;a href="http://halfcooked.svn.sourceforge.net/viewvc/halfcooked/tags/release-0.2.5/CHANGELOG.txt?revision=59&amp;amp;view=markup"&gt;here&lt;/a&gt;) but in a nutshell the changes from the last release are;



&lt;/p&gt;&lt;ul&gt;

  &lt;li&gt;Fixed a bug in some connections to PostgreSQL&lt;/li&gt;

  &lt;li&gt;Removed references to database links without passwords in Oracle&lt;/li&gt;

  &lt;li&gt;Converted the package to use &lt;a href="http://peak.telecommunity.com/DevCenter/setuptools"&gt;setuptools&lt;/a&gt; and from this release onward it is installable using &lt;a href="http://peak.telecommunity.com/DevCenter/EasyInstall"&gt;easy_install&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;



The last change was at the request of the &lt;a href="http://pypi.python.org/pypi/sqlpython/"&gt;SQLPython&lt;/a&gt; project, if you haven't taken a look at that wonderful utility yet, please do. To support them it is likely that the next release of Gerald will support &lt;a href="http://www.sqlite.org/"&gt;SQLite&lt;/a&gt;.



Please download, install and enjoy. Bug reports. tumultuous praise or cash bribes to &lt;a href="mailto:andy47@halfcooked.com"&gt;the usual address&lt;/a&gt; please.</description><category>database</category><category>python</category><guid>https://halfcooked.com/blog/2009/04/19/gerald-release-025/</guid><pubDate>Sun, 19 Apr 2009 15:06:33 GMT</pubDate></item><item><title>Web 2.0 - better late than never</title><link>https://halfcooked.com/blog/2009/01/16/web-20-better-late-than-never/</link><dc:creator>Andrew J Todd esq.</dc:creator><description>&lt;p&gt;Just to prove that I am doing things even when I'm not posting here I am leaving my mark on the internet at these other places as well;



&lt;/p&gt;&lt;ul&gt;

  &lt;li&gt;&lt;a href="http://andy47.tumblr.com/"&gt;My tumblog&lt;/a&gt; - is that even what they are called?&lt;/li&gt;

  &lt;li&gt;&lt;a href="http://twitter.com/andy47"&gt;Twitter&lt;/a&gt; - of course&lt;/li&gt;

  &lt;li&gt;&lt;a href="http://www.plurk.com/andy47"&gt;Plurk&lt;/a&gt; - although these messages may be suspiciously similar to my tweets&lt;/li&gt;

  &lt;li&gt;&lt;a href="http://www.facebook.com/home.php#/profile.php?id=562837428"&gt;Facebook&lt;/a&gt; - just to keep up with the juvenile party photos of people I went to university with&lt;/li&gt;

  &lt;li&gt;&lt;a href="http://www.flickr.com/photos/andy47/"&gt;Flickr&lt;/a&gt; - although most of the photos are restricted, if you want to see them drop me an email. &lt;/li&gt;

&lt;/ul&gt;



And you never know, I may actually post something technical here in the near future.</description><category>database</category><guid>https://halfcooked.com/blog/2009/01/16/web-20-better-late-than-never/</guid><pubDate>Fri, 16 Jan 2009 08:53:55 GMT</pubDate></item><item><title>Gerald release 0.2.4</title><link>https://halfcooked.com/blog/2009/01/03/gerald-release-024/</link><dc:creator>Andrew J Todd esq.</dc:creator><description>&lt;p&gt;I have packaged and released version 0.2.4 of &lt;a href="http://halfcooked.com/code/gerald/"&gt;gerald&lt;/a&gt;. This is a minor release with a couple of little features and some documentation and admin updates. You can find all of the details in the CHANGELOG.txt file that comes with the source distribution (or view it &lt;a href="http://halfcooked.svn.sourceforge.net/viewvc/halfcooked/tags/release-0.2.4/CHANGELOG.txt?revision=53&amp;amp;view=markup"&gt;here&lt;/a&gt;) but in a nutshell the changes from the last release are;



&lt;/p&gt;&lt;ul&gt;

  &lt;li&gt;Added support for comments on columns in Oracle&lt;/li&gt;

  &lt;li&gt;Added support for comments on tables in Oracle&lt;/li&gt;

  &lt;li&gt;Changed the stylesheet used for documentation&lt;/li&gt;

  &lt;li&gt;Added more information to the README file and converted it to &lt;a href="http://docutils.sourceforge.net/rst.html"&gt;reStructured Text&lt;/a&gt; format&lt;/li&gt;

&lt;/ul&gt;



Please download, install and enjoy. Bug reports or tumultuous praise to &lt;a href="mailto:andy47@halfcooked.com"&gt;the usual address&lt;/a&gt; please.</description><category>database</category><category>oracle</category><category>python</category><guid>https://halfcooked.com/blog/2009/01/03/gerald-release-024/</guid><pubDate>Sat, 03 Jan 2009 15:17:05 GMT</pubDate></item><item><title>Oracle Parameter Files</title><link>https://halfcooked.com/blog/2008/12/09/oracle-parameter-files/</link><dc:creator>Andrew J Todd esq.</dc:creator><description>&lt;p&gt;This isn't going to be news to any Oracle DBAs reading this. So if you are one, can I suggest you move along quickly to the next item in your feed reader.&lt;/p&gt;



&lt;p&gt;Anyone left is hopefully curious like I was to figure out the difference between 'traditional' oracle initialisation files (init.ora) and the new fangled server parameter files (sp files). Well wonder no further fair reader for I can explain all.&lt;/p&gt;



&lt;p&gt;Prior to Oracle 9.2 (a long time ago in Oracle database years) it was only possible to permanently effect the configuration parameters of your database by changing the &lt;a href="http://www.adp-gmbh.ch/ora/admin/init_ora.html"&gt;init.ora&lt;/a&gt; file and restarting your database instance. You could make changes whilst the database was running by using the 'ALTER SYSTEM SET' command but these would be lost the next time your database was restarted because the startup process would use the values in your init.ora file. This meant that any instance tuning would require some informed 'twiddling' by the DBA to settle on a suitable value for an instance parameter and that would then be followed by a restart, causing anyone using the database to be mightily inconvenienced.&lt;/p&gt;



&lt;p&gt;With the introduction of &lt;a href="http://www.orafaq.com/node/5"&gt;server parameter files&lt;/a&gt; in 9.2 and above changes made interactively (using 'ALTER SYSTEM SET') are automatically persisted. This is because whenever a change is made this way it is automagically written to your spfile.&lt;/p&gt;



&lt;p&gt;This &lt;a href="http://www.orafaq.com/node/5"&gt;article&lt;/a&gt; has a much more comprehensive description of the differences between the two different types of files. One of the useful things it mentions is the resolution order the database server uses to select an initialisation file on startup. This is;&lt;/p&gt;



&lt;ul&gt;

  &lt;li&gt;spfile&amp;lt;SID&amp;gt;.ora&lt;/li&gt;

  &lt;li&gt;spfile.ora&lt;/li&gt;

  &lt;li&gt;init&amp;lt;SID&amp;gt;.ora&lt;/li&gt;

&lt;/ul&gt;



&lt;p&gt;Tick another thing off the list of 'stuff that has been bothering me and I need to figure out'.&lt;/p&gt;</description><category>database</category><category>oracle</category><guid>https://halfcooked.com/blog/2008/12/09/oracle-parameter-files/</guid><pubDate>Tue, 09 Dec 2008 15:07:33 GMT</pubDate></item></channel></rss>