Comments (9)
@kdrodger Could you please take a look or refer to the right person for this? Thanks!
from db2-samples.
As Db2 Community Edition is free and it includes the header files for developers, it would be ok for someone to use it for development of a vendor library.
Or would this require a vendor to license at least some Db2?
from db2-samples.
@surekav Which header files are required? Can you post some additional details
from db2-samples.
@irinadel @tasdevil13
There are quite a few header files that I believe are needed for building the vendor library.
The sample vendor.C implementation provided by IBM here: https://github.com/IBM/db2-samples/blob/master/BARVendor/vendor.C includes 3 header files. These are:
- sqlutil.h
- sqluvend.h
- sqluv.h
These header files are located in the DB2 install directory (more specifically at /opt/IBM/db2/V11.5/include/
on a host where Db2 is installed). This Db2 install directory path is provided during compilation and linking as mentioned here: https://github.com/IBM/db2-samples/blob/master/BARVendor/README#L72
These header files, in turn, uses other header files present in /opt/IBM/db2/V11.5/include/
as well.
Similarly, to build and use db2APIs such as the ones mentioned here https://github.com/IBM/db2-samples/tree/master/cpp other header files from /opt/IBM/db2/V11.5/include/
are needed.
For e.g. the sample file here: https://github.com/IBM/db2-samples/blob/master/cpp/ininfo.C makes use of
- db2ApiDf.h
- sqlenv.h
- utilapi.h
which again references other header files from this directory.
from db2-samples.
So in reality, these header files don't need to reside in this repo. They can just be pointed to when you're compiling the examples against an existing db2 installation. I am not sure what value it will provide to have all dependent header files extracted in this repo.
from db2-samples.
@irinadel
Well, this repo specifies that it comes under Apache2.0-Licence and therefore anyone is free to use code from this repo. The same may not be true with the header files which are installed as part of Db2 installation. They may be under a different licence which may have certain restrictions on its usage.
Would copying the header files from Db2 install directory to our organisation repository and building application using the structures and definitions from these header files require any licensing ?
from db2-samples.
I think I'm wondering about the same questions as Irina -- is there value and a use case for having a copy of the SDK and header files here, without the rest of some Db2 deployment release? Those vendor interfaces are an interesting case, as opposed to most of the other samples which actually require a Db2 instance to build and execute.
It might be possible to put a copy of SDK here as well, although even then it would likely only be for 64-bit x86 Linux, and only for the most recent Db2 release, and so I'm wondering if that breaks the value prop since the SDK APIs could change and no longer reflect the Db2 level that you intend to build for and support.
from db2-samples.
Thank @kdrodger @irinadel for the quick response.
Agree with you that header files need not be part of this repo. For vendor interfaces case which needs Db2 header files, do you think the below approach attracts any licensing issues:
- Copy the header files from the Db2 install directory to our organizational repository for building any Db2 backup vendor products and commercialization of the same.
from db2-samples.
Closing due to inactivity. Feel free to re-open if necessary.
from db2-samples.
Related Issues (20)
- Group sample by type of Db2
- where should I start HOT 2
- How to add changes for NO ENCRYPT option HOT 6
- What do those files, "bldapp" "bldmc" "bldrtn", do? HOT 2
- Asking about query's restriction (over 32000 byte) about "wlmhist.pl" that is sample perl script where is located in $HOME/sqllib/samples/perl.
- Can't find COM.ibm.db2.app.*; HOT 2
- DB2 API is returning error -2546 HOT 8
- DB2 C API to backup and restore only transaction logs HOT 4
- Regression_Demo.ipynb Notebook - Create LINREG.GSTEST_STD table as Row Org to allow Alter Table HOT 1
- Add REST API Example for ML Model using Db2 REST Endpoint HOT 3
- Restore archive logs only HOT 9
- Add Warning about Python Versions for Models Stored in Tables HOT 2
- Documentation for the BAR sample scripts HOT 1
- db2 restart automatically on window
- IBM DB2 is giving wrong database against db2inst2 if there two instances are present on the DB2 11.5 HOT 5
- file `repl/xmlpubtk/loadqueue/LoadQueue.jar` is corrupt HOT 3
- db_library/views/db_table_quick_size.sql gives wrong index size if index tablespace not same pagesize as table tablespace
- db2mon script throwing error in Ubuntu 20.4 intermiddently HOT 1
- More detailed guides for developing C++ routine code for db2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from db2-samples.