Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / Informix Topics / July 2004

Tip: Looking for answers? Try searching our database.

instant database - from script

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tomL - 30 Jul 2004 16:45 GMT
hello all!

i have a request from developers for a script that would "instantly"
create a database, such as copying production to development, that
they could run on their own. i have the "manual" sql i use to do this
but can someone provide some feedback on how i would turn this into a
complete batch-type script that they could fire off (or that i could
fire off and review any errors). mostly it is the mechanics needed of
how to do this...

thanks,
Tom
Jonathan Leffler - 30 Jul 2004 18:17 GMT
> i have a request from developers for a script that would "instantly"
> create a database, such as copying production to development, that
[quoted text clipped - 3 lines]
> fire off and review any errors). mostly it is the mechanics needed of
> how to do this...

Depending on whether the database lock it uses is acceptable or not,
the simplest answer is to dbexport the original database and dbimport
it - possibly afer renaming it.   If you only need the schema and not
the data, then dbschema and dbaccess will do the trick.  You could
also consider onunload and onload.  Art Kagel has a program, myschema,
which does a pretty good job of schema replication - and myexport and
myimport, which are scripts that use myschema and sqlcmd.  All that's
available from the IIUG software archive.

Signature

Jonathan Leffler                   #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.