If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Informix Export & Import

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-01-07, 02:39
saikatermail saikatermail is offline
Registered User
 
Join Date: Jan 2007
Posts: 30
Informix Export & Import

Hi,

How to perform export/import data to a dump file (.dmp) in Informix 9.4 i.e. what is the equivalent command of exp/imp of Oracle in Informix 9.4.

Saikat
Reply With Quote
  #2 (permalink)  
Old 02-01-07, 04:11
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 140
dbexport name_of_database -o output_dir
dbimport name_of_database -i input_dir
Reply With Quote
  #3 (permalink)  
Old 02-01-07, 05:12
saikatermail saikatermail is offline
Registered User
 
Join Date: Jan 2007
Posts: 30
No Tape device Found

Hi Sir,

After executing the dbexport command it is giving the following comment

"No Tape Device Found"

What to do? Please provide help

Saikat
Reply With Quote
  #4 (permalink)  
Old 02-01-07, 05:20
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 140
what exactly you execute?
When you need simple dump file you should executy only:
dbexport dbs -o path_to_some_directory
dbs- is name of database you want to backup
In path_to_some_directory directory is created the new one "dbs.exp" which contains the dump files.
Reply With Quote
  #5 (permalink)  
Old 02-01-07, 05:32
Tyveleyn Tyveleyn is offline
Registered User
 
Join Date: Aug 2006
Location: The Netherlands
Posts: 248
Hi,

If you've specified:
Code:
dbexport -o output_dir
does output_dir already exist? The exportdirectory has to exist before using dbexport this way. It's a strange notification though and maybe it's caused by an omitted TAPEDEV value in the onconfig file. Check this out in UNIX with
Code:
onstat -c | grep TAPEDEV
If it has no value because you don't use a tapedevice set the value to /dev/null, stop and re-initialize the server.

Regards
Reply With Quote
  #6 (permalink)  
Old 02-01-07, 05:54
saikatermail saikatermail is offline
Registered User
 
Join Date: Jan 2007
Posts: 30
Thanks

Hi,

Problem Solved. Thanks a lot to both of you.

Regards

Saikat
Reply With Quote
  #7 (permalink)  
Old 02-01-07, 06:34
saikatermail saikatermail is offline
Registered User
 
Join Date: Jan 2007
Posts: 30
Hi,

The Export Command that I have give is

dbexport ifx_db1 -o f:\Backup

It has been created a Directory ifx_db1.exp inside f:\backup

now I am giving the following statement

dbimport ifx_db2 -i f:\backup

it is giving the following message

"Cannot open sql script file"

after that I am giving the following statement

dbimport ifx_db2 -i f:\backup\ifx_db1.exp\

it is also giving the same message

"Cannot open sql script file"

Please help

Saikat
Reply With Quote
  #8 (permalink)  
Old 02-01-07, 06:49
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 140
You must execute: dbimport ifx_db1 -i f:\backup\ifx_db1.exp\

the name of new database should be the same as the name of db you backed up.

or rename f:\backup\ifx_db1.exp to f:\backup\ifx_db2
and f:\backup\ifx_db1\ifx_db1.sql to f:\backup\ifx_db1\ifx_db2.sql
Reply With Quote
  #9 (permalink)  
Old 02-01-07, 07:53
saikatermail saikatermail is offline
Registered User
 
Join Date: Jan 2007
Posts: 30
Cannot open sql script file

Hi,

I have rename the f:\backup\ifx_db1.exp to f:\backup\ifx_db2.exp
and also rename f:\backup\ifx_db1.exp\ifx_db1.sql
to f:\backup\ifx_db2.exp\ifx_db2.sql

and after that giving import command

dbimport ifx_db2 -i f:\backup\ifx_db2.exp\

it is giving the same error message

"Cannot open sql script file"

Please help

Saikat
Reply With Quote
  #10 (permalink)  
Old 02-01-07, 08:03
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 140
sorry i did a little mistake in my previous post:
try:
dbimport ifx_db2 -i f:\backup

it should work
Reply With Quote
  #11 (permalink)  
Old 02-01-07, 08:05
saikatermail saikatermail is offline
Registered User
 
Join Date: Jan 2007
Posts: 30
Thanks a Lot. It works.

Saikat
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On