Path: text.usenetserver.com!out02a.usenetserver.com!news.usenetserver.com!in01.usenetserver.com!news.usenetserver.com!in03.usenetserver.com!news.usenetserver.com!news.germany.com!news.newsland.it!news-15.escomposlinux.org!not-for-mail
From: =?windows-1252?Q?=22=C1lvaro_G=2E_Vicario=22?=
 <alvaroNOSPAMTHANKS@demogracia.com>
Newsgroups: comp.databases.oracle.misc
Subject: SQL dumps for version control
Date: Fri, 08 Aug 2008 10:24:55 +0200
Organization: escomposlinux.org
Lines: 34
Message-ID: <g7gvqv$8i2$1@huron.algomas.org>
NNTP-Posting-Host: 51.red-80-37-14.staticip.rima-tde.net
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: huron.algomas.org 1218183839 8770 80.37.14.51 (8 Aug 2008 08:23:59 GMT)
X-Complaints-To: netnews@news-15.escomposlinux.org
NNTP-Posting-Date: Fri, 8 Aug 2008 08:23:59 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.1.14) Gecko/20080421 Thunderbird/2.0.0.14 Mnenhy/0.7.5.666
Xref: usenetserver.com comp.databases.oracle.misc:253480
X-Received-Date: Fri, 08 Aug 2008 04:25:00 EDT (text.usenetserver.com)

I’d need to generate SQL dumps to store in a version control system. I’m 
not asking for advanced features like upgrade/downgrade scripts or the 
like. My requirements are something like this:

- I need to store the structure of specific tables (not all); providing 
the table name should automatically backup all related objects: 
constraints, indexes, triggers, sequences…
- I need to store the data of specific tables (not all, and not 
necessarily the previous ones).
- Dumps should be similar when the database has not changed so diff 
tools are meaningful.

Ideally, I’d have a script (*.bat, *.php or whatever) with two 
configuration files where I specify the table names for either case 
(e.g. structure.txt and data.txt), but it’s okay if the process has to 
be done manually.

I’m coding a PHP web site in a Windows 2003 Server box that accesses a 
remote Oracle 10g server. I’ve installed TOAD Free and Oracle SQL 
Developer but I’m open to other tools you may suggest. The version 
control system is Subversion.

I've tried SQL Developer's "Database Export" and the dumps look quite 
good (although it's hard to say because it puts everything in a single 
huge file) but I have to specify all the parameters every time (it 
doesn't even remember the last used directory) what looks too error prone.

Do you have any suggestion? Thank you in advance.

-- 
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--
