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 > problems with dbload utility

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-21-03, 05:05
neha9 neha9 is offline
Registered User
 
Join Date: Nov 2003
Location: Bangalore
Posts: 6
problems with dbload utility

I am new to informix and was asked to load data into informix using dbload.

I installed IDS 9.4 and created a database and created tables.
Now when i try the dbload utility to load data. i get "No connect Permission" error message.

If any one has encountered the similar error with dbload pls help.

Neha
Reply With Quote
  #2 (permalink)  
Old 11-21-03, 05:12
neha9 neha9 is offline
Registered User
 
Join Date: Nov 2003
Location: Bangalore
Posts: 6
Re: problems with dbload utility

Informix is installed in Win2K
Reply With Quote
  #3 (permalink)  
Old 11-21-03, 06:41
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Re: problems with dbload utility

Quote:
Originally posted by neha9
Informix is installed in Win2K
Hi,

For example, You have the follow table

create table T1
( a int,
b char (20),
c varchar(290),
d date,
e smallint
) ......

For see the syntax of dbload, write dbload then press enter, without parameters.

Now, You have flat file with follow format, with name fileload.unl:

flda|fldb|fldc|fldd|flde|
flda|fldb|fldc|fldd|flde|
flda|fldb|fldc|fldd|flde|
....

Create one file of command, for example file.cmd

FILE "fileload.unl" delimiters "|" 5; 5 is field sum
insert into T1;

Now running dbload :

dbload -d database -c file.cmd -e # "error accept" -l log-file -r -n # "rows to commit" .......


Gustavo.
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