Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
Berkeley DB Family
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Apr 27, 2012 5:48 PM by
BDBSQL_FILE_PER_TABLE flag not working with BDB 5.3.15
Apr 24, 2012 4:25 PM
I am trying to compile Berkeley DB version 5.3.15 with BDBSQL_FILE_PER_TABLE flag to store each table created in DBSQL as a seperate file.
The issue I am facing is that all the table files along with the metadata file are being created outside the "database location". The issue does not exist with Berkeley DB version 5.2.
After looking into the file "sqlite3.c" I figured the problem was present in the function "btreePrepareEnvironment" in the following portion of the code.
/* Reuse envDirNameBuf. */
dirPathName = dirPathBuf;
memset(dirPathName, 0, BT_MAX_PATH);
*//sqlite3_snprintf(sizeof(dirPathName), dirPathName, // The size of dirPathName = 4. only "../" portion was getting copied to dirPathName variable.*
sqlite3_snprintf(sizeof(dirPathBuf), dirPathName, // TEMP FIX
Please let me know if this is a sufficient fix. Also can I get an official patch for the fix?
This content has been marked as final.
Show 1 reply
Re: BDBSQL_FILE_PER_TABLE flag not working with BDB 5.3.15
Apr 27, 2012 5:48 PM
in response to
Thanks for reporting this. Your fix looks reasonable.
I can create and email and official patch for you. If you email me directly at alexander dot gorrod at oracle dot com, I will respond with the patch.
Oracle Berkeley DB