Unix Technical Forum

I have a question for dbimport

This is a discussion on I have a question for dbimport within the Informix forums, part of the Database Server Software category; --> I use dbexport rootdbs -d stores7 common to export this db . so this is create stores.exp directory include ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 12:59 PM
sunqf
 
Posts: n/a
Default I have a question for dbimport

I use dbexport rootdbs -d stores7 common to export this db . so this
is create stores.exp directory include "*.nul" and " stores7.sql "
files .
so I use dbimport rootdbs -d stores7 but informix tall me that is error
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 12:59 PM
scottishpoet
 
Posts: n/a
Default Re: I have a question for dbimport

2 questions

1/ what is in the file stores7.sql

2/ what directory are you in when you run the dbimport command


sunqf wrote:
> I use dbexport rootdbs -d stores7 common to export this db . so this
> is create stores.exp directory include "*.nul" and " stores7.sql "
> files .
> so I use dbimport rootdbs -d stores7 but informix tall me that is error
> .
> this dbimport.out file tall me "cann't open sql script file " .
> I use this common at same directory and same user . and I can open
> stores7.sql this file .
> can you help me ?
> that is way


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 12:59 PM
Richard Harnden
 
Posts: n/a
Default Re: I have a question for dbimport

sunqf wrote:
> I use dbexport rootdbs -d stores7 common to export this db . so this
> is create stores.exp directory include "*.nul" and " stores7.sql "
> files .
> so I use dbimport rootdbs -d stores7 but informix tall me that is error


You have that backwards, it should be: dbimport stores7 -d rootdbs

> .
> this dbimport.out file tall me "cann't open sql script file " .
> I use this common at same directory and same user . and I can open
> stores7.sql this file .


It would have been looking for ./rootdbs.exp/rootdbs.sql

> can you help me ?
> that is way
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 12:59 PM
sunqf
 
Posts: n/a
Default Re: I have a question for dbimport


scottishpoet 写道:

> 2 questions
>
> 1/ what is in the file stores7.sql
>
> 2/ what directory are you in when you run the dbimport command
>

yes that stores7.sql file in stores7.exp directory .

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2008, 12:59 PM
scottishpoet
 
Posts: n/a
Default Re: I have a question for dbimport


sunqf wrote:
> scottishpoet 写道:
>
> > 2 questions
> >
> > 1/ what is in the file stores7.sql
> >
> > 2/ what directory are you in when you run the dbimport command
> >

> yes that stores7.sql file in stores7.exp directory .


As richard said :

dbimport rootdbs -d stores7 but informix tall me that is error

You have that backwards, it should be: dbimport stores7 -d rootdbs

and when you run the dbimport you need to be in the directory that
contains the stores7.exp, not the directory that conatins the
stores7.sql

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com