Informix - dbexport/dbimport.. silly question

Say you have DB1.. if you successfull run dbexport on that database.  And let's say you lose the exported file(s).. is the data still contained within DB1 and in a current state that you could fire up the instance and access the data like nothing happened?
LVL 14
Ben HartAsked:
Who is Participating?
 
Gary PattersonConnect With a Mentor VP Technology / Senior Consultant Commented:
When you run dbimport, you specify the name of an existing dbspace (the default rootdbs dbspace is used if you don't specify a dbspace).

A dbspace is just a logical collection of chunks of disk space used to hold the database.

The dbspace you specify needs to exist, and be large enough to hold the new database being imported.  

All of this is covered in much better detail than you'll get here in the Informix documentation.  You'll find information on creating dbspaces, adding chunks to an existing dbspace, importing/exporting, and more:

http://publib.boulder.ibm.com/infocenter/ifxhelp/v0/index.jsp

- Gary Patterson
0
 
Jim P.Commented:
You should be able to. About 99.9% of the databases don't actually delete the data during the export process, they just make a copy of it in some sort text readable file.
0
 
Ben HartAuthor Commented:
I had hoped there'd be more than one reply.  Maybe someone whose done it before?
0
 
Gary PattersonVP Technology / Senior Consultant Commented:
dbexport is nondestructive.  It basically generates a bunch of SELECT statements, so you'll want to disable SELECT triggers before you run an export.

- Gary Patterson
0
 
Ben HartAuthor Commented:
Thanks so much Gray.  Last thing.. once you dbimport into the new db on the new server.. does this new db need to already be as big as the old one or will it dynamically increase?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.