[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1579
  • Last Modified:

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?
0
Ben Hart
Asked:
Ben Hart
  • 2
  • 2
1 Solution
 
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
 
Gary PattersonVP 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

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now