Solved

Informix - dbexport/dbimport.. silly question

Posted on 2012-12-28
5
1,267 Views
Last Modified: 2013-01-07
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
Comment
Question by:Ben Hart
  • 2
  • 2
5 Comments
 
LVL 38

Expert Comment

by:Jim P.
Comment Utility
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
 
LVL 14

Author Comment

by:Ben Hart
Comment Utility
I had hoped there'd be more than one reply.  Maybe someone whose done it before?
0
 
LVL 34

Expert Comment

by:Gary Patterson
Comment Utility
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
 
LVL 14

Author Comment

by:Ben Hart
Comment Utility
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
 
LVL 34

Accepted Solution

by:
Gary Patterson earned 300 total points
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Format safe MySql date search 4 53
xBase++ 6 68
SQL Insert Query Help 16 86
Php  POSTGRES  "  IN SIDE "  " 4 38
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now