Could you please give us the erros ? I used bdb for years with datasets with millions of records and had no problems. Meanwhile i use vbisam and it works too. May be, you have an error that occurs with vbisam too. As attachement the vbisam i use. I can't remember where i got it - but with x86 it works perfect - with armhf i have problems.
Good luck.
We are using ORACLE (Release 12.2.0.1.0) database. We are using Pro*Cob and the maximum COBOL Programs are using EXEC SQL for retrive the data from Oracle Database.
We are using only GNU COBOL Version 2.0 rw-branch.
**(cobc (GnuCOBOL) 2.0.0). **
We have observed the INDEXED file handler as below with used of cobc -i: INDEXED file handler : Berkeley DB 5.3.21: (May 11, 2012)
Actually got following error when tried to OPEN/READ an INDEXED file from a COBOL program.
The vbisam folder is a standalone configure make install, but you'll need to check out the whole tree, (or figure out the github API options that can checkout just a subfolder).
Cheers
Last edit: Brian Tiffin 2018-12-28
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Micro Focus uses a version of C-ISAM.
There is something else called D-ISAM which has a cost and comes from http://www.isamcentral.com/ . I have used D-ISAM for 20 years in my commercial software.
D-ISAM does handle Microfocus INDEXED files as long as they are nto IDX8 format.
I've also fix issues with VB-ISAM to better support the COBOL status '02' which means 'Duplicates key ahead'. However VB-ISAM files are not 100% compatible with what Micro focus uses.
If you send or attach some sample COBOL code that is haing the problem with BDB and Pro*Cob (Oracle) I could test it out. *
I have attached a copy of VB-ISAM 2.1.1 which I updated a couple of years ago.
We are using GNU COBOL Version 2.0 rw-branch. During create INDEXED file we got BDB errors hence we need to use –with-vbisam option.
Please let me know the steps for use the above mentiined option.
Could you please give us the erros ? I used bdb for years with datasets with millions of records and had no problems. Meanwhile i use vbisam and it works too. May be, you have an error that occurs with vbisam too. As attachement the vbisam i use. I can't remember where i got it - but with x86 it works perfect - with armhf i have problems.
Good luck.
Thanks a lot for your quick help.
Only need to install the above mentioned vbisam.tgz file right.
Please let me know after that how to proceed furthe.
We are using ORACLE (Release 12.2.0.1.0) database. We are using Pro*Cob and the maximum COBOL Programs are using EXEC SQL for retrive the data from Oracle Database.
We are using only GNU COBOL Version 2.0 rw-branch.
**(cobc (GnuCOBOL) 2.0.0). **
We have observed the INDEXED file handler as below with used of cobc -i:
INDEXED file handler : Berkeley DB 5.3.21: (May 11, 2012)
Actually got following error when tried to OPEN/READ an INDEXED file from a COBOL program.
** BDB0196 Encrypted checksum: no encryption key specified
BDB0210 xyz.dat: metadata page checksum error
**
This INDEXED file created from a master datafile through another COBOL program.
Thanks in advance for your valuable and great help.
Santanu did GnuCOBOL create the INDEXED file?
Yes, GNU COBOL 2.0 Version rw-barnch has been created the INDEXED file with a input data file (.dat) which populated from ORACLE database table..
When OPEN/READ that INDEXED file from another COBOL program then got these errors BDB0196 and BDB0210 .
Last edit: Santanu Ghosh 2018-12-28
What does that mean, Santanu. ESQL? Pull from Pro*Cob into GnuCOBOL or ??
Edit: Ignore that part, read the other message, Santanu - Pro*Cob it is.
I'd still be curious what the utilities have to say...
What messages come out of the Berkeley utilities like
db_verifyanddb_dumpwhen used on the data sets?Curious,
Blue
More edits...
Oh, and for the VBISAM I test with here, it is the copy from the Open Source COBOL Consortium in Japan.
https://github.com/opensourcecobol/opensource-cobol
The vbisam folder is a standalone configure make install, but you'll need to check out the whole tree, (or figure out the github API options that can checkout just a subfolder).
Cheers
Last edit: Brian Tiffin 2018-12-28
How to see the messages which come out of the Berkeley utilities like db_verify and db_dump when used on Oracle data sets? - Please suggest.
A note from Ron on this issue (got in by mail):
As per our requirement it will better to use that option for INDEXED file which is Microfocus compatible.
How to check Oracle client library name which conflict with BDB - Please guide.
Micro Focus uses a version of C-ISAM.
There is something else called D-ISAM which has a cost and comes from http://www.isamcentral.com/ . I have used D-ISAM for 20 years in my commercial software.
D-ISAM does handle Microfocus INDEXED files as long as they are nto IDX8 format.
I've also fix issues with VB-ISAM to better support the COBOL status '02' which means 'Duplicates key ahead'. However VB-ISAM files are not 100% compatible with what Micro focus uses.
If you send or attach some sample COBOL code that is haing the problem with BDB and Pro*Cob (Oracle) I could test it out. *
I have attached a copy of VB-ISAM 2.1.1 which I updated a couple of years ago.
Related
Discussion: Effect of DISPLAY on performance during file processing
Discussion: ISAM Multiple Instance Behavior: VBISAM vs BDB
Here are two small changes to make VBISAM 2.1.1 compatible with gcc 14 (introduced in Fedora 40).
See post: https://sourceforge.net/p/gnucobol/discussion/cobol/thread/49d76dc54e/?limit=25#1a3c
isrecover.c
ischeck.c