dbTalk Databases Forums  

db_load: line 2: unexpected format

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss db_load: line 2: unexpected format in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Coonay
 
Posts: n/a

Default db_load: line 2: unexpected format - 04-15-2009 , 06:14 AM






my ldap verions in widnows is 2.2.28
Berkeley DB version is 4.3.28,
in windows :
cmd>db_dump -f id2entry.dump id2entry
cmd>ftp id2entry.dump redhat.coonay.com


in linux:
#/usr/local/BerkeleyDB.4.7/bin/db_load -f radiaId.dump -h /var/opt/
ldap/ radiaId.bdb
db_load: line 2: unexpected format


how can i dump the bdb in window into linux?should i update the bdb to
4.7 in window in order for
that work?

thanks so much

Reply With Quote
  #2  
Old   
Coonay
 
Posts: n/a

Default Re: db_load: line 2: unexpected format - 04-15-2009 , 06:26 AM






On Apr 15, 6:14*pm, Coonay <fla... (AT) gmail (DOT) com> wrote:
Quote:
my ldap verions in widnows is 2.2.28
Berkeley *DB version is 4.3.28,
in windows :
cmd>db_dump -f id2entry.dump id2entry
cmd>ftp id2entry.dump redhat.coonay.com

in linux:
#/usr/local/BerkeleyDB.4.7/bin/db_load -f radiaId.dump -h /var/opt/
ldap/ radiaId.bdb
db_load: line 2: unexpected format

how can i dump the bdb in window into linux?should i update the bdb to
4.7 in window in order for
that work?

thanks so much
the first lines in radiaId.dump is :

VERSION=3
format=bytevalue
type=btree
duplicates=1
dupsort=1
db_pagesize=4096
HEADER=END



Reply With Quote
  #3  
Old   
Florian Weimer
 
Posts: n/a

Default Re: db_load: line 2: unexpected format - 04-15-2009 , 08:05 AM



* Coonay:

Quote:
the first lines in radiaId.dump is :

VERSION=3
format=bytevalue
type=btree
duplicates=1
dupsort=1
db_pagesize=4096
HEADER=END
Can you post the output of "hd radiaId.dump | head"?

I suspect you need to convert the line endings from CRLF to LF.


Reply With Quote
  #4  
Old   
Coonay
 
Posts: n/a

Default Re: db_load: line 2: unexpected format - 04-16-2009 , 12:00 AM



On Apr 15, 8:05*pm, Florian Weimer <f... (AT) deneb (DOT) enyo.de> wrote:
Quote:
* Coonay:

the first lines *in radiaId.dump is :

VERSION=3
format=bytevalue
type=btree
duplicates=1
dupsort=1
db_pagesize=4096
HEADER=END

Can you post the output of "hd radiaId.dump | head"?

I suspect you need to convert the line endings from CRLF to LF.

Florian :

what is hd?i cann't find it .

thanks


Reply With Quote
  #5  
Old   
Coonay
 
Posts: n/a

Default Re: db_load: line 2: unexpected format - 04-16-2009 , 12:01 AM



On Apr 15, 8:05*pm, Florian Weimer <f... (AT) deneb (DOT) enyo.de> wrote:
Quote:
* Coonay:

the first lines *in radiaId.dump is :

VERSION=3
format=bytevalue
type=btree
duplicates=1
dupsort=1
db_pagesize=4096
HEADER=END

Can you post the output of "hd radiaId.dump | head"?

I suspect you need to convert the line endings from CRLF to LF.
btw ,i transfer the dump using binary mode,should there is no CRLF


Reply With Quote
  #6  
Old   
Florian Weimer
 
Posts: n/a

Default Re: db_load: line 2: unexpected format - 04-16-2009 , 05:31 AM



* Coonay:

Quote:
On Apr 15, 8:05*pm, Florian Weimer <f... (AT) deneb (DOT) enyo.de> wrote:
* Coonay:

the first lines *in radiaId.dump is :

VERSION=3
format=bytevalue
type=btree
duplicates=1
dupsort=1
db_pagesize=4096
HEADER=END

Can you post the output of "hd radiaId.dump | head"?

I suspect you need to convert the line endings from CRLF to LF.

btw ,i transfer the dump using binary mode,should there is no CRLF
No, the CRLF is would be gone if you used text mode instead of binary
mode.

Quote:
what is hd?i cann't find it .
"hd" is a hex dump command. It allows you to check what type of line
endings are present.


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.